1 # RUN: not --crash llc -o - -start-before=twoaddressinstruction -verify-machineinstrs %s 2>&1 \
3 # REQUIRES: aarch64-registered-target
5 target triple = "aarch64-unknown-linux"
6 declare i32 @bar(i32) nounwind
7 define i32 @foo() nounwind {
15 - { id: 0, class: gpr32 }
18 ADJCALLSTACKDOWN 0, 0, implicit-def dead $sp, implicit $sp
21 BL @bar, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit $w0, implicit-def $sp, implicit-def $w0
22 ADJCALLSTACKUP 0, 0, implicit-def dead $sp, implicit $sp
24 RET_ReallyLR implicit $w0
26 # CHECK-LABEL: Bad machine code: AdjustsStack not set in presence of a frame pseudo instruction.