[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/2004-03-13-InstCombineInfLoop.ll

Chris Lattner lattner at cs.uiuc.edu
Sat Mar 13 17:54:01 PST 2004


Changes in directory llvm/test/Regression/Transforms/InstCombine:

2004-03-13-InstCombineInfLoop.ll added (r1.1)

---
Log message:

New testcase, distilled from povray I think.


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

Index: llvm/test/Regression/Transforms/InstCombine/2004-03-13-InstCombineInfLoop.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/2004-03-13-InstCombineInfLoop.ll:1.1
*** /dev/null	Sat Mar 13 17:53:14 2004
--- llvm/test/Regression/Transforms/InstCombine/2004-03-13-InstCombineInfLoop.ll	Sat Mar 13 17:53:04 2004
***************
*** 0 ****
--- 1,13 ----
+ ; This testcase caused the combiner to go into an infinite loop, moving the 
+ ; cast back and forth, changing the seteq to operate on int vs uint and back.
+ 
+ ; RUN: llvm-as < %s | opt -instcombine -disable-output
+ 
+ bool %test(uint %A, int %B) {
+         %C = sub uint 0, %A
+         %Cc = cast uint %C to int
+         %D = sub int 0, %B
+         %E = seteq int %Cc, %D
+         ret bool %E
+ }
+ 





More information about the llvm-commits mailing list