forked from OSchip/llvm-project
[DAG] SelectionDAG::isSplatValue - handle OR/XOR cases
Add OR/XOR to the basic binops that we support when checking for a splat vector value
This commit is contained in:
parent
598ceb25d4
commit
86dabf4226
|
@ -2430,7 +2430,9 @@ bool SelectionDAG::isSplatValue(SDValue V, const APInt &DemandedElts,
|
|||
return true;
|
||||
case ISD::ADD:
|
||||
case ISD::SUB:
|
||||
case ISD::AND: {
|
||||
case ISD::AND:
|
||||
case ISD::XOR:
|
||||
case ISD::OR: {
|
||||
APInt UndefLHS, UndefRHS;
|
||||
SDValue LHS = V.getOperand(0);
|
||||
SDValue RHS = V.getOperand(1);
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -821,24 +821,16 @@ define <32 x i8> @var_funnnel_v32i8(<32 x i8> %x, <32 x i8> %y, <32 x i8> %amt)
|
|||
define <4 x i64> @splatvar_funnnel_v4i64(<4 x i64> %x, <4 x i64> %y, <4 x i64> %amt) nounwind {
|
||||
; AVX1-LABEL: splatvar_funnnel_v4i64:
|
||||
; AVX1: # %bb.0:
|
||||
; AVX1-NEXT: vpshufd {{.*#+}} xmm3 = xmm2[0,1,0,1]
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm3, %ymm3
|
||||
; AVX1-NEXT: vandnps {{.*}}(%rip), %ymm3, %ymm3
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm3, %xmm4
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX1-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm5
|
||||
; AVX1-NEXT: vpsrlq $1, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpsrlq %xmm4, %xmm5, %xmm6
|
||||
; AVX1-NEXT: vpshufd {{.*#+}} xmm4 = xmm4[2,3,2,3]
|
||||
; AVX1-NEXT: vpsrlq %xmm4, %xmm5, %xmm4
|
||||
; AVX1-NEXT: vpblendw {{.*#+}} xmm4 = xmm6[0,1,2,3],xmm4[4,5,6,7]
|
||||
; AVX1-NEXT: vpsrlq %xmm4, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpsrlq $1, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpsrlq %xmm3, %xmm1, %xmm5
|
||||
; AVX1-NEXT: vpshufd {{.*#+}} xmm3 = xmm3[2,3,2,3]
|
||||
; AVX1-NEXT: vpsrlq %xmm3, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpblendw {{.*#+}} xmm1 = xmm5[0,1,2,3],xmm1[4,5,6,7]
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm4, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vpsrlq %xmm4, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm5, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; AVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpsllq %xmm2, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsllq %xmm2, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm0, %ymm0
|
||||
|
@ -847,48 +839,45 @@ define <4 x i64> @splatvar_funnnel_v4i64(<4 x i64> %x, <4 x i64> %y, <4 x i64> %
|
|||
;
|
||||
; AVX2-LABEL: splatvar_funnnel_v4i64:
|
||||
; AVX2: # %bb.0:
|
||||
; AVX2-NEXT: vpbroadcastq %xmm2, %ymm3
|
||||
; AVX2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpbroadcastq {{.*#+}} ymm2 = [63,63,63,63]
|
||||
; AVX2-NEXT: vpandn %ymm2, %ymm3, %ymm2
|
||||
; AVX2-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX2-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX2-NEXT: vpsrlq $1, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpsrlvq %ymm2, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpsrlq %xmm4, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512F-LABEL: splatvar_funnnel_v4i64:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastq %xmm2, %ymm3
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpbroadcastq {{.*#+}} ymm2 = [63,63,63,63]
|
||||
; AVX512F-NEXT: vpandn %ymm2, %ymm3, %ymm2
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpsrlq $1, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpsrlvq %ymm2, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpsrlq %xmm4, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v4i64:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastq %xmm2, %ymm3
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpsrlq $1, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpandnq {{.*}}(%rip){1to4}, %ymm3, %ymm2
|
||||
; AVX512VL-NEXT: vpsrlvq %ymm2, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpsrlq %xmm4, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v4i64:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastq %xmm2, %ymm3
|
||||
; AVX512BW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: vpbroadcastq {{.*#+}} ymm2 = [63,63,63,63]
|
||||
; AVX512BW-NEXT: vpandn %ymm2, %ymm3, %ymm2
|
||||
; AVX512BW-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpsrlq $1, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpsrlvq %ymm2, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpsrlq %xmm4, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: retq
|
||||
;
|
||||
|
@ -903,12 +892,12 @@ define <4 x i64> @splatvar_funnnel_v4i64(<4 x i64> %x, <4 x i64> %y, <4 x i64> %
|
|||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v4i64:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastq %xmm2, %ymm3
|
||||
; AVX512VLBW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpsrlq $1, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpandnq {{.*}}(%rip){1to4}, %ymm3, %ymm2
|
||||
; AVX512VLBW-NEXT: vpsrlvq %ymm2, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpsrlq %xmm4, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: retq
|
||||
;
|
||||
|
@ -920,36 +909,30 @@ define <4 x i64> @splatvar_funnnel_v4i64(<4 x i64> %x, <4 x i64> %y, <4 x i64> %
|
|||
;
|
||||
; XOPAVX1-LABEL: splatvar_funnnel_v4i64:
|
||||
; XOPAVX1: # %bb.0:
|
||||
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm3 = xmm2[0,1,0,1]
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm3, %ymm3
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm4
|
||||
; XOPAVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vpsllq %xmm2, %xmm4, %xmm4
|
||||
; XOPAVX1-NEXT: vpsllq %xmm2, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm4, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: vandnps {{.*}}(%rip), %ymm3, %ymm2
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm2, %xmm3
|
||||
; XOPAVX1-NEXT: vpxor %xmm4, %xmm4, %xmm4
|
||||
; XOPAVX1-NEXT: vpsubq %xmm3, %xmm4, %xmm3
|
||||
; XOPAVX1-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; XOPAVX1-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm1, %xmm5
|
||||
; XOPAVX1-NEXT: vpsrlq $1, %xmm5, %xmm5
|
||||
; XOPAVX1-NEXT: vpshlq %xmm3, %xmm5, %xmm3
|
||||
; XOPAVX1-NEXT: vpsubq %xmm2, %xmm4, %xmm2
|
||||
; XOPAVX1-NEXT: vpsrlq %xmm4, %xmm5, %xmm5
|
||||
; XOPAVX1-NEXT: vpsrlq $1, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vpshlq %xmm2, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm1, %ymm1
|
||||
; XOPAVX1-NEXT: vpsrlq %xmm4, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm5, %ymm1, %ymm1
|
||||
; XOPAVX1-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; XOPAVX1-NEXT: vpsllq %xmm2, %xmm3, %xmm3
|
||||
; XOPAVX1-NEXT: vpsllq %xmm2, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: vorps %ymm1, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: retq
|
||||
;
|
||||
; XOPAVX2-LABEL: splatvar_funnnel_v4i64:
|
||||
; XOPAVX2: # %bb.0:
|
||||
; XOPAVX2-NEXT: vpbroadcastq %xmm2, %ymm3
|
||||
; XOPAVX2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpbroadcastq {{.*#+}} ymm2 = [63,63,63,63]
|
||||
; XOPAVX2-NEXT: vpandn %ymm2, %ymm3, %ymm2
|
||||
; XOPAVX2-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; XOPAVX2-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; XOPAVX2-NEXT: vpsrlq $1, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpsrlvq %ymm2, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpsrlq %xmm4, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: retq
|
||||
%splat = shufflevector <4 x i64> %amt, <4 x i64> undef, <4 x i32> zeroinitializer
|
||||
|
@ -960,40 +943,19 @@ define <4 x i64> @splatvar_funnnel_v4i64(<4 x i64> %x, <4 x i64> %y, <4 x i64> %
|
|||
define <8 x i32> @splatvar_funnnel_v8i32(<8 x i32> %x, <8 x i32> %y, <8 x i32> %amt) nounwind {
|
||||
; AVX1-LABEL: splatvar_funnnel_v8i32:
|
||||
; AVX1: # %bb.0:
|
||||
; AVX1-NEXT: vpshufd {{.*#+}} xmm3 = xmm2[0,0,0,0]
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm3, %ymm3
|
||||
; AVX1-NEXT: vandnps {{.*}}(%rip), %ymm3, %ymm3
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm3, %xmm4
|
||||
; AVX1-NEXT: vpsrldq {{.*#+}} xmm5 = xmm4[12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm6
|
||||
; AVX1-NEXT: vpsrld $1, %xmm6, %xmm6
|
||||
; AVX1-NEXT: vpsrld %xmm5, %xmm6, %xmm5
|
||||
; AVX1-NEXT: vpsrlq $32, %xmm4, %xmm7
|
||||
; AVX1-NEXT: vpsrld %xmm7, %xmm6, %xmm7
|
||||
; AVX1-NEXT: vpblendw {{.*#+}} xmm5 = xmm7[0,1,2,3],xmm5[4,5,6,7]
|
||||
; AVX1-NEXT: vpxor %xmm8, %xmm8, %xmm8
|
||||
; AVX1-NEXT: vpunpckhdq {{.*#+}} xmm7 = xmm4[2],xmm8[2],xmm4[3],xmm8[3]
|
||||
; AVX1-NEXT: vpsrld %xmm7, %xmm6, %xmm7
|
||||
; AVX1-NEXT: vpshufd {{.*#+}} xmm2 = xmm2[0,0,0,0]
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX1-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX1-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX1-NEXT: vpsrld %xmm4, %xmm6, %xmm4
|
||||
; AVX1-NEXT: vpblendw {{.*#+}} xmm4 = xmm4[0,1,2,3],xmm7[4,5,6,7]
|
||||
; AVX1-NEXT: vpblendw {{.*#+}} xmm4 = xmm4[0,1],xmm5[2,3],xmm4[4,5],xmm5[6,7]
|
||||
; AVX1-NEXT: vpsrldq {{.*#+}} xmm5 = xmm3[12,13,14,15],zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm5
|
||||
; AVX1-NEXT: vpsrld $1, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpsrld %xmm4, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpsrld $1, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpsrld %xmm5, %xmm1, %xmm5
|
||||
; AVX1-NEXT: vpsrlq $32, %xmm3, %xmm6
|
||||
; AVX1-NEXT: vpsrld %xmm6, %xmm1, %xmm6
|
||||
; AVX1-NEXT: vpblendw {{.*#+}} xmm5 = xmm6[0,1,2,3],xmm5[4,5,6,7]
|
||||
; AVX1-NEXT: vpunpckhdq {{.*#+}} xmm6 = xmm3[2],xmm8[2],xmm3[3],xmm8[3]
|
||||
; AVX1-NEXT: vpsrld %xmm6, %xmm1, %xmm6
|
||||
; AVX1-NEXT: vpmovzxdq {{.*#+}} xmm3 = xmm3[0],zero,xmm3[1],zero
|
||||
; AVX1-NEXT: vpsrld %xmm3, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpblendw {{.*#+}} xmm1 = xmm1[0,1,2,3],xmm6[4,5,6,7]
|
||||
; AVX1-NEXT: vpblendw {{.*#+}} xmm1 = xmm1[0,1],xmm5[2,3],xmm1[4,5],xmm5[6,7]
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm4, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; AVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpsrld %xmm4, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm5, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; AVX1-NEXT: vpslld %xmm2, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpslld %xmm2, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm0, %ymm0
|
||||
|
@ -1002,11 +964,12 @@ define <8 x i32> @splatvar_funnnel_v8i32(<8 x i32> %x, <8 x i32> %y, <8 x i32> %
|
|||
;
|
||||
; AVX2-LABEL: splatvar_funnnel_v8i32:
|
||||
; AVX2: # %bb.0:
|
||||
; AVX2-NEXT: vpbroadcastd %xmm2, %ymm2
|
||||
; AVX2-NEXT: vpbroadcastd {{.*#+}} ymm3 = [31,31,31,31,31,31,31,31]
|
||||
; AVX2-NEXT: vpandn %ymm3, %ymm2, %ymm4
|
||||
; AVX2-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX2-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX2-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX2-NEXT: vpsrld $1, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpsrlvd %ymm4, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpsrld %xmm4, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX2-NEXT: vpslld %xmm2, %ymm0, %ymm0
|
||||
|
@ -1015,11 +978,12 @@ define <8 x i32> @splatvar_funnnel_v8i32(<8 x i32> %x, <8 x i32> %y, <8 x i32> %
|
|||
;
|
||||
; AVX512F-LABEL: splatvar_funnnel_v8i32:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastd %xmm2, %ymm2
|
||||
; AVX512F-NEXT: vpbroadcastd {{.*#+}} ymm3 = [31,31,31,31,31,31,31,31]
|
||||
; AVX512F-NEXT: vpandn %ymm3, %ymm2, %ymm4
|
||||
; AVX512F-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512F-NEXT: vpsrld $1, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpsrlvd %ymm4, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpsrld %xmm4, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512F-NEXT: vpslld %xmm2, %ymm0, %ymm0
|
||||
|
@ -1028,11 +992,12 @@ define <8 x i32> @splatvar_funnnel_v8i32(<8 x i32> %x, <8 x i32> %y, <8 x i32> %
|
|||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v8i32:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastd %xmm2, %ymm2
|
||||
; AVX512VL-NEXT: vpbroadcastd {{.*#+}} ymm3 = [31,31,31,31,31,31,31,31]
|
||||
; AVX512VL-NEXT: vpandn %ymm3, %ymm2, %ymm4
|
||||
; AVX512VL-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512VL-NEXT: vpsrld $1, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpsrlvd %ymm4, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpsrld %xmm4, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512VL-NEXT: vpslld %xmm2, %ymm0, %ymm0
|
||||
|
@ -1041,11 +1006,12 @@ define <8 x i32> @splatvar_funnnel_v8i32(<8 x i32> %x, <8 x i32> %y, <8 x i32> %
|
|||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v8i32:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastd %xmm2, %ymm2
|
||||
; AVX512BW-NEXT: vpbroadcastd {{.*#+}} ymm3 = [31,31,31,31,31,31,31,31]
|
||||
; AVX512BW-NEXT: vpandn %ymm3, %ymm2, %ymm4
|
||||
; AVX512BW-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512BW-NEXT: vpsrld $1, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpsrlvd %ymm4, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpsrld %xmm4, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512BW-NEXT: vpslld %xmm2, %ymm0, %ymm0
|
||||
|
@ -1063,11 +1029,12 @@ define <8 x i32> @splatvar_funnnel_v8i32(<8 x i32> %x, <8 x i32> %y, <8 x i32> %
|
|||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v8i32:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastd %xmm2, %ymm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastd {{.*#+}} ymm3 = [31,31,31,31,31,31,31,31]
|
||||
; AVX512VLBW-NEXT: vpandn %ymm3, %ymm2, %ymm4
|
||||
; AVX512VLBW-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512VLBW-NEXT: vpsrld $1, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpsrlvd %ymm4, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpsrld %xmm4, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512VLBW-NEXT: vpslld %xmm2, %ymm0, %ymm0
|
||||
|
@ -1082,35 +1049,33 @@ define <8 x i32> @splatvar_funnnel_v8i32(<8 x i32> %x, <8 x i32> %y, <8 x i32> %
|
|||
;
|
||||
; XOPAVX1-LABEL: splatvar_funnnel_v8i32:
|
||||
; XOPAVX1: # %bb.0:
|
||||
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm3 = xmm2[0,0,0,0]
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm3, %ymm3
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm4
|
||||
; XOPAVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; XOPAVX1-NEXT: vpslld %xmm2, %xmm4, %xmm4
|
||||
; XOPAVX1-NEXT: vpslld %xmm2, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm4, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: vandnps {{.*}}(%rip), %ymm3, %ymm2
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm2, %xmm3
|
||||
; XOPAVX1-NEXT: vpxor %xmm4, %xmm4, %xmm4
|
||||
; XOPAVX1-NEXT: vpsubd %xmm3, %xmm4, %xmm3
|
||||
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm2 = xmm2[0,0,0,0]
|
||||
; XOPAVX1-NEXT: vmovdqa {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; XOPAVX1-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; XOPAVX1-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm1, %xmm5
|
||||
; XOPAVX1-NEXT: vpsrld $1, %xmm5, %xmm5
|
||||
; XOPAVX1-NEXT: vpshld %xmm3, %xmm5, %xmm3
|
||||
; XOPAVX1-NEXT: vpsubd %xmm2, %xmm4, %xmm2
|
||||
; XOPAVX1-NEXT: vpsrld %xmm4, %xmm5, %xmm5
|
||||
; XOPAVX1-NEXT: vpsrld $1, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vpshld %xmm2, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm1, %ymm1
|
||||
; XOPAVX1-NEXT: vpsrld %xmm4, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm5, %ymm1, %ymm1
|
||||
; XOPAVX1-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; XOPAVX1-NEXT: vpslld %xmm2, %xmm3, %xmm3
|
||||
; XOPAVX1-NEXT: vpslld %xmm2, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: vorps %ymm1, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: retq
|
||||
;
|
||||
; XOPAVX2-LABEL: splatvar_funnnel_v8i32:
|
||||
; XOPAVX2: # %bb.0:
|
||||
; XOPAVX2-NEXT: vpbroadcastd %xmm2, %ymm2
|
||||
; XOPAVX2-NEXT: vpbroadcastd {{.*#+}} ymm3 = [31,31,31,31,31,31,31,31]
|
||||
; XOPAVX2-NEXT: vpandn %ymm3, %ymm2, %ymm4
|
||||
; XOPAVX2-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; XOPAVX2-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; XOPAVX2-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; XOPAVX2-NEXT: vpsrld $1, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpsrlvd %ymm4, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpsrld %xmm4, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; XOPAVX2-NEXT: vpslld %xmm2, %ymm0, %ymm0
|
||||
|
@ -1125,45 +1090,19 @@ define <16 x i16> @splatvar_funnnel_v16i16(<16 x i16> %x, <16 x i16> %y, <16 x i
|
|||
; AVX1-LABEL: splatvar_funnnel_v16i16:
|
||||
; AVX1: # %bb.0:
|
||||
; AVX1-NEXT: vpshuflw {{.*#+}} xmm2 = xmm2[0,0,0,0,4,5,6,7]
|
||||
; AVX1-NEXT: vpshufd {{.*#+}} xmm3 = xmm2[0,0,0,0]
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm3, %ymm3
|
||||
; AVX1-NEXT: vandnps {{.*}}(%rip), %ymm3, %ymm3
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm3, %xmm4
|
||||
; AVX1-NEXT: vpsllw $12, %xmm4, %xmm5
|
||||
; AVX1-NEXT: vpsllw $4, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpor %xmm5, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpaddw %xmm4, %xmm4, %xmm5
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm6
|
||||
; AVX1-NEXT: vpsrlw $9, %xmm6, %xmm7
|
||||
; AVX1-NEXT: vpsrlw $1, %xmm6, %xmm6
|
||||
; AVX1-NEXT: vpblendvb %xmm4, %xmm7, %xmm6, %xmm4
|
||||
; AVX1-NEXT: vpsrlw $4, %xmm4, %xmm6
|
||||
; AVX1-NEXT: vpblendvb %xmm5, %xmm6, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpsrlw $2, %xmm4, %xmm6
|
||||
; AVX1-NEXT: vpaddw %xmm5, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpblendvb %xmm5, %xmm6, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpsrlw $1, %xmm4, %xmm6
|
||||
; AVX1-NEXT: vpaddw %xmm5, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpblendvb %xmm5, %xmm6, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpsllw $12, %xmm3, %xmm5
|
||||
; AVX1-NEXT: vpsllw $4, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpor %xmm5, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpaddw %xmm3, %xmm3, %xmm5
|
||||
; AVX1-NEXT: vpsrlw $9, %xmm1, %xmm6
|
||||
; AVX1-NEXT: vpshufd {{.*#+}} xmm2 = xmm2[0,0,0,0]
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX1-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX1-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm5
|
||||
; AVX1-NEXT: vpsrlw $1, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpsrlw %xmm4, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpsrlw $1, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpblendvb %xmm3, %xmm6, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpsrlw $4, %xmm1, %xmm3
|
||||
; AVX1-NEXT: vpblendvb %xmm5, %xmm3, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpsrlw $2, %xmm1, %xmm3
|
||||
; AVX1-NEXT: vpaddw %xmm5, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpblendvb %xmm5, %xmm3, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpsrlw $1, %xmm1, %xmm3
|
||||
; AVX1-NEXT: vpaddw %xmm5, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpblendvb %xmm5, %xmm3, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm4, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; AVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpsrlw %xmm4, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm5, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; AVX1-NEXT: vpsllw %xmm2, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsllw %xmm2, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm0, %ymm0
|
||||
|
@ -1172,20 +1111,13 @@ define <16 x i16> @splatvar_funnnel_v16i16(<16 x i16> %x, <16 x i16> %y, <16 x i
|
|||
;
|
||||
; AVX2-LABEL: splatvar_funnnel_v16i16:
|
||||
; AVX2: # %bb.0:
|
||||
; AVX2-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; AVX2-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX2-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX2-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX2-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX2-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpxor %xmm3, %xmm3, %xmm3
|
||||
; AVX2-NEXT: vpunpckhwd {{.*#+}} ymm4 = ymm3[4],ymm1[4],ymm3[5],ymm1[5],ymm3[6],ymm1[6],ymm3[7],ymm1[7],ymm3[12],ymm1[12],ymm3[13],ymm1[13],ymm3[14],ymm1[14],ymm3[15],ymm1[15]
|
||||
; AVX2-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm5
|
||||
; AVX2-NEXT: vpunpckhwd {{.*#+}} ymm6 = ymm5[4],ymm3[4],ymm5[5],ymm3[5],ymm5[6],ymm3[6],ymm5[7],ymm3[7],ymm5[12],ymm3[12],ymm5[13],ymm3[13],ymm5[14],ymm3[14],ymm5[15],ymm3[15]
|
||||
; AVX2-NEXT: vpsrlvd %ymm6, %ymm4, %ymm4
|
||||
; AVX2-NEXT: vpsrld $16, %ymm4, %ymm4
|
||||
; AVX2-NEXT: vpunpcklwd {{.*#+}} ymm1 = ymm3[0],ymm1[0],ymm3[1],ymm1[1],ymm3[2],ymm1[2],ymm3[3],ymm1[3],ymm3[8],ymm1[8],ymm3[9],ymm1[9],ymm3[10],ymm1[10],ymm3[11],ymm1[11]
|
||||
; AVX2-NEXT: vpunpcklwd {{.*#+}} ymm3 = ymm5[0],ymm3[0],ymm5[1],ymm3[1],ymm5[2],ymm3[2],ymm5[3],ymm3[3],ymm5[8],ymm3[8],ymm5[9],ymm3[9],ymm5[10],ymm3[10],ymm5[11],ymm3[11]
|
||||
; AVX2-NEXT: vpsrlvd %ymm3, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpsrld $16, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpackusdw %ymm4, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX2-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
|
@ -1193,41 +1125,41 @@ define <16 x i16> @splatvar_funnnel_v16i16(<16 x i16> %x, <16 x i16> %y, <16 x i
|
|||
;
|
||||
; AVX512F-LABEL: splatvar_funnnel_v16i16:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm3
|
||||
; AVX512F-NEXT: vpmovzxwq {{.*#+}} xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero
|
||||
; AVX512F-NEXT: vpsllw %xmm3, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512F-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpmovzxwd {{.*#+}} zmm1 = ymm1[0],zero,ymm1[1],zero,ymm1[2],zero,ymm1[3],zero,ymm1[4],zero,ymm1[5],zero,ymm1[6],zero,ymm1[7],zero,ymm1[8],zero,ymm1[9],zero,ymm1[10],zero,ymm1[11],zero,ymm1[12],zero,ymm1[13],zero,ymm1[14],zero,ymm1[15],zero
|
||||
; AVX512F-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm2
|
||||
; AVX512F-NEXT: vpmovzxwd {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero
|
||||
; AVX512F-NEXT: vpsrlvd %zmm2, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpmovdw %zmm1, %ymm1
|
||||
; AVX512F-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512F-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v16i16:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm3
|
||||
; AVX512VL-NEXT: vpmovzxwq {{.*#+}} xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero
|
||||
; AVX512VL-NEXT: vpsllw %xmm3, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512VL-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpmovzxwd {{.*#+}} zmm1 = ymm1[0],zero,ymm1[1],zero,ymm1[2],zero,ymm1[3],zero,ymm1[4],zero,ymm1[5],zero,ymm1[6],zero,ymm1[7],zero,ymm1[8],zero,ymm1[9],zero,ymm1[10],zero,ymm1[11],zero,ymm1[12],zero,ymm1[13],zero,ymm1[14],zero,ymm1[15],zero
|
||||
; AVX512VL-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm2
|
||||
; AVX512VL-NEXT: vpmovzxwd {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero
|
||||
; AVX512VL-NEXT: vpsrlvd %zmm2, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpmovdw %zmm1, %ymm1
|
||||
; AVX512VL-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512VL-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v16i16:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; AVX512BW-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm3
|
||||
; AVX512BW-NEXT: vpsrlvw %zmm3, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
|
@ -1244,11 +1176,13 @@ define <16 x i16> @splatvar_funnnel_v16i16(<16 x i16> %x, <16 x i16> %y, <16 x i
|
|||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v16i16:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm3
|
||||
; AVX512VLBW-NEXT: vpsrlvw %ymm3, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
|
@ -1263,42 +1197,34 @@ define <16 x i16> @splatvar_funnnel_v16i16(<16 x i16> %x, <16 x i16> %y, <16 x i
|
|||
; XOPAVX1-LABEL: splatvar_funnnel_v16i16:
|
||||
; XOPAVX1: # %bb.0:
|
||||
; XOPAVX1-NEXT: vpshuflw {{.*#+}} xmm2 = xmm2[0,0,0,0,4,5,6,7]
|
||||
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm3 = xmm2[0,0,0,0]
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm3, %ymm3
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm4
|
||||
; XOPAVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; XOPAVX1-NEXT: vpsllw %xmm2, %xmm4, %xmm4
|
||||
; XOPAVX1-NEXT: vpsllw %xmm2, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm4, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: vandnps {{.*}}(%rip), %ymm3, %ymm2
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm2, %xmm3
|
||||
; XOPAVX1-NEXT: vpxor %xmm4, %xmm4, %xmm4
|
||||
; XOPAVX1-NEXT: vpsubw %xmm3, %xmm4, %xmm3
|
||||
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm2 = xmm2[0,0,0,0]
|
||||
; XOPAVX1-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; XOPAVX1-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; XOPAVX1-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm1, %xmm5
|
||||
; XOPAVX1-NEXT: vpsrlw $1, %xmm5, %xmm5
|
||||
; XOPAVX1-NEXT: vpshlw %xmm3, %xmm5, %xmm3
|
||||
; XOPAVX1-NEXT: vpsubw %xmm2, %xmm4, %xmm2
|
||||
; XOPAVX1-NEXT: vpsrlw %xmm4, %xmm5, %xmm5
|
||||
; XOPAVX1-NEXT: vpsrlw $1, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vpshlw %xmm2, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm1, %ymm1
|
||||
; XOPAVX1-NEXT: vpsrlw %xmm4, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm5, %ymm1, %ymm1
|
||||
; XOPAVX1-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; XOPAVX1-NEXT: vpsllw %xmm2, %xmm3, %xmm3
|
||||
; XOPAVX1-NEXT: vpsllw %xmm2, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: vorps %ymm1, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: retq
|
||||
;
|
||||
; XOPAVX2-LABEL: splatvar_funnnel_v16i16:
|
||||
; XOPAVX2: # %bb.0:
|
||||
; XOPAVX2-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; XOPAVX2-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm3
|
||||
; XOPAVX2-NEXT: vextracti128 $1, %ymm3, %xmm4
|
||||
; XOPAVX2-NEXT: vpxor %xmm5, %xmm5, %xmm5
|
||||
; XOPAVX2-NEXT: vpsubw %xmm4, %xmm5, %xmm4
|
||||
; XOPAVX2-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; XOPAVX2-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; XOPAVX2-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; XOPAVX2-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vextracti128 $1, %ymm1, %xmm6
|
||||
; XOPAVX2-NEXT: vpshlw %xmm4, %xmm6, %xmm4
|
||||
; XOPAVX2-NEXT: vpsubw %xmm3, %xmm5, %xmm3
|
||||
; XOPAVX2-NEXT: vpshlw %xmm3, %xmm1, %xmm1
|
||||
; XOPAVX2-NEXT: vinserti128 $1, %xmm4, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; XOPAVX2-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
|
@ -1312,49 +1238,29 @@ define <32 x i8> @splatvar_funnnel_v32i8(<32 x i8> %x, <32 x i8> %y, <32 x i8> %
|
|||
; AVX1-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX1: # %bb.0:
|
||||
; AVX1-NEXT: vpxor %xmm8, %xmm8, %xmm8
|
||||
; AVX1-NEXT: vpshufb %xmm8, %xmm2, %xmm4
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm4, %ymm4, %ymm4
|
||||
; AVX1-NEXT: vandnps {{.*}}(%rip), %ymm4, %ymm4
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm4, %xmm5
|
||||
; AVX1-NEXT: vpsllw $5, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm6
|
||||
; AVX1-NEXT: vpsrlw $1, %xmm6, %xmm6
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm7 = [127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127]
|
||||
; AVX1-NEXT: vpand %xmm7, %xmm6, %xmm6
|
||||
; AVX1-NEXT: vpsrlw $4, %xmm6, %xmm3
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm9 = [15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15]
|
||||
; AVX1-NEXT: vpand %xmm3, %xmm9, %xmm3
|
||||
; AVX1-NEXT: vpblendvb %xmm5, %xmm3, %xmm6, %xmm3
|
||||
; AVX1-NEXT: vpsrlw $2, %xmm3, %xmm6
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm10 = [63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63]
|
||||
; AVX1-NEXT: vpand %xmm6, %xmm10, %xmm6
|
||||
; AVX1-NEXT: vpaddb %xmm5, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpblendvb %xmm5, %xmm6, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsrlw $1, %xmm3, %xmm6
|
||||
; AVX1-NEXT: vpand %xmm7, %xmm6, %xmm6
|
||||
; AVX1-NEXT: vpaddb %xmm5, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpblendvb %xmm5, %xmm6, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsllw $5, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpshufb %xmm8, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm4
|
||||
; AVX1-NEXT: vpsrlw $1, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm5 = [127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127]
|
||||
; AVX1-NEXT: vpand %xmm5, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm6 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX1-NEXT: vpandn %xmm6, %xmm2, %xmm7
|
||||
; AVX1-NEXT: vpmovzxbq {{.*#+}} xmm7 = xmm7[0],zero,zero,zero,zero,zero,zero,zero,xmm7[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX1-NEXT: vpsrlw %xmm7, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpcmpeqd %xmm9, %xmm9, %xmm9
|
||||
; AVX1-NEXT: vpsrlw %xmm7, %xmm9, %xmm3
|
||||
; AVX1-NEXT: vpshufb {{.*#+}} xmm3 = xmm3[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
|
||||
; AVX1-NEXT: vpand %xmm3, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpsrlw $1, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpand %xmm7, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpsrlw $4, %xmm1, %xmm5
|
||||
; AVX1-NEXT: vpand %xmm5, %xmm9, %xmm5
|
||||
; AVX1-NEXT: vpblendvb %xmm4, %xmm5, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpsrlw $2, %xmm1, %xmm5
|
||||
; AVX1-NEXT: vpand %xmm5, %xmm10, %xmm5
|
||||
; AVX1-NEXT: vpaddb %xmm4, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpblendvb %xmm4, %xmm5, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpsrlw $1, %xmm1, %xmm5
|
||||
; AVX1-NEXT: vpand %xmm7, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpaddb %xmm4, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpblendvb %xmm4, %xmm5, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; AVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpand %xmm5, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpsrlw %xmm7, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpand %xmm3, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm4, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vpand %xmm6, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; AVX1-NEXT: vpsllw %xmm2, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpcmpeqd %xmm4, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpsllw %xmm2, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpsllw %xmm2, %xmm9, %xmm4
|
||||
; AVX1-NEXT: vpshufb %xmm8, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpand %xmm4, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsllw %xmm2, %xmm0, %xmm0
|
||||
|
@ -1365,154 +1271,140 @@ define <32 x i8> @splatvar_funnnel_v32i8(<32 x i8> %x, <32 x i8> %y, <32 x i8> %
|
|||
;
|
||||
; AVX2-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX2: # %bb.0:
|
||||
; AVX2-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX2-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vmovdqa {{.*#+}} ymm3 = [127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127]
|
||||
; AVX2-NEXT: vpand %ymm3, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpsrlw $4, %ymm1, %ymm4
|
||||
; AVX2-NEXT: vpand {{.*}}(%rip), %ymm4, %ymm4
|
||||
; AVX2-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm5
|
||||
; AVX2-NEXT: vpsllw $5, %ymm5, %ymm5
|
||||
; AVX2-NEXT: vpblendvb %ymm5, %ymm4, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpsrlw $2, %ymm1, %ymm4
|
||||
; AVX2-NEXT: vpand {{.*}}(%rip), %ymm4, %ymm4
|
||||
; AVX2-NEXT: vpaddb %ymm5, %ymm5, %ymm5
|
||||
; AVX2-NEXT: vpblendvb %ymm5, %ymm4, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpsrlw $1, %ymm1, %ymm4
|
||||
; AVX2-NEXT: vpand %ymm3, %ymm4, %ymm3
|
||||
; AVX2-NEXT: vpaddb %ymm5, %ymm5, %ymm4
|
||||
; AVX2-NEXT: vpblendvb %ymm4, %ymm3, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX2-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX2-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX2-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX2-NEXT: vpsllw %xmm4, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX2-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX2-NEXT: vpbroadcastb %xmm4, %ymm4
|
||||
; AVX2-NEXT: vpand %ymm4, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX2-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpcmpeqd %xmm3, %xmm3, %xmm3
|
||||
; AVX2-NEXT: vpsllw %xmm2, %xmm3, %xmm2
|
||||
; AVX2-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpand {{.*}}(%rip), %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpsrlw %xmm2, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpsrlw %xmm2, %xmm5, %xmm2
|
||||
; AVX2-NEXT: vpsrlw $8, %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX2-NEXT: vpand %ymm2, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpand %ymm2, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512F-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX512F-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} ymm3 = [127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127]
|
||||
; AVX512F-NEXT: vpand %ymm3, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpsrlw $4, %ymm1, %ymm4
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %ymm4, %ymm4
|
||||
; AVX512F-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm5
|
||||
; AVX512F-NEXT: vpsllw $5, %ymm5, %ymm5
|
||||
; AVX512F-NEXT: vpblendvb %ymm5, %ymm4, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpsrlw $2, %ymm1, %ymm4
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %ymm4, %ymm4
|
||||
; AVX512F-NEXT: vpaddb %ymm5, %ymm5, %ymm5
|
||||
; AVX512F-NEXT: vpblendvb %ymm5, %ymm4, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpsrlw $1, %ymm1, %ymm4
|
||||
; AVX512F-NEXT: vpand %ymm3, %ymm4, %ymm3
|
||||
; AVX512F-NEXT: vpaddb %ymm5, %ymm5, %ymm4
|
||||
; AVX512F-NEXT: vpblendvb %ymm4, %ymm3, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512F-NEXT: vpsllw %xmm4, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX512F-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm4, %ymm4
|
||||
; AVX512F-NEXT: vpand %ymm4, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512F-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpcmpeqd %xmm3, %xmm3, %xmm3
|
||||
; AVX512F-NEXT: vpsllw %xmm2, %xmm3, %xmm2
|
||||
; AVX512F-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpsrlw %xmm2, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpsrlw %xmm2, %xmm5, %xmm2
|
||||
; AVX512F-NEXT: vpsrlw $8, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX512F-NEXT: vpand %ymm2, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpand %ymm2, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VL-NEXT: vpsllw %xmm4, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX512VL-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm4, %ymm4
|
||||
; AVX512VL-NEXT: vpand %ymm4, %ymm0, %ymm4
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm0
|
||||
; AVX512VL-NEXT: vpmovzxbq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VL-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} ymm3 = [127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127]
|
||||
; AVX512VL-NEXT: vpand %ymm3, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpsrlw $4, %ymm1, %ymm4
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %ymm4, %ymm4
|
||||
; AVX512VL-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm5
|
||||
; AVX512VL-NEXT: vpsllw $5, %ymm5, %ymm5
|
||||
; AVX512VL-NEXT: vpblendvb %ymm5, %ymm4, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpsrlw $2, %ymm1, %ymm4
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %ymm4, %ymm4
|
||||
; AVX512VL-NEXT: vpaddb %ymm5, %ymm5, %ymm5
|
||||
; AVX512VL-NEXT: vpblendvb %ymm5, %ymm4, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpsrlw $1, %ymm1, %ymm4
|
||||
; AVX512VL-NEXT: vpand %ymm3, %ymm4, %ymm3
|
||||
; AVX512VL-NEXT: vpaddb %ymm5, %ymm5, %ymm4
|
||||
; AVX512VL-NEXT: vpblendvb %ymm4, %ymm3, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VL-NEXT: vpsllw %xmm2, %ymm0, %ymm3
|
||||
; AVX512VL-NEXT: vpcmpeqd %xmm0, %xmm0, %xmm0
|
||||
; AVX512VL-NEXT: vpsllw %xmm2, %xmm0, %xmm0
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpsrlw %xmm0, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpsrlw %xmm0, %xmm5, %xmm0
|
||||
; AVX512VL-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm0, %ymm0
|
||||
; AVX512VL-NEXT: vpternlogq $236, %ymm3, %ymm1, %ymm0
|
||||
; AVX512VL-NEXT: vpternlogq $236, %ymm1, %ymm4, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastb %xmm2, %ymm3
|
||||
; AVX512BW-NEXT: vpmovzxbw {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero,ymm0[16],zero,ymm0[17],zero,ymm0[18],zero,ymm0[19],zero,ymm0[20],zero,ymm0[21],zero,ymm0[22],zero,ymm0[23],zero,ymm0[24],zero,ymm0[25],zero,ymm0[26],zero,ymm0[27],zero,ymm0[28],zero,ymm0[29],zero,ymm0[30],zero,ymm0[31],zero
|
||||
; AVX512BW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpand {{.*}}(%rip), %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpmovzxbw {{.*#+}} zmm1 = ymm1[0],zero,ymm1[1],zero,ymm1[2],zero,ymm1[3],zero,ymm1[4],zero,ymm1[5],zero,ymm1[6],zero,ymm1[7],zero,ymm1[8],zero,ymm1[9],zero,ymm1[10],zero,ymm1[11],zero,ymm1[12],zero,ymm1[13],zero,ymm1[14],zero,ymm1[15],zero,ymm1[16],zero,ymm1[17],zero,ymm1[18],zero,ymm1[19],zero,ymm1[20],zero,ymm1[21],zero,ymm1[22],zero,ymm1[23],zero,ymm1[24],zero,ymm1[25],zero,ymm1[26],zero,ymm1[27],zero,ymm1[28],zero,ymm1[29],zero,ymm1[30],zero,ymm1[31],zero
|
||||
; AVX512BW-NEXT: vpandn {{.*}}(%rip), %ymm3, %ymm2
|
||||
; AVX512BW-NEXT: vpmovzxbw {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero,ymm2[16],zero,ymm2[17],zero,ymm2[18],zero,ymm2[19],zero,ymm2[20],zero,ymm2[21],zero,ymm2[22],zero,ymm2[23],zero,ymm2[24],zero,ymm2[25],zero,ymm2[26],zero,ymm2[27],zero,ymm2[28],zero,ymm2[29],zero,ymm2[30],zero,ymm2[31],zero
|
||||
; AVX512BW-NEXT: vpsrlvw %zmm2, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpsrlw %xmm4, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512BW-NEXT: vpmovzxbw {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero,ymm0[16],zero,ymm0[17],zero,ymm0[18],zero,ymm0[19],zero,ymm0[20],zero,ymm0[21],zero,ymm0[22],zero,ymm0[23],zero,ymm0[24],zero,ymm0[25],zero,ymm0[26],zero,ymm0[27],zero,ymm0[28],zero,ymm0[29],zero,ymm0[30],zero,ymm0[31],zero
|
||||
; AVX512BW-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpmovwb %zmm0, %ymm0
|
||||
; AVX512BW-NEXT: retq
|
||||
;
|
||||
; AVX512VBMI2-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX512VBMI2: # %bb.0:
|
||||
; AVX512VBMI2-NEXT: vpbroadcastb %xmm2, %ymm3
|
||||
; AVX512VBMI2-NEXT: vpmovzxbw {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero,ymm0[16],zero,ymm0[17],zero,ymm0[18],zero,ymm0[19],zero,ymm0[20],zero,ymm0[21],zero,ymm0[22],zero,ymm0[23],zero,ymm0[24],zero,ymm0[25],zero,ymm0[26],zero,ymm0[27],zero,ymm0[28],zero,ymm0[29],zero,ymm0[30],zero,ymm0[31],zero
|
||||
; AVX512VBMI2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VBMI2-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VBMI2-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VBMI2-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VBMI2-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VBMI2-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VBMI2-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512VBMI2-NEXT: vpand {{.*}}(%rip), %ymm1, %ymm1
|
||||
; AVX512VBMI2-NEXT: vpmovzxbw {{.*#+}} zmm1 = ymm1[0],zero,ymm1[1],zero,ymm1[2],zero,ymm1[3],zero,ymm1[4],zero,ymm1[5],zero,ymm1[6],zero,ymm1[7],zero,ymm1[8],zero,ymm1[9],zero,ymm1[10],zero,ymm1[11],zero,ymm1[12],zero,ymm1[13],zero,ymm1[14],zero,ymm1[15],zero,ymm1[16],zero,ymm1[17],zero,ymm1[18],zero,ymm1[19],zero,ymm1[20],zero,ymm1[21],zero,ymm1[22],zero,ymm1[23],zero,ymm1[24],zero,ymm1[25],zero,ymm1[26],zero,ymm1[27],zero,ymm1[28],zero,ymm1[29],zero,ymm1[30],zero,ymm1[31],zero
|
||||
; AVX512VBMI2-NEXT: vpandn {{.*}}(%rip), %ymm3, %ymm2
|
||||
; AVX512VBMI2-NEXT: vpmovzxbw {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero,ymm2[16],zero,ymm2[17],zero,ymm2[18],zero,ymm2[19],zero,ymm2[20],zero,ymm2[21],zero,ymm2[22],zero,ymm2[23],zero,ymm2[24],zero,ymm2[25],zero,ymm2[26],zero,ymm2[27],zero,ymm2[28],zero,ymm2[29],zero,ymm2[30],zero,ymm2[31],zero
|
||||
; AVX512VBMI2-NEXT: vpsrlvw %zmm2, %zmm1, %zmm1
|
||||
; AVX512VBMI2-NEXT: vpsrlw %xmm4, %zmm1, %zmm1
|
||||
; AVX512VBMI2-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VBMI2-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VBMI2-NEXT: vpmovzxbw {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero,ymm0[16],zero,ymm0[17],zero,ymm0[18],zero,ymm0[19],zero,ymm0[20],zero,ymm0[21],zero,ymm0[22],zero,ymm0[23],zero,ymm0[24],zero,ymm0[25],zero,ymm0[26],zero,ymm0[27],zero,ymm0[28],zero,ymm0[29],zero,ymm0[30],zero,ymm0[31],zero
|
||||
; AVX512VBMI2-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512VBMI2-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpmovwb %zmm0, %ymm0
|
||||
; AVX512VBMI2-NEXT: retq
|
||||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastb %xmm2, %ymm3
|
||||
; AVX512VLBW-NEXT: vpmovzxbw {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero,ymm0[16],zero,ymm0[17],zero,ymm0[18],zero,ymm0[19],zero,ymm0[20],zero,ymm0[21],zero,ymm0[22],zero,ymm0[23],zero,ymm0[24],zero,ymm0[25],zero,ymm0[26],zero,ymm0[27],zero,ymm0[28],zero,ymm0[29],zero,ymm0[30],zero,ymm0[31],zero
|
||||
; AVX512VLBW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpand {{.*}}(%rip), %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpmovzxbw {{.*#+}} zmm1 = ymm1[0],zero,ymm1[1],zero,ymm1[2],zero,ymm1[3],zero,ymm1[4],zero,ymm1[5],zero,ymm1[6],zero,ymm1[7],zero,ymm1[8],zero,ymm1[9],zero,ymm1[10],zero,ymm1[11],zero,ymm1[12],zero,ymm1[13],zero,ymm1[14],zero,ymm1[15],zero,ymm1[16],zero,ymm1[17],zero,ymm1[18],zero,ymm1[19],zero,ymm1[20],zero,ymm1[21],zero,ymm1[22],zero,ymm1[23],zero,ymm1[24],zero,ymm1[25],zero,ymm1[26],zero,ymm1[27],zero,ymm1[28],zero,ymm1[29],zero,ymm1[30],zero,ymm1[31],zero
|
||||
; AVX512VLBW-NEXT: vpandn {{.*}}(%rip), %ymm3, %ymm2
|
||||
; AVX512VLBW-NEXT: vpmovzxbw {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero,ymm2[16],zero,ymm2[17],zero,ymm2[18],zero,ymm2[19],zero,ymm2[20],zero,ymm2[21],zero,ymm2[22],zero,ymm2[23],zero,ymm2[24],zero,ymm2[25],zero,ymm2[26],zero,ymm2[27],zero,ymm2[28],zero,ymm2[29],zero,ymm2[30],zero,ymm2[31],zero
|
||||
; AVX512VLBW-NEXT: vpsrlvw %zmm2, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpsrlw %xmm4, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpmovzxbw {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero,ymm0[16],zero,ymm0[17],zero,ymm0[18],zero,ymm0[19],zero,ymm0[20],zero,ymm0[21],zero,ymm0[22],zero,ymm0[23],zero,ymm0[24],zero,ymm0[25],zero,ymm0[26],zero,ymm0[27],zero,ymm0[28],zero,ymm0[29],zero,ymm0[30],zero,ymm0[31],zero
|
||||
; AVX512VLBW-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpmovwb %zmm0, %ymm0
|
||||
; AVX512VLBW-NEXT: retq
|
||||
;
|
||||
; AVX512VLVBMI2-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX512VLVBMI2: # %bb.0:
|
||||
; AVX512VLVBMI2-NEXT: vpbroadcastb %xmm2, %ymm3
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbw {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero,ymm0[16],zero,ymm0[17],zero,ymm0[18],zero,ymm0[19],zero,ymm0[20],zero,ymm0[21],zero,ymm0[22],zero,ymm0[23],zero,ymm0[24],zero,ymm0[25],zero,ymm0[26],zero,ymm0[27],zero,ymm0[28],zero,ymm0[29],zero,ymm0[30],zero,ymm0[31],zero
|
||||
; AVX512VLVBMI2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLVBMI2-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VLVBMI2-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VLVBMI2-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512VLVBMI2-NEXT: vpand {{.*}}(%rip), %ymm1, %ymm1
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbw {{.*#+}} zmm1 = ymm1[0],zero,ymm1[1],zero,ymm1[2],zero,ymm1[3],zero,ymm1[4],zero,ymm1[5],zero,ymm1[6],zero,ymm1[7],zero,ymm1[8],zero,ymm1[9],zero,ymm1[10],zero,ymm1[11],zero,ymm1[12],zero,ymm1[13],zero,ymm1[14],zero,ymm1[15],zero,ymm1[16],zero,ymm1[17],zero,ymm1[18],zero,ymm1[19],zero,ymm1[20],zero,ymm1[21],zero,ymm1[22],zero,ymm1[23],zero,ymm1[24],zero,ymm1[25],zero,ymm1[26],zero,ymm1[27],zero,ymm1[28],zero,ymm1[29],zero,ymm1[30],zero,ymm1[31],zero
|
||||
; AVX512VLVBMI2-NEXT: vpandn {{.*}}(%rip), %ymm3, %ymm2
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbw {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero,ymm2[16],zero,ymm2[17],zero,ymm2[18],zero,ymm2[19],zero,ymm2[20],zero,ymm2[21],zero,ymm2[22],zero,ymm2[23],zero,ymm2[24],zero,ymm2[25],zero,ymm2[26],zero,ymm2[27],zero,ymm2[28],zero,ymm2[29],zero,ymm2[30],zero,ymm2[31],zero
|
||||
; AVX512VLVBMI2-NEXT: vpsrlvw %zmm2, %zmm1, %zmm1
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw %xmm4, %zmm1, %zmm1
|
||||
; AVX512VLVBMI2-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbw {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero,ymm0[16],zero,ymm0[17],zero,ymm0[18],zero,ymm0[19],zero,ymm0[20],zero,ymm0[21],zero,ymm0[22],zero,ymm0[23],zero,ymm0[24],zero,ymm0[25],zero,ymm0[26],zero,ymm0[27],zero,ymm0[28],zero,ymm0[29],zero,ymm0[30],zero,ymm0[31],zero
|
||||
; AVX512VLVBMI2-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpmovwb %zmm0, %ymm0
|
||||
; AVX512VLVBMI2-NEXT: retq
|
||||
|
@ -1521,19 +1413,17 @@ define <32 x i8> @splatvar_funnnel_v32i8(<32 x i8> %x, <32 x i8> %y, <32 x i8> %
|
|||
; XOPAVX1: # %bb.0:
|
||||
; XOPAVX1-NEXT: vpxor %xmm3, %xmm3, %xmm3
|
||||
; XOPAVX1-NEXT: vpshufb %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm2, %ymm2, %ymm4
|
||||
; XOPAVX1-NEXT: vandnps {{.*}}(%rip), %ymm4, %ymm4
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm4, %xmm5
|
||||
; XOPAVX1-NEXT: vpsubb %xmm5, %xmm3, %xmm5
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm1, %xmm6
|
||||
; XOPAVX1-NEXT: vpcmpeqd %xmm7, %xmm7, %xmm7
|
||||
; XOPAVX1-NEXT: vpshlb %xmm7, %xmm6, %xmm6
|
||||
; XOPAVX1-NEXT: vpshlb %xmm5, %xmm6, %xmm5
|
||||
; XOPAVX1-NEXT: vpsubb %xmm4, %xmm3, %xmm3
|
||||
; XOPAVX1-NEXT: vpshlb %xmm7, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm1, %xmm4
|
||||
; XOPAVX1-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; XOPAVX1-NEXT: vpshlb %xmm5, %xmm4, %xmm4
|
||||
; XOPAVX1-NEXT: vmovdqa {{.*#+}} xmm6 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; XOPAVX1-NEXT: vpandn %xmm6, %xmm2, %xmm7
|
||||
; XOPAVX1-NEXT: vpsubb %xmm7, %xmm3, %xmm3
|
||||
; XOPAVX1-NEXT: vpshlb %xmm3, %xmm4, %xmm4
|
||||
; XOPAVX1-NEXT: vpshlb %xmm5, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vpshlb %xmm3, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm5, %ymm1, %ymm1
|
||||
; XOPAVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm4, %ymm1, %ymm1
|
||||
; XOPAVX1-NEXT: vpand %xmm6, %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; XOPAVX1-NEXT: vpshlb %xmm2, %xmm3, %xmm3
|
||||
; XOPAVX1-NEXT: vpshlb %xmm2, %xmm0, %xmm0
|
||||
|
@ -1543,21 +1433,20 @@ define <32 x i8> @splatvar_funnnel_v32i8(<32 x i8> %x, <32 x i8> %y, <32 x i8> %
|
|||
;
|
||||
; XOPAVX2-LABEL: splatvar_funnnel_v32i8:
|
||||
; XOPAVX2: # %bb.0:
|
||||
; XOPAVX2-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; XOPAVX2-NEXT: vextracti128 $1, %ymm0, %xmm3
|
||||
; XOPAVX2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm4
|
||||
; XOPAVX2-NEXT: vpshlb %xmm4, %xmm3, %xmm3
|
||||
; XOPAVX2-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; XOPAVX2-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; XOPAVX2-NEXT: vextracti128 $1, %ymm0, %xmm5
|
||||
; XOPAVX2-NEXT: vpshlb %xmm4, %xmm5, %xmm5
|
||||
; XOPAVX2-NEXT: vpshlb %xmm4, %xmm0, %xmm0
|
||||
; XOPAVX2-NEXT: vinserti128 $1, %xmm3, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm2
|
||||
; XOPAVX2-NEXT: vextracti128 $1, %ymm2, %xmm3
|
||||
; XOPAVX2-NEXT: vpxor %xmm4, %xmm4, %xmm4
|
||||
; XOPAVX2-NEXT: vpsubb %xmm3, %xmm4, %xmm3
|
||||
; XOPAVX2-NEXT: vinserti128 $1, %xmm5, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpxor %xmm3, %xmm3, %xmm3
|
||||
; XOPAVX2-NEXT: vpsubb %xmm2, %xmm3, %xmm2
|
||||
; XOPAVX2-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpand {{.*}}(%rip), %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vextracti128 $1, %ymm1, %xmm5
|
||||
; XOPAVX2-NEXT: vpshlb %xmm3, %xmm5, %xmm3
|
||||
; XOPAVX2-NEXT: vpsubb %xmm2, %xmm4, %xmm2
|
||||
; XOPAVX2-NEXT: vextracti128 $1, %ymm1, %xmm3
|
||||
; XOPAVX2-NEXT: vpshlb %xmm2, %xmm3, %xmm3
|
||||
; XOPAVX2-NEXT: vpshlb %xmm2, %xmm1, %xmm1
|
||||
; XOPAVX2-NEXT: vinserti128 $1, %xmm3, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
|
|
|
@ -536,34 +536,34 @@ define <64 x i8> @var_funnnel_v64i8(<64 x i8> %x, <64 x i8> %y, <64 x i8> %amt)
|
|||
define <8 x i64> @splatvar_funnnel_v8i64(<8 x i64> %x, <8 x i64> %y, <8 x i64> %amt) nounwind {
|
||||
; AVX512F-LABEL: splatvar_funnnel_v8i64:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastq %xmm2, %zmm3
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpsllq %xmm2, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpsrlq $1, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpandnq {{.*}}(%rip){1to8}, %zmm3, %zmm2
|
||||
; AVX512F-NEXT: vpsrlvq %zmm2, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpsrlq %xmm4, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpsllq %xmm2, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v8i64:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastq %xmm2, %zmm3
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpsllq %xmm2, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpsrlq $1, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpandnq {{.*}}(%rip){1to8}, %zmm3, %zmm2
|
||||
; AVX512VL-NEXT: vpsrlvq %zmm2, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpsrlq %xmm4, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpsllq %xmm2, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: retq
|
||||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v8i64:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastq %xmm2, %zmm3
|
||||
; AVX512BW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpsllq %xmm2, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpsrlq $1, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpandnq {{.*}}(%rip){1to8}, %zmm3, %zmm2
|
||||
; AVX512BW-NEXT: vpsrlvq %zmm2, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpsrlq %xmm4, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpsllq %xmm2, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: retq
|
||||
;
|
||||
|
@ -575,12 +575,12 @@ define <8 x i64> @splatvar_funnnel_v8i64(<8 x i64> %x, <8 x i64> %y, <8 x i64> %
|
|||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v8i64:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastq %xmm2, %zmm3
|
||||
; AVX512VLBW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpsllq %xmm2, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpsrlq $1, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpandnq {{.*}}(%rip){1to8}, %zmm3, %zmm2
|
||||
; AVX512VLBW-NEXT: vpsrlvq %zmm2, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpsrlq %xmm4, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpsllq %xmm2, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: retq
|
||||
;
|
||||
|
@ -597,11 +597,12 @@ define <8 x i64> @splatvar_funnnel_v8i64(<8 x i64> %x, <8 x i64> %y, <8 x i64> %
|
|||
define <16 x i32> @splatvar_funnnel_v16i32(<16 x i32> %x, <16 x i32> %y, <16 x i32> %amt) nounwind {
|
||||
; AVX512F-LABEL: splatvar_funnnel_v16i32:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastd %xmm2, %zmm2
|
||||
; AVX512F-NEXT: vpbroadcastd {{.*#+}} zmm3 = [31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31]
|
||||
; AVX512F-NEXT: vpandnd %zmm3, %zmm2, %zmm4
|
||||
; AVX512F-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512F-NEXT: vpsrld $1, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpsrlvd %zmm4, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpsrld %xmm4, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512F-NEXT: vpslld %xmm2, %zmm0, %zmm0
|
||||
|
@ -610,11 +611,12 @@ define <16 x i32> @splatvar_funnnel_v16i32(<16 x i32> %x, <16 x i32> %y, <16 x i
|
|||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v16i32:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastd %xmm2, %zmm2
|
||||
; AVX512VL-NEXT: vpbroadcastd {{.*#+}} zmm3 = [31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31]
|
||||
; AVX512VL-NEXT: vpandnd %zmm3, %zmm2, %zmm4
|
||||
; AVX512VL-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512VL-NEXT: vpsrld $1, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpsrlvd %zmm4, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpsrld %xmm4, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512VL-NEXT: vpslld %xmm2, %zmm0, %zmm0
|
||||
|
@ -623,11 +625,12 @@ define <16 x i32> @splatvar_funnnel_v16i32(<16 x i32> %x, <16 x i32> %y, <16 x i
|
|||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v16i32:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastd %xmm2, %zmm2
|
||||
; AVX512BW-NEXT: vpbroadcastd {{.*#+}} zmm3 = [31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31]
|
||||
; AVX512BW-NEXT: vpandnd %zmm3, %zmm2, %zmm4
|
||||
; AVX512BW-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512BW-NEXT: vpsrld $1, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpsrlvd %zmm4, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpsrld %xmm4, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512BW-NEXT: vpslld %xmm2, %zmm0, %zmm0
|
||||
|
@ -642,11 +645,12 @@ define <16 x i32> @splatvar_funnnel_v16i32(<16 x i32> %x, <16 x i32> %y, <16 x i
|
|||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v16i32:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastd %xmm2, %zmm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastd {{.*#+}} zmm3 = [31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31]
|
||||
; AVX512VLBW-NEXT: vpandnd %zmm3, %zmm2, %zmm4
|
||||
; AVX512VLBW-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512VLBW-NEXT: vpsrld $1, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpsrlvd %zmm4, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpsrld %xmm4, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512VLBW-NEXT: vpslld %xmm2, %zmm0, %zmm0
|
||||
|
@ -666,65 +670,55 @@ define <16 x i32> @splatvar_funnnel_v16i32(<16 x i32> %x, <16 x i32> %y, <16 x i
|
|||
define <32 x i16> @splatvar_funnnel_v32i16(<32 x i16> %x, <32 x i16> %y, <32 x i16> %amt) nounwind {
|
||||
; AVX512F-LABEL: splatvar_funnnel_v32i16:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm2, %zmm2, %zmm2
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm3
|
||||
; AVX512F-NEXT: vpmovzxwq {{.*#+}} xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm0, %ymm4
|
||||
; AVX512F-NEXT: vpsllw %xmm3, %ymm4, %ymm4
|
||||
; AVX512F-NEXT: vpsllw %xmm3, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm4, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm2
|
||||
; AVX512F-NEXT: vpmovzxwd {{.*#+}} zmm3 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero
|
||||
; AVX512F-NEXT: vpsrlw $1, %ymm1, %ymm4
|
||||
; AVX512F-NEXT: vpmovzxwd {{.*#+}} zmm4 = ymm4[0],zero,ymm4[1],zero,ymm4[2],zero,ymm4[3],zero,ymm4[4],zero,ymm4[5],zero,ymm4[6],zero,ymm4[7],zero,ymm4[8],zero,ymm4[9],zero,ymm4[10],zero,ymm4[11],zero,ymm4[12],zero,ymm4[13],zero,ymm4[14],zero,ymm4[15],zero
|
||||
; AVX512F-NEXT: vpsrlvd %zmm3, %zmm4, %zmm3
|
||||
; AVX512F-NEXT: vpmovdw %zmm3, %ymm3
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm2, %ymm2
|
||||
; AVX512F-NEXT: vpmovzxwd {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm1, %ymm1
|
||||
; AVX512F-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm1, %ymm5
|
||||
; AVX512F-NEXT: vpsrlw $1, %ymm5, %ymm5
|
||||
; AVX512F-NEXT: vpsrlw %xmm4, %ymm5, %ymm5
|
||||
; AVX512F-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpmovzxwd {{.*#+}} zmm1 = ymm1[0],zero,ymm1[1],zero,ymm1[2],zero,ymm1[3],zero,ymm1[4],zero,ymm1[5],zero,ymm1[6],zero,ymm1[7],zero,ymm1[8],zero,ymm1[9],zero,ymm1[10],zero,ymm1[11],zero,ymm1[12],zero,ymm1[13],zero,ymm1[14],zero,ymm1[15],zero
|
||||
; AVX512F-NEXT: vpsrlvd %zmm2, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpmovdw %zmm1, %ymm1
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm1, %zmm3, %zmm1
|
||||
; AVX512F-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm5, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm0, %ymm3
|
||||
; AVX512F-NEXT: vpsllw %xmm2, %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm3, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v32i16:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm2, %zmm2, %zmm2
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm3
|
||||
; AVX512VL-NEXT: vpmovzxwq {{.*#+}} xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm0, %ymm4
|
||||
; AVX512VL-NEXT: vpsllw %xmm3, %ymm4, %ymm4
|
||||
; AVX512VL-NEXT: vpsllw %xmm3, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm4, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm2
|
||||
; AVX512VL-NEXT: vpmovzxwd {{.*#+}} zmm3 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero
|
||||
; AVX512VL-NEXT: vpsrlw $1, %ymm1, %ymm4
|
||||
; AVX512VL-NEXT: vpmovzxwd {{.*#+}} zmm4 = ymm4[0],zero,ymm4[1],zero,ymm4[2],zero,ymm4[3],zero,ymm4[4],zero,ymm4[5],zero,ymm4[6],zero,ymm4[7],zero,ymm4[8],zero,ymm4[9],zero,ymm4[10],zero,ymm4[11],zero,ymm4[12],zero,ymm4[13],zero,ymm4[14],zero,ymm4[15],zero
|
||||
; AVX512VL-NEXT: vpsrlvd %zmm3, %zmm4, %zmm3
|
||||
; AVX512VL-NEXT: vpmovdw %zmm3, %ymm3
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm2, %ymm2
|
||||
; AVX512VL-NEXT: vpmovzxwd {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm1, %ymm1
|
||||
; AVX512VL-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm1, %ymm5
|
||||
; AVX512VL-NEXT: vpsrlw $1, %ymm5, %ymm5
|
||||
; AVX512VL-NEXT: vpsrlw %xmm4, %ymm5, %ymm5
|
||||
; AVX512VL-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpmovzxwd {{.*#+}} zmm1 = ymm1[0],zero,ymm1[1],zero,ymm1[2],zero,ymm1[3],zero,ymm1[4],zero,ymm1[5],zero,ymm1[6],zero,ymm1[7],zero,ymm1[8],zero,ymm1[9],zero,ymm1[10],zero,ymm1[11],zero,ymm1[12],zero,ymm1[13],zero,ymm1[14],zero,ymm1[15],zero
|
||||
; AVX512VL-NEXT: vpsrlvd %zmm2, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpmovdw %zmm1, %ymm1
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm1, %zmm3, %zmm1
|
||||
; AVX512VL-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm5, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm0, %ymm3
|
||||
; AVX512VL-NEXT: vpsllw %xmm2, %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm3, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: retq
|
||||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v32i16:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastw %xmm2, %zmm2
|
||||
; AVX512BW-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsrlw $1, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm3
|
||||
; AVX512BW-NEXT: vpsrlvw %zmm3, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpsrlw %xmm4, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
|
@ -738,11 +732,13 @@ define <32 x i16> @splatvar_funnnel_v32i16(<32 x i16> %x, <32 x i16> %y, <32 x i
|
|||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v32i16:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastw %xmm2, %zmm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsrlw $1, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm3
|
||||
; AVX512VLBW-NEXT: vpsrlvw %zmm3, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpsrlw %xmm4, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
|
@ -761,230 +757,156 @@ define <32 x i16> @splatvar_funnnel_v32i16(<32 x i16> %x, <32 x i16> %y, <32 x i
|
|||
define <64 x i8> @splatvar_funnnel_v64i8(<64 x i8> %x, <64 x i8> %y, <64 x i8> %amt) nounwind {
|
||||
; AVX512F-LABEL: splatvar_funnnel_v64i8:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm2, %zmm2, %zmm2
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm1, %ymm3
|
||||
; AVX512F-NEXT: vpsrlw $1, %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} ymm4 = [127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127]
|
||||
; AVX512F-NEXT: vpand %ymm4, %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vpsrlw $4, %ymm3, %ymm5
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} ymm6 = [15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15]
|
||||
; AVX512F-NEXT: vpand %ymm6, %ymm5, %ymm5
|
||||
; AVX512F-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm7
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm7, %ymm8
|
||||
; AVX512F-NEXT: vpsllw $5, %ymm8, %ymm8
|
||||
; AVX512F-NEXT: vpblendvb %ymm8, %ymm5, %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vpsrlw $2, %ymm3, %ymm5
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} ymm9 = [63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63]
|
||||
; AVX512F-NEXT: vpand %ymm5, %ymm9, %ymm5
|
||||
; AVX512F-NEXT: vpaddb %ymm8, %ymm8, %ymm8
|
||||
; AVX512F-NEXT: vpblendvb %ymm8, %ymm5, %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vpsrlw $1, %ymm3, %ymm5
|
||||
; AVX512F-NEXT: vpand %ymm4, %ymm5, %ymm5
|
||||
; AVX512F-NEXT: vpaddb %ymm8, %ymm8, %ymm8
|
||||
; AVX512F-NEXT: vpblendvb %ymm8, %ymm5, %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} xmm5 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512F-NEXT: vpandn %xmm5, %xmm2, %xmm6
|
||||
; AVX512F-NEXT: vpmovzxbq {{.*#+}} xmm6 = xmm6[0],zero,zero,zero,zero,zero,zero,zero,xmm6[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512F-NEXT: vpsrlw %xmm6, %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpand %ymm4, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpsrlw $4, %ymm1, %ymm5
|
||||
; AVX512F-NEXT: vpand %ymm6, %ymm5, %ymm5
|
||||
; AVX512F-NEXT: vpsllw $5, %ymm7, %ymm6
|
||||
; AVX512F-NEXT: vpblendvb %ymm6, %ymm5, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpsrlw $2, %ymm1, %ymm5
|
||||
; AVX512F-NEXT: vpand %ymm5, %ymm9, %ymm5
|
||||
; AVX512F-NEXT: vpaddb %ymm6, %ymm6, %ymm6
|
||||
; AVX512F-NEXT: vpblendvb %ymm6, %ymm5, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpsrlw $1, %ymm1, %ymm5
|
||||
; AVX512F-NEXT: vpand %ymm4, %ymm5, %ymm4
|
||||
; AVX512F-NEXT: vpaddb %ymm6, %ymm6, %ymm5
|
||||
; AVX512F-NEXT: vpblendvb %ymm5, %ymm4, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpsrlw %xmm6, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm3, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpand %xmm5, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm0, %ymm3
|
||||
; AVX512F-NEXT: vpsllw %xmm2, %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm3, %zmm0, %zmm3
|
||||
; AVX512F-NEXT: vpcmpeqd %xmm0, %xmm0, %xmm0
|
||||
; AVX512F-NEXT: vpsllw %xmm2, %xmm0, %xmm0
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm3, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vpcmpeqd %xmm3, %xmm3, %xmm3
|
||||
; AVX512F-NEXT: vpsllw %xmm2, %xmm3, %xmm2
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm2, %zmm2, %zmm2
|
||||
; AVX512F-NEXT: vpandq %zmm2, %zmm0, %zmm2
|
||||
; AVX512F-NEXT: vpsrlw %xmm6, %xmm3, %xmm0
|
||||
; AVX512F-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm0, %ymm0
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm0, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vpternlogq $236, %zmm3, %zmm1, %zmm0
|
||||
; AVX512F-NEXT: vpternlogq $234, %zmm2, %zmm1, %zmm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v64i8:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm2, %zmm2, %zmm2
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm1, %ymm3
|
||||
; AVX512VL-NEXT: vpsrlw $1, %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} ymm4 = [127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127]
|
||||
; AVX512VL-NEXT: vpand %ymm4, %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vpsrlw $4, %ymm3, %ymm5
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} ymm6 = [15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15]
|
||||
; AVX512VL-NEXT: vpand %ymm6, %ymm5, %ymm5
|
||||
; AVX512VL-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm7
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm7, %ymm8
|
||||
; AVX512VL-NEXT: vpsllw $5, %ymm8, %ymm8
|
||||
; AVX512VL-NEXT: vpblendvb %ymm8, %ymm5, %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vpsrlw $2, %ymm3, %ymm5
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} ymm9 = [63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63]
|
||||
; AVX512VL-NEXT: vpand %ymm5, %ymm9, %ymm5
|
||||
; AVX512VL-NEXT: vpaddb %ymm8, %ymm8, %ymm8
|
||||
; AVX512VL-NEXT: vpblendvb %ymm8, %ymm5, %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vpsrlw $1, %ymm3, %ymm5
|
||||
; AVX512VL-NEXT: vpand %ymm4, %ymm5, %ymm5
|
||||
; AVX512VL-NEXT: vpaddb %ymm8, %ymm8, %ymm8
|
||||
; AVX512VL-NEXT: vpblendvb %ymm8, %ymm5, %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm5 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VL-NEXT: vpandn %xmm5, %xmm2, %xmm6
|
||||
; AVX512VL-NEXT: vpmovzxbq {{.*#+}} xmm6 = xmm6[0],zero,zero,zero,zero,zero,zero,zero,xmm6[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VL-NEXT: vpsrlw %xmm6, %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vpsrlw $1, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpand %ymm4, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpsrlw $4, %ymm1, %ymm5
|
||||
; AVX512VL-NEXT: vpand %ymm6, %ymm5, %ymm5
|
||||
; AVX512VL-NEXT: vpsllw $5, %ymm7, %ymm6
|
||||
; AVX512VL-NEXT: vpblendvb %ymm6, %ymm5, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpsrlw $2, %ymm1, %ymm5
|
||||
; AVX512VL-NEXT: vpand %ymm5, %ymm9, %ymm5
|
||||
; AVX512VL-NEXT: vpaddb %ymm6, %ymm6, %ymm6
|
||||
; AVX512VL-NEXT: vpblendvb %ymm6, %ymm5, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpsrlw $1, %ymm1, %ymm5
|
||||
; AVX512VL-NEXT: vpand %ymm4, %ymm5, %ymm4
|
||||
; AVX512VL-NEXT: vpaddb %ymm6, %ymm6, %ymm5
|
||||
; AVX512VL-NEXT: vpblendvb %ymm5, %ymm4, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpsrlw %xmm6, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm3, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpand %xmm5, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm0, %ymm3
|
||||
; AVX512VL-NEXT: vpsllw %xmm2, %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm3, %zmm0, %zmm3
|
||||
; AVX512VL-NEXT: vpcmpeqd %xmm0, %xmm0, %xmm0
|
||||
; AVX512VL-NEXT: vpsllw %xmm2, %xmm0, %xmm0
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm3, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vpcmpeqd %xmm3, %xmm3, %xmm3
|
||||
; AVX512VL-NEXT: vpsllw %xmm2, %xmm3, %xmm2
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm2, %zmm2, %zmm2
|
||||
; AVX512VL-NEXT: vpandq %zmm2, %zmm0, %zmm2
|
||||
; AVX512VL-NEXT: vpsrlw %xmm6, %xmm3, %xmm0
|
||||
; AVX512VL-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm0, %ymm0
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm0, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vpternlogq $236, %zmm3, %zmm1, %zmm0
|
||||
; AVX512VL-NEXT: vpternlogq $234, %zmm2, %zmm1, %zmm0
|
||||
; AVX512VL-NEXT: retq
|
||||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v64i8:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastb %xmm2, %zmm2
|
||||
; AVX512BW-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsllw %xmm4, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX512BW-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX512BW-NEXT: vpbroadcastb %xmm4, %zmm4
|
||||
; AVX512BW-NEXT: vpandq %zmm4, %zmm0, %zmm4
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm0
|
||||
; AVX512BW-NEXT: vpmovzxbq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsrlw $1, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vmovdqa64 {{.*#+}} zmm3 = [127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127]
|
||||
; AVX512BW-NEXT: vpandq %zmm3, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpsrlw $4, %zmm1, %zmm4
|
||||
; AVX512BW-NEXT: vpandq {{.*}}(%rip), %zmm4, %zmm4
|
||||
; AVX512BW-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm5
|
||||
; AVX512BW-NEXT: vpsllw $5, %zmm5, %zmm5
|
||||
; AVX512BW-NEXT: vpmovb2m %zmm5, %k1
|
||||
; AVX512BW-NEXT: vmovdqu8 %zmm4, %zmm1 {%k1}
|
||||
; AVX512BW-NEXT: vpsrlw $2, %zmm1, %zmm4
|
||||
; AVX512BW-NEXT: vpandq {{.*}}(%rip), %zmm4, %zmm4
|
||||
; AVX512BW-NEXT: vpaddb %zmm5, %zmm5, %zmm5
|
||||
; AVX512BW-NEXT: vpmovb2m %zmm5, %k1
|
||||
; AVX512BW-NEXT: vmovdqu8 %zmm4, %zmm1 {%k1}
|
||||
; AVX512BW-NEXT: vpsrlw $1, %zmm1, %zmm4
|
||||
; AVX512BW-NEXT: vpandq %zmm3, %zmm4, %zmm3
|
||||
; AVX512BW-NEXT: vpaddb %zmm5, %zmm5, %zmm4
|
||||
; AVX512BW-NEXT: vpmovb2m %zmm4, %k1
|
||||
; AVX512BW-NEXT: vmovdqu8 %zmm3, %zmm1 {%k1}
|
||||
; AVX512BW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsllw %xmm2, %zmm0, %zmm3
|
||||
; AVX512BW-NEXT: vpcmpeqd %xmm0, %xmm0, %xmm0
|
||||
; AVX512BW-NEXT: vpsllw %xmm2, %xmm0, %xmm0
|
||||
; AVX512BW-NEXT: vpandq {{.*}}(%rip), %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpsrlw %xmm0, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpsrlw %xmm0, %xmm5, %xmm0
|
||||
; AVX512BW-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||
; AVX512BW-NEXT: vpbroadcastb %xmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpternlogq $236, %zmm3, %zmm1, %zmm0
|
||||
; AVX512BW-NEXT: vpternlogq $236, %zmm1, %zmm4, %zmm0
|
||||
; AVX512BW-NEXT: retq
|
||||
;
|
||||
; AVX512VBMI2-LABEL: splatvar_funnnel_v64i8:
|
||||
; AVX512VBMI2: # %bb.0:
|
||||
; AVX512VBMI2-NEXT: vpbroadcastb %xmm2, %zmm2
|
||||
; AVX512VBMI2-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VBMI2-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VBMI2-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VBMI2-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VBMI2-NEXT: vpsllw %xmm4, %zmm0, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX512VBMI2-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX512VBMI2-NEXT: vpbroadcastb %xmm4, %zmm4
|
||||
; AVX512VBMI2-NEXT: vpandq %zmm4, %zmm0, %zmm4
|
||||
; AVX512VBMI2-NEXT: vpandn %xmm3, %xmm2, %xmm0
|
||||
; AVX512VBMI2-NEXT: vpmovzxbq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VBMI2-NEXT: vpsrlw $1, %zmm1, %zmm1
|
||||
; AVX512VBMI2-NEXT: vmovdqa64 {{.*#+}} zmm3 = [127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127]
|
||||
; AVX512VBMI2-NEXT: vpandq %zmm3, %zmm1, %zmm1
|
||||
; AVX512VBMI2-NEXT: vpsrlw $4, %zmm1, %zmm4
|
||||
; AVX512VBMI2-NEXT: vpandq {{.*}}(%rip), %zmm4, %zmm4
|
||||
; AVX512VBMI2-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm5
|
||||
; AVX512VBMI2-NEXT: vpsllw $5, %zmm5, %zmm5
|
||||
; AVX512VBMI2-NEXT: vpmovb2m %zmm5, %k1
|
||||
; AVX512VBMI2-NEXT: vmovdqu8 %zmm4, %zmm1 {%k1}
|
||||
; AVX512VBMI2-NEXT: vpsrlw $2, %zmm1, %zmm4
|
||||
; AVX512VBMI2-NEXT: vpandq {{.*}}(%rip), %zmm4, %zmm4
|
||||
; AVX512VBMI2-NEXT: vpaddb %zmm5, %zmm5, %zmm5
|
||||
; AVX512VBMI2-NEXT: vpmovb2m %zmm5, %k1
|
||||
; AVX512VBMI2-NEXT: vmovdqu8 %zmm4, %zmm1 {%k1}
|
||||
; AVX512VBMI2-NEXT: vpsrlw $1, %zmm1, %zmm4
|
||||
; AVX512VBMI2-NEXT: vpandq %zmm3, %zmm4, %zmm3
|
||||
; AVX512VBMI2-NEXT: vpaddb %zmm5, %zmm5, %zmm4
|
||||
; AVX512VBMI2-NEXT: vpmovb2m %zmm4, %k1
|
||||
; AVX512VBMI2-NEXT: vmovdqu8 %zmm3, %zmm1 {%k1}
|
||||
; AVX512VBMI2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VBMI2-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VBMI2-NEXT: vpsllw %xmm2, %zmm0, %zmm3
|
||||
; AVX512VBMI2-NEXT: vpcmpeqd %xmm0, %xmm0, %xmm0
|
||||
; AVX512VBMI2-NEXT: vpsllw %xmm2, %xmm0, %xmm0
|
||||
; AVX512VBMI2-NEXT: vpandq {{.*}}(%rip), %zmm1, %zmm1
|
||||
; AVX512VBMI2-NEXT: vpsrlw %xmm0, %zmm1, %zmm1
|
||||
; AVX512VBMI2-NEXT: vpsrlw %xmm0, %xmm5, %xmm0
|
||||
; AVX512VBMI2-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||
; AVX512VBMI2-NEXT: vpbroadcastb %xmm0, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpternlogq $236, %zmm3, %zmm1, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpternlogq $236, %zmm1, %zmm4, %zmm0
|
||||
; AVX512VBMI2-NEXT: retq
|
||||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v64i8:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastb %xmm2, %zmm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsllw %xmm4, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX512VLBW-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX512VLBW-NEXT: vpbroadcastb %xmm4, %zmm4
|
||||
; AVX512VLBW-NEXT: vpandq %zmm4, %zmm0, %zmm4
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm0
|
||||
; AVX512VLBW-NEXT: vpmovzxbq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsrlw $1, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vmovdqa64 {{.*#+}} zmm3 = [127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127]
|
||||
; AVX512VLBW-NEXT: vpandq %zmm3, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpsrlw $4, %zmm1, %zmm4
|
||||
; AVX512VLBW-NEXT: vpandq {{.*}}(%rip), %zmm4, %zmm4
|
||||
; AVX512VLBW-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm5
|
||||
; AVX512VLBW-NEXT: vpsllw $5, %zmm5, %zmm5
|
||||
; AVX512VLBW-NEXT: vpmovb2m %zmm5, %k1
|
||||
; AVX512VLBW-NEXT: vmovdqu8 %zmm4, %zmm1 {%k1}
|
||||
; AVX512VLBW-NEXT: vpsrlw $2, %zmm1, %zmm4
|
||||
; AVX512VLBW-NEXT: vpandq {{.*}}(%rip), %zmm4, %zmm4
|
||||
; AVX512VLBW-NEXT: vpaddb %zmm5, %zmm5, %zmm5
|
||||
; AVX512VLBW-NEXT: vpmovb2m %zmm5, %k1
|
||||
; AVX512VLBW-NEXT: vmovdqu8 %zmm4, %zmm1 {%k1}
|
||||
; AVX512VLBW-NEXT: vpsrlw $1, %zmm1, %zmm4
|
||||
; AVX512VLBW-NEXT: vpandq %zmm3, %zmm4, %zmm3
|
||||
; AVX512VLBW-NEXT: vpaddb %zmm5, %zmm5, %zmm4
|
||||
; AVX512VLBW-NEXT: vpmovb2m %zmm4, %k1
|
||||
; AVX512VLBW-NEXT: vmovdqu8 %zmm3, %zmm1 {%k1}
|
||||
; AVX512VLBW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsllw %xmm2, %zmm0, %zmm3
|
||||
; AVX512VLBW-NEXT: vpcmpeqd %xmm0, %xmm0, %xmm0
|
||||
; AVX512VLBW-NEXT: vpsllw %xmm2, %xmm0, %xmm0
|
||||
; AVX512VLBW-NEXT: vpandq {{.*}}(%rip), %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpsrlw %xmm0, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpsrlw %xmm0, %xmm5, %xmm0
|
||||
; AVX512VLBW-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||
; AVX512VLBW-NEXT: vpbroadcastb %xmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpternlogq $236, %zmm3, %zmm1, %zmm0
|
||||
; AVX512VLBW-NEXT: vpternlogq $236, %zmm1, %zmm4, %zmm0
|
||||
; AVX512VLBW-NEXT: retq
|
||||
;
|
||||
; AVX512VLVBMI2-LABEL: splatvar_funnnel_v64i8:
|
||||
; AVX512VLVBMI2: # %bb.0:
|
||||
; AVX512VLVBMI2-NEXT: vpbroadcastb %xmm2, %zmm2
|
||||
; AVX512VLVBMI2-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VLVBMI2-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VLVBMI2-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLVBMI2-NEXT: vpsllw %xmm4, %zmm0, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX512VLVBMI2-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX512VLVBMI2-NEXT: vpbroadcastb %xmm4, %zmm4
|
||||
; AVX512VLVBMI2-NEXT: vpandq %zmm4, %zmm0, %zmm4
|
||||
; AVX512VLVBMI2-NEXT: vpandn %xmm3, %xmm2, %xmm0
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw $1, %zmm1, %zmm1
|
||||
; AVX512VLVBMI2-NEXT: vmovdqa64 {{.*#+}} zmm3 = [127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127]
|
||||
; AVX512VLVBMI2-NEXT: vpandq %zmm3, %zmm1, %zmm1
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw $4, %zmm1, %zmm4
|
||||
; AVX512VLVBMI2-NEXT: vpandq {{.*}}(%rip), %zmm4, %zmm4
|
||||
; AVX512VLVBMI2-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm5
|
||||
; AVX512VLVBMI2-NEXT: vpsllw $5, %zmm5, %zmm5
|
||||
; AVX512VLVBMI2-NEXT: vpmovb2m %zmm5, %k1
|
||||
; AVX512VLVBMI2-NEXT: vmovdqu8 %zmm4, %zmm1 {%k1}
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw $2, %zmm1, %zmm4
|
||||
; AVX512VLVBMI2-NEXT: vpandq {{.*}}(%rip), %zmm4, %zmm4
|
||||
; AVX512VLVBMI2-NEXT: vpaddb %zmm5, %zmm5, %zmm5
|
||||
; AVX512VLVBMI2-NEXT: vpmovb2m %zmm5, %k1
|
||||
; AVX512VLVBMI2-NEXT: vmovdqu8 %zmm4, %zmm1 {%k1}
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw $1, %zmm1, %zmm4
|
||||
; AVX512VLVBMI2-NEXT: vpandq %zmm3, %zmm4, %zmm3
|
||||
; AVX512VLVBMI2-NEXT: vpaddb %zmm5, %zmm5, %zmm4
|
||||
; AVX512VLVBMI2-NEXT: vpmovb2m %zmm4, %k1
|
||||
; AVX512VLVBMI2-NEXT: vmovdqu8 %zmm3, %zmm1 {%k1}
|
||||
; AVX512VLVBMI2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLVBMI2-NEXT: vpsllw %xmm2, %zmm0, %zmm3
|
||||
; AVX512VLVBMI2-NEXT: vpcmpeqd %xmm0, %xmm0, %xmm0
|
||||
; AVX512VLVBMI2-NEXT: vpsllw %xmm2, %xmm0, %xmm0
|
||||
; AVX512VLVBMI2-NEXT: vpandq {{.*}}(%rip), %zmm1, %zmm1
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw %xmm0, %zmm1, %zmm1
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw %xmm0, %xmm5, %xmm0
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||
; AVX512VLVBMI2-NEXT: vpbroadcastb %xmm0, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpternlogq $236, %zmm3, %zmm1, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpternlogq $236, %zmm1, %zmm4, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: retq
|
||||
%splat = shufflevector <64 x i8> %amt, <64 x i8> undef, <64 x i32> zeroinitializer
|
||||
%res = call <64 x i8> @llvm.fshl.v64i8(<64 x i8> %x, <64 x i8> %y, <64 x i8> %splat)
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -810,74 +810,63 @@ define <32 x i8> @var_funnnel_v32i8(<32 x i8> %x, <32 x i8> %y, <32 x i8> %amt)
|
|||
define <4 x i64> @splatvar_funnnel_v4i64(<4 x i64> %x, <4 x i64> %y, <4 x i64> %amt) nounwind {
|
||||
; AVX1-LABEL: splatvar_funnnel_v4i64:
|
||||
; AVX1: # %bb.0:
|
||||
; AVX1-NEXT: vpshufd {{.*#+}} xmm3 = xmm2[0,1,0,1]
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm3, %ymm3
|
||||
; AVX1-NEXT: vandnps {{.*}}(%rip), %ymm3, %ymm3
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm3, %xmm4
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm5
|
||||
; AVX1-NEXT: vpsllq $1, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpsllq %xmm4, %xmm5, %xmm6
|
||||
; AVX1-NEXT: vpshufd {{.*#+}} xmm4 = xmm4[2,3,2,3]
|
||||
; AVX1-NEXT: vpsllq %xmm4, %xmm5, %xmm4
|
||||
; AVX1-NEXT: vpblendw {{.*#+}} xmm4 = xmm6[0,1,2,3],xmm4[4,5,6,7]
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX1-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm5
|
||||
; AVX1-NEXT: vpsrlq %xmm4, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpsrlq %xmm4, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm5, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; AVX1-NEXT: vpsllq $1, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsllq %xmm2, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsllq $1, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vpsllq %xmm3, %xmm0, %xmm5
|
||||
; AVX1-NEXT: vpshufd {{.*#+}} xmm3 = xmm3[2,3,2,3]
|
||||
; AVX1-NEXT: vpsllq %xmm3, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vpblendw {{.*#+}} xmm0 = xmm5[0,1,2,3],xmm0[4,5,6,7]
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm4, %ymm0, %ymm0
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm3
|
||||
; AVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpsrlq %xmm2, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsrlq %xmm2, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vpsllq %xmm2, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm0, %ymm0
|
||||
; AVX1-NEXT: vorps %ymm1, %ymm0, %ymm0
|
||||
; AVX1-NEXT: retq
|
||||
;
|
||||
; AVX2-LABEL: splatvar_funnnel_v4i64:
|
||||
; AVX2: # %bb.0:
|
||||
; AVX2-NEXT: vpbroadcastq %xmm2, %ymm3
|
||||
; AVX2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpsrlq %xmm2, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpbroadcastq {{.*#+}} ymm2 = [63,63,63,63]
|
||||
; AVX2-NEXT: vpandn %ymm2, %ymm3, %ymm2
|
||||
; AVX2-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX2-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX2-NEXT: vpsrlq %xmm4, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpsllq $1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpsllvq %ymm2, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512F-LABEL: splatvar_funnnel_v4i64:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastq %xmm2, %ymm3
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpsrlq %xmm2, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpbroadcastq {{.*#+}} ymm2 = [63,63,63,63]
|
||||
; AVX512F-NEXT: vpandn %ymm2, %ymm3, %ymm2
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpsrlq %xmm4, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpsllq $1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpsllvq %ymm2, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v4i64:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastq %xmm2, %ymm3
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpsrlq %xmm2, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpsrlq %xmm4, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpsllq $1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpandnq {{.*}}(%rip){1to4}, %ymm3, %ymm2
|
||||
; AVX512VL-NEXT: vpsllvq %ymm2, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v4i64:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastq %xmm2, %ymm3
|
||||
; AVX512BW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpsrlq %xmm2, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpbroadcastq {{.*#+}} ymm2 = [63,63,63,63]
|
||||
; AVX512BW-NEXT: vpandn %ymm2, %ymm3, %ymm2
|
||||
; AVX512BW-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpsrlq %xmm4, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpsllq $1, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: vpsllvq %ymm2, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: retq
|
||||
;
|
||||
|
@ -892,12 +881,12 @@ define <4 x i64> @splatvar_funnnel_v4i64(<4 x i64> %x, <4 x i64> %y, <4 x i64> %
|
|||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v4i64:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastq %xmm2, %ymm3
|
||||
; AVX512VLBW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpsrlq %xmm2, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpsrlq %xmm4, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpsllq $1, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vpandnq {{.*}}(%rip){1to4}, %ymm3, %ymm2
|
||||
; AVX512VLBW-NEXT: vpsllvq %ymm2, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: retq
|
||||
;
|
||||
|
@ -910,33 +899,30 @@ define <4 x i64> @splatvar_funnnel_v4i64(<4 x i64> %x, <4 x i64> %y, <4 x i64> %
|
|||
;
|
||||
; XOPAVX1-LABEL: splatvar_funnnel_v4i64:
|
||||
; XOPAVX1: # %bb.0:
|
||||
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm3 = xmm2[0,1,0,1]
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm3, %ymm3
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm1, %xmm4
|
||||
; XOPAVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vpsrlq %xmm2, %xmm4, %xmm4
|
||||
; XOPAVX1-NEXT: vpsrlq %xmm2, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm4, %ymm1, %ymm1
|
||||
; XOPAVX1-NEXT: vandnps {{.*}}(%rip), %ymm3, %ymm2
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm2, %xmm3
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm4
|
||||
; XOPAVX1-NEXT: vpsllq $1, %xmm4, %xmm4
|
||||
; XOPAVX1-NEXT: vpshlq %xmm3, %xmm4, %xmm3
|
||||
; XOPAVX1-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; XOPAVX1-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm1, %xmm5
|
||||
; XOPAVX1-NEXT: vpsrlq %xmm4, %xmm5, %xmm5
|
||||
; XOPAVX1-NEXT: vpsrlq %xmm4, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm5, %ymm1, %ymm1
|
||||
; XOPAVX1-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; XOPAVX1-NEXT: vpsllq $1, %xmm3, %xmm3
|
||||
; XOPAVX1-NEXT: vpsllq %xmm2, %xmm3, %xmm3
|
||||
; XOPAVX1-NEXT: vpsllq $1, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vpshlq %xmm2, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vpsllq %xmm2, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: vorps %ymm1, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: retq
|
||||
;
|
||||
; XOPAVX2-LABEL: splatvar_funnnel_v4i64:
|
||||
; XOPAVX2: # %bb.0:
|
||||
; XOPAVX2-NEXT: vpbroadcastq %xmm2, %ymm3
|
||||
; XOPAVX2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpsrlq %xmm2, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpbroadcastq {{.*#+}} ymm2 = [63,63,63,63]
|
||||
; XOPAVX2-NEXT: vpandn %ymm2, %ymm3, %ymm2
|
||||
; XOPAVX2-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; XOPAVX2-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; XOPAVX2-NEXT: vpsrlq %xmm4, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpsllq $1, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpsllvq %ymm2, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpsllq %xmm2, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: retq
|
||||
%splat = shufflevector <4 x i64> %amt, <4 x i64> undef, <4 x i32> zeroinitializer
|
||||
|
@ -947,81 +933,78 @@ define <4 x i64> @splatvar_funnnel_v4i64(<4 x i64> %x, <4 x i64> %y, <4 x i64> %
|
|||
define <8 x i32> @splatvar_funnnel_v8i32(<8 x i32> %x, <8 x i32> %y, <8 x i32> %amt) nounwind {
|
||||
; AVX1-LABEL: splatvar_funnnel_v8i32:
|
||||
; AVX1: # %bb.0:
|
||||
; AVX1-NEXT: vpshufd {{.*#+}} xmm3 = xmm2[0,0,0,0]
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm3, %ymm3
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm4
|
||||
; AVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpshufd {{.*#+}} xmm2 = xmm2[0,0,0,0]
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX1-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX1-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm5
|
||||
; AVX1-NEXT: vpsrld %xmm4, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpsrld %xmm4, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm5, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX1-NEXT: vpsrld %xmm2, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpsrld %xmm2, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm4, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vandnps {{.*}}(%rip), %ymm3, %ymm2
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm2, %xmm3
|
||||
; AVX1-NEXT: vpslld $23, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm4 = [1065353216,1065353216,1065353216,1065353216]
|
||||
; AVX1-NEXT: vpaddd %xmm4, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vcvttps2dq %xmm3, %xmm3
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm5
|
||||
; AVX1-NEXT: vpslld $1, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpmulld %xmm3, %xmm5, %xmm3
|
||||
; AVX1-NEXT: vpslld $23, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpaddd %xmm4, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vcvttps2dq %xmm2, %xmm2
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; AVX1-NEXT: vpslld $1, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpslld %xmm2, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpslld $1, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vpmulld %xmm2, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vpslld %xmm2, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm0, %ymm0
|
||||
; AVX1-NEXT: vorps %ymm1, %ymm0, %ymm0
|
||||
; AVX1-NEXT: retq
|
||||
;
|
||||
; AVX2-LABEL: splatvar_funnnel_v8i32:
|
||||
; AVX2: # %bb.0:
|
||||
; AVX2-NEXT: vpbroadcastd %xmm2, %ymm2
|
||||
; AVX2-NEXT: vpbroadcastd {{.*#+}} ymm3 = [31,31,31,31,31,31,31,31]
|
||||
; AVX2-NEXT: vpandn %ymm3, %ymm2, %ymm4
|
||||
; AVX2-NEXT: vpslld $1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpsllvd %ymm4, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX2-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX2-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX2-NEXT: vpsrld %xmm4, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX2-NEXT: vpsrld %xmm2, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpslld $1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpslld %xmm2, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512F-LABEL: splatvar_funnnel_v8i32:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastd %xmm2, %ymm2
|
||||
; AVX512F-NEXT: vpbroadcastd {{.*#+}} ymm3 = [31,31,31,31,31,31,31,31]
|
||||
; AVX512F-NEXT: vpandn %ymm3, %ymm2, %ymm4
|
||||
; AVX512F-NEXT: vpslld $1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpsllvd %ymm4, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512F-NEXT: vpsrld %xmm4, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512F-NEXT: vpsrld %xmm2, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpslld $1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpslld %xmm2, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v8i32:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastd %xmm2, %ymm2
|
||||
; AVX512VL-NEXT: vpbroadcastd {{.*#+}} ymm3 = [31,31,31,31,31,31,31,31]
|
||||
; AVX512VL-NEXT: vpandn %ymm3, %ymm2, %ymm4
|
||||
; AVX512VL-NEXT: vpslld $1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpsllvd %ymm4, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512VL-NEXT: vpsrld %xmm4, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512VL-NEXT: vpsrld %xmm2, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpslld $1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpslld %xmm2, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v8i32:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastd %xmm2, %ymm2
|
||||
; AVX512BW-NEXT: vpbroadcastd {{.*#+}} ymm3 = [31,31,31,31,31,31,31,31]
|
||||
; AVX512BW-NEXT: vpandn %ymm3, %ymm2, %ymm4
|
||||
; AVX512BW-NEXT: vpslld $1, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: vpsllvd %ymm4, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512BW-NEXT: vpsrld %xmm4, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512BW-NEXT: vpsrld %xmm2, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpslld $1, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: vpslld %xmm2, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: retq
|
||||
;
|
||||
|
@ -1036,14 +1019,15 @@ define <8 x i32> @splatvar_funnnel_v8i32(<8 x i32> %x, <8 x i32> %y, <8 x i32> %
|
|||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v8i32:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastd %xmm2, %ymm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastd {{.*#+}} ymm3 = [31,31,31,31,31,31,31,31]
|
||||
; AVX512VLBW-NEXT: vpandn %ymm3, %ymm2, %ymm4
|
||||
; AVX512VLBW-NEXT: vpslld $1, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vpsllvd %ymm4, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512VLBW-NEXT: vpsrld %xmm4, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512VLBW-NEXT: vpsrld %xmm2, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpslld $1, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vpslld %xmm2, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: retq
|
||||
;
|
||||
|
@ -1056,35 +1040,36 @@ define <8 x i32> @splatvar_funnnel_v8i32(<8 x i32> %x, <8 x i32> %y, <8 x i32> %
|
|||
;
|
||||
; XOPAVX1-LABEL: splatvar_funnnel_v8i32:
|
||||
; XOPAVX1: # %bb.0:
|
||||
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm3 = xmm2[0,0,0,0]
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm3, %ymm3
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm1, %xmm4
|
||||
; XOPAVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm2 = xmm2[0,0,0,0]
|
||||
; XOPAVX1-NEXT: vmovdqa {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; XOPAVX1-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; XOPAVX1-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm1, %xmm5
|
||||
; XOPAVX1-NEXT: vpsrld %xmm4, %xmm5, %xmm5
|
||||
; XOPAVX1-NEXT: vpsrld %xmm4, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm5, %ymm1, %ymm1
|
||||
; XOPAVX1-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; XOPAVX1-NEXT: vpsrld %xmm2, %xmm4, %xmm4
|
||||
; XOPAVX1-NEXT: vpsrld %xmm2, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm4, %ymm1, %ymm1
|
||||
; XOPAVX1-NEXT: vandnps {{.*}}(%rip), %ymm3, %ymm2
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm2, %xmm3
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm4
|
||||
; XOPAVX1-NEXT: vpslld $1, %xmm4, %xmm4
|
||||
; XOPAVX1-NEXT: vpshld %xmm3, %xmm4, %xmm3
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; XOPAVX1-NEXT: vpslld $1, %xmm3, %xmm3
|
||||
; XOPAVX1-NEXT: vpslld %xmm2, %xmm3, %xmm3
|
||||
; XOPAVX1-NEXT: vpslld $1, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vpshld %xmm2, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vpslld %xmm2, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: vorps %ymm1, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: retq
|
||||
;
|
||||
; XOPAVX2-LABEL: splatvar_funnnel_v8i32:
|
||||
; XOPAVX2: # %bb.0:
|
||||
; XOPAVX2-NEXT: vpbroadcastd %xmm2, %ymm2
|
||||
; XOPAVX2-NEXT: vpbroadcastd {{.*#+}} ymm3 = [31,31,31,31,31,31,31,31]
|
||||
; XOPAVX2-NEXT: vpandn %ymm3, %ymm2, %ymm4
|
||||
; XOPAVX2-NEXT: vpslld $1, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpsllvd %ymm4, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; XOPAVX2-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; XOPAVX2-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; XOPAVX2-NEXT: vpsrld %xmm4, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; XOPAVX2-NEXT: vpsrld %xmm2, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpslld $1, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpslld %xmm2, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: retq
|
||||
%splat = shufflevector <8 x i32> %amt, <8 x i32> undef, <8 x i32> zeroinitializer
|
||||
|
@ -1096,104 +1081,78 @@ define <16 x i16> @splatvar_funnnel_v16i16(<16 x i16> %x, <16 x i16> %y, <16 x i
|
|||
; AVX1-LABEL: splatvar_funnnel_v16i16:
|
||||
; AVX1: # %bb.0:
|
||||
; AVX1-NEXT: vpshuflw {{.*#+}} xmm2 = xmm2[0,0,0,0,4,5,6,7]
|
||||
; AVX1-NEXT: vpshufd {{.*#+}} xmm3 = xmm2[0,0,0,0]
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm3, %ymm3
|
||||
; AVX1-NEXT: vandnps {{.*}}(%rip), %ymm3, %ymm3
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm3, %xmm4
|
||||
; AVX1-NEXT: vpunpckhwd {{.*#+}} xmm5 = xmm4[4,4,5,5,6,6,7,7]
|
||||
; AVX1-NEXT: vpslld $23, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm6 = [1065353216,1065353216,1065353216,1065353216]
|
||||
; AVX1-NEXT: vpaddd %xmm6, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vcvttps2dq %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpmovzxwd {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero,xmm4[2],zero,xmm4[3],zero
|
||||
; AVX1-NEXT: vpslld $23, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpaddd %xmm6, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vcvttps2dq %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpackusdw %xmm5, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm5
|
||||
; AVX1-NEXT: vpsllw $1, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpmullw %xmm4, %xmm5, %xmm4
|
||||
; AVX1-NEXT: vpunpckhwd {{.*#+}} xmm5 = xmm3[4,4,5,5,6,6,7,7]
|
||||
; AVX1-NEXT: vpslld $23, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpaddd %xmm6, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vcvttps2dq %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpmovzxwd {{.*#+}} xmm3 = xmm3[0],zero,xmm3[1],zero,xmm3[2],zero,xmm3[3],zero
|
||||
; AVX1-NEXT: vpslld $23, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpaddd %xmm6, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vcvttps2dq %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpackusdw %xmm5, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsllw $1, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vpmullw %xmm3, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm4, %ymm0, %ymm0
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm3
|
||||
; AVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpshufd {{.*#+}} xmm2 = xmm2[0,0,0,0]
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX1-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX1-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm5
|
||||
; AVX1-NEXT: vpsrlw %xmm4, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpsrlw %xmm4, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm5, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX1-NEXT: vpsrlw %xmm2, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsrlw %xmm2, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; AVX1-NEXT: vpsllw $1, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsllw %xmm2, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsllw $1, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vpsllw %xmm2, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm0, %ymm0
|
||||
; AVX1-NEXT: vorps %ymm1, %ymm0, %ymm0
|
||||
; AVX1-NEXT: retq
|
||||
;
|
||||
; AVX2-LABEL: splatvar_funnnel_v16i16:
|
||||
; AVX2: # %bb.0:
|
||||
; AVX2-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; AVX2-NEXT: vpsllw $1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpxor %xmm3, %xmm3, %xmm3
|
||||
; AVX2-NEXT: vpunpckhwd {{.*#+}} ymm4 = ymm3[4],ymm0[4],ymm3[5],ymm0[5],ymm3[6],ymm0[6],ymm3[7],ymm0[7],ymm3[12],ymm0[12],ymm3[13],ymm0[13],ymm3[14],ymm0[14],ymm3[15],ymm0[15]
|
||||
; AVX2-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm5
|
||||
; AVX2-NEXT: vpunpckhwd {{.*#+}} ymm6 = ymm5[4],ymm3[4],ymm5[5],ymm3[5],ymm5[6],ymm3[6],ymm5[7],ymm3[7],ymm5[12],ymm3[12],ymm5[13],ymm3[13],ymm5[14],ymm3[14],ymm5[15],ymm3[15]
|
||||
; AVX2-NEXT: vpsllvd %ymm6, %ymm4, %ymm4
|
||||
; AVX2-NEXT: vpsrld $16, %ymm4, %ymm4
|
||||
; AVX2-NEXT: vpunpcklwd {{.*#+}} ymm0 = ymm3[0],ymm0[0],ymm3[1],ymm0[1],ymm3[2],ymm0[2],ymm3[3],ymm0[3],ymm3[8],ymm0[8],ymm3[9],ymm0[9],ymm3[10],ymm0[10],ymm3[11],ymm0[11]
|
||||
; AVX2-NEXT: vpunpcklwd {{.*#+}} ymm3 = ymm5[0],ymm3[0],ymm5[1],ymm3[1],ymm5[2],ymm3[2],ymm5[3],ymm3[3],ymm5[8],ymm3[8],ymm5[9],ymm3[9],ymm5[10],ymm3[10],ymm5[11],ymm3[11]
|
||||
; AVX2-NEXT: vpsllvd %ymm3, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpsrld $16, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpackusdw %ymm4, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX2-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX2-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX2-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX2-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX2-NEXT: vpsrlw %xmm2, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpsllw $1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512F-LABEL: splatvar_funnnel_v16i16:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm3
|
||||
; AVX512F-NEXT: vpmovzxwq {{.*#+}} xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero
|
||||
; AVX512F-NEXT: vpsrlw %xmm3, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512F-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512F-NEXT: vpsllw $1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpmovzxwd {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero
|
||||
; AVX512F-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm2
|
||||
; AVX512F-NEXT: vpmovzxwd {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero
|
||||
; AVX512F-NEXT: vpsllvd %zmm2, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vpmovdw %zmm0, %ymm0
|
||||
; AVX512F-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v16i16:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm3
|
||||
; AVX512VL-NEXT: vpmovzxwq {{.*#+}} xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero
|
||||
; AVX512VL-NEXT: vpsrlw %xmm3, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512VL-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512VL-NEXT: vpsllw $1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpmovzxwd {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero
|
||||
; AVX512VL-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm2
|
||||
; AVX512VL-NEXT: vpmovzxwd {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero
|
||||
; AVX512VL-NEXT: vpsllvd %zmm2, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vpmovdw %zmm0, %ymm0
|
||||
; AVX512VL-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v16i16:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; AVX512BW-NEXT: vpsllw $1, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm3
|
||||
; AVX512BW-NEXT: vpsllvw %zmm3, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsrlw %xmm2, %ymm1, %ymm1
|
||||
; AVX512BW-NEXT: vpsllw $1, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: retq
|
||||
;
|
||||
|
@ -1208,13 +1167,15 @@ define <16 x i16> @splatvar_funnnel_v16i16(<16 x i16> %x, <16 x i16> %y, <16 x i
|
|||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v16i16:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; AVX512VLBW-NEXT: vpsllw $1, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm3
|
||||
; AVX512VLBW-NEXT: vpsllvw %ymm3, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsrlw %xmm2, %ymm1, %ymm1
|
||||
; AVX512VLBW-NEXT: vpsllw $1, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: retq
|
||||
;
|
||||
|
@ -1228,38 +1189,36 @@ define <16 x i16> @splatvar_funnnel_v16i16(<16 x i16> %x, <16 x i16> %y, <16 x i
|
|||
; XOPAVX1-LABEL: splatvar_funnnel_v16i16:
|
||||
; XOPAVX1: # %bb.0:
|
||||
; XOPAVX1-NEXT: vpshuflw {{.*#+}} xmm2 = xmm2[0,0,0,0,4,5,6,7]
|
||||
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm3 = xmm2[0,0,0,0]
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm3, %ymm3
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm1, %xmm4
|
||||
; XOPAVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vpshufd {{.*#+}} xmm2 = xmm2[0,0,0,0]
|
||||
; XOPAVX1-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; XOPAVX1-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; XOPAVX1-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm1, %xmm5
|
||||
; XOPAVX1-NEXT: vpsrlw %xmm4, %xmm5, %xmm5
|
||||
; XOPAVX1-NEXT: vpsrlw %xmm4, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm5, %ymm1, %ymm1
|
||||
; XOPAVX1-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; XOPAVX1-NEXT: vpsrlw %xmm2, %xmm4, %xmm4
|
||||
; XOPAVX1-NEXT: vpsrlw %xmm2, %xmm1, %xmm1
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm4, %ymm1, %ymm1
|
||||
; XOPAVX1-NEXT: vandnps {{.*}}(%rip), %ymm3, %ymm2
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm2, %xmm3
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm4
|
||||
; XOPAVX1-NEXT: vpsllw $1, %xmm4, %xmm4
|
||||
; XOPAVX1-NEXT: vpshlw %xmm3, %xmm4, %xmm3
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; XOPAVX1-NEXT: vpsllw $1, %xmm3, %xmm3
|
||||
; XOPAVX1-NEXT: vpsllw %xmm2, %xmm3, %xmm3
|
||||
; XOPAVX1-NEXT: vpsllw $1, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vpshlw %xmm2, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vpsllw %xmm2, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm3, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: vorps %ymm1, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: retq
|
||||
;
|
||||
; XOPAVX2-LABEL: splatvar_funnnel_v16i16:
|
||||
; XOPAVX2: # %bb.0:
|
||||
; XOPAVX2-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; XOPAVX2-NEXT: vpsllw $1, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vextracti128 $1, %ymm0, %xmm3
|
||||
; XOPAVX2-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm4
|
||||
; XOPAVX2-NEXT: vextracti128 $1, %ymm4, %xmm5
|
||||
; XOPAVX2-NEXT: vpshlw %xmm5, %xmm3, %xmm3
|
||||
; XOPAVX2-NEXT: vpshlw %xmm4, %xmm0, %xmm0
|
||||
; XOPAVX2-NEXT: vinserti128 $1, %xmm3, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; XOPAVX2-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; XOPAVX2-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; XOPAVX2-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; XOPAVX2-NEXT: vpsrlw %xmm2, %ymm1, %ymm1
|
||||
; XOPAVX2-NEXT: vpsllw $1, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpor %ymm1, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: retq
|
||||
%splat = shufflevector <16 x i16> %amt, <16 x i16> undef, <16 x i32> zeroinitializer
|
||||
|
@ -1270,74 +1229,51 @@ define <16 x i16> @splatvar_funnnel_v16i16(<16 x i16> %x, <16 x i16> %y, <16 x i
|
|||
define <32 x i8> @splatvar_funnnel_v32i8(<32 x i8> %x, <32 x i8> %y, <32 x i8> %amt) nounwind {
|
||||
; AVX1-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX1: # %bb.0:
|
||||
; AVX1-NEXT: vpxor %xmm3, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpshufb %xmm3, %xmm2, %xmm3
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm3, %ymm3
|
||||
; AVX1-NEXT: vandnps {{.*}}(%rip), %ymm3, %ymm3
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm3, %xmm4
|
||||
; AVX1-NEXT: vpsllw $5, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm5
|
||||
; AVX1-NEXT: vpaddb %xmm5, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpsllw $4, %xmm5, %xmm6
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm8 = [240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240]
|
||||
; AVX1-NEXT: vpand %xmm6, %xmm8, %xmm6
|
||||
; AVX1-NEXT: vpblendvb %xmm4, %xmm6, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpsllw $2, %xmm5, %xmm6
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm7 = [252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252]
|
||||
; AVX1-NEXT: vpand %xmm7, %xmm6, %xmm6
|
||||
; AVX1-NEXT: vpaddb %xmm4, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpblendvb %xmm4, %xmm6, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpaddb %xmm5, %xmm5, %xmm6
|
||||
; AVX1-NEXT: vpaddb %xmm4, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpblendvb %xmm4, %xmm6, %xmm5, %xmm4
|
||||
; AVX1-NEXT: vpsllw $5, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpaddb %xmm0, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vpsllw $4, %xmm0, %xmm5
|
||||
; AVX1-NEXT: vpand %xmm5, %xmm8, %xmm5
|
||||
; AVX1-NEXT: vpblendvb %xmm3, %xmm5, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vpsllw $2, %xmm0, %xmm5
|
||||
; AVX1-NEXT: vpand %xmm7, %xmm5, %xmm5
|
||||
; AVX1-NEXT: vpaddb %xmm3, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpblendvb %xmm3, %xmm5, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vpaddb %xmm0, %xmm0, %xmm5
|
||||
; AVX1-NEXT: vpaddb %xmm3, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpblendvb %xmm3, %xmm5, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm4, %ymm0, %ymm0
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm3
|
||||
; AVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpxor %xmm8, %xmm8, %xmm8
|
||||
; AVX1-NEXT: vpshufb %xmm8, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vmovdqa {{.*#+}} xmm4 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX1-NEXT: vpand %xmm4, %xmm2, %xmm5
|
||||
; AVX1-NEXT: vpmovzxbq {{.*#+}} xmm5 = xmm5[0],zero,zero,zero,zero,zero,zero,zero,xmm5[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm1, %xmm6
|
||||
; AVX1-NEXT: vpsrlw %xmm5, %xmm6, %xmm6
|
||||
; AVX1-NEXT: vpcmpeqd %xmm7, %xmm7, %xmm7
|
||||
; AVX1-NEXT: vpsrlw %xmm5, %xmm7, %xmm3
|
||||
; AVX1-NEXT: vpshufb {{.*#+}} xmm3 = xmm3[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
|
||||
; AVX1-NEXT: vpand %xmm3, %xmm6, %xmm6
|
||||
; AVX1-NEXT: vpsrlw %xmm5, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpand %xmm3, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm6, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vpandn %xmm4, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX1-NEXT: vpsrlw %xmm2, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpcmpeqd %xmm4, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpsrlw %xmm2, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpshufb {{.*#+}} xmm4 = xmm4[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm3
|
||||
; AVX1-NEXT: vpaddb %xmm3, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsllw %xmm2, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsllw %xmm2, %xmm7, %xmm4
|
||||
; AVX1-NEXT: vpshufb %xmm8, %xmm4, %xmm4
|
||||
; AVX1-NEXT: vpand %xmm4, %xmm3, %xmm3
|
||||
; AVX1-NEXT: vpsrlw %xmm2, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpand %xmm4, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm1, %ymm1
|
||||
; AVX1-NEXT: vpaddb %xmm0, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vpsllw %xmm2, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vpand %xmm4, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vinsertf128 $1, %xmm3, %ymm0, %ymm0
|
||||
; AVX1-NEXT: vorps %ymm1, %ymm0, %ymm0
|
||||
; AVX1-NEXT: retq
|
||||
;
|
||||
; AVX2-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX2: # %bb.0:
|
||||
; AVX2-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX2-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX2-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX2-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX2-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX2-NEXT: vpaddb %ymm0, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpsllw $4, %ymm0, %ymm3
|
||||
; AVX2-NEXT: vpand {{.*}}(%rip), %ymm3, %ymm3
|
||||
; AVX2-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm4
|
||||
; AVX2-NEXT: vpsllw $5, %ymm4, %ymm4
|
||||
; AVX2-NEXT: vpblendvb %ymm4, %ymm3, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpsllw $2, %ymm0, %ymm3
|
||||
; AVX2-NEXT: vpand {{.*}}(%rip), %ymm3, %ymm3
|
||||
; AVX2-NEXT: vpaddb %ymm4, %ymm4, %ymm4
|
||||
; AVX2-NEXT: vpblendvb %ymm4, %ymm3, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpaddb %ymm0, %ymm0, %ymm3
|
||||
; AVX2-NEXT: vpaddb %ymm4, %ymm4, %ymm4
|
||||
; AVX2-NEXT: vpblendvb %ymm4, %ymm3, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpsllw %xmm4, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX2-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX2-NEXT: vpbroadcastb %xmm4, %ymm4
|
||||
; AVX2-NEXT: vpand %ymm4, %ymm0, %ymm0
|
||||
; AVX2-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX2-NEXT: vpsrlw %xmm2, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vpcmpeqd %xmm3, %xmm3, %xmm3
|
||||
; AVX2-NEXT: vpsrlw %xmm2, %xmm3, %xmm2
|
||||
; AVX2-NEXT: vpsrlw %xmm2, %xmm5, %xmm2
|
||||
; AVX2-NEXT: vpsrlw $8, %xmm2, %xmm2
|
||||
; AVX2-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX2-NEXT: vpand %ymm2, %ymm1, %ymm1
|
||||
|
@ -1346,25 +1282,20 @@ define <32 x i8> @splatvar_funnnel_v32i8(<32 x i8> %x, <32 x i8> %y, <32 x i8> %
|
|||
;
|
||||
; AVX512F-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512F-NEXT: vpaddb %ymm0, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpsllw $4, %ymm0, %ymm3
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm4
|
||||
; AVX512F-NEXT: vpsllw $5, %ymm4, %ymm4
|
||||
; AVX512F-NEXT: vpblendvb %ymm4, %ymm3, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpsllw $2, %ymm0, %ymm3
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vpaddb %ymm4, %ymm4, %ymm4
|
||||
; AVX512F-NEXT: vpblendvb %ymm4, %ymm3, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpaddb %ymm0, %ymm0, %ymm3
|
||||
; AVX512F-NEXT: vpaddb %ymm4, %ymm4, %ymm4
|
||||
; AVX512F-NEXT: vpblendvb %ymm4, %ymm3, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpsllw %xmm4, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX512F-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm4, %ymm4
|
||||
; AVX512F-NEXT: vpand %ymm4, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512F-NEXT: vpsrlw %xmm2, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vpcmpeqd %xmm3, %xmm3, %xmm3
|
||||
; AVX512F-NEXT: vpsrlw %xmm2, %xmm3, %xmm2
|
||||
; AVX512F-NEXT: vpsrlw %xmm2, %xmm5, %xmm2
|
||||
; AVX512F-NEXT: vpsrlw $8, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX512F-NEXT: vpand %ymm2, %ymm1, %ymm1
|
||||
|
@ -1373,90 +1304,89 @@ define <32 x i8> @splatvar_funnnel_v32i8(<32 x i8> %x, <32 x i8> %y, <32 x i8> %
|
|||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VL-NEXT: vpaddb %ymm0, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpsllw $4, %ymm0, %ymm3
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm4
|
||||
; AVX512VL-NEXT: vpsllw $5, %ymm4, %ymm4
|
||||
; AVX512VL-NEXT: vpblendvb %ymm4, %ymm3, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpsllw $2, %ymm0, %ymm3
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vpaddb %ymm4, %ymm4, %ymm4
|
||||
; AVX512VL-NEXT: vpblendvb %ymm4, %ymm3, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpaddb %ymm0, %ymm0, %ymm3
|
||||
; AVX512VL-NEXT: vpaddb %ymm4, %ymm4, %ymm4
|
||||
; AVX512VL-NEXT: vpblendvb %ymm4, %ymm3, %ymm0, %ymm3
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm0
|
||||
; AVX512VL-NEXT: vpsllw %xmm4, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX512VL-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm4, %ymm4
|
||||
; AVX512VL-NEXT: vpand %ymm4, %ymm0, %ymm4
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm0
|
||||
; AVX512VL-NEXT: vpmovzxbq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VL-NEXT: vpsrlw %xmm0, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vpcmpeqd %xmm2, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpsrlw %xmm0, %xmm2, %xmm0
|
||||
; AVX512VL-NEXT: vpsrlw %xmm0, %xmm5, %xmm0
|
||||
; AVX512VL-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm0, %ymm0
|
||||
; AVX512VL-NEXT: vpternlogq $236, %ymm1, %ymm3, %ymm0
|
||||
; AVX512VL-NEXT: vpternlogq $236, %ymm1, %ymm4, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastb %xmm2, %ymm3
|
||||
; AVX512BW-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512BW-NEXT: vpmovzxbw {{.*#+}} zmm1 = ymm1[0],zero,ymm1[1],zero,ymm1[2],zero,ymm1[3],zero,ymm1[4],zero,ymm1[5],zero,ymm1[6],zero,ymm1[7],zero,ymm1[8],zero,ymm1[9],zero,ymm1[10],zero,ymm1[11],zero,ymm1[12],zero,ymm1[13],zero,ymm1[14],zero,ymm1[15],zero,ymm1[16],zero,ymm1[17],zero,ymm1[18],zero,ymm1[19],zero,ymm1[20],zero,ymm1[21],zero,ymm1[22],zero,ymm1[23],zero,ymm1[24],zero,ymm1[25],zero,ymm1[26],zero,ymm1[27],zero,ymm1[28],zero,ymm1[29],zero,ymm1[30],zero,ymm1[31],zero
|
||||
; AVX512BW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpsrlw %xmm4, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsrlw %xmm2, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpaddb %ymm0, %ymm0, %ymm0
|
||||
; AVX512BW-NEXT: vpmovzxbw {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero,ymm0[16],zero,ymm0[17],zero,ymm0[18],zero,ymm0[19],zero,ymm0[20],zero,ymm0[21],zero,ymm0[22],zero,ymm0[23],zero,ymm0[24],zero,ymm0[25],zero,ymm0[26],zero,ymm0[27],zero,ymm0[28],zero,ymm0[29],zero,ymm0[30],zero,ymm0[31],zero
|
||||
; AVX512BW-NEXT: vpandn {{.*}}(%rip), %ymm3, %ymm2
|
||||
; AVX512BW-NEXT: vpmovzxbw {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero,ymm2[16],zero,ymm2[17],zero,ymm2[18],zero,ymm2[19],zero,ymm2[20],zero,ymm2[21],zero,ymm2[22],zero,ymm2[23],zero,ymm2[24],zero,ymm2[25],zero,ymm2[26],zero,ymm2[27],zero,ymm2[28],zero,ymm2[29],zero,ymm2[30],zero,ymm2[31],zero
|
||||
; AVX512BW-NEXT: vpsllvw %zmm2, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpmovwb %zmm0, %ymm0
|
||||
; AVX512BW-NEXT: retq
|
||||
;
|
||||
; AVX512VBMI2-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX512VBMI2: # %bb.0:
|
||||
; AVX512VBMI2-NEXT: vpbroadcastb %xmm2, %ymm3
|
||||
; AVX512VBMI2-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VBMI2-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VBMI2-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VBMI2-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VBMI2-NEXT: vpmovzxbw {{.*#+}} zmm1 = ymm1[0],zero,ymm1[1],zero,ymm1[2],zero,ymm1[3],zero,ymm1[4],zero,ymm1[5],zero,ymm1[6],zero,ymm1[7],zero,ymm1[8],zero,ymm1[9],zero,ymm1[10],zero,ymm1[11],zero,ymm1[12],zero,ymm1[13],zero,ymm1[14],zero,ymm1[15],zero,ymm1[16],zero,ymm1[17],zero,ymm1[18],zero,ymm1[19],zero,ymm1[20],zero,ymm1[21],zero,ymm1[22],zero,ymm1[23],zero,ymm1[24],zero,ymm1[25],zero,ymm1[26],zero,ymm1[27],zero,ymm1[28],zero,ymm1[29],zero,ymm1[30],zero,ymm1[31],zero
|
||||
; AVX512VBMI2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VBMI2-NEXT: vpsrlw %xmm4, %zmm1, %zmm1
|
||||
; AVX512VBMI2-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VBMI2-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VBMI2-NEXT: vpsrlw %xmm2, %zmm1, %zmm1
|
||||
; AVX512VBMI2-NEXT: vpaddb %ymm0, %ymm0, %ymm0
|
||||
; AVX512VBMI2-NEXT: vpmovzxbw {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero,ymm0[16],zero,ymm0[17],zero,ymm0[18],zero,ymm0[19],zero,ymm0[20],zero,ymm0[21],zero,ymm0[22],zero,ymm0[23],zero,ymm0[24],zero,ymm0[25],zero,ymm0[26],zero,ymm0[27],zero,ymm0[28],zero,ymm0[29],zero,ymm0[30],zero,ymm0[31],zero
|
||||
; AVX512VBMI2-NEXT: vpandn {{.*}}(%rip), %ymm3, %ymm2
|
||||
; AVX512VBMI2-NEXT: vpmovzxbw {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero,ymm2[16],zero,ymm2[17],zero,ymm2[18],zero,ymm2[19],zero,ymm2[20],zero,ymm2[21],zero,ymm2[22],zero,ymm2[23],zero,ymm2[24],zero,ymm2[25],zero,ymm2[26],zero,ymm2[27],zero,ymm2[28],zero,ymm2[29],zero,ymm2[30],zero,ymm2[31],zero
|
||||
; AVX512VBMI2-NEXT: vpsllvw %zmm2, %zmm0, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512VBMI2-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpmovwb %zmm0, %ymm0
|
||||
; AVX512VBMI2-NEXT: retq
|
||||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastb %xmm2, %ymm3
|
||||
; AVX512VLBW-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpmovzxbw {{.*#+}} zmm1 = ymm1[0],zero,ymm1[1],zero,ymm1[2],zero,ymm1[3],zero,ymm1[4],zero,ymm1[5],zero,ymm1[6],zero,ymm1[7],zero,ymm1[8],zero,ymm1[9],zero,ymm1[10],zero,ymm1[11],zero,ymm1[12],zero,ymm1[13],zero,ymm1[14],zero,ymm1[15],zero,ymm1[16],zero,ymm1[17],zero,ymm1[18],zero,ymm1[19],zero,ymm1[20],zero,ymm1[21],zero,ymm1[22],zero,ymm1[23],zero,ymm1[24],zero,ymm1[25],zero,ymm1[26],zero,ymm1[27],zero,ymm1[28],zero,ymm1[29],zero,ymm1[30],zero,ymm1[31],zero
|
||||
; AVX512VLBW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpsrlw %xmm4, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsrlw %xmm2, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpaddb %ymm0, %ymm0, %ymm0
|
||||
; AVX512VLBW-NEXT: vpmovzxbw {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero,ymm0[16],zero,ymm0[17],zero,ymm0[18],zero,ymm0[19],zero,ymm0[20],zero,ymm0[21],zero,ymm0[22],zero,ymm0[23],zero,ymm0[24],zero,ymm0[25],zero,ymm0[26],zero,ymm0[27],zero,ymm0[28],zero,ymm0[29],zero,ymm0[30],zero,ymm0[31],zero
|
||||
; AVX512VLBW-NEXT: vpandn {{.*}}(%rip), %ymm3, %ymm2
|
||||
; AVX512VLBW-NEXT: vpmovzxbw {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero,ymm2[16],zero,ymm2[17],zero,ymm2[18],zero,ymm2[19],zero,ymm2[20],zero,ymm2[21],zero,ymm2[22],zero,ymm2[23],zero,ymm2[24],zero,ymm2[25],zero,ymm2[26],zero,ymm2[27],zero,ymm2[28],zero,ymm2[29],zero,ymm2[30],zero,ymm2[31],zero
|
||||
; AVX512VLBW-NEXT: vpsllvw %zmm2, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpmovwb %zmm0, %ymm0
|
||||
; AVX512VLBW-NEXT: retq
|
||||
;
|
||||
; AVX512VLVBMI2-LABEL: splatvar_funnnel_v32i8:
|
||||
; AVX512VLVBMI2: # %bb.0:
|
||||
; AVX512VLVBMI2-NEXT: vpbroadcastb %xmm2, %ymm3
|
||||
; AVX512VLVBMI2-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VLVBMI2-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VLVBMI2-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbw {{.*#+}} zmm1 = ymm1[0],zero,ymm1[1],zero,ymm1[2],zero,ymm1[3],zero,ymm1[4],zero,ymm1[5],zero,ymm1[6],zero,ymm1[7],zero,ymm1[8],zero,ymm1[9],zero,ymm1[10],zero,ymm1[11],zero,ymm1[12],zero,ymm1[13],zero,ymm1[14],zero,ymm1[15],zero,ymm1[16],zero,ymm1[17],zero,ymm1[18],zero,ymm1[19],zero,ymm1[20],zero,ymm1[21],zero,ymm1[22],zero,ymm1[23],zero,ymm1[24],zero,ymm1[25],zero,ymm1[26],zero,ymm1[27],zero,ymm1[28],zero,ymm1[29],zero,ymm1[30],zero,ymm1[31],zero
|
||||
; AVX512VLVBMI2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw %xmm4, %zmm1, %zmm1
|
||||
; AVX512VLVBMI2-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,zero,zero,zero,zero,xmm2[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw %xmm2, %zmm1, %zmm1
|
||||
; AVX512VLVBMI2-NEXT: vpaddb %ymm0, %ymm0, %ymm0
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbw {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero,ymm0[16],zero,ymm0[17],zero,ymm0[18],zero,ymm0[19],zero,ymm0[20],zero,ymm0[21],zero,ymm0[22],zero,ymm0[23],zero,ymm0[24],zero,ymm0[25],zero,ymm0[26],zero,ymm0[27],zero,ymm0[28],zero,ymm0[29],zero,ymm0[30],zero,ymm0[31],zero
|
||||
; AVX512VLVBMI2-NEXT: vpandn {{.*}}(%rip), %ymm3, %ymm2
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbw {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero,ymm2[16],zero,ymm2[17],zero,ymm2[18],zero,ymm2[19],zero,ymm2[20],zero,ymm2[21],zero,ymm2[22],zero,ymm2[23],zero,ymm2[24],zero,ymm2[25],zero,ymm2[26],zero,ymm2[27],zero,ymm2[28],zero,ymm2[29],zero,ymm2[30],zero,ymm2[31],zero
|
||||
; AVX512VLVBMI2-NEXT: vpsllvw %zmm2, %zmm0, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpmovwb %zmm0, %ymm0
|
||||
; AVX512VLVBMI2-NEXT: retq
|
||||
|
@ -1465,16 +1395,15 @@ define <32 x i8> @splatvar_funnnel_v32i8(<32 x i8> %x, <32 x i8> %y, <32 x i8> %
|
|||
; XOPAVX1: # %bb.0:
|
||||
; XOPAVX1-NEXT: vpxor %xmm3, %xmm3, %xmm3
|
||||
; XOPAVX1-NEXT: vpshufb %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm2, %ymm2, %ymm4
|
||||
; XOPAVX1-NEXT: vandnps {{.*}}(%rip), %ymm4, %ymm4
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm4, %xmm5
|
||||
; XOPAVX1-NEXT: vmovdqa {{.*#+}} xmm4 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; XOPAVX1-NEXT: vpandn %xmm4, %xmm2, %xmm5
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm0, %xmm6
|
||||
; XOPAVX1-NEXT: vpaddb %xmm6, %xmm6, %xmm6
|
||||
; XOPAVX1-NEXT: vpshlb %xmm5, %xmm6, %xmm5
|
||||
; XOPAVX1-NEXT: vpshlb %xmm5, %xmm6, %xmm6
|
||||
; XOPAVX1-NEXT: vpaddb %xmm0, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vpshlb %xmm4, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm5, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vpshlb %xmm5, %xmm0, %xmm0
|
||||
; XOPAVX1-NEXT: vinsertf128 $1, %xmm6, %ymm0, %ymm0
|
||||
; XOPAVX1-NEXT: vpand %xmm4, %xmm2, %xmm2
|
||||
; XOPAVX1-NEXT: vpsubb %xmm2, %xmm3, %xmm2
|
||||
; XOPAVX1-NEXT: vextractf128 $1, %ymm1, %xmm3
|
||||
; XOPAVX1-NEXT: vpshlb %xmm2, %xmm3, %xmm3
|
||||
|
@ -1485,15 +1414,15 @@ define <32 x i8> @splatvar_funnnel_v32i8(<32 x i8> %x, <32 x i8> %y, <32 x i8> %
|
|||
;
|
||||
; XOPAVX2-LABEL: splatvar_funnnel_v32i8:
|
||||
; XOPAVX2: # %bb.0:
|
||||
; XOPAVX2-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; XOPAVX2-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; XOPAVX2-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; XOPAVX2-NEXT: vpaddb %ymm0, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vextracti128 $1, %ymm0, %xmm3
|
||||
; XOPAVX2-NEXT: vpandn {{.*}}(%rip), %ymm2, %ymm4
|
||||
; XOPAVX2-NEXT: vextracti128 $1, %ymm4, %xmm5
|
||||
; XOPAVX2-NEXT: vpshlb %xmm5, %xmm3, %xmm3
|
||||
; XOPAVX2-NEXT: vextracti128 $1, %ymm0, %xmm5
|
||||
; XOPAVX2-NEXT: vpshlb %xmm4, %xmm5, %xmm5
|
||||
; XOPAVX2-NEXT: vpshlb %xmm4, %xmm0, %xmm0
|
||||
; XOPAVX2-NEXT: vinserti128 $1, %xmm3, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vinserti128 $1, %xmm5, %ymm0, %ymm0
|
||||
; XOPAVX2-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; XOPAVX2-NEXT: vpxor %xmm3, %xmm3, %xmm3
|
||||
; XOPAVX2-NEXT: vpsubb %xmm2, %xmm3, %xmm2
|
||||
; XOPAVX2-NEXT: vextracti128 $1, %ymm1, %xmm3
|
||||
|
|
|
@ -530,34 +530,34 @@ define <64 x i8> @var_funnnel_v64i8(<64 x i8> %x, <64 x i8> %y, <64 x i8> %amt)
|
|||
define <8 x i64> @splatvar_funnnel_v8i64(<8 x i64> %x, <8 x i64> %y, <8 x i64> %amt) nounwind {
|
||||
; AVX512F-LABEL: splatvar_funnnel_v8i64:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastq %xmm2, %zmm3
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpsrlq %xmm2, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpsrlq %xmm4, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpsllq $1, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vpandnq {{.*}}(%rip){1to8}, %zmm3, %zmm2
|
||||
; AVX512F-NEXT: vpsllvq %zmm2, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vpsllq %xmm2, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v8i64:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastq %xmm2, %zmm3
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpsrlq %xmm2, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpsrlq %xmm4, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpsllq $1, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vpandnq {{.*}}(%rip){1to8}, %zmm3, %zmm2
|
||||
; AVX512VL-NEXT: vpsllvq %zmm2, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vpsllq %xmm2, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: retq
|
||||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v8i64:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastq %xmm2, %zmm3
|
||||
; AVX512BW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpsrlq %xmm2, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpsrlq %xmm4, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpsllq $1, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpandnq {{.*}}(%rip){1to8}, %zmm3, %zmm2
|
||||
; AVX512BW-NEXT: vpsllvq %zmm2, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpsllq %xmm2, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: retq
|
||||
;
|
||||
|
@ -570,12 +570,12 @@ define <8 x i64> @splatvar_funnnel_v8i64(<8 x i64> %x, <8 x i64> %y, <8 x i64> %
|
|||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v8i64:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastq %xmm2, %zmm3
|
||||
; AVX512VLBW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpsrlq %xmm2, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vmovdqa {{.*#+}} xmm3 = [63,63]
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpsrlq %xmm4, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpsllq $1, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpandnq {{.*}}(%rip){1to8}, %zmm3, %zmm2
|
||||
; AVX512VLBW-NEXT: vpsllvq %zmm2, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpsllq %xmm2, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: retq
|
||||
;
|
||||
|
@ -593,40 +593,43 @@ define <8 x i64> @splatvar_funnnel_v8i64(<8 x i64> %x, <8 x i64> %y, <8 x i64> %
|
|||
define <16 x i32> @splatvar_funnnel_v16i32(<16 x i32> %x, <16 x i32> %y, <16 x i32> %amt) nounwind {
|
||||
; AVX512F-LABEL: splatvar_funnnel_v16i32:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastd %xmm2, %zmm2
|
||||
; AVX512F-NEXT: vpbroadcastd {{.*#+}} zmm3 = [31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31]
|
||||
; AVX512F-NEXT: vpandnd %zmm3, %zmm2, %zmm4
|
||||
; AVX512F-NEXT: vpslld $1, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vpsllvd %zmm4, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512F-NEXT: vpsrld %xmm4, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512F-NEXT: vpsrld %xmm2, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpslld $1, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vpslld %xmm2, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vpord %zmm1, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v16i32:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastd %xmm2, %zmm2
|
||||
; AVX512VL-NEXT: vpbroadcastd {{.*#+}} zmm3 = [31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31]
|
||||
; AVX512VL-NEXT: vpandnd %zmm3, %zmm2, %zmm4
|
||||
; AVX512VL-NEXT: vpslld $1, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vpsllvd %zmm4, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512VL-NEXT: vpsrld %xmm4, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512VL-NEXT: vpsrld %xmm2, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpslld $1, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vpslld %xmm2, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vpord %zmm1, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: retq
|
||||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v16i32:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastd %xmm2, %zmm2
|
||||
; AVX512BW-NEXT: vpbroadcastd {{.*#+}} zmm3 = [31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31]
|
||||
; AVX512BW-NEXT: vpandnd %zmm3, %zmm2, %zmm4
|
||||
; AVX512BW-NEXT: vpslld $1, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpsllvd %zmm4, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512BW-NEXT: vpsrld %xmm4, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512BW-NEXT: vpsrld %xmm2, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpslld $1, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpslld %xmm2, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpord %zmm1, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: retq
|
||||
;
|
||||
|
@ -639,14 +642,15 @@ define <16 x i32> @splatvar_funnnel_v16i32(<16 x i32> %x, <16 x i32> %y, <16 x i
|
|||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v16i32:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastd %xmm2, %zmm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastd {{.*#+}} zmm3 = [31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31]
|
||||
; AVX512VLBW-NEXT: vpandnd %zmm3, %zmm2, %zmm4
|
||||
; AVX512VLBW-NEXT: vpslld $1, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpsllvd %zmm4, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastd %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastd {{.*#+}} xmm3 = [31,31,31,31]
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpmovzxdq {{.*#+}} xmm4 = xmm4[0],zero,xmm4[1],zero
|
||||
; AVX512VLBW-NEXT: vpsrld %xmm4, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpmovzxdq {{.*#+}} xmm2 = xmm2[0],zero,xmm2[1],zero
|
||||
; AVX512VLBW-NEXT: vpsrld %xmm2, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpslld $1, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpslld %xmm2, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpord %zmm1, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: retq
|
||||
;
|
||||
|
@ -664,67 +668,57 @@ define <16 x i32> @splatvar_funnnel_v16i32(<16 x i32> %x, <16 x i32> %y, <16 x i
|
|||
define <32 x i16> @splatvar_funnnel_v32i16(<32 x i16> %x, <32 x i16> %y, <32 x i16> %amt) nounwind {
|
||||
; AVX512F-LABEL: splatvar_funnnel_v32i16:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm2, %zmm2, %zmm2
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm3
|
||||
; AVX512F-NEXT: vpmovzxwq {{.*#+}} xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm1, %ymm4
|
||||
; AVX512F-NEXT: vpsrlw %xmm3, %ymm4, %ymm4
|
||||
; AVX512F-NEXT: vpsrlw %xmm3, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm4, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm2
|
||||
; AVX512F-NEXT: vpmovzxwd {{.*#+}} zmm3 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero
|
||||
; AVX512F-NEXT: vpsllw $1, %ymm0, %ymm4
|
||||
; AVX512F-NEXT: vpmovzxwd {{.*#+}} zmm4 = ymm4[0],zero,ymm4[1],zero,ymm4[2],zero,ymm4[3],zero,ymm4[4],zero,ymm4[5],zero,ymm4[6],zero,ymm4[7],zero,ymm4[8],zero,ymm4[9],zero,ymm4[10],zero,ymm4[11],zero,ymm4[12],zero,ymm4[13],zero,ymm4[14],zero,ymm4[15],zero
|
||||
; AVX512F-NEXT: vpsllvd %zmm3, %zmm4, %zmm3
|
||||
; AVX512F-NEXT: vpmovdw %zmm3, %ymm3
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm2, %ymm2
|
||||
; AVX512F-NEXT: vpmovzxwd {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm0, %ymm0
|
||||
; AVX512F-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm1, %ymm5
|
||||
; AVX512F-NEXT: vpsrlw %xmm4, %ymm5, %ymm5
|
||||
; AVX512F-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm5, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm0, %ymm3
|
||||
; AVX512F-NEXT: vpsllw $1, %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vpsllw %xmm2, %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vpsllw $1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpmovzxwd {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero
|
||||
; AVX512F-NEXT: vpsllvd %zmm2, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vpmovdw %zmm0, %ymm0
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm0, %zmm3, %zmm0
|
||||
; AVX512F-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm3, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v32i16:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastw %xmm2, %ymm2
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm2, %zmm2, %zmm2
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm3
|
||||
; AVX512VL-NEXT: vpmovzxwq {{.*#+}} xmm3 = xmm3[0],zero,zero,zero,xmm3[1],zero,zero,zero
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm1, %ymm4
|
||||
; AVX512VL-NEXT: vpsrlw %xmm3, %ymm4, %ymm4
|
||||
; AVX512VL-NEXT: vpsrlw %xmm3, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm4, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm2
|
||||
; AVX512VL-NEXT: vpmovzxwd {{.*#+}} zmm3 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero
|
||||
; AVX512VL-NEXT: vpsllw $1, %ymm0, %ymm4
|
||||
; AVX512VL-NEXT: vpmovzxwd {{.*#+}} zmm4 = ymm4[0],zero,ymm4[1],zero,ymm4[2],zero,ymm4[3],zero,ymm4[4],zero,ymm4[5],zero,ymm4[6],zero,ymm4[7],zero,ymm4[8],zero,ymm4[9],zero,ymm4[10],zero,ymm4[11],zero,ymm4[12],zero,ymm4[13],zero,ymm4[14],zero,ymm4[15],zero
|
||||
; AVX512VL-NEXT: vpsllvd %zmm3, %zmm4, %zmm3
|
||||
; AVX512VL-NEXT: vpmovdw %zmm3, %ymm3
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm2, %ymm2
|
||||
; AVX512VL-NEXT: vpmovzxwd {{.*#+}} zmm2 = ymm2[0],zero,ymm2[1],zero,ymm2[2],zero,ymm2[3],zero,ymm2[4],zero,ymm2[5],zero,ymm2[6],zero,ymm2[7],zero,ymm2[8],zero,ymm2[9],zero,ymm2[10],zero,ymm2[11],zero,ymm2[12],zero,ymm2[13],zero,ymm2[14],zero,ymm2[15],zero
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm0, %ymm0
|
||||
; AVX512VL-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm1, %ymm5
|
||||
; AVX512VL-NEXT: vpsrlw %xmm4, %ymm5, %ymm5
|
||||
; AVX512VL-NEXT: vpsrlw %xmm4, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm5, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm0, %ymm3
|
||||
; AVX512VL-NEXT: vpsllw $1, %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vpsllw %xmm2, %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vpsllw $1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpmovzxwd {{.*#+}} zmm0 = ymm0[0],zero,ymm0[1],zero,ymm0[2],zero,ymm0[3],zero,ymm0[4],zero,ymm0[5],zero,ymm0[6],zero,ymm0[7],zero,ymm0[8],zero,ymm0[9],zero,ymm0[10],zero,ymm0[11],zero,ymm0[12],zero,ymm0[13],zero,ymm0[14],zero,ymm0[15],zero
|
||||
; AVX512VL-NEXT: vpsllvd %zmm2, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vpmovdw %zmm0, %ymm0
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm0, %zmm3, %zmm0
|
||||
; AVX512VL-NEXT: vpsllw %xmm2, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm3, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: retq
|
||||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v32i16:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastw %xmm2, %zmm2
|
||||
; AVX512BW-NEXT: vpsllw $1, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm3
|
||||
; AVX512BW-NEXT: vpsllvw %zmm3, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsrlw %xmm4, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsrlw %xmm2, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpsllw $1, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: retq
|
||||
;
|
||||
|
@ -737,13 +731,15 @@ define <32 x i16> @splatvar_funnnel_v32i16(<32 x i16> %x, <32 x i16> %y, <32 x i
|
|||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v32i16:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastw %xmm2, %zmm2
|
||||
; AVX512VLBW-NEXT: vpsllw $1, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm3
|
||||
; AVX512VLBW-NEXT: vpsllvw %zmm3, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpbroadcastw %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vmovdqa {{.*#+}} xmm3 = [15,15,15,15,15,15,15,15]
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpmovzxwq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,xmm4[1],zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsrlw %xmm4, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpmovzxwq {{.*#+}} xmm2 = xmm2[0],zero,zero,zero,xmm2[1],zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsrlw %xmm2, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpsllw $1, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpsllw %xmm2, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vporq %zmm1, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: retq
|
||||
;
|
||||
|
@ -761,210 +757,146 @@ define <32 x i16> @splatvar_funnnel_v32i16(<32 x i16> %x, <32 x i16> %y, <32 x i
|
|||
define <64 x i8> @splatvar_funnnel_v64i8(<64 x i8> %x, <64 x i8> %y, <64 x i8> %amt) nounwind {
|
||||
; AVX512F-LABEL: splatvar_funnnel_v64i8:
|
||||
; AVX512F: # %bb.0:
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm2, %zmm2, %zmm2
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm0, %ymm3
|
||||
; AVX512F-NEXT: vpaddb %ymm3, %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vpsllw $4, %ymm3, %ymm4
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} ymm5 = [240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240]
|
||||
; AVX512F-NEXT: vpand %ymm5, %ymm4, %ymm4
|
||||
; AVX512F-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm6
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm6, %ymm7
|
||||
; AVX512F-NEXT: vpsllw $5, %ymm7, %ymm7
|
||||
; AVX512F-NEXT: vpblendvb %ymm7, %ymm4, %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vpsllw $2, %ymm3, %ymm4
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} ymm8 = [252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252]
|
||||
; AVX512F-NEXT: vpand %ymm4, %ymm8, %ymm4
|
||||
; AVX512F-NEXT: vpaddb %ymm7, %ymm7, %ymm7
|
||||
; AVX512F-NEXT: vpblendvb %ymm7, %ymm4, %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vpaddb %ymm3, %ymm3, %ymm4
|
||||
; AVX512F-NEXT: vpaddb %ymm7, %ymm7, %ymm7
|
||||
; AVX512F-NEXT: vpblendvb %ymm7, %ymm4, %ymm3, %ymm3
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512F-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512F-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm0, %ymm5
|
||||
; AVX512F-NEXT: vpaddb %ymm5, %ymm5, %ymm5
|
||||
; AVX512F-NEXT: vpsllw %xmm4, %ymm5, %ymm5
|
||||
; AVX512F-NEXT: vpaddb %ymm0, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpsllw $4, %ymm0, %ymm4
|
||||
; AVX512F-NEXT: vpand %ymm5, %ymm4, %ymm4
|
||||
; AVX512F-NEXT: vpsllw $5, %ymm6, %ymm5
|
||||
; AVX512F-NEXT: vpblendvb %ymm5, %ymm4, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpsllw $2, %ymm0, %ymm4
|
||||
; AVX512F-NEXT: vpand %ymm4, %ymm8, %ymm4
|
||||
; AVX512F-NEXT: vpaddb %ymm5, %ymm5, %ymm5
|
||||
; AVX512F-NEXT: vpblendvb %ymm5, %ymm4, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vpaddb %ymm0, %ymm0, %ymm4
|
||||
; AVX512F-NEXT: vpaddb %ymm5, %ymm5, %ymm5
|
||||
; AVX512F-NEXT: vpblendvb %ymm5, %ymm4, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm3, %zmm0, %zmm3
|
||||
; AVX512F-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm0
|
||||
; AVX512F-NEXT: vpsllw %xmm4, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm5, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX512F-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm4, %ymm4
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm4, %zmm4, %zmm4
|
||||
; AVX512F-NEXT: vpandq %zmm4, %zmm0, %zmm4
|
||||
; AVX512F-NEXT: vpand %xmm3, %xmm2, %xmm0
|
||||
; AVX512F-NEXT: vpmovzxbq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512F-NEXT: vextracti64x4 $1, %zmm1, %ymm2
|
||||
; AVX512F-NEXT: vpsrlw %xmm0, %ymm2, %ymm2
|
||||
; AVX512F-NEXT: vpsrlw %xmm0, %ymm1, %ymm1
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm2, %zmm1, %zmm1
|
||||
; AVX512F-NEXT: vpcmpeqd %xmm2, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vpsrlw %xmm0, %xmm2, %xmm0
|
||||
; AVX512F-NEXT: vpsrlw %xmm0, %xmm5, %xmm0
|
||||
; AVX512F-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||
; AVX512F-NEXT: vpbroadcastb %xmm0, %ymm0
|
||||
; AVX512F-NEXT: vinserti64x4 $1, %ymm0, %zmm0, %zmm0
|
||||
; AVX512F-NEXT: vpternlogq $236, %zmm1, %zmm3, %zmm0
|
||||
; AVX512F-NEXT: vpternlogq $236, %zmm1, %zmm4, %zmm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: splatvar_funnnel_v64i8:
|
||||
; AVX512VL: # %bb.0:
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm2, %ymm2
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm2, %zmm2, %zmm2
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm0, %ymm3
|
||||
; AVX512VL-NEXT: vpaddb %ymm3, %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vpsllw $4, %ymm3, %ymm4
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} ymm5 = [240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240,240]
|
||||
; AVX512VL-NEXT: vpand %ymm5, %ymm4, %ymm4
|
||||
; AVX512VL-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm6
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm6, %ymm7
|
||||
; AVX512VL-NEXT: vpsllw $5, %ymm7, %ymm7
|
||||
; AVX512VL-NEXT: vpblendvb %ymm7, %ymm4, %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vpsllw $2, %ymm3, %ymm4
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} ymm8 = [252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252,252]
|
||||
; AVX512VL-NEXT: vpand %ymm4, %ymm8, %ymm4
|
||||
; AVX512VL-NEXT: vpaddb %ymm7, %ymm7, %ymm7
|
||||
; AVX512VL-NEXT: vpblendvb %ymm7, %ymm4, %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vpaddb %ymm3, %ymm3, %ymm4
|
||||
; AVX512VL-NEXT: vpaddb %ymm7, %ymm7, %ymm7
|
||||
; AVX512VL-NEXT: vpblendvb %ymm7, %ymm4, %ymm3, %ymm3
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VL-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VL-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm0, %ymm5
|
||||
; AVX512VL-NEXT: vpaddb %ymm5, %ymm5, %ymm5
|
||||
; AVX512VL-NEXT: vpsllw %xmm4, %ymm5, %ymm5
|
||||
; AVX512VL-NEXT: vpaddb %ymm0, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpsllw $4, %ymm0, %ymm4
|
||||
; AVX512VL-NEXT: vpand %ymm5, %ymm4, %ymm4
|
||||
; AVX512VL-NEXT: vpsllw $5, %ymm6, %ymm5
|
||||
; AVX512VL-NEXT: vpblendvb %ymm5, %ymm4, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpsllw $2, %ymm0, %ymm4
|
||||
; AVX512VL-NEXT: vpand %ymm4, %ymm8, %ymm4
|
||||
; AVX512VL-NEXT: vpaddb %ymm5, %ymm5, %ymm5
|
||||
; AVX512VL-NEXT: vpblendvb %ymm5, %ymm4, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vpaddb %ymm0, %ymm0, %ymm4
|
||||
; AVX512VL-NEXT: vpaddb %ymm5, %ymm5, %ymm5
|
||||
; AVX512VL-NEXT: vpblendvb %ymm5, %ymm4, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm3, %zmm0, %zmm3
|
||||
; AVX512VL-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm0
|
||||
; AVX512VL-NEXT: vpsllw %xmm4, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm5, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX512VL-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm4, %ymm4
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm4, %zmm4, %zmm4
|
||||
; AVX512VL-NEXT: vpandq %zmm4, %zmm0, %zmm4
|
||||
; AVX512VL-NEXT: vpand %xmm3, %xmm2, %xmm0
|
||||
; AVX512VL-NEXT: vpmovzxbq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VL-NEXT: vextracti64x4 $1, %zmm1, %ymm2
|
||||
; AVX512VL-NEXT: vpsrlw %xmm0, %ymm2, %ymm2
|
||||
; AVX512VL-NEXT: vpsrlw %xmm0, %ymm1, %ymm1
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm2, %zmm1, %zmm1
|
||||
; AVX512VL-NEXT: vpcmpeqd %xmm2, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vpsrlw %xmm0, %xmm2, %xmm0
|
||||
; AVX512VL-NEXT: vpsrlw %xmm0, %xmm5, %xmm0
|
||||
; AVX512VL-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||
; AVX512VL-NEXT: vpbroadcastb %xmm0, %ymm0
|
||||
; AVX512VL-NEXT: vinserti64x4 $1, %ymm0, %zmm0, %zmm0
|
||||
; AVX512VL-NEXT: vpternlogq $236, %zmm1, %zmm3, %zmm0
|
||||
; AVX512VL-NEXT: vpternlogq $236, %zmm1, %zmm4, %zmm0
|
||||
; AVX512VL-NEXT: retq
|
||||
;
|
||||
; AVX512BW-LABEL: splatvar_funnnel_v64i8:
|
||||
; AVX512BW: # %bb.0:
|
||||
; AVX512BW-NEXT: vpbroadcastb %xmm2, %zmm2
|
||||
; AVX512BW-NEXT: vpaddb %zmm0, %zmm0, %zmm3
|
||||
; AVX512BW-NEXT: vpsllw $4, %zmm3, %zmm0
|
||||
; AVX512BW-NEXT: vpandq {{.*}}(%rip), %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm4
|
||||
; AVX512BW-NEXT: vpsllw $5, %zmm4, %zmm4
|
||||
; AVX512BW-NEXT: vpmovb2m %zmm4, %k1
|
||||
; AVX512BW-NEXT: vmovdqu8 %zmm0, %zmm3 {%k1}
|
||||
; AVX512BW-NEXT: vpsllw $2, %zmm3, %zmm0
|
||||
; AVX512BW-NEXT: vpandq {{.*}}(%rip), %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpaddb %zmm4, %zmm4, %zmm4
|
||||
; AVX512BW-NEXT: vpmovb2m %zmm4, %k1
|
||||
; AVX512BW-NEXT: vmovdqu8 %zmm0, %zmm3 {%k1}
|
||||
; AVX512BW-NEXT: vpaddb %zmm4, %zmm4, %zmm0
|
||||
; AVX512BW-NEXT: vpmovb2m %zmm0, %k1
|
||||
; AVX512BW-NEXT: vpaddb %zmm3, %zmm3, %zmm3 {%k1}
|
||||
; AVX512BW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm0
|
||||
; AVX512BW-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512BW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512BW-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512BW-NEXT: vpaddb %zmm0, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpsllw %xmm4, %zmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX512BW-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX512BW-NEXT: vpbroadcastb %xmm4, %zmm4
|
||||
; AVX512BW-NEXT: vpandq %zmm4, %zmm0, %zmm4
|
||||
; AVX512BW-NEXT: vpand %xmm3, %xmm2, %xmm0
|
||||
; AVX512BW-NEXT: vpmovzxbq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512BW-NEXT: vpsrlw %xmm0, %zmm1, %zmm1
|
||||
; AVX512BW-NEXT: vpcmpeqd %xmm2, %xmm2, %xmm2
|
||||
; AVX512BW-NEXT: vpsrlw %xmm0, %xmm2, %xmm0
|
||||
; AVX512BW-NEXT: vpsrlw %xmm0, %xmm5, %xmm0
|
||||
; AVX512BW-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||
; AVX512BW-NEXT: vpbroadcastb %xmm0, %zmm0
|
||||
; AVX512BW-NEXT: vpternlogq $236, %zmm1, %zmm3, %zmm0
|
||||
; AVX512BW-NEXT: vpternlogq $236, %zmm1, %zmm4, %zmm0
|
||||
; AVX512BW-NEXT: retq
|
||||
;
|
||||
; AVX512VBMI2-LABEL: splatvar_funnnel_v64i8:
|
||||
; AVX512VBMI2: # %bb.0:
|
||||
; AVX512VBMI2-NEXT: vpbroadcastb %xmm2, %zmm2
|
||||
; AVX512VBMI2-NEXT: vpaddb %zmm0, %zmm0, %zmm3
|
||||
; AVX512VBMI2-NEXT: vpsllw $4, %zmm3, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpandq {{.*}}(%rip), %zmm0, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm4
|
||||
; AVX512VBMI2-NEXT: vpsllw $5, %zmm4, %zmm4
|
||||
; AVX512VBMI2-NEXT: vpmovb2m %zmm4, %k1
|
||||
; AVX512VBMI2-NEXT: vmovdqu8 %zmm0, %zmm3 {%k1}
|
||||
; AVX512VBMI2-NEXT: vpsllw $2, %zmm3, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpandq {{.*}}(%rip), %zmm0, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpaddb %zmm4, %zmm4, %zmm4
|
||||
; AVX512VBMI2-NEXT: vpmovb2m %zmm4, %k1
|
||||
; AVX512VBMI2-NEXT: vmovdqu8 %zmm0, %zmm3 {%k1}
|
||||
; AVX512VBMI2-NEXT: vpaddb %zmm4, %zmm4, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpmovb2m %zmm0, %k1
|
||||
; AVX512VBMI2-NEXT: vpaddb %zmm3, %zmm3, %zmm3 {%k1}
|
||||
; AVX512VBMI2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm0
|
||||
; AVX512VBMI2-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VBMI2-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VBMI2-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VBMI2-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VBMI2-NEXT: vpaddb %zmm0, %zmm0, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpsllw %xmm4, %zmm0, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX512VBMI2-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX512VBMI2-NEXT: vpbroadcastb %xmm4, %zmm4
|
||||
; AVX512VBMI2-NEXT: vpandq %zmm4, %zmm0, %zmm4
|
||||
; AVX512VBMI2-NEXT: vpand %xmm3, %xmm2, %xmm0
|
||||
; AVX512VBMI2-NEXT: vpmovzxbq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VBMI2-NEXT: vpsrlw %xmm0, %zmm1, %zmm1
|
||||
; AVX512VBMI2-NEXT: vpcmpeqd %xmm2, %xmm2, %xmm2
|
||||
; AVX512VBMI2-NEXT: vpsrlw %xmm0, %xmm2, %xmm0
|
||||
; AVX512VBMI2-NEXT: vpsrlw %xmm0, %xmm5, %xmm0
|
||||
; AVX512VBMI2-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||
; AVX512VBMI2-NEXT: vpbroadcastb %xmm0, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpternlogq $236, %zmm1, %zmm3, %zmm0
|
||||
; AVX512VBMI2-NEXT: vpternlogq $236, %zmm1, %zmm4, %zmm0
|
||||
; AVX512VBMI2-NEXT: retq
|
||||
;
|
||||
; AVX512VLBW-LABEL: splatvar_funnnel_v64i8:
|
||||
; AVX512VLBW: # %bb.0:
|
||||
; AVX512VLBW-NEXT: vpbroadcastb %xmm2, %zmm2
|
||||
; AVX512VLBW-NEXT: vpaddb %zmm0, %zmm0, %zmm3
|
||||
; AVX512VLBW-NEXT: vpsllw $4, %zmm3, %zmm0
|
||||
; AVX512VLBW-NEXT: vpandq {{.*}}(%rip), %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm4
|
||||
; AVX512VLBW-NEXT: vpsllw $5, %zmm4, %zmm4
|
||||
; AVX512VLBW-NEXT: vpmovb2m %zmm4, %k1
|
||||
; AVX512VLBW-NEXT: vmovdqu8 %zmm0, %zmm3 {%k1}
|
||||
; AVX512VLBW-NEXT: vpsllw $2, %zmm3, %zmm0
|
||||
; AVX512VLBW-NEXT: vpandq {{.*}}(%rip), %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpaddb %zmm4, %zmm4, %zmm4
|
||||
; AVX512VLBW-NEXT: vpmovb2m %zmm4, %k1
|
||||
; AVX512VLBW-NEXT: vmovdqu8 %zmm0, %zmm3 {%k1}
|
||||
; AVX512VLBW-NEXT: vpaddb %zmm4, %zmm4, %zmm0
|
||||
; AVX512VLBW-NEXT: vpmovb2m %zmm0, %k1
|
||||
; AVX512VLBW-NEXT: vpaddb %zmm3, %zmm3, %zmm3 {%k1}
|
||||
; AVX512VLBW-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm0
|
||||
; AVX512VLBW-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VLBW-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLBW-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpaddb %zmm0, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpsllw %xmm4, %zmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX512VLBW-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX512VLBW-NEXT: vpbroadcastb %xmm4, %zmm4
|
||||
; AVX512VLBW-NEXT: vpandq %zmm4, %zmm0, %zmm4
|
||||
; AVX512VLBW-NEXT: vpand %xmm3, %xmm2, %xmm0
|
||||
; AVX512VLBW-NEXT: vpmovzxbq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLBW-NEXT: vpsrlw %xmm0, %zmm1, %zmm1
|
||||
; AVX512VLBW-NEXT: vpcmpeqd %xmm2, %xmm2, %xmm2
|
||||
; AVX512VLBW-NEXT: vpsrlw %xmm0, %xmm2, %xmm0
|
||||
; AVX512VLBW-NEXT: vpsrlw %xmm0, %xmm5, %xmm0
|
||||
; AVX512VLBW-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||
; AVX512VLBW-NEXT: vpbroadcastb %xmm0, %zmm0
|
||||
; AVX512VLBW-NEXT: vpternlogq $236, %zmm1, %zmm3, %zmm0
|
||||
; AVX512VLBW-NEXT: vpternlogq $236, %zmm1, %zmm4, %zmm0
|
||||
; AVX512VLBW-NEXT: retq
|
||||
;
|
||||
; AVX512VLVBMI2-LABEL: splatvar_funnnel_v64i8:
|
||||
; AVX512VLVBMI2: # %bb.0:
|
||||
; AVX512VLVBMI2-NEXT: vpbroadcastb %xmm2, %zmm2
|
||||
; AVX512VLVBMI2-NEXT: vpaddb %zmm0, %zmm0, %zmm3
|
||||
; AVX512VLVBMI2-NEXT: vpsllw $4, %zmm3, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpandq {{.*}}(%rip), %zmm0, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpandnq {{.*}}(%rip), %zmm2, %zmm4
|
||||
; AVX512VLVBMI2-NEXT: vpsllw $5, %zmm4, %zmm4
|
||||
; AVX512VLVBMI2-NEXT: vpmovb2m %zmm4, %k1
|
||||
; AVX512VLVBMI2-NEXT: vmovdqu8 %zmm0, %zmm3 {%k1}
|
||||
; AVX512VLVBMI2-NEXT: vpsllw $2, %zmm3, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpandq {{.*}}(%rip), %zmm0, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpaddb %zmm4, %zmm4, %zmm4
|
||||
; AVX512VLVBMI2-NEXT: vpmovb2m %zmm4, %k1
|
||||
; AVX512VLVBMI2-NEXT: vmovdqu8 %zmm0, %zmm3 {%k1}
|
||||
; AVX512VLVBMI2-NEXT: vpaddb %zmm4, %zmm4, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpmovb2m %zmm0, %k1
|
||||
; AVX512VLVBMI2-NEXT: vpaddb %zmm3, %zmm3, %zmm3 {%k1}
|
||||
; AVX512VLVBMI2-NEXT: vpand {{.*}}(%rip), %xmm2, %xmm0
|
||||
; AVX512VLVBMI2-NEXT: vpbroadcastb %xmm2, %xmm2
|
||||
; AVX512VLVBMI2-NEXT: vmovdqa {{.*#+}} xmm3 = [7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7]
|
||||
; AVX512VLVBMI2-NEXT: vpandn %xmm3, %xmm2, %xmm4
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbq {{.*#+}} xmm4 = xmm4[0],zero,zero,zero,zero,zero,zero,zero,xmm4[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLVBMI2-NEXT: vpaddb %zmm0, %zmm0, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpsllw %xmm4, %zmm0, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpcmpeqd %xmm5, %xmm5, %xmm5
|
||||
; AVX512VLVBMI2-NEXT: vpsllw %xmm4, %xmm5, %xmm4
|
||||
; AVX512VLVBMI2-NEXT: vpbroadcastb %xmm4, %zmm4
|
||||
; AVX512VLVBMI2-NEXT: vpandq %zmm4, %zmm0, %zmm4
|
||||
; AVX512VLVBMI2-NEXT: vpand %xmm3, %xmm2, %xmm0
|
||||
; AVX512VLVBMI2-NEXT: vpmovzxbq {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,zero,zero,zero,zero,xmm0[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw %xmm0, %zmm1, %zmm1
|
||||
; AVX512VLVBMI2-NEXT: vpcmpeqd %xmm2, %xmm2, %xmm2
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw %xmm0, %xmm2, %xmm0
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw %xmm0, %xmm5, %xmm0
|
||||
; AVX512VLVBMI2-NEXT: vpsrlw $8, %xmm0, %xmm0
|
||||
; AVX512VLVBMI2-NEXT: vpbroadcastb %xmm0, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpternlogq $236, %zmm1, %zmm3, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: vpternlogq $236, %zmm1, %zmm4, %zmm0
|
||||
; AVX512VLVBMI2-NEXT: retq
|
||||
%splat = shufflevector <64 x i8> %amt, <64 x i8> undef, <64 x i32> zeroinitializer
|
||||
%res = call <64 x i8> @llvm.fshr.v64i8(<64 x i8> %x, <64 x i8> %y, <64 x i8> %splat)
|
||||
|
|
Loading…
Reference in New Issue