[mips][mips64r6] cl[oz], and dcl[oz] are re-encoded in MIPS32r6/MIPS64r6
[oota-llvm.git] / test / CodeGen / X86 / vec_splat-2.ll
index c6e3dddd5fa6c83b2e8fc9da0a9ab7e526398490..9d82f97dca1c7a7ddbcdebf037df116cb3b7982d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep pshufd | count 1
+; RUN: llc < %s -march=x86 -mcpu=pentium4 -mattr=+sse2 | FileCheck %s
 
 define void @test(<2 x i64>* %P, i8 %x) nounwind {
        %tmp = insertelement <16 x i8> zeroinitializer, i8 %x, i32 0            ; <<16 x i8>> [#uses=1]
@@ -23,4 +23,11 @@ define void @test(<2 x i64>* %P, i8 %x) nounwind {
        %tmp73.upgrd.1 = bitcast <16 x i8> %tmp73 to <2 x i64>          ; <<2 x i64>> [#uses=1]
        store <2 x i64> %tmp73.upgrd.1, <2 x i64>* %P
        ret void
+
+; CHECK-LABEL: test:
+; CHECK-NOT: pshufd
+; CHECK: punpcklbw
+; CHECK: punpcklbw
+; CHECK: pshufd $0
+; CHECK-NOT: pshufd
 }