llvm-project/llvm/test/CodeGen/ARM/fast-call-frame-restore.ll
Tim Northover 0b5b35fdbd ARM: make FastISel & GISel pass -1 to ADJCALLSTACKUP to signal no callee pop.
The interface for these instructions changed with support for mandatory tail
calls, and now -1 indicates the CalleePopAmount argument is not valid.
Unfortunately I didn't realise FastISel or GISel did calls at the time so
didn't update them.
2022-01-11 11:31:13 +00:00

20 lines
383 B
LLVM

; RUN: llc -mtriple=armv7-linux-gnueabi %s -o - | FileCheck %s
declare void @bar(i8*, i32, i32, i32, i32)
define void @foo(i32 %amt) optnone noinline {
br label %next
next:
%mem = alloca i8;, i32 %amt
br label %next1
next1:
call void @bar(i8* %mem, i32 undef, i32 undef, i32 undef, i32 undef)
; CHECK: sub sp, sp, #8
; CHECK: bl bar
; CHECK: add sp, sp, #8
ret void
}