annotate clang/test/CodeGenCXX/2009-12-23-MissingSext.cpp @ 266:00f31e85ec16 default tip

Added tag current for changeset 31d058e83c98
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 14 Oct 2023 10:13:55 +0900
parents c4bab56944e8
children
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
236
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
11 // CHECK: %[[val:.*]] = load i32, ptr {{.*}}
150
anatofuz
parents:
diff changeset
12 // CHECK-NEXT: ashr i32 %[[val]]
236
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
13 // CHECK: = load i32, ptr {{.*}}
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
14 // CHECK: = load i32, ptr {{.*}}
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
15 // CHECK: %[[val:.*]] = load i32, ptr {{.*}}
150
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 }