summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/epilogue.ll
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-07-18 21:39:16 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-07-18 21:39:16 +0000
commitccb21fdbb68466a2720eefb2b6d9d314f5e1ad62 (patch)
tree5ec03a7ea6c6c98fe535f57632dae5684f1c525e /test/CodeGen/X86/epilogue.ll
parent3c46eefba2e2c0ab6e5aae18229c52a49b4fde29 (diff)
downloadllvm-ccb21fdbb68466a2720eefb2b6d9d314f5e1ad62.tar.gz
llvm-ccb21fdbb68466a2720eefb2b6d9d314f5e1ad62.tar.bz2
llvm-ccb21fdbb68466a2720eefb2b6d9d314f5e1ad62.tar.xz
New test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/epilogue.ll')
-rw-r--r--test/CodeGen/X86/epilogue.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/epilogue.ll b/test/CodeGen/X86/epilogue.ll
new file mode 100644
index 0000000000..b349ce6d1d
--- /dev/null
+++ b/test/CodeGen/X86/epilogue.ll
@@ -0,0 +1,11 @@
+; RUN: llvm-as < %s | llc -march=x86 | not grep lea
+; RUN: llvm-as < %s | llc -march=x86 | grep {movl %ebp}
+
+declare void @bar(<2 x i64>* %n)
+
+define void @foo(i64 %h) {
+ %k = trunc i64 %h to i32
+ %p = alloca <2 x i64>, i32 %k
+ call void @bar(<2 x i64>* %p)
+ ret void
+}