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" {
6 ; CHECK-LABEL: .Lxray_sled_0:
9 ; CHECK-RISCV64-COUNT-12: nop
10 ; CHECK-LABEL: .Ltmp0:
13 ; CHECK-LABEL: .Lxray_sled_1:
14 ; CHECK-NEXT: j .Ltmp1
16 ; CHECK-RISCV64-COUNT-12: nop
17 ; CHECK-LABEL: .Ltmp1:
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: