2025-04-03 19:57:39 +01:00
|
|
|
// RUN: %clang -gkey-instructions %s -gmlt -gcolumn-info -S -emit-llvm -o - \
|
|
|
|
// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank
|
|
|
|
|
|
|
|
struct S { int a:3; };
|
|
|
|
|
|
|
|
void foo(int x, S s) {
|
|
|
|
// CHECK: %bf.set = or i8 %bf.clear, %bf.value, !dbg [[G1R2:!.*]]
|
|
|
|
// CHECK: store i8 %bf.set, ptr %s, align 4, !dbg [[G1R1:!.*]]
|
|
|
|
s.a = x;
|
2025-04-04 16:36:53 +01:00
|
|
|
|
|
|
|
// CHECK: ret{{.*}}, !dbg [[RET:!.*]]
|
2025-04-03 19:57:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// CHECK: [[G1R2]] = !DILocation({{.*}}, atomGroup: 1, atomRank: 2)
|
|
|
|
// CHECK: [[G1R1]] = !DILocation({{.*}}, atomGroup: 1, atomRank: 1)
|
2025-04-04 16:36:53 +01:00
|
|
|
// CHECK: [[RET:!.*]] = !DILocation({{.*}}, atomGroup: [[#]], atomRank: [[#]])
|