1 ; RUN: llc < %s -mtriple=armv7-apple-ios -O0 -realign-stack=0 | FileCheck %s -check-prefix=NO-REALIGN
2 ; RUN: llc < %s -mtriple=armv7-apple-ios -O0 | FileCheck %s
5 ; When realign-stack is set to false, make sure we are not creating stack
6 ; objects that are assumed to be 64-byte aligned.
7 @T3_retval = common global <16 x float> zeroinitializer, align 16
9 define void @test(<16 x float>* noalias sret %agg.result) nounwind ssp {
12 ; CHECK: bic sp, sp, #63
13 ; CHECK: orr [[R2:r[0-9]+]], [[R1:r[0-9]+]], #48
15 ; CHECK: orr [[R2:r[0-9]+]], [[R1:r[0-9]+]], #32
17 ; CHECK: orr [[R2:r[0-9]+]], [[R1:r[0-9]+]], #16
20 ; CHECK: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #48
22 ; CHECK: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #32
24 ; CHECK: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #16
28 ; NO-REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #48
30 ; NO-REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #32
32 ; NO-REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #16
35 ; NO-REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #48
37 ; NO-REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #32
39 ; NO-REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #16
42 %retval = alloca <16 x float>, align 16
43 %0 = load <16 x float>* @T3_retval, align 16
44 store <16 x float> %0, <16 x float>* %retval
45 %1 = load <16 x float>* %retval
46 store <16 x float> %1, <16 x float>* %agg.result, align 16