Move a DenseMap's declaration outside of a loop, and just call
[oota-llvm.git] / test / Transforms / InstCombine / 2005-04-07-UDivSelectCrash.ll
index b41dbd5941de9024171d6a4bc8ca9a3f764e58c7..8b2aa35bd754f660879124f716e2c7ca5a524557 100644 (file)
@@ -1,7 +1,8 @@
 ; RUN: llvm-as < %s | opt -instcombine -disable-output
 
-uint %test(bool %C, uint %tmp.15) {
-       %tmp.16 = select bool %C, uint 8, uint 1
-       %tmp.18 = div uint %tmp.15, %tmp.16
-       ret uint %tmp.18
+define i32 @test(i1 %C, i32 %tmp.15) {
+        %tmp.16 = select i1 %C, i32 8, i32 1            ; <i32> [#uses=1]
+        %tmp.18 = udiv i32 %tmp.15, %tmp.16             ; <i32> [#uses=1]
+        ret i32 %tmp.18
 }
+