[llvm] r343786 - [X86][AVX] Add PR39161 test case for v4f64 zzww shuffle

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 4 08:06:09 PDT 2018


Author: rksimon
Date: Thu Oct  4 08:06:09 2018
New Revision: 343786

URL: http://llvm.org/viewvc/llvm-project?rev=343786&view=rev
Log:
[X86][AVX] Add PR39161 test case for v4f64 zzww shuffle

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

Modified: llvm/trunk/test/CodeGen/X86/vector-shuffle-256-v4.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vector-shuffle-256-v4.ll?rev=343786&r1=343785&r2=343786&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vector-shuffle-256-v4.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vector-shuffle-256-v4.ll Thu Oct  4 08:06:09 2018
@@ -171,6 +171,28 @@ define <4 x double> @shuffle_v4f64_2222_
   ret <4 x double> %shuffle
 }
 
+define <4 x double> @shuffle_v4f64_2233(<4 x double> %a, <4 x double> %b) {
+; AVX1-LABEL: shuffle_v4f64_2233:
+; AVX1:       # %bb.0:
+; AVX1-NEXT:    vextractf128 $1, %ymm0, %xmm0
+; AVX1-NEXT:    vmovddup {{.*#+}} xmm1 = xmm0[0,0]
+; AVX1-NEXT:    vpermilpd {{.*#+}} xmm0 = xmm0[1,1]
+; AVX1-NEXT:    vinsertf128 $1, %xmm0, %ymm1, %ymm0
+; AVX1-NEXT:    retq
+;
+; AVX2-LABEL: shuffle_v4f64_2233:
+; AVX2:       # %bb.0:
+; AVX2-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[2,2,3,3]
+; AVX2-NEXT:    retq
+;
+; AVX512VL-LABEL: shuffle_v4f64_2233:
+; AVX512VL:       # %bb.0:
+; AVX512VL-NEXT:    vpermpd {{.*#+}} ymm0 = ymm0[2,2,3,3]
+; AVX512VL-NEXT:    retq
+  %shuffle = shufflevector <4 x double> %a, <4 x double> %b, <4 x i32> <i32 2, i32 2, i32 3, i32 3>
+  ret <4 x double> %shuffle
+}
+
 define <4 x double> @shuffle_v4f64_3330(<4 x double> %a, <4 x double> %b) {
 ; AVX1-LABEL: shuffle_v4f64_3330:
 ; AVX1:       # %bb.0:




More information about the llvm-commits mailing list