2017-11-02 20:00:58 +08:00
|
|
|
# RUN: llc -mtriple=aarch64-- -start-after prologepilog -o - %s | FileCheck %s
|
|
|
|
---
|
|
|
|
name: fun
|
|
|
|
# CHECK: .cfi_startproc
|
|
|
|
tracksRegLiveness: true
|
|
|
|
frameInfo:
|
|
|
|
stackSize: 16
|
|
|
|
maxAlignment: 8
|
|
|
|
hasCalls: true
|
|
|
|
stack:
|
|
|
|
- { id: 0, type: spill-slot, offset: -8, size: 8, alignment: 8, stack-id: 0,
|
2018-02-01 06:04:26 +08:00
|
|
|
callee-saved-register: '$lr' }
|
2017-11-02 20:00:58 +08:00
|
|
|
- { id: 1, type: spill-slot, offset: -16, size: 8, alignment: 8, stack-id: 0,
|
2018-02-01 06:04:26 +08:00
|
|
|
callee-saved-register: '$fp' }
|
2017-11-02 20:00:58 +08:00
|
|
|
body: |
|
|
|
|
bb.0:
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $fp, $lr
|
2017-11-02 20:00:58 +08:00
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
$sp = frame-setup SUBXri $sp, 16, 0
|
|
|
|
frame-setup STRXui killed $fp, $sp, 0 :: (store 8 into %stack.1)
|
|
|
|
frame-setup CFI_INSTRUCTION offset $w29, -16
|
2017-11-02 20:00:58 +08:00
|
|
|
; CHECK: .cfi_offset w29, -16
|
2018-02-01 06:04:26 +08:00
|
|
|
frame-setup STRXui killed $lr, $sp, 1 :: (store 8 into %stack.0)
|
|
|
|
frame-setup CFI_INSTRUCTION offset $w30, -8
|
2017-11-02 20:00:58 +08:00
|
|
|
; CHECK: .cfi_offset w30, -8
|
2018-02-01 06:04:26 +08:00
|
|
|
$fp = frame-setup ADDXri $sp, 0, 0
|
|
|
|
frame-setup CFI_INSTRUCTION def_cfa $w29, 16
|
|
|
|
$lr = LDRXui $sp, 1 :: (load 8 from %stack.0)
|
|
|
|
CFI_INSTRUCTION restore $w30
|
2017-11-02 20:00:58 +08:00
|
|
|
; CHECK: .cfi_restore w30
|
2018-02-01 06:04:26 +08:00
|
|
|
$fp = LDRXui $sp, 0 :: (load 8 from %stack.1)
|
|
|
|
CFI_INSTRUCTION restore $w29
|
2017-11-02 20:00:58 +08:00
|
|
|
; CHECK: .cfi_restore w29
|
2018-02-01 06:04:26 +08:00
|
|
|
$sp = ADDXri $sp, 16, 0
|
2017-11-02 20:00:58 +08:00
|
|
|
RET_ReallyLR
|
|
|
|
; CHECK: .cfi_endproc
|
|
|
|
...
|