X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FCodeGen%2FX86%2Fpshufb-mask-comments.ll;h=105a035be592e2e4181d366cf2765896753a41d9;hb=5f50442d79df229027a8c5eda0d56f7a9cd55757;hp=8f2617068ae74b40d20aa263d35b92dbaf4e0a41;hpb=d2f4460ee73d452bb109db2f678fd837c92d2b22;p=oota-llvm.git diff --git a/test/CodeGen/X86/pshufb-mask-comments.ll b/test/CodeGen/X86/pshufb-mask-comments.ll index 8f2617068ae..105a035be59 100644 --- a/test/CodeGen/X86/pshufb-mask-comments.ll +++ b/test/CodeGen/X86/pshufb-mask-comments.ll @@ -31,10 +31,22 @@ define <16 x i8> @test3(<16 x i8> %V) { define <16 x i8> @test4(<2 x i64>* %V) { ; CHECK-LABEL: test4 -; CHECK: pshufb {{.*}}# xmm0 = xmm0[8,9,10,11,12,13,14,15,0,1,2,3,4,5,6,7] +; CHECK: pshufb {{.*}} store <2 x i64> , <2 x i64>* %V, align 16 %1 = tail call <16 x i8> @llvm.x86.ssse3.pshuf.b.128(<16 x i8> undef, <16 x i8> ) ret <16 x i8> %1 } +define <16 x i8> @test5() { +; CHECK-LABEL: test5 +; CHECK: pshufb {{.*}} + store <2 x i64> , <2 x i64>* undef, align 16 + %l = load <2 x i64>, <2 x i64>* undef, align 16 + %shuffle = shufflevector <2 x i64> %l, <2 x i64> undef, <2 x i32> zeroinitializer + store <2 x i64> %shuffle, <2 x i64>* undef, align 16 + %1 = load <16 x i8>, <16 x i8>* undef, align 16 + %2 = call <16 x i8> @llvm.x86.ssse3.pshuf.b.128(<16 x i8> undef, <16 x i8> %1) + ret <16 x i8> %2 +} + declare <16 x i8> @llvm.x86.ssse3.pshuf.b.128(<16 x i8>, <16 x i8>) nounwind readnone