[llvm] r289400 - [X86][AVX512] Add target shuffle test showing missing PSHUFPD combine.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 11 11:41:23 PST 2016
Author: rksimon
Date: Sun Dec 11 13:41:23 2016
New Revision: 289400
URL: http://llvm.org/viewvc/llvm-project?rev=289400&view=rev
Log:
[X86][AVX512] Add target shuffle test showing missing PSHUFPD combine.
Modified:
llvm/trunk/test/CodeGen/X86/vector-shuffle-combining-avx512bw.ll
Modified: llvm/trunk/test/CodeGen/X86/vector-shuffle-combining-avx512bw.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vector-shuffle-combining-avx512bw.ll?rev=289400&r1=289399&r2=289400&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vector-shuffle-combining-avx512bw.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vector-shuffle-combining-avx512bw.ll Sun Dec 11 13:41:23 2016
@@ -855,6 +855,22 @@ define <8 x double> @combine_vpermi2var_
ret <8 x double> %res1
}
+define <8 x double> @combine_vpermi2var_8f64_as_shufpd(<8 x double> %x0, <8 x double> %x1) {
+; X32-LABEL: combine_vpermi2var_8f64_as_shufpd:
+; X32: # BB#0:
+; X32-NEXT: vmovapd {{.*#+}} zmm2 = [1,0,8,0,2,0,10,0,5,0,13,0,6,0,15,0]
+; X32-NEXT: vpermt2pd %zmm1, %zmm2, %zmm0
+; X32-NEXT: retl
+;
+; X64-LABEL: combine_vpermi2var_8f64_as_shufpd:
+; X64: # BB#0:
+; X64-NEXT: vmovapd {{.*#+}} zmm2 = [1,8,2,10,5,13,6,15]
+; X64-NEXT: vpermt2pd %zmm1, %zmm2, %zmm0
+; X64-NEXT: retq
+ %1 = call <8 x double> @llvm.x86.avx512.mask.vpermi2var.pd.512(<8 x double> %x0, <8 x i64> <i64 1, i64 8, i64 2, i64 10, i64 5, i64 13, i64 6, i64 15>, <8 x double> %x1, i8 -1)
+ ret <8 x double> %1
+}
+
define <8 x i64> @combine_vpermi2var_8i64_identity(<8 x i64> %x0, <8 x i64> %x1) {
; X32-LABEL: combine_vpermi2var_8i64_identity:
; X32: # BB#0:
More information about the llvm-commits
mailing list