[Clang][MIPS] Send correct architecture for MinGW toolchains (#121042)
[llvm-project.git] / llvm / test / CodeGen / RISCV / xray-attribute-instrumentation.ll
blobec2b986d174d9140d87324e82c875292304c2d60
1 ; RUN: llc -mtriple=riscv32-unknown-linux-gnu -mattr=+d,+c < %s | FileCheck --check-prefix=CHECK %s
2 ; RUN: llc -mtriple=riscv64-unknown-linux-gnu -mattr=+d,+c < %s | FileCheck --check-prefix=CHECK --check-prefix=CHECK-RISCV64 %s
4 define i32 @foo() nounwind "function-instrument"="xray-always" {
5 ; CHECK:                        .p2align 2
6 ; CHECK-LABEL:                  .Lxray_sled_0:
7 ; CHECK-NEXT:                   j .Ltmp0
8 ; CHECK-COUNT-21:               nop
9 ; CHECK-RISCV64-COUNT-12:       nop
10 ; CHECK-LABEL:                  .Ltmp0:
11   ret i32 0
12 ; CHECK:                        .p2align 2
13 ; CHECK-LABEL:                  .Lxray_sled_1:
14 ; CHECK-NEXT:                   j .Ltmp1
15 ; CHECK-COUNT-21:               nop
16 ; CHECK-RISCV64-COUNT-12:       nop
17 ; CHECK-LABEL:                  .Ltmp1:
18 ; CHECK-NEXT:                   ret
20 ; CHECK:                        .section xray_instr_map,"ao",@progbits,foo
21 ; CHECK-LABEL:                  .Lxray_sleds_start0:
22 ; CHECK:                        .Lxray_sled_0-[[TMP:.Ltmp[0-9]+]]
23 ; CHECK:                        .Lxray_sled_1-[[TMP:.Ltmp[0-9]+]]
24 ; CHECK-LABEL:                  .Lxray_sleds_end0: