brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · f8667b7 Raw
27 lines · c
1// RUN: %clang_cc1 -gkey-instructions -gno-column-info -x c++ %s -debug-info-kind=line-tables-only -emit-llvm -o - -triple aarch64-windows-msvc \2// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank3 4// RUN: %clang_cc1 -gkey-instructions -gno-column-info -x c %s -debug-info-kind=line-tables-only -emit-llvm -o - -triple aarch64-windows-msvc \5// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank6 7typedef struct {8  short a;9  int b;10  short c;11} S;12 13S getS(void);14 15void f() {16// CHECK: %call = call [2 x i64] {{.*}}getS{{.*}}(), !dbg [[G1R2:!.*]]17//// Note: The store to the tmp alloca isn't part of the atom.18// CHECK: store [2 x i64] %call, ptr %tmp.coerce, align 819// CHECK: call void @llvm.memcpy.p0.p0.i64(ptr align 4 %s, ptr align 8 %tmp.coerce, i64 12, i1 false), !dbg [[G1R1:!.*]]20  S s = getS();21// CHECK: ret{{.*}}, !dbg [[RET:!.*]]22}23 24// CHECK: [[G1R2]] = !DILocation({{.*}}, atomGroup: 1, atomRank: 2)25// CHECK: [[G1R1]] = !DILocation({{.*}}, atomGroup: 1, atomRank: 1)26// CHECK: [[RET]] = !DILocation({{.*}}, atomGroup: 2, atomRank: 1)27