As Dan pointed out, movzbl, movsbl, and friends are nicer than their alias
[oota-llvm.git] / test / CodeGen / X86 / widen_arith-6.ll
index 59548c3336222d65fc3c989440c0a88286a5f1de..b983d141ddf698bfc3e11ed168c0860d0d1fcf67 100644 (file)
@@ -1,9 +1,8 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse42 -disable-mmx -o %t -f
-; RUN: grep mulps  %t | count 1
-; RUN: grep addps  %t | count 1
+; RUN: llc < %s -march=x86 -mattr=+sse42 | FileCheck %s
+; CHECK: mulps
+; CHECK: addps
 
 ; widen a v3f32 to vfi32 to do a vector multiple and an add
-target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
 
 define void @update(<3 x float>* %dst, <3 x float>* %src, i32 %n) nounwind {
 entry:
@@ -34,8 +33,8 @@ forbody:              ; preds = %forcond
        %arrayidx6 = getelementptr <3 x float>* %tmp5, i32 %tmp4                ; <<3 x float>*> [#uses=1]
        %tmp7 = load <3 x float>* %arrayidx6            ; <<3 x float>> [#uses=1]
        %tmp8 = load <3 x float>* %v            ; <<3 x float>> [#uses=1]
-       %mul = mul <3 x float> %tmp7, %tmp8             ; <<3 x float>> [#uses=1]
-       %add = add <3 x float> %mul, < float 0x409EE02900000000, float 0x409EE02900000000, float 0x409EE02900000000 >           ; <<3 x float>> [#uses=1]
+       %mul = fmul <3 x float> %tmp7, %tmp8            ; <<3 x float>> [#uses=1]
+       %add = fadd <3 x float> %mul, < float 0x409EE02900000000, float 0x409EE02900000000, float 0x409EE02900000000 >          ; <<3 x float>> [#uses=1]
        store <3 x float> %add, <3 x float>* %arrayidx
        br label %forinc