projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update to remove the no-frame-pointer-elim-non-leaf flag if it was set to 'false'.
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
alloca-align-rounding.ll
diff --git
a/test/CodeGen/X86/alloca-align-rounding.ll
b/test/CodeGen/X86/alloca-align-rounding.ll
index 0bd97c23e87bb03adb24eef46a6bf3f2fe82d364..3d76fb0aa25bb94914ec61cff19452a818043505 100644
(file)
--- a/
test/CodeGen/X86/alloca-align-rounding.ll
+++ b/
test/CodeGen/X86/alloca-align-rounding.ll
@@
-1,16
+1,20
@@
-; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-apple-darwin | grep and | count 1
-; RUN: llvm-as < %s | llc -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)
declare void @bar(<2 x i64>* %n)
-define void @foo(i
32
%h) {
- %p = alloca <2 x i64>, i
32
%h
+define void @foo(i
64
%h) {
+ %p = alloca <2 x i64>, i
64
%h
call void @bar(<2 x i64>* %p)
ret void
call void @bar(<2 x i64>* %p)
ret void
+; CHECK: foo
+; CHECK-NOT: andq $-32, %rax
}
}
-define void @foo2(i
32
%h) {
- %p = alloca <2 x i64>, i
32
%h, align 32
+define void @foo2(i
64
%h) {
+ %p = alloca <2 x i64>, i
64
%h, align 32
call void @bar(<2 x i64>* %p)
ret void
call void @bar(<2 x i64>* %p)
ret void
+; CHECK: foo2
+; CHECK: andq $-32, %rsp
+; CHECK: andq $-32, %rax
}
}