1 # RUN: llc -mtriple=aarch64--- -run-pass=prologepilog -run-pass=machine-outliner -verify-machineinstrs %s -o - | FileCheck %s
3 define void @baz() #0 {
7 define void @bar(i32 %a) #0 {
11 attributes #0 = { noredzone }
16 tracksRegLiveness: true
19 liveins: $w0, $lr, $w8
20 $sp = frame-setup SUBXri $sp, 32, 0
21 $fp = frame-setup ADDXri $sp, 16, 0
24 BL @baz, implicit-def dead $lr, implicit $sp
29 BL @baz, implicit-def dead $lr, implicit $sp
34 BL @baz, implicit-def dead $lr, implicit $sp
39 BL @baz, implicit-def dead $lr, implicit $sp
46 $fp, $lr = LDPXi $sp, 2
51 tracksRegLiveness: true
54 liveins: $w0, $lr, $w8
57 # CHECK: name: OUTLINED_FUNCTION_0
59 # CHECK-DAG: frame-setup CFI_INSTRUCTION def_cfa_offset -16
60 # CHECK-NEXT: frame-setup CFI_INSTRUCTION offset $w30, 16
61 # CHECK-NEXT: early-clobber $sp = STRXpre $lr, $sp, -16
62 # CHECK-NEXT: BL @baz, implicit-def dead $lr, implicit $sp
63 # CHECK-NEXT: $w17 = ORRWri $wzr, 1
64 # CHECK-NEXT: $w17 = ORRWri $wzr, 1
65 # CHECK-NEXT: early-clobber $sp, $lr = LDRXpost $sp, 16
66 # CHECK-NEXT: RET undef $lr