[X86][SSE} Add INSERTPS as a target shuffle
[oota-llvm.git] / test / CodeGen / X86 / optimize-max-2.ll
index effc3fc737d9ed2f01ef0dc8d404ecc8d7f78c69..45b542e2267c1d35b897b8866a4ea926de2e5b5f 100644 (file)
@@ -1,6 +1,8 @@
-; RUN: llvm-as < %s | llc -march=x86-64 > %t
-; RUN: grep cmov %t | count 2
-; RUN: grep jne %t | count 1
+; RUN: llc < %s -march=x86-64 | grep cmov | count 2
+; RUN: llc < %s -march=x86-64 | FileCheck %s
+
+; CHECK: jne
+; CHECK-NOT: jne
 
 ; LSR's OptimizeMax function shouldn't try to eliminate this max, because
 ; it has three operands.
@@ -17,8 +19,8 @@ entry:
 
 bb4:           ; preds = %bb4, %entry
        %i.07 = phi i64 [ 0, %entry ], [ %2, %bb4 ]             ; <i64> [#uses=2]
-       %scevgep = getelementptr double* %p, i64 %i.07          ; <double*> [#uses=2]
-       %0 = load double* %scevgep, align 8             ; <double> [#uses=1]
+       %scevgep = getelementptr double, double* %p, i64 %i.07          ; <double*> [#uses=2]
+       %0 = load double, double* %scevgep, align 8             ; <double> [#uses=1]
        %1 = fmul double %0, 2.000000e+00               ; <double> [#uses=1]
        store double %1, double* %scevgep, align 8
        %2 = add i64 %i.07, 1           ; <i64> [#uses=2]