llvm-for-llvmta/test/CodeGen/AArch64/expand-blr-rvmarker-pseudo.mir

22 lines
995 B
Plaintext
Raw Normal View History

2022-04-25 10:02:23 +02:00
# RUN: llc -run-pass=aarch64-expand-pseudo -mtriple=arm64-apple-ios -o - -emit-call-site-info %s | FileCheck %s
# CHECK-LABEL: test_1_callsite_info
# CHECK: bb.0.entry:
# CHECK-NEXT: BUNDLE implicit-def $lr, implicit-def $w30, implicit-def $sp, implicit-def $wsp, implicit-def dead $x0, implicit-def $fp, implicit-def $w29, implicit $x0, implicit $sp, implicit $xzr, implicit $fp {
# CHECK-NEXT: BLR $x0, csr_aarch64_aapcs, implicit-def $lr, implicit $sp, implicit-def dead $lr, implicit $sp, implicit-def $sp, implicit-def dead $x0
# CHECK-NEXT: ORRXrs $xzr, $fp, 0
# CHECK-NEXT: }
# CHECK-NEXT: RET undef $lr, implicit killed $w0
---
name: test_1_callsite_info
callSites:
- {bb: 0, offset: 0, fwdArgRegs:
- { arg: 0, reg: '$x0' } }
body: |
bb.0.entry:
liveins: $lr, $x0
BLR_RVMARKER $x0, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit-def $sp, implicit-def dead $x0
RET_ReallyLR implicit killed $w0
...