Perform factorization as a last resort of unsafe fadd/fsub simplification.
[oota-llvm.git] / test / Transforms / InstCombine / 2004-08-10-BoolSetCC.ll
index 88c4cc43153f6130c200d4fb2ee58f40e91c792f..4233797b6d7286e19f0252efd14596d6b247064b 100644 (file)
@@ -1,6 +1,8 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep 'ret bool false'
-bool %test(bool %V) {
-       %Y = setlt bool %V, false
-       ret bool %Y
+; RUN: opt < %s -instcombine -S | \
+; RUN:    grep "ret i1 false"
+
+define i1 @test(i1 %V) {
+        %Y = icmp ult i1 %V, false              ; <i1> [#uses=1]
+        ret i1 %Y
 }