Add a test for the foldSelectICmpAndOr fix committed in r180779.
[oota-llvm.git] / test / Transforms / InstCombine / 2004-12-08-RemInfiniteLoop.ll
index 7f83fa837de25528e7adff8c4583010ea3efaa77..008afa8a787d75791dd18bc01b914ab1b6afb205 100644 (file)
@@ -1,6 +1,7 @@
-; RUN: llvm-as < %s | opt -instcombine
+; RUN: opt < %s -instcombine
 
-int %test(int %X) {
-       %Y = rem int %X, undef
-       ret int %Y
+define i32 @test(i32 %X) {
+        %Y = srem i32 %X, undef         ; <i32> [#uses=1]
+        ret i32 %Y
 }
+