[x86] Factor out the zero vector insertion logic in the new vector
[oota-llvm.git] / test / CodeGen / X86 / mmx-punpckhdq.ll
index 2d749d876c49ea7b8a0c3a33a6c0643983302de5..9e8f5bf53363b7532614f5ff50b586c13ec53c61 100644 (file)
@@ -1,9 +1,9 @@
-; RUN: llc < %s -march=x86 -mattr=+mmx,+sse2 -mtriple=x86_64-apple-darwin10 | FileCheck %s
-; RUN: llc < %s -march=x86 -mattr=+mmx,+sse2 -mtriple=x86_64-apple-darwin10 | FileCheck %s
+; RUN: llc < %s -march=x86 -mattr=+mmx,+sse4.2 -mtriple=x86_64-apple-darwin10 | FileCheck %s
 ; There are no MMX operations in bork; promoted to XMM.
 
 define void @bork(<1 x i64>* %x) {
-; FIXMEHECK: pextrd
+; CHECK: bork
+; CHECK: movlpd
 entry:
        %tmp2 = load <1 x i64>* %x              ; <<1 x i64>> [#uses=1]
        %tmp6 = bitcast <1 x i64> %tmp2 to <2 x i32>            ; <<2 x i32>> [#uses=1]
@@ -17,7 +17,8 @@ entry:
 ; pork uses MMX.
 
 define void @pork(x86_mmx* %x) {
-; FIXMEHECK: punpckhdq
+; CHECK: pork
+; CHECK: punpckhdq
 entry:
        %tmp2 = load x86_mmx* %x                ; <x86_mmx> [#uses=1]
         %tmp9 = tail call x86_mmx @llvm.x86.mmx.punpckhdq (x86_mmx %tmp2, x86_mmx %tmp2)