aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-08-01 20:26:40 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-08-01 20:26:40 +0000
commit0438d3a9860600ab2c7ab8bcfa331beaf8d4f5a5 (patch)
treec154d9a7db4abecbea501dffe51cb0418f8d6ed4 /test
parente3dc8a6260dbce4f38001e6db629220e6ca834be (diff)
downloadexternal_llvm-0438d3a9860600ab2c7ab8bcfa331beaf8d4f5a5.zip
external_llvm-0438d3a9860600ab2c7ab8bcfa331beaf8d4f5a5.tar.gz
external_llvm-0438d3a9860600ab2c7ab8bcfa331beaf8d4f5a5.tar.bz2
New test. Bogus implicit-def prevented a copy from being coalesced.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40690 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/2007-08-01-LiveVariablesBug.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2007-08-01-LiveVariablesBug.ll b/test/CodeGen/X86/2007-08-01-LiveVariablesBug.ll
new file mode 100644
index 0000000..8eda0ab
--- /dev/null
+++ b/test/CodeGen/X86/2007-08-01-LiveVariablesBug.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -march=x86 | not grep movl
+
+define i8 @t(i8 zeroext %x, i8 zeroext %y) zeroext {
+ %tmp2 = add i8 %x, 2
+ %tmp4 = add i8 %y, -2
+ %tmp5 = mul i8 %tmp4, %tmp2
+ ret i8 %tmp5
+}