summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/alloc-no-stack-realign-error.ll
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2013-02-08 20:35:15 +0000
committerBob Wilson <bob.wilson@apple.com>2013-02-08 20:35:15 +0000
commit67bbf3aa0c941991f0fba602f958180c9c5a4522 (patch)
tree12b45b190cb649257eda695dc9fdf95f713a8d58 /llvm/test/CodeGen/ARM/alloc-no-stack-realign-error.ll
parentf3f32d0193df6f90b3b01e70942d314ca22dc5a7 (diff)
downloadbcm5719-llvm-67bbf3aa0c941991f0fba602f958180c9c5a4522.tar.gz
bcm5719-llvm-67bbf3aa0c941991f0fba602f958180c9c5a4522.zip
Revert 172027 and 174336. Remove diagnostics about over-aligned stack objects.
Aside from the question of whether we report a warning or an error when we can't satisfy a requested stack object alignment, the current implementation of this is not good. We're not providing any source location in the diagnostics and the current warning is not connected to any warning group so you can't control it. We could improve the source location somewhat, but we can do a much better job if this check is implemented in the front-end, so let's do that instead. <rdar://problem/13127907> llvm-svn: 174741
Diffstat (limited to 'llvm/test/CodeGen/ARM/alloc-no-stack-realign-error.ll')
-rw-r--r--llvm/test/CodeGen/ARM/alloc-no-stack-realign-error.ll19
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/test/CodeGen/ARM/alloc-no-stack-realign-error.ll b/llvm/test/CodeGen/ARM/alloc-no-stack-realign-error.ll
deleted file mode 100644
index 9b4d12ae8a8..00000000000
--- a/llvm/test/CodeGen/ARM/alloc-no-stack-realign-error.ll
+++ /dev/null
@@ -1,19 +0,0 @@
-; RUN: llc < %s -mtriple=armv7-apple-ios -O0 -realign-stack=0 2>&1 | FileCheck %s
-
-; rdar://12713765
-@T3_retval = common global <16 x float> zeroinitializer, align 16
-
-; If alignment for alloc is smaller than or equal to stack alignment, but the
-; preferred type alignment is bigger, the alignment will be clamped.
-; If alignment for alloca is bigger than stack alignment, the compiler
-; will emit a warning.
-define void @test(<16 x float>* noalias sret %agg.result) nounwind ssp {
-entry:
-; CHECK: warning: Requested alignment exceeds the stack alignment!
- %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
-}
OpenPOWER on IntegriCloud