; This test makes sure that these instructions are properly eliminated.
;
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep set
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep icmp
+; END.
%X = uninitialized global int
ret int %tmp.3
}
+bool %test25(uint %A) {
+ %B = and uint %A, 2
+ %C = setgt uint %B, 2
+ ret bool %C
+}