1
1
2
- // RUN: %clang -gkey-instructions %s -gmlt -S -emit-llvm -o - \
2
+ // RUN: %clang -gkey-instructions %s -gmlt -gno-column-info - S -emit-llvm -o - \
3
3
// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank
4
4
5
5
// The implicit-check-not is important; we don't want the GEPs created for the
6
6
// store locations to be included in the atom group.
7
7
8
8
int g;
9
+ char gc;
9
10
void a () {
10
11
// CHECK: _Z1av()
11
12
// CHECK: call void @llvm.memcpy{{.*}}, !dbg [[G1R1:!.*]]
12
13
int A[] = { 1 , 2 , 3 };
14
+
13
15
// CHECK: store i32 1, ptr %{{.*}}, !dbg [[G2R1:!.*]]
14
16
// CHECK: store i32 2, ptr %{{.*}}, !dbg [[G2R1]]
15
17
// CHECK: %0 = load i32, ptr @g{{.*}}, !dbg [[G2R2:!.*]]
16
18
// CHECK: store i32 %0, ptr %{{.*}}, !dbg [[G2R1]]
17
19
int B[] = { 1 , 2 , g };
20
+
21
+ // CHECK: call void @llvm.memset{{.*}}, !dbg [[G3R1:!.*]]
22
+ // CHECK: store i8 97{{.*}}, !dbg [[G3R1]]
23
+ // CHECK: store i8 98{{.*}}, !dbg [[G3R1]]
24
+ // CHECK: store i8 99{{.*}}, !dbg [[G3R1]]
25
+ // CHECK: store i8 100{{.*}}, !dbg [[G3R1]]
26
+ char big[65536 ] = { ' a' , ' b' , ' c' , ' d' };
18
27
}
19
28
20
29
// CHECK: [[G1R1]] = !DILocation({{.*}}, atomGroup: 1, atomRank: 1)
21
30
// CHECK: [[G2R1]] = !DILocation({{.*}}, atomGroup: 2, atomRank: 1)
22
31
// CHECK: [[G2R2]] = !DILocation({{.*}}, atomGroup: 2, atomRank: 2)
32
+ // CHECK: [[G3R1]] = !DILocation({{.*}}, atomGroup: 3, atomRank: 1)
0 commit comments