1 ; RUN: llc -mtriple=aarch64-unknown-linux-gnu -xray-function-index=0 < %s | FileCheck %s --check-prefixes=CHECK,CHECK-LINUX
2 ; RUN: llc -mtriple=aarch64-apple-darwin -xray-function-index=0 < %s | FileCheck %s --check-prefixes=CHECK,CHECK-MACOS
4 define i32 @foo() nounwind noinline uwtable "function-instrument"="xray-always" {
5 ; CHECK-LABEL: Lxray_sled_0:
16 ; CHECK-LABEL: Lxray_sled_1:
28 ; CHECK-LINUX-LABEL: .section xray_instr_map,"ao",@progbits,foo{{$}}
29 ; CHECK-LINUX-LABEL: Lxray_sleds_start0:
30 ; CHECK-LINUX: .xword .Lxray_sled_0
31 ; CHECK-LINUX: .xword .Lxray_sled_1
32 ; CHECK-LINUX-LABEL: Lxray_sleds_end0:
34 ; CHECK-MACOS-LABEL: .section __DATA,xray_instr_map,regular,live_support{{$}}
35 ; CHECK-MACOS-LABEL: lxray_sleds_start0:
36 ; CHECK-MACOS: .quad Lxray_sled_0
37 ; CHECK-MACOS: .quad Lxray_sled_1
38 ; CHECK-MACOS-LABEL: Lxray_sleds_end0:
40 ; CHECK-NOT: xray_fn_idx