1 ; RUN: llc < %s -mtriple=armv7-apple-ios -O0 | FileCheck %s -check-prefix=NO-REALIGN
2 ; RUN: llc < %s -mtriple=armv7-apple-ios -O0 | FileCheck %s -check-prefix=REALIGN
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 @test1(<16 x float>* noalias sret %agg.result) nounwind ssp "no-realign-stack" {
12 ; NO-REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #48
14 ; NO-REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #32
16 ; NO-REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #16
19 ; NO-REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #48
21 ; NO-REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #32
23 ; NO-REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #16
26 %retval = alloca <16 x float>, align 16
27 %0 = load <16 x float>* @T3_retval, align 16
28 store <16 x float> %0, <16 x float>* %retval
29 %1 = load <16 x float>* %retval
30 store <16 x float> %1, <16 x float>* %agg.result, align 16
34 define void @test2(<16 x float>* noalias sret %agg.result) nounwind ssp {
37 ; REALIGN: bic sp, sp, #63
38 ; REALIGN: orr [[R2:r[0-9]+]], [[R1:r[0-9]+]], #48
40 ; REALIGN: orr [[R2:r[0-9]+]], [[R1:r[0-9]+]], #32
42 ; REALIGN: orr [[R2:r[0-9]+]], [[R1:r[0-9]+]], #16
45 ; REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #48
47 ; REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #32
49 ; REALIGN: add [[R2:r[0-9]+]], [[R1:r[0-9]+]], #16
52 %retval = alloca <16 x float>, align 16
53 %0 = load <16 x float>* @T3_retval, align 16
54 store <16 x float> %0, <16 x float>* %retval
55 %1 = load <16 x float>* %retval
56 store <16 x float> %1, <16 x float>* %agg.result, align 16