[llvm-commits] CVS: llvm/test/CodeGen/Generic/2007-02-23-DAGCombine-Miscompile.ll

Chris Lattner sabre at nondot.org
Fri Feb 23 18:08:16 PST 2007



Changes in directory llvm/test/CodeGen/Generic:

2007-02-23-DAGCombine-Miscompile.ll added (r1.1)
---
Log message:

testcase for PR1219: http://llvm.org/PR1219 



---
Diffs of the changes:  (+13 -0)

 2007-02-23-DAGCombine-Miscompile.ll |   13 +++++++++++++
 1 files changed, 13 insertions(+)


Index: llvm/test/CodeGen/Generic/2007-02-23-DAGCombine-Miscompile.ll
diff -c /dev/null llvm/test/CodeGen/Generic/2007-02-23-DAGCombine-Miscompile.ll:1.1
*** /dev/null	Fri Feb 23 20:08:10 2007
--- llvm/test/CodeGen/Generic/2007-02-23-DAGCombine-Miscompile.ll	Fri Feb 23 20:08:00 2007
***************
*** 0 ****
--- 1,13 ----
+ ; RUN: llvm-as < %s | llc -march=x86 | grep 'movl $1, %eax'
+ ; PR1219
+ 
+ define i32 @test(i1 %X) {
+ old_entry1:
+         %hvar2 = zext i1 %X to i32
+ 	%C = icmp sgt i32 %hvar2, -1
+ 	br i1 %C, label %cond_true15, label %cond_true
+ cond_true15:
+         ret i32 1
+ cond_true:
+         ret i32 2
+ }






More information about the llvm-commits mailing list