Return undef on FP <-> Int conversions that overflow (PR21330).
[oota-llvm.git] / test / Transforms / InstCombine / signed-comparison.ll
index fdf150f9c61dd0732f09e638b8cab9759b77a757..ab0e7e7ff9feffff8eef03348c4d3b8ffcbf3252 100644 (file)
@@ -1,7 +1,7 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis > %t
+; RUN: opt < %s -instcombine -S > %t
 ; RUN: not grep zext %t
 ; RUN: not grep slt %t
-; RUN: grep {icmp ult} %t
+; RUN: grep "icmp ult" %t
 
 ; Instcombine should convert the zext+slt into a simple ult.
 
@@ -14,7 +14,7 @@ bb:
        %t0 = and i64 %indvar, 65535
        %t1 = getelementptr double* %p, i64 %t0
        %t2 = load double* %t1, align 8
-       %t3 = mul double %t2, 2.2
+       %t3 = fmul double %t2, 2.2
        store double %t3, double* %t1, align 8
        %i.04 = trunc i64 %indvar to i16
        %t4 = add i16 %i.04, 1