From: Craig Topper Date: Thu, 24 Nov 2016 05:36:47 +0000 (+0000) Subject: [AVX-512] Move a 16 x float shuffle test to the v16 test file and add an integer... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b3baa1aad4869ed2f3a9013f92e493fedf44d3b;p=llvm [AVX-512] Move a 16 x float shuffle test to the v16 test file and add an integer variant. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287853 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/X86/vector-shuffle-512-v16.ll b/test/CodeGen/X86/vector-shuffle-512-v16.ll index 250cf9fc2c3..a1caafb4579 100644 --- a/test/CodeGen/X86/vector-shuffle-512-v16.ll +++ b/test/CodeGen/X86/vector-shuffle-512-v16.ll @@ -406,3 +406,21 @@ define <16 x i32> @maskz_shuffle_v16i32_01_02_03_04_05_06_07_08_09_10_11_12_13_1 %res = select <16 x i1> %mask.cast, <16 x i32> %shuffle, <16 x i32> zeroinitializer ret <16 x i32> %res } + +define <16 x float> @test_vshuff32x4_512(<16 x float> %x, <16 x float> %x1) nounwind { +; ALL-LABEL: test_vshuff32x4_512: +; ALL: # BB#0: +; ALL-NEXT: vshuff64x2 {{.*#+}} zmm0 = zmm0[0,1,2,3],zmm1[2,3,0,1] +; ALL-NEXT: retq + %res = shufflevector <16 x float> %x, <16 x float> %x1, <16 x i32> + ret <16 x float> %res +} + +define <16 x i32> @test_vshufi32x4_512(<16 x i32> %x, <16 x i32> %x1) nounwind { +; ALL-LABEL: test_vshufi32x4_512: +; ALL: # BB#0: +; ALL-NEXT: vshufi64x2 {{.*#+}} zmm0 = zmm0[0,1,2,3],zmm1[2,3,0,1] +; ALL-NEXT: retq + %res = shufflevector <16 x i32> %x, <16 x i32> %x1, <16 x i32> + ret <16 x i32> %res +} diff --git a/test/CodeGen/X86/vector-shuffle-512-v8.ll b/test/CodeGen/X86/vector-shuffle-512-v8.ll index a24f99336b0..06ae4d5513a 100644 --- a/test/CodeGen/X86/vector-shuffle-512-v8.ll +++ b/test/CodeGen/X86/vector-shuffle-512-v8.ll @@ -2174,20 +2174,6 @@ define <8 x double> @test_vshuff64x2_512_mem_maskz(<8 x double> %x, <8 x double> ret <8 x double> %res } -define <16 x float> @test_vshuff32x4_512(<16 x float> %x, <16 x float> %x1) nounwind { -; AVX512F-LABEL: test_vshuff32x4_512: -; AVX512F: # BB#0: -; AVX512F-NEXT: vshuff64x2 {{.*#+}} zmm0 = zmm0[0,1,2,3],zmm1[2,3,0,1] -; AVX512F-NEXT: retq -; -; AVX512F-32-LABEL: test_vshuff32x4_512: -; AVX512F-32: # BB#0: -; AVX512F-32-NEXT: vshuff64x2 {{.*#+}} zmm0 = zmm0[0,1,2,3],zmm1[2,3,0,1] -; AVX512F-32-NEXT: retl - %res = shufflevector <16 x float> %x, <16 x float> %x1, <16 x i32> - ret <16 x float> %res -} - define <8 x double> @shuffle_v8f64_23014567(<8 x double> %a0, <8 x double> %a1) { ; AVX512F-LABEL: shuffle_v8f64_23014567: ; AVX512F: # BB#0: