llvm-for-llvmta/test/CodeGen/ARM/Windows/aapcs.ll

17 lines
350 B
LLVM
Raw Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llc -mtriple=thumbv7-windows-itanium -mcpu=cortex-a9 -o - %s | FileCheck %s
; AAPCS mandates an 8-byte stack alignment. The alloca is implicitly aligned,
; and no bic is required.
declare void @callee(i8 *%i)
define void @caller() {
%i = alloca i8, align 8
call void @callee(i8* %i)
ret void
}
; CHECK: sub sp, #8
; CHECK-NOT: bic