[llvm-commits] [llvm] r40690 - /llvm/trunk/test/CodeGen/X86/2007-08-01-LiveVariablesBug.ll

Evan Cheng evan.cheng at apple.com
Wed Aug 1 13:26:41 PDT 2007


Author: evancheng
Date: Wed Aug  1 15:26:40 2007
New Revision: 40690

URL: http://llvm.org/viewvc/llvm-project?rev=40690&view=rev
Log:
New test. Bogus implicit-def prevented a copy from being coalesced.

Added:
    llvm/trunk/test/CodeGen/X86/2007-08-01-LiveVariablesBug.ll

Added: llvm/trunk/test/CodeGen/X86/2007-08-01-LiveVariablesBug.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2007-08-01-LiveVariablesBug.ll?rev=40690&view=auto

==============================================================================
--- llvm/trunk/test/CodeGen/X86/2007-08-01-LiveVariablesBug.ll (added)
+++ llvm/trunk/test/CodeGen/X86/2007-08-01-LiveVariablesBug.ll Wed Aug  1 15:26:40 2007
@@ -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
+}





More information about the llvm-commits mailing list