[llvm] f9b4b8e - [X86][AVX] Add v16f32 variant of PR46249 test case

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 23 10:15:19 PDT 2020


Author: Simon Pilgrim
Date: 2020-06-23T18:14:57+01:00
New Revision: f9b4b8e3b3d6e082b87a556805f3345f7f80965e

URL: https://github.com/llvm/llvm-project/commit/f9b4b8e3b3d6e082b87a556805f3345f7f80965e
DIFF: https://github.com/llvm/llvm-project/commit/f9b4b8e3b3d6e082b87a556805f3345f7f80965e.diff

LOG: [X86][AVX] Add v16f32 variant of PR46249 test case

Added: 
    

Modified: 
    llvm/test/CodeGen/X86/vector-shuffle-512-v16.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/X86/vector-shuffle-512-v16.ll b/llvm/test/CodeGen/X86/vector-shuffle-512-v16.ll
index 518fe2998a63..be79b96a9b64 100644
--- a/llvm/test/CodeGen/X86/vector-shuffle-512-v16.ll
+++ b/llvm/test/CodeGen/X86/vector-shuffle-512-v16.ll
@@ -271,6 +271,16 @@ define <16 x i32> @shuffle_v16i32_0b_0a_09_08_0f_0e_0d_0c_03_02_01_00_07_06_05_0
   ret <16 x i32> %1
 }
 
+define <16 x float> @shuffle_v16f32_0b_0a_09_08_0f_0e_0d_0c_03_02_01_00_07_06_05_04(<16 x float> %a) {
+; ALL-LABEL: shuffle_v16f32_0b_0a_09_08_0f_0e_0d_0c_03_02_01_00_07_06_05_04:
+; ALL:       # %bb.0:
+; ALL-NEXT:    vmovaps {{.*#+}} zmm1 = [11,10,9,8,15,14,13,12,3,2,1,0,7,6,5,4]
+; ALL-NEXT:    vpermps %zmm0, %zmm1, %zmm0
+; ALL-NEXT:    retq
+  %1 = shufflevector <16 x float> %a, <16 x float> undef, <16 x i32> <i32 11, i32 10, i32 9, i32 8, i32 15, i32 14, i32 13, i32 12, i32 3, i32 2, i32 1, i32 0, i32 7, i32 6, i32 5, i32 4>
+  ret <16 x float> %1
+}
+
 define <16 x float> @shuffle_v16f32_load_0f_1f_0e_16_0d_1d_04_1e_0b_1b_0a_1a_09_19_08_18(<16 x float> %a, <16 x float>* %b)  {
 ; ALL-LABEL: shuffle_v16f32_load_0f_1f_0e_16_0d_1d_04_1e_0b_1b_0a_1a_09_19_08_18:
 ; ALL:       # %bb.0:


        


More information about the llvm-commits mailing list