Fix InstCombine/2007-10-31-StringCrash.ll by removing an obvious
[oota-llvm.git] / test / Transforms / InstCombine / 2004-03-13-InstCombineInfLoop.ll
1 ; This testcase caused the combiner to go into an infinite loop, moving the 
2 ; cast back and forth, changing the seteq to operate on int vs uint and back.
3
4 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
5
6 bool %test(uint %A, int %B) {
7         %C = sub uint 0, %A
8         %Cc = cast uint %C to int
9         %D = sub int 0, %B
10         %E = seteq int %Cc, %D
11         ret bool %E
12 }
13