InstCombine: fix a bug when combining (fcmp cc0 x, y) && (fcmp cc1 x, y).
[oota-llvm.git] / test / Transforms / InstCombine / multi-use-or.ll
index 85a8b34e2f6ebb86b20d65a68ce4c4983fcb533f..8c6a0e0bbcecf6b1c58346b979498bdeb5b1546b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {add double .sx, .sy}
+; RUN: opt < %s -instcombine -S | grep {fadd double .sx, .sy}
 ; The 'or' has multiple uses, make sure that this doesn't prevent instcombine
 ; from propagating the extends to the truncs.
 
@@ -17,7 +17,7 @@ entry:
         %c = lshr i192 %sy222324.ins, 128               ; <i192> [#uses=1]
         %d = trunc i192 %c to i64               ; <i64> [#uses=1]
         %e = bitcast i64 %d to double           ; <double> [#uses=1]
-        %f = add double %b, %e
+        %f = fadd double %b, %e
 
 ;        ret double %e
         ret double %f