27 lines · plain
1# RUN: not --crash llc -o - -start-before=twoaddressinstruction -verify-machineinstrs %s 2>&1 \2# RUN: | FileCheck %s3# REQUIRES: aarch64-registered-target4--- |5 target triple = "aarch64-unknown-linux"6 declare i32 @bar(i32) nounwind7 define i32 @foo() nounwind {8 call i32 @bar(i32 0)9 ret i32 010 }11...12---13name: foo14registers:15 - { id: 0, class: gpr32 }16body: |17 bb.0 (%ir-block.0):18 ADJCALLSTACKDOWN 0, 0, implicit-def dead $sp, implicit $sp19 %0 = COPY $wzr20 $w0 = COPY %021 BL @bar, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit $w0, implicit-def $sp, implicit-def $w022 ADJCALLSTACKUP 0, 0, implicit-def dead $sp, implicit $sp23 $w0 = COPY killed %024 RET_ReallyLR implicit $w025...26# CHECK-LABEL: Bad machine code: AdjustsStack not set in presence of a frame pseudo instruction.27