[llvm] r313503 - [X86] Add a couple more unary shuffles to the sse1 shuffle test.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 17 15:36:39 PDT 2017


Author: ctopper
Date: Sun Sep 17 15:36:39 2017
New Revision: 313503

URL: http://llvm.org/viewvc/llvm-project?rev=313503&view=rev
Log:
[X86] Add a couple more unary shuffles to the sse1 shuffle test.

These can be implemented with movlhps and movhlps.

Modified:
    llvm/trunk/test/CodeGen/X86/vector-shuffle-sse1.ll

Modified: llvm/trunk/test/CodeGen/X86/vector-shuffle-sse1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vector-shuffle-sse1.ll?rev=313503&r1=313502&r2=313503&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vector-shuffle-sse1.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vector-shuffle-sse1.ll Sun Sep 17 15:36:39 2017
@@ -109,6 +109,24 @@ define <4 x float> @shuffle_v4f32_0145(<
   ret <4 x float> %shuffle
 }
 
+define <4 x float> @shuffle_v4f32_0101(<4 x float> %a, <4 x float> %b) {
+; SSE1-LABEL: shuffle_v4f32_0101:
+; SSE1:       # BB#0:
+; SSE1-NEXT:    shufps {{.*#+}} xmm0 = xmm0[0,1,0,1]
+; SSE1-NEXT:    retq
+  %shuffle = shufflevector <4 x float> %a, <4 x float> %b, <4 x i32> <i32 0, i32 1, i32 0, i32 1>
+  ret <4 x float> %shuffle
+}
+
+define <4 x float> @shuffle_v4f32_2323(<4 x float> %a, <4 x float> %b) {
+; SSE1-LABEL: shuffle_v4f32_2323:
+; SSE1:       # BB#0:
+; SSE1-NEXT:    shufps {{.*#+}} xmm0 = xmm0[2,3,2,3]
+; SSE1-NEXT:    retq
+  %shuffle = shufflevector <4 x float> %a, <4 x float> %b, <4 x i32> <i32 2, i32 3, i32 2, i32 3>
+  ret <4 x float> %shuffle
+}
+
 define <4 x float> @shuffle_v4f32_6723(<4 x float> %a, <4 x float> %b) {
 ; SSE1-LABEL: shuffle_v4f32_6723:
 ; SSE1:       # BB#0:




More information about the llvm-commits mailing list