annotate clang/test/CodeGenCXX/2009-12-23-MissingSext.cpp @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 %s -triple x86_64-unknown-unknown -emit-llvm -o - | FileCheck %s
anatofuz
parents:
diff changeset
2 // The store of p.y into the temporary was not
anatofuz
parents:
diff changeset
3 // getting extended to 32 bits, so uninitialized
anatofuz
parents:
diff changeset
4 // bits of the temporary were used. 7366161.
anatofuz
parents:
diff changeset
5 struct foo {
anatofuz
parents:
diff changeset
6 char x:8;
anatofuz
parents:
diff changeset
7 signed int y:24;
anatofuz
parents:
diff changeset
8 };
anatofuz
parents:
diff changeset
9 int bar(struct foo p, int x) {
anatofuz
parents:
diff changeset
10 // CHECK: bar
anatofuz
parents:
diff changeset
11 // CHECK: %[[val:.*]] = load i32, i32* {{.*}}
anatofuz
parents:
diff changeset
12 // CHECK-NEXT: ashr i32 %[[val]]
anatofuz
parents:
diff changeset
13 // CHECK: = load i32, i32* {{.*}}
anatofuz
parents:
diff changeset
14 // CHECK: = load i32, i32* {{.*}}
anatofuz
parents:
diff changeset
15 // CHECK: %[[val:.*]] = load i32, i32* {{.*}}
anatofuz
parents:
diff changeset
16 // CHECK-NEXT: ashr i32 %[[val]]
anatofuz
parents:
diff changeset
17 x = (p.y > x ? x : p.y);
anatofuz
parents:
diff changeset
18 return x;
anatofuz
parents:
diff changeset
19 // CHECK: ret
anatofuz
parents:
diff changeset
20 }