1 ; RUN: llc < %s -mtriple=aarch64-apple-darwin | FileCheck %s
3 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
5 ; CHECK-LABEL: .section __LLVM_STACKMAPS,__llvm_stackmaps
6 ; CHECK-NEXT: __LLVM_StackMaps:
10 ; CHECK-NEXT: .short 0
18 ; Functions and stack size
19 ; CHECK-NEXT: .quad _stackmap_liveness
20 ; CHECK-NEXT: .quad 16
22 ; Test that the return register is recognized as an live-out.
23 define i64 @stackmap_liveness(i1 %c) {
24 ; CHECK-LABEL: .long L{{.*}}-_stackmap_liveness
25 ; CHECK-NEXT: .short 0
26 ; CHECK-NEXT: .short 0
28 ; CHECK-NEXT: .p2align 3
29 ; CHECK-NEXT: .short 0
30 ; Num LiveOut Entries: 1
31 ; CHECK-NEXT: .short 2
33 ; CHECK-NEXT: .short 0
37 ; CHECK-NEXT: .short 31
41 ; CHECK-NEXT: .p2align 3
42 %1 = select i1 %c, i64 1, i64 2
43 call anyregcc void (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.void(i64 1, i32 32, i8* null, i32 0)
47 declare void @llvm.experimental.patchpoint.void(i64, i32, i8*, i32, ...)