summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/alloca-align-rounding-32.ll
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-06-18 07:03:12 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-06-18 07:03:12 +0000
commit2cc11fd8c7ebb2f4587661dc88d07eb73e6e8ad0 (patch)
treedf587b39b9d60e3ea65a82e0865090f6ebfd246d /llvm/test/CodeGen/X86/alloca-align-rounding-32.ll
parentf97bd8c9cbebda523df6dfecd32283f23985ee84 (diff)
downloadbcm5719-llvm-2cc11fd8c7ebb2f4587661dc88d07eb73e6e8ad0.tar.gz
bcm5719-llvm-2cc11fd8c7ebb2f4587661dc88d07eb73e6e8ad0.zip
Temporarily revert r158087.
This patch causes problems when both dynamic stack realignment and dynamic allocas combine in the same function. With this patch, we no longer build the epilog correctly, and silently restore registers from the wrong position in the stack. Thanks to Matt for tracking this down, and getting at least an initial test case to Chad. I'm going to try to check a variation of that test case in so we can easily track the fixes required. llvm-svn: 158654
Diffstat (limited to 'llvm/test/CodeGen/X86/alloca-align-rounding-32.ll')
-rw-r--r--llvm/test/CodeGen/X86/alloca-align-rounding-32.ll7
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/X86/alloca-align-rounding-32.ll b/llvm/test/CodeGen/X86/alloca-align-rounding-32.ll
index a45284e10cf..c0f1a18123e 100644
--- a/llvm/test/CodeGen/X86/alloca-align-rounding-32.ll
+++ b/llvm/test/CodeGen/X86/alloca-align-rounding-32.ll
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -mtriple=i686-apple-darwin | FileCheck %s
+; RUN: llc < %s -march=x86 -mtriple=i686-apple-darwin | grep and | count 1
declare void @bar(<2 x i64>* %n)
@@ -6,15 +6,10 @@ define void @foo(i32 %h) {
%p = alloca <2 x i64>, i32 %h
call void @bar(<2 x i64>* %p)
ret void
-; CHECK: foo
-; CHECK-NOT: andl $-32, %eax
}
define void @foo2(i32 %h) {
%p = alloca <2 x i64>, i32 %h, align 32
call void @bar(<2 x i64>* %p)
ret void
-; CHECK: foo2
-; CHECK: andl $-32, %esp
-; CHECK: andl $-32, %eax
}
OpenPOWER on IntegriCloud