xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/Windows/aapcs.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=thumbv7-windows-itanium -mcpu=cortex-a9 -o - %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; AAPCS mandates an 8-byte stack alignment.  The alloca is implicitly aligned,
4*9880d681SAndroid Build Coastguard Worker; and no bic is required.
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdeclare void @callee(i8 *%i)
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Workerdefine void @caller() {
9*9880d681SAndroid Build Coastguard Worker  %i = alloca i8, align 8
10*9880d681SAndroid Build Coastguard Worker  call void @callee(i8* %i)
11*9880d681SAndroid Build Coastguard Worker  ret void
12*9880d681SAndroid Build Coastguard Worker}
13*9880d681SAndroid Build Coastguard Worker
14*9880d681SAndroid Build Coastguard Worker; CHECK: sub sp, #8
15*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: bic
16*9880d681SAndroid Build Coastguard Worker
17