1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
3 ; CHECK-LABEL: .section __LLVM_STACKMAPS,__llvm_stackmaps
4 ; CHECK-NEXT: __LLVM_StackMaps:
10 ; CHECK-NEXT: .short 0
17 ; function address & stack size
18 ; CHECK-NEXT: .quad _foo
21 ; function address & stack size
22 ; CHECK-NEXT: .quad _bar
27 ; CHECK-NEXT: .quad 9223372036854775807
28 ; CHECK-NEXT: .quad -9223372036854775808
33 ; CHECK-NEXT: .long L{{.*}}-_foo
35 ; CHECK-NEXT: .short 0
37 ; CHECK-NEXT: .short 1
43 ; CHECK-NEXT: .short 8
45 ; CHECK-NEXT: .short 0
47 ; CHECK-NEXT: .short 0
51 ; CHECK-NEXT: .p2align 3
52 ; CHECK-NEXT: .short 0
54 ; CHECK-NEXT: .short 0
56 ; CHECK-NEXT: .p2align 3
58 declare void @llvm.experimental.stackmap(i64, i32, ...)
61 tail call void (i64, i32, ...) @llvm.experimental.stackmap(i64 0, i32 0, i64 9223372036854775807)
68 ; CHECK-NEXT: .long L{{.*}}-_bar
70 ; CHECK-NEXT: .short 0
72 ; CHECK-NEXT: .short 1
78 ; CHECK-NEXT: .short 8
80 ; CHECK-NEXT: .short 0
82 ; CHECK-NEXT: .short 0
86 ; CHECK-NEXT: .p2align 3
87 ; CHECK-NEXT: .short 0
89 ; CHECK-NEXT: .short 0
93 tail call void (i64, i32, ...) @llvm.experimental.stackmap(i64 0, i32 0, i64 -9223372036854775808)