2013-08-01 21:42:05 +00:00
|
|
|
; RUN: llc < %s -mtriple=armv7-apple-ios -O0 | FileCheck %s -check-prefix=NO-REALIGN
|
|
|
|
; RUN: llc < %s -mtriple=armv7-apple-ios -O0 | FileCheck %s -check-prefix=REALIGN
|
2012-12-04 00:52:33 +00:00
|
|
|
|
|
|
|
; rdar://12713765
|
|
|
|
; When realign-stack is set to false, make sure we are not creating stack
|
|
|
|
; objects that are assumed to be 64-byte aligned.
|
|
|
|
@T3_retval = common global <16 x float> zeroinitializer, align 16
|
|
|
|
|
2013-08-01 21:42:05 +00:00
|
|
|
define void @test1(<16 x float>* noalias sret %agg.result) nounwind ssp "no-realign-stack" {
|
2012-12-04 00:52:33 +00:00
|
|
|
entry:
|
2014-12-09 22:08:57 +00:00
|
|
|
; NO-REALIGN-LABEL: test1
|
2015-02-04 10:11:59 +00:00
|
|
|
; NO-REALIGN: vld1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R1:[0-9]+]]:128]
|
|
|
|
; NO-REALIGN: add r[[R2:[0-9]+]], r[[R1]], #16
|
2014-12-09 22:08:57 +00:00
|
|
|
; NO-REALIGN: vld1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
|
|
|
; NO-REALIGN: add r[[R2:[0-9]+]], r[[R1]], #32
|
|
|
|
; NO-REALIGN: vld1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
|
|
|
; NO-REALIGN: add r[[R2:[0-9]+]], r[[R1]], #48
|
|
|
|
; NO-REALIGN: vld1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
|
|
|
|
|
|
|
; NO-REALIGN: add r[[R2:[0-9]+]], r[[R1:[0-9]+]], #48
|
|
|
|
; NO-REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
|
|
|
; NO-REALIGN: add r[[R2:[0-9]+]], r[[R1]], #32
|
|
|
|
; NO-REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
2015-02-04 10:11:59 +00:00
|
|
|
; NO-REALIGN: add r[[R2:[0-9]+]], r[[R1]], #16
|
|
|
|
; NO-REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
2014-12-09 22:08:57 +00:00
|
|
|
; NO-REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R1]]:128]
|
|
|
|
|
|
|
|
; NO-REALIGN: add r[[R2:[0-9]+]], r[[R0:0]], #48
|
|
|
|
; NO-REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
|
|
|
; NO-REALIGN: add r[[R2:[0-9]+]], r[[R0]], #32
|
|
|
|
; NO-REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
2015-02-04 10:11:59 +00:00
|
|
|
; NO-REALIGN: add r[[R2:[0-9]+]], r[[R1]], #16
|
|
|
|
; NO-REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
2014-12-09 22:08:57 +00:00
|
|
|
; NO-REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R0]]:128]
|
2013-02-08 20:35:15 +00:00
|
|
|
%retval = alloca <16 x float>, align 16
|
2012-12-04 00:52:33 +00:00
|
|
|
%0 = load <16 x float>* @T3_retval, align 16
|
|
|
|
store <16 x float> %0, <16 x float>* %retval
|
|
|
|
%1 = load <16 x float>* %retval
|
|
|
|
store <16 x float> %1, <16 x float>* %agg.result, align 16
|
|
|
|
ret void
|
|
|
|
}
|
2013-08-01 21:42:05 +00:00
|
|
|
|
|
|
|
define void @test2(<16 x float>* noalias sret %agg.result) nounwind ssp {
|
|
|
|
entry:
|
2014-12-09 22:08:57 +00:00
|
|
|
; REALIGN-LABEL: test2
|
2015-01-08 15:09:14 +00:00
|
|
|
; REALIGN: bfc sp, #0, #6
|
2015-02-04 10:11:59 +00:00
|
|
|
; REALIGN: vld1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R1:[0-9]+]]:128]
|
|
|
|
; REALIGN: add r[[R2:[0-9]+]], r[[R1]], #16
|
2014-12-09 22:08:57 +00:00
|
|
|
; REALIGN: vld1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
|
|
|
; REALIGN: add r[[R2:[0-9]+]], r[[R1]], #32
|
|
|
|
; REALIGN: vld1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
|
|
|
; REALIGN: add r[[R2:[0-9]+]], r[[R1]], #48
|
|
|
|
; REALIGN: vld1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
|
|
|
|
|
|
|
|
|
|
|
; REALIGN: orr r[[R2:[0-9]+]], r[[R1:[0-9]+]], #48
|
|
|
|
; REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
|
|
|
; REALIGN: orr r[[R2:[0-9]+]], r[[R1]], #32
|
|
|
|
; REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
|
|
|
; REALIGN: orr r[[R2:[0-9]+]], r[[R1]], #16
|
|
|
|
; REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R2]]:128]
|
|
|
|
; REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R1]]:128]
|
|
|
|
|
|
|
|
; REALIGN: add r[[R1:[0-9]+]], r[[R0:0]], #48
|
|
|
|
; REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R1]]:128]
|
|
|
|
; REALIGN: add r[[R1:[0-9]+]], r[[R0]], #32
|
|
|
|
; REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R1]]:128]
|
2015-02-04 10:11:59 +00:00
|
|
|
; REALIGN: add r[[R1:[0-9]+]], r[[R0]], #16
|
|
|
|
; REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R1]]:128]
|
2014-12-09 22:08:57 +00:00
|
|
|
; REALIGN: vst1.64 {{{d[0-9]+, d[0-9]+}}}, [r[[R0]]:128]
|
2013-08-01 21:42:05 +00:00
|
|
|
%retval = alloca <16 x float>, align 16
|
|
|
|
%0 = load <16 x float>* @T3_retval, align 16
|
|
|
|
store <16 x float> %0, <16 x float>* %retval
|
|
|
|
%1 = load <16 x float>* %retval
|
|
|
|
store <16 x float> %1, <16 x float>* %agg.result, align 16
|
|
|
|
ret void
|
|
|
|
}
|