diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-07-18 21:39:16 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-07-18 21:39:16 +0000 |
commit | 1783ae89078a68f5822dd79c98ccdfc71a3a833a (patch) | |
tree | 5ec03a7ea6c6c98fe535f57632dae5684f1c525e | |
parent | d80176e43a783cde36e92100dc2d13c9131d2427 (diff) | |
download | external_llvm-1783ae89078a68f5822dd79c98ccdfc71a3a833a.zip external_llvm-1783ae89078a68f5822dd79c98ccdfc71a3a833a.tar.gz external_llvm-1783ae89078a68f5822dd79c98ccdfc71a3a833a.tar.bz2 |
New test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40020 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/X86/epilogue.ll | 11 |
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 0000000..b349ce6 --- /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 +} |