41 lines · plain
1# RUN: llc -mtriple=arm64-applie-ios7.0 -start-before=aarch64-lower-homogeneous-prolog-epilog -homogeneous-prolog-epilog %s -o - | FileCheck %s2#3# This test ensure no outlined epilog is formed when X16 is live across the helper.4--- |5 @FuncPtr = local_unnamed_addr global ptr null, align 86 7 define i32 @_Z3fooi(i32) minsize "frame-pointer"="all" {8 ret i32 09 }10 11 declare i32 @_Z3gooii(i32, i32)12...13---14name: _Z3fooi15tracksRegLiveness: true16body: |17 bb.0:18 liveins: $w0, $lr, $x19, $x2019 successors: %bb.120 frame-setup HOM_Prolog $lr, $fp, $x19, $x20, 1621 frame-setup CFI_INSTRUCTION def_cfa $w29, 1622 frame-setup CFI_INSTRUCTION offset $w30, -823 frame-setup CFI_INSTRUCTION offset $w29, -1624 frame-setup CFI_INSTRUCTION offset $w19, -2425 frame-setup CFI_INSTRUCTION offset $w20, -3226 $w19 = nsw ADDWri $w0, 1, 027 $w1 = ORRWrr $wzr, $w028 $w0 = ORRWrr $wzr, $w1929 BL @_Z3gooii, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit $w0, implicit $w1, implicit-def $sp, implicit-def $w030 $x8 = ADRP target-flags(aarch64-page) @FuncPtr31 $x16 = LDRXui killed renamable $x8, target-flags(aarch64-pageoff, aarch64-nc) @FuncPtr32 $w0 = nsw ADDWrr renamable $w0, killed renamable $w1933 $lr, $fp, $x19, $x20 = frame-destroy HOM_Epilog34 B %bb.135 36 bb.1:37 liveins: $w0, $x1638 TCRETURNri killed renamable $x16, 0, csr_aarch64_aapcs, implicit $sp, implicit $w039# CHECK: _OUTLINED_FUNCTION_PROLOG_FRAME16_x30x29x19x20:40# CHECK-NOT: _OUTLINED_FUNCTION_EPILOG_x30x29x19x20:41