diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-06-06 17:37:40 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-06-06 17:37:40 +0000 |
commit | a97b180fc44718e525bb03b50e05fe66622c2b02 (patch) | |
tree | d2cd642616a3a1edceaec34c3254354f1ed132c0 /test/CodeGen/X86/alloca-align-rounding.ll | |
parent | 8b421c8eb2c41ee66cd1023bc7c262bdfaea481d (diff) | |
download | external_llvm-a97b180fc44718e525bb03b50e05fe66622c2b02.zip external_llvm-a97b180fc44718e525bb03b50e05fe66622c2b02.tar.gz external_llvm-a97b180fc44718e525bb03b50e05fe66622c2b02.tar.bz2 |
Add support for dynamic stack realignment in the presence of dynamic allocas on
X86.
rdar://11496434
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/alloca-align-rounding.ll')
-rw-r--r-- | test/CodeGen/X86/alloca-align-rounding.ll | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/CodeGen/X86/alloca-align-rounding.ll b/test/CodeGen/X86/alloca-align-rounding.ll index 3c87dbf..3d76fb0 100644 --- a/test/CodeGen/X86/alloca-align-rounding.ll +++ b/test/CodeGen/X86/alloca-align-rounding.ll @@ -1,4 +1,4 @@ -; RUN: llc < %s -march=x86-64 -mtriple=i686-pc-linux | grep and | count 1 +; RUN: llc < %s -march=x86-64 -mtriple=i686-pc-linux | FileCheck %s declare void @bar(<2 x i64>* %n) @@ -6,10 +6,15 @@ define void @foo(i64 %h) { %p = alloca <2 x i64>, i64 %h call void @bar(<2 x i64>* %p) ret void +; CHECK: foo +; CHECK-NOT: andq $-32, %rax } define void @foo2(i64 %h) { %p = alloca <2 x i64>, i64 %h, align 32 call void @bar(<2 x i64>* %p) ret void +; CHECK: foo2 +; CHECK: andq $-32, %rsp +; CHECK: andq $-32, %rax } |