summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-02-04 23:45:08 +0000
committerManman Ren <mren@apple.com>2013-02-04 23:45:08 +0000
commit86b1d868ba5a66e816771473878b83b519b1608f (patch)
treed04305d78184808dd80202b69fad4a909c8905cc /llvm/test
parent56aecccee09407a3a1f35fe214b900ca08f0ebe5 (diff)
downloadbcm5719-llvm-86b1d868ba5a66e816771473878b83b519b1608f.tar.gz
bcm5719-llvm-86b1d868ba5a66e816771473878b83b519b1608f.zip
[Stack Alignment] emit warning instead of a hard error
Per discussion in rdar://13127907, we should emit a hard error only if people write code where the requested alignment is larger than achievable and assumes the low bits are zeros. A warning should be good enough when we are not sure if the source code assumes the low bits are zeros. rdar://13127907 llvm-svn: 174336
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/ARM/alloc-no-stack-realign-error.ll4
1 files changed, 2 insertions, 2 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
index 96c00174dba..9b4d12ae8a8 100644
--- a/llvm/test/CodeGen/ARM/alloc-no-stack-realign-error.ll
+++ b/llvm/test/CodeGen/ARM/alloc-no-stack-realign-error.ll
@@ -6,10 +6,10 @@
; 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 an error.
+; will emit a warning.
define void @test(<16 x float>* noalias sret %agg.result) nounwind ssp {
entry:
-; CHECK: Requested Minimal Alignment exceeds the Stack Alignment!
+; 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
OpenPOWER on IntegriCloud