xref: /aosp_15_r20/external/llvm/test/CodeGen/Thumb2/2010-02-24-BigStack.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -O0 -relocation-model=pic -disable-fp-elim -mcpu=cortex-a8 -mattr=+vfp2
2*9880d681SAndroid Build Coastguard Worker; This test creates a big stack frame without spilling any callee-saved registers.
3*9880d681SAndroid Build Coastguard Worker; Make sure the whole stack frame is addrerssable wiothout scavenger crashes.
4*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32-n32"
5*9880d681SAndroid Build Coastguard Workertarget triple = "thumbv7-apple-darwin3.0.0-iphoneos"
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine void @FindMin(double* %panelTDEL, i8* %dclOfRow, i32 %numRows, i32 %numCols, double* %retMin_RES_TDEL) {
8*9880d681SAndroid Build Coastguard Workerentry:
9*9880d681SAndroid Build Coastguard Worker  %panelTDEL.addr = alloca double*, align 4       ; <double**> [#uses=1]
10*9880d681SAndroid Build Coastguard Worker  %panelResTDEL = alloca [2560 x double], align 4 ; <[2560 x double]*> [#uses=0]
11*9880d681SAndroid Build Coastguard Worker  store double* %panelTDEL, double** %panelTDEL.addr
12*9880d681SAndroid Build Coastguard Worker  store double* %retMin_RES_TDEL, double** undef
13*9880d681SAndroid Build Coastguard Worker  store i32 0, i32* undef
14*9880d681SAndroid Build Coastguard Worker  unreachable
15*9880d681SAndroid Build Coastguard Worker}
16