llvm-project
26 строк · 835.0 Байт
1# RUN: not --crash llc -o - -start-before=twoaddressinstruction -verify-machineinstrs %s 2>&1 \
2# RUN: | FileCheck %s
3# REQUIRES: aarch64-registered-target
4--- |
5target triple = "aarch64-unknown-linux"
6declare i32 @bar(i32) nounwind
7define i32 @foo() nounwind {
8call i32 @bar(i32 0)
9ret i32 0
10}
11...
12---
13name: foo
14registers:
15- { id: 0, class: gpr32 }
16body: |
17bb.0 (%ir-block.0):
18ADJCALLSTACKDOWN 0, 0, implicit-def dead $sp, implicit $sp
19%0 = COPY $wzr
20$w0 = COPY %0
21BL @bar, csr_aarch64_aapcs, implicit-def dead $lr, implicit $sp, implicit $w0, implicit-def $sp, implicit-def $w0
22ADJCALLSTACKUP 0, 0, implicit-def dead $sp, implicit $sp
23$w0 = COPY killed %0
24RET_ReallyLR implicit $w0
25...
26# CHECK-LABEL: Bad machine code: AdjustsStack not set in presence of a frame pseudo instruction.
27