forked from OSchip/llvm-project
[X86] Prevent DAG combine from folding a bitcast from vXi1 to iX with a store on pre-AVX512 targets.
If we fold the bitcast into the store we'll end up creating a truncating store to vXi1 that will get scalarized. Instead allow the bitcast to be turned into a movmsk. We probably need to do something if the store itself is a vXi1 type, but I'll leave that til a testcase appears. llvm-svn: 347632
This commit is contained in:
parent
fe3bbb251b
commit
4325505f05
|
@ -4837,7 +4837,11 @@ bool X86TargetLowering::isCheapToSpeculateCtlz() const {
|
|||
|
||||
bool X86TargetLowering::isLoadBitCastBeneficial(EVT LoadVT,
|
||||
EVT BitcastVT) const {
|
||||
if (!Subtarget.hasDQI() && BitcastVT == MVT::v8i1)
|
||||
if (!Subtarget.hasAVX512() && !LoadVT.isVector() && BitcastVT.isVector() &&
|
||||
BitcastVT.getVectorElementType() == MVT::i1)
|
||||
return false;
|
||||
|
||||
if (!Subtarget.hasDQI() && BitcastVT == MVT::v8i1 && LoadVT == MVT::i8)
|
||||
return false;
|
||||
|
||||
return TargetLowering::isLoadBitCastBeneficial(LoadVT, BitcastVT);
|
||||
|
|
|
@ -745,133 +745,14 @@ entry:
|
|||
define void @bitcast_16i8_store(i16* %p, <16 x i8> %a0) {
|
||||
; SSE2-SSSE3-LABEL: bitcast_16i8_store:
|
||||
; SSE2-SSSE3: # %bb.0:
|
||||
; SSE2-SSSE3-NEXT: pxor %xmm1, %xmm1
|
||||
; SSE2-SSSE3-NEXT: pcmpgtb %xmm0, %xmm1
|
||||
; SSE2-SSSE3-NEXT: movdqa %xmm1, -{{[0-9]+}}(%rsp)
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %eax
|
||||
; SSE2-SSSE3-NEXT: andl $1, %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: leal (%rcx,%rax,2), %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: leal (%rax,%rcx,4), %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: leal (%rax,%rcx,8), %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $4, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %eax, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %eax
|
||||
; SSE2-SSSE3-NEXT: andl $1, %eax
|
||||
; SSE2-SSSE3-NEXT: shll $5, %eax
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $6, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $7, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $8, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $9, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $10, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $11, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $12, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $13, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $14, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: shll $15, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %eax, %edx
|
||||
; SSE2-SSSE3-NEXT: movw %dx, (%rdi)
|
||||
; SSE2-SSSE3-NEXT: pmovmskb %xmm0, %eax
|
||||
; SSE2-SSSE3-NEXT: movw %ax, (%rdi)
|
||||
; SSE2-SSSE3-NEXT: retq
|
||||
;
|
||||
; AVX12-LABEL: bitcast_16i8_store:
|
||||
; AVX12: # %bb.0:
|
||||
; AVX12-NEXT: vpxor %xmm1, %xmm1, %xmm1
|
||||
; AVX12-NEXT: vpcmpgtb %xmm0, %xmm1, %xmm0
|
||||
; AVX12-NEXT: vpextrb $1, %xmm0, %eax
|
||||
; AVX12-NEXT: andl $1, %eax
|
||||
; AVX12-NEXT: vpextrb $0, %xmm0, %ecx
|
||||
; AVX12-NEXT: andl $1, %ecx
|
||||
; AVX12-NEXT: leal (%rcx,%rax,2), %eax
|
||||
; AVX12-NEXT: vpextrb $2, %xmm0, %ecx
|
||||
; AVX12-NEXT: andl $1, %ecx
|
||||
; AVX12-NEXT: leal (%rax,%rcx,4), %eax
|
||||
; AVX12-NEXT: vpextrb $3, %xmm0, %ecx
|
||||
; AVX12-NEXT: andl $1, %ecx
|
||||
; AVX12-NEXT: leal (%rax,%rcx,8), %eax
|
||||
; AVX12-NEXT: vpextrb $4, %xmm0, %ecx
|
||||
; AVX12-NEXT: andl $1, %ecx
|
||||
; AVX12-NEXT: shll $4, %ecx
|
||||
; AVX12-NEXT: orl %eax, %ecx
|
||||
; AVX12-NEXT: vpextrb $5, %xmm0, %eax
|
||||
; AVX12-NEXT: andl $1, %eax
|
||||
; AVX12-NEXT: shll $5, %eax
|
||||
; AVX12-NEXT: orl %ecx, %eax
|
||||
; AVX12-NEXT: vpextrb $6, %xmm0, %ecx
|
||||
; AVX12-NEXT: andl $1, %ecx
|
||||
; AVX12-NEXT: shll $6, %ecx
|
||||
; AVX12-NEXT: vpextrb $7, %xmm0, %edx
|
||||
; AVX12-NEXT: andl $1, %edx
|
||||
; AVX12-NEXT: shll $7, %edx
|
||||
; AVX12-NEXT: orl %ecx, %edx
|
||||
; AVX12-NEXT: vpextrb $8, %xmm0, %ecx
|
||||
; AVX12-NEXT: andl $1, %ecx
|
||||
; AVX12-NEXT: shll $8, %ecx
|
||||
; AVX12-NEXT: orl %edx, %ecx
|
||||
; AVX12-NEXT: vpextrb $9, %xmm0, %edx
|
||||
; AVX12-NEXT: andl $1, %edx
|
||||
; AVX12-NEXT: shll $9, %edx
|
||||
; AVX12-NEXT: orl %ecx, %edx
|
||||
; AVX12-NEXT: vpextrb $10, %xmm0, %ecx
|
||||
; AVX12-NEXT: andl $1, %ecx
|
||||
; AVX12-NEXT: shll $10, %ecx
|
||||
; AVX12-NEXT: orl %edx, %ecx
|
||||
; AVX12-NEXT: vpextrb $11, %xmm0, %edx
|
||||
; AVX12-NEXT: andl $1, %edx
|
||||
; AVX12-NEXT: shll $11, %edx
|
||||
; AVX12-NEXT: orl %ecx, %edx
|
||||
; AVX12-NEXT: vpextrb $12, %xmm0, %ecx
|
||||
; AVX12-NEXT: andl $1, %ecx
|
||||
; AVX12-NEXT: shll $12, %ecx
|
||||
; AVX12-NEXT: orl %edx, %ecx
|
||||
; AVX12-NEXT: vpextrb $13, %xmm0, %edx
|
||||
; AVX12-NEXT: andl $1, %edx
|
||||
; AVX12-NEXT: shll $13, %edx
|
||||
; AVX12-NEXT: orl %ecx, %edx
|
||||
; AVX12-NEXT: vpextrb $14, %xmm0, %ecx
|
||||
; AVX12-NEXT: andl $1, %ecx
|
||||
; AVX12-NEXT: shll $14, %ecx
|
||||
; AVX12-NEXT: orl %edx, %ecx
|
||||
; AVX12-NEXT: vpextrb $15, %xmm0, %edx
|
||||
; AVX12-NEXT: shll $15, %edx
|
||||
; AVX12-NEXT: orl %ecx, %edx
|
||||
; AVX12-NEXT: orl %eax, %edx
|
||||
; AVX12-NEXT: movw %dx, (%rdi)
|
||||
; AVX12-NEXT: vpmovmskb %xmm0, %eax
|
||||
; AVX12-NEXT: movw %ax, (%rdi)
|
||||
; AVX12-NEXT: retq
|
||||
;
|
||||
; AVX512F-LABEL: bitcast_16i8_store:
|
||||
|
@ -940,47 +821,14 @@ define void @bitcast_8i16_store(i8* %p, <8 x i16> %a0) {
|
|||
define void @bitcast_4i32_store(i4* %p, <4 x i32> %a0) {
|
||||
; SSE2-SSSE3-LABEL: bitcast_4i32_store:
|
||||
; SSE2-SSSE3: # %bb.0:
|
||||
; SSE2-SSSE3-NEXT: pxor %xmm1, %xmm1
|
||||
; SSE2-SSSE3-NEXT: pcmpgtd %xmm0, %xmm1
|
||||
; SSE2-SSSE3-NEXT: movd %xmm1, %eax
|
||||
; SSE2-SSSE3-NEXT: andb $1, %al
|
||||
; SSE2-SSSE3-NEXT: pshufd {{.*#+}} xmm0 = xmm1[1,1,2,3]
|
||||
; SSE2-SSSE3-NEXT: movd %xmm0, %ecx
|
||||
; SSE2-SSSE3-NEXT: andb $1, %cl
|
||||
; SSE2-SSSE3-NEXT: addb %cl, %cl
|
||||
; SSE2-SSSE3-NEXT: pshufd {{.*#+}} xmm0 = xmm1[2,3,0,1]
|
||||
; SSE2-SSSE3-NEXT: movd %xmm0, %edx
|
||||
; SSE2-SSSE3-NEXT: andb $1, %dl
|
||||
; SSE2-SSSE3-NEXT: shlb $2, %dl
|
||||
; SSE2-SSSE3-NEXT: orb %cl, %dl
|
||||
; SSE2-SSSE3-NEXT: pshufd {{.*#+}} xmm0 = xmm1[3,1,2,3]
|
||||
; SSE2-SSSE3-NEXT: movd %xmm0, %ecx
|
||||
; SSE2-SSSE3-NEXT: shlb $3, %cl
|
||||
; SSE2-SSSE3-NEXT: orb %dl, %cl
|
||||
; SSE2-SSSE3-NEXT: orb %al, %cl
|
||||
; SSE2-SSSE3-NEXT: andb $15, %cl
|
||||
; SSE2-SSSE3-NEXT: movb %cl, (%rdi)
|
||||
; SSE2-SSSE3-NEXT: movmskps %xmm0, %eax
|
||||
; SSE2-SSSE3-NEXT: movb %al, (%rdi)
|
||||
; SSE2-SSSE3-NEXT: retq
|
||||
;
|
||||
; AVX12-LABEL: bitcast_4i32_store:
|
||||
; AVX12: # %bb.0:
|
||||
; AVX12-NEXT: vpxor %xmm1, %xmm1, %xmm1
|
||||
; AVX12-NEXT: vpcmpgtd %xmm0, %xmm1, %xmm0
|
||||
; AVX12-NEXT: vmovd %xmm0, %eax
|
||||
; AVX12-NEXT: andb $1, %al
|
||||
; AVX12-NEXT: vpextrd $1, %xmm0, %ecx
|
||||
; AVX12-NEXT: andb $1, %cl
|
||||
; AVX12-NEXT: addb %cl, %cl
|
||||
; AVX12-NEXT: vpextrd $2, %xmm0, %edx
|
||||
; AVX12-NEXT: andb $1, %dl
|
||||
; AVX12-NEXT: shlb $2, %dl
|
||||
; AVX12-NEXT: orb %cl, %dl
|
||||
; AVX12-NEXT: vpextrd $3, %xmm0, %ecx
|
||||
; AVX12-NEXT: shlb $3, %cl
|
||||
; AVX12-NEXT: orb %dl, %cl
|
||||
; AVX12-NEXT: orb %al, %cl
|
||||
; AVX12-NEXT: andb $15, %cl
|
||||
; AVX12-NEXT: movb %cl, (%rdi)
|
||||
; AVX12-NEXT: vmovmskps %xmm0, %eax
|
||||
; AVX12-NEXT: movb %al, (%rdi)
|
||||
; AVX12-NEXT: retq
|
||||
;
|
||||
; AVX512F-LABEL: bitcast_4i32_store:
|
||||
|
@ -1007,37 +855,14 @@ define void @bitcast_4i32_store(i4* %p, <4 x i32> %a0) {
|
|||
define void @bitcast_2i64_store(i2* %p, <2 x i64> %a0) {
|
||||
; SSE2-SSSE3-LABEL: bitcast_2i64_store:
|
||||
; SSE2-SSSE3: # %bb.0:
|
||||
; SSE2-SSSE3-NEXT: movdqa {{.*#+}} xmm1 = [2147483648,2147483648]
|
||||
; SSE2-SSSE3-NEXT: pxor %xmm1, %xmm0
|
||||
; SSE2-SSSE3-NEXT: movdqa %xmm1, %xmm2
|
||||
; SSE2-SSSE3-NEXT: pcmpgtd %xmm0, %xmm2
|
||||
; SSE2-SSSE3-NEXT: pshufd {{.*#+}} xmm3 = xmm2[0,0,2,2]
|
||||
; SSE2-SSSE3-NEXT: pcmpeqd %xmm1, %xmm0
|
||||
; SSE2-SSSE3-NEXT: pshufd {{.*#+}} xmm0 = xmm0[1,1,3,3]
|
||||
; SSE2-SSSE3-NEXT: pand %xmm3, %xmm0
|
||||
; SSE2-SSSE3-NEXT: pshufd {{.*#+}} xmm1 = xmm2[1,1,3,3]
|
||||
; SSE2-SSSE3-NEXT: por %xmm0, %xmm1
|
||||
; SSE2-SSSE3-NEXT: movq %xmm1, %rax
|
||||
; SSE2-SSSE3-NEXT: andb $1, %al
|
||||
; SSE2-SSSE3-NEXT: pshufd {{.*#+}} xmm0 = xmm1[2,3,0,1]
|
||||
; SSE2-SSSE3-NEXT: movq %xmm0, %rcx
|
||||
; SSE2-SSSE3-NEXT: addb %cl, %cl
|
||||
; SSE2-SSSE3-NEXT: orb %al, %cl
|
||||
; SSE2-SSSE3-NEXT: andb $3, %cl
|
||||
; SSE2-SSSE3-NEXT: movb %cl, (%rdi)
|
||||
; SSE2-SSSE3-NEXT: movmskpd %xmm0, %eax
|
||||
; SSE2-SSSE3-NEXT: movb %al, (%rdi)
|
||||
; SSE2-SSSE3-NEXT: retq
|
||||
;
|
||||
; AVX12-LABEL: bitcast_2i64_store:
|
||||
; AVX12: # %bb.0:
|
||||
; AVX12-NEXT: vpxor %xmm1, %xmm1, %xmm1
|
||||
; AVX12-NEXT: vpcmpgtq %xmm0, %xmm1, %xmm0
|
||||
; AVX12-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX12-NEXT: addb %al, %al
|
||||
; AVX12-NEXT: vmovq %xmm0, %rcx
|
||||
; AVX12-NEXT: andb $1, %cl
|
||||
; AVX12-NEXT: orb %al, %cl
|
||||
; AVX12-NEXT: andb $3, %cl
|
||||
; AVX12-NEXT: movb %cl, (%rdi)
|
||||
; AVX12-NEXT: vmovmskpd %xmm0, %eax
|
||||
; AVX12-NEXT: movb %al, (%rdi)
|
||||
; AVX12-NEXT: retq
|
||||
;
|
||||
; AVX512F-LABEL: bitcast_2i64_store:
|
||||
|
|
|
@ -317,392 +317,31 @@ define i4 @v4f64(<4 x double> %a, <4 x double> %b) {
|
|||
define void @bitcast_32i8_store(i32* %p, <32 x i8> %a0) {
|
||||
; SSE2-SSSE3-LABEL: bitcast_32i8_store:
|
||||
; SSE2-SSSE3: # %bb.0:
|
||||
; SSE2-SSSE3-NEXT: pxor %xmm3, %xmm3
|
||||
; SSE2-SSSE3-NEXT: pxor %xmm2, %xmm2
|
||||
; SSE2-SSSE3-NEXT: pcmpgtb %xmm0, %xmm2
|
||||
; SSE2-SSSE3-NEXT: pcmpgtb %xmm1, %xmm3
|
||||
; SSE2-SSSE3-NEXT: movdqa %xmm3, -{{[0-9]+}}(%rsp)
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %eax
|
||||
; SSE2-SSSE3-NEXT: andl $1, %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: leal (%rcx,%rax,2), %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: leal (%rax,%rcx,4), %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: leal (%rax,%rcx,8), %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $4, %ecx
|
||||
; SSE2-SSSE3-NEXT: pmovmskb %xmm0, %eax
|
||||
; SSE2-SSSE3-NEXT: pmovmskb %xmm1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $16, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %eax, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %eax
|
||||
; SSE2-SSSE3-NEXT: andl $1, %eax
|
||||
; SSE2-SSSE3-NEXT: shll $5, %eax
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $6, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $7, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $8, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $9, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $10, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $11, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $12, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $13, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $14, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: shll $15, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %eax, %edx
|
||||
; SSE2-SSSE3-NEXT: movw %dx, 2(%rdi)
|
||||
; SSE2-SSSE3-NEXT: movdqa %xmm2, -{{[0-9]+}}(%rsp)
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %eax
|
||||
; SSE2-SSSE3-NEXT: andl $1, %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: leal (%rcx,%rax,2), %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: leal (%rax,%rcx,4), %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: leal (%rax,%rcx,8), %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $4, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %eax, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %eax
|
||||
; SSE2-SSSE3-NEXT: andl $1, %eax
|
||||
; SSE2-SSSE3-NEXT: shll $5, %eax
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $6, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $7, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $8, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $9, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $10, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $11, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $12, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $13, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $14, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: shll $15, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %eax, %edx
|
||||
; SSE2-SSSE3-NEXT: movw %dx, (%rdi)
|
||||
; SSE2-SSSE3-NEXT: movl %ecx, (%rdi)
|
||||
; SSE2-SSSE3-NEXT: retq
|
||||
;
|
||||
; AVX1-LABEL: bitcast_32i8_store:
|
||||
; AVX1: # %bb.0:
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm1
|
||||
; AVX1-NEXT: vpxor %xmm2, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpcmpgtb %xmm1, %xmm2, %xmm1
|
||||
; AVX1-NEXT: vpcmpgtb %xmm0, %xmm2, %xmm0
|
||||
; AVX1-NEXT: vpextrb $1, %xmm0, %eax
|
||||
; AVX1-NEXT: andl $1, %eax
|
||||
; AVX1-NEXT: vpextrb $0, %xmm0, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: leal (%rcx,%rax,2), %eax
|
||||
; AVX1-NEXT: vpextrb $2, %xmm0, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: leal (%rax,%rcx,4), %eax
|
||||
; AVX1-NEXT: vpextrb $3, %xmm0, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: leal (%rax,%rcx,8), %eax
|
||||
; AVX1-NEXT: vpextrb $4, %xmm0, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $4, %ecx
|
||||
; AVX1-NEXT: orl %eax, %ecx
|
||||
; AVX1-NEXT: vpextrb $5, %xmm0, %eax
|
||||
; AVX1-NEXT: andl $1, %eax
|
||||
; AVX1-NEXT: shll $5, %eax
|
||||
; AVX1-NEXT: orl %ecx, %eax
|
||||
; AVX1-NEXT: vpextrb $6, %xmm0, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $6, %ecx
|
||||
; AVX1-NEXT: vpextrb $7, %xmm0, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $7, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $8, %xmm0, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $8, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $9, %xmm0, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $9, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $10, %xmm0, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $10, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $11, %xmm0, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $11, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $12, %xmm0, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $12, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $13, %xmm0, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $13, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $14, %xmm0, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $14, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $15, %xmm0, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $15, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $0, %xmm1, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: vpxor %xmm1, %xmm1, %xmm1
|
||||
; AVX1-NEXT: vpcmpgtb %xmm0, %xmm1, %xmm2
|
||||
; AVX1-NEXT: vpmovmskb %xmm2, %eax
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm0
|
||||
; AVX1-NEXT: vpcmpgtb %xmm0, %xmm1, %xmm0
|
||||
; AVX1-NEXT: vpmovmskb %xmm0, %ecx
|
||||
; AVX1-NEXT: shll $16, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $1, %xmm1, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $17, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $2, %xmm1, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $18, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $3, %xmm1, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $19, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $4, %xmm1, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $20, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $5, %xmm1, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $21, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $6, %xmm1, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $22, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $7, %xmm1, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $23, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $8, %xmm1, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $24, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $9, %xmm1, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $25, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $10, %xmm1, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $26, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $11, %xmm1, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $27, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $12, %xmm1, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $28, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $13, %xmm1, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $29, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $14, %xmm1, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $30, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $15, %xmm1, %edx
|
||||
; AVX1-NEXT: shll $31, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: orl %eax, %edx
|
||||
; AVX1-NEXT: movl %edx, (%rdi)
|
||||
; AVX1-NEXT: orl %eax, %ecx
|
||||
; AVX1-NEXT: movl %ecx, (%rdi)
|
||||
; AVX1-NEXT: vzeroupper
|
||||
; AVX1-NEXT: retq
|
||||
;
|
||||
; AVX2-LABEL: bitcast_32i8_store:
|
||||
; AVX2: # %bb.0:
|
||||
; AVX2-NEXT: vpxor %xmm1, %xmm1, %xmm1
|
||||
; AVX2-NEXT: vpcmpgtb %ymm0, %ymm1, %ymm0
|
||||
; AVX2-NEXT: vpextrb $1, %xmm0, %eax
|
||||
; AVX2-NEXT: andl $1, %eax
|
||||
; AVX2-NEXT: vpextrb $0, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: leal (%rcx,%rax,2), %eax
|
||||
; AVX2-NEXT: vpextrb $2, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: leal (%rax,%rcx,4), %eax
|
||||
; AVX2-NEXT: vpextrb $3, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: leal (%rax,%rcx,8), %eax
|
||||
; AVX2-NEXT: vpextrb $4, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $4, %ecx
|
||||
; AVX2-NEXT: orl %eax, %ecx
|
||||
; AVX2-NEXT: vpextrb $5, %xmm0, %eax
|
||||
; AVX2-NEXT: andl $1, %eax
|
||||
; AVX2-NEXT: shll $5, %eax
|
||||
; AVX2-NEXT: orl %ecx, %eax
|
||||
; AVX2-NEXT: vpextrb $6, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $6, %ecx
|
||||
; AVX2-NEXT: vpextrb $7, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $7, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $8, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $8, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $9, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $9, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $10, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $10, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $11, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $11, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $12, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $12, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $13, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $13, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $14, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $14, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $15, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $15, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vextracti128 $1, %ymm0, %xmm0
|
||||
; AVX2-NEXT: vpextrb $0, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $16, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $1, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $17, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $2, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $18, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $3, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $19, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $4, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $20, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $5, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $21, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $6, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $22, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $7, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $23, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $8, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $24, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $9, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $25, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $10, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $26, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $11, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $27, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $12, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $28, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $13, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $29, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $14, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $30, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $15, %xmm0, %edx
|
||||
; AVX2-NEXT: shll $31, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: orl %eax, %edx
|
||||
; AVX2-NEXT: movl %edx, (%rdi)
|
||||
; AVX2-NEXT: vpmovmskb %ymm0, %eax
|
||||
; AVX2-NEXT: movl %eax, (%rdi)
|
||||
; AVX2-NEXT: vzeroupper
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
|
@ -740,66 +379,8 @@ define void @bitcast_16i16_store(i16* %p, <16 x i16> %a0) {
|
|||
; SSE2-SSSE3-NEXT: pcmpgtw %xmm1, %xmm3
|
||||
; SSE2-SSSE3-NEXT: pcmpgtw %xmm0, %xmm2
|
||||
; SSE2-SSSE3-NEXT: packsswb %xmm3, %xmm2
|
||||
; SSE2-SSSE3-NEXT: movdqa %xmm2, -{{[0-9]+}}(%rsp)
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %eax
|
||||
; SSE2-SSSE3-NEXT: andl $1, %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: leal (%rcx,%rax,2), %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: leal (%rax,%rcx,4), %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: leal (%rax,%rcx,8), %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $4, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %eax, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %eax
|
||||
; SSE2-SSSE3-NEXT: andl $1, %eax
|
||||
; SSE2-SSSE3-NEXT: shll $5, %eax
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %eax
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $6, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $7, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $8, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $9, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $10, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $11, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $12, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %edx
|
||||
; SSE2-SSSE3-NEXT: shll $13, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %ecx
|
||||
; SSE2-SSSE3-NEXT: andl $1, %ecx
|
||||
; SSE2-SSSE3-NEXT: shll $14, %ecx
|
||||
; SSE2-SSSE3-NEXT: orl %edx, %ecx
|
||||
; SSE2-SSSE3-NEXT: movzbl -{{[0-9]+}}(%rsp), %edx
|
||||
; SSE2-SSSE3-NEXT: shll $15, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %ecx, %edx
|
||||
; SSE2-SSSE3-NEXT: orl %eax, %edx
|
||||
; SSE2-SSSE3-NEXT: movw %dx, (%rdi)
|
||||
; SSE2-SSSE3-NEXT: pmovmskb %xmm2, %eax
|
||||
; SSE2-SSSE3-NEXT: movw %ax, (%rdi)
|
||||
; SSE2-SSSE3-NEXT: retq
|
||||
;
|
||||
; AVX1-LABEL: bitcast_16i16_store:
|
||||
|
@ -808,132 +389,20 @@ define void @bitcast_16i16_store(i16* %p, <16 x i16> %a0) {
|
|||
; AVX1-NEXT: vpxor %xmm2, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpcmpgtw %xmm1, %xmm2, %xmm1
|
||||
; AVX1-NEXT: vpcmpgtw %xmm0, %xmm2, %xmm0
|
||||
; AVX1-NEXT: vpextrb $2, %xmm0, %eax
|
||||
; AVX1-NEXT: andl $1, %eax
|
||||
; AVX1-NEXT: vpextrb $0, %xmm0, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: leal (%rcx,%rax,2), %eax
|
||||
; AVX1-NEXT: vpextrb $4, %xmm0, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: leal (%rax,%rcx,4), %eax
|
||||
; AVX1-NEXT: vpextrb $6, %xmm0, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: leal (%rax,%rcx,8), %eax
|
||||
; AVX1-NEXT: vpextrb $8, %xmm0, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $4, %ecx
|
||||
; AVX1-NEXT: orl %eax, %ecx
|
||||
; AVX1-NEXT: vpextrb $10, %xmm0, %eax
|
||||
; AVX1-NEXT: andl $1, %eax
|
||||
; AVX1-NEXT: shll $5, %eax
|
||||
; AVX1-NEXT: orl %ecx, %eax
|
||||
; AVX1-NEXT: vpextrb $12, %xmm0, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $6, %ecx
|
||||
; AVX1-NEXT: vpextrb $14, %xmm0, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $7, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $0, %xmm1, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $8, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $2, %xmm1, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $9, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $4, %xmm1, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $10, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $6, %xmm1, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $11, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $8, %xmm1, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $12, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $10, %xmm1, %edx
|
||||
; AVX1-NEXT: andl $1, %edx
|
||||
; AVX1-NEXT: shll $13, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: vpextrb $12, %xmm1, %ecx
|
||||
; AVX1-NEXT: andl $1, %ecx
|
||||
; AVX1-NEXT: shll $14, %ecx
|
||||
; AVX1-NEXT: orl %edx, %ecx
|
||||
; AVX1-NEXT: vpextrb $14, %xmm1, %edx
|
||||
; AVX1-NEXT: shll $15, %edx
|
||||
; AVX1-NEXT: orl %ecx, %edx
|
||||
; AVX1-NEXT: orl %eax, %edx
|
||||
; AVX1-NEXT: movw %dx, (%rdi)
|
||||
; AVX1-NEXT: vpacksswb %xmm1, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vpmovmskb %xmm0, %eax
|
||||
; AVX1-NEXT: movw %ax, (%rdi)
|
||||
; AVX1-NEXT: vzeroupper
|
||||
; AVX1-NEXT: retq
|
||||
;
|
||||
; AVX2-LABEL: bitcast_16i16_store:
|
||||
; AVX2: # %bb.0:
|
||||
; AVX2-NEXT: vpxor %xmm1, %xmm1, %xmm1
|
||||
; AVX2-NEXT: vpcmpgtw %ymm0, %ymm1, %ymm1
|
||||
; AVX2-NEXT: vextracti128 $1, %ymm1, %xmm0
|
||||
; AVX2-NEXT: vpextrb $2, %xmm1, %eax
|
||||
; AVX2-NEXT: andl $1, %eax
|
||||
; AVX2-NEXT: vpextrb $0, %xmm1, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: leal (%rcx,%rax,2), %eax
|
||||
; AVX2-NEXT: vpextrb $4, %xmm1, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: leal (%rax,%rcx,4), %eax
|
||||
; AVX2-NEXT: vpextrb $6, %xmm1, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: leal (%rax,%rcx,8), %eax
|
||||
; AVX2-NEXT: vpextrb $8, %xmm1, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $4, %ecx
|
||||
; AVX2-NEXT: orl %eax, %ecx
|
||||
; AVX2-NEXT: vpextrb $10, %xmm1, %eax
|
||||
; AVX2-NEXT: andl $1, %eax
|
||||
; AVX2-NEXT: shll $5, %eax
|
||||
; AVX2-NEXT: orl %ecx, %eax
|
||||
; AVX2-NEXT: vpextrb $12, %xmm1, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $6, %ecx
|
||||
; AVX2-NEXT: vpextrb $14, %xmm1, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $7, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $0, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $8, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $2, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $9, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $4, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $10, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $6, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $11, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $8, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $12, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $10, %xmm0, %edx
|
||||
; AVX2-NEXT: andl $1, %edx
|
||||
; AVX2-NEXT: shll $13, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: vpextrb $12, %xmm0, %ecx
|
||||
; AVX2-NEXT: andl $1, %ecx
|
||||
; AVX2-NEXT: shll $14, %ecx
|
||||
; AVX2-NEXT: orl %edx, %ecx
|
||||
; AVX2-NEXT: vpextrb $14, %xmm0, %edx
|
||||
; AVX2-NEXT: shll $15, %edx
|
||||
; AVX2-NEXT: orl %ecx, %edx
|
||||
; AVX2-NEXT: orl %eax, %edx
|
||||
; AVX2-NEXT: movw %dx, (%rdi)
|
||||
; AVX2-NEXT: vpcmpgtw %ymm0, %ymm1, %ymm0
|
||||
; AVX2-NEXT: vextracti128 $1, %ymm0, %xmm1
|
||||
; AVX2-NEXT: vpacksswb %xmm1, %xmm0, %xmm0
|
||||
; AVX2-NEXT: vpmovmskb %xmm0, %eax
|
||||
; AVX2-NEXT: movw %ax, (%rdi)
|
||||
; AVX2-NEXT: vzeroupper
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
|
@ -1024,75 +493,17 @@ define void @bitcast_4i64_store(i4* %p, <4 x i64> %a0) {
|
|||
; SSE2-SSSE3-NEXT: pand %xmm4, %xmm0
|
||||
; SSE2-SSSE3-NEXT: pshufd {{.*#+}} xmm1 = xmm1[1,1,3,3]
|
||||
; SSE2-SSSE3-NEXT: por %xmm0, %xmm1
|
||||
; SSE2-SSSE3-NEXT: movdqa %xmm1, %xmm0
|
||||
; SSE2-SSSE3-NEXT: shufps {{.*#+}} xmm0 = xmm0[0,2],xmm3[0,2]
|
||||
; SSE2-SSSE3-NEXT: movd %xmm1, %eax
|
||||
; SSE2-SSSE3-NEXT: shufps {{.*#+}} xmm1 = xmm1[2,2],xmm3[0,2]
|
||||
; SSE2-SSSE3-NEXT: movd %xmm1, %ecx
|
||||
; SSE2-SSSE3-NEXT: andb $1, %cl
|
||||
; SSE2-SSSE3-NEXT: addb %cl, %cl
|
||||
; SSE2-SSSE3-NEXT: andb $1, %al
|
||||
; SSE2-SSSE3-NEXT: movd %xmm3, %edx
|
||||
; SSE2-SSSE3-NEXT: andb $1, %dl
|
||||
; SSE2-SSSE3-NEXT: shlb $2, %dl
|
||||
; SSE2-SSSE3-NEXT: orb %cl, %dl
|
||||
; SSE2-SSSE3-NEXT: shufps {{.*#+}} xmm0 = xmm0[3,1,2,3]
|
||||
; SSE2-SSSE3-NEXT: movd %xmm0, %ecx
|
||||
; SSE2-SSSE3-NEXT: shlb $3, %cl
|
||||
; SSE2-SSSE3-NEXT: orb %dl, %cl
|
||||
; SSE2-SSSE3-NEXT: orb %al, %cl
|
||||
; SSE2-SSSE3-NEXT: andb $15, %cl
|
||||
; SSE2-SSSE3-NEXT: movb %cl, (%rdi)
|
||||
; SSE2-SSSE3-NEXT: packssdw %xmm3, %xmm1
|
||||
; SSE2-SSSE3-NEXT: movmskps %xmm1, %eax
|
||||
; SSE2-SSSE3-NEXT: movb %al, (%rdi)
|
||||
; SSE2-SSSE3-NEXT: retq
|
||||
;
|
||||
; AVX1-LABEL: bitcast_4i64_store:
|
||||
; AVX1: # %bb.0:
|
||||
; AVX1-NEXT: vextractf128 $1, %ymm0, %xmm1
|
||||
; AVX1-NEXT: vpxor %xmm2, %xmm2, %xmm2
|
||||
; AVX1-NEXT: vpcmpgtq %xmm1, %xmm2, %xmm1
|
||||
; AVX1-NEXT: vpcmpgtq %xmm0, %xmm2, %xmm0
|
||||
; AVX1-NEXT: vpackssdw %xmm1, %xmm0, %xmm0
|
||||
; AVX1-NEXT: vmovd %xmm0, %eax
|
||||
; AVX1-NEXT: andb $1, %al
|
||||
; AVX1-NEXT: vpextrd $1, %xmm0, %ecx
|
||||
; AVX1-NEXT: andb $1, %cl
|
||||
; AVX1-NEXT: addb %cl, %cl
|
||||
; AVX1-NEXT: vpextrd $2, %xmm0, %edx
|
||||
; AVX1-NEXT: andb $1, %dl
|
||||
; AVX1-NEXT: shlb $2, %dl
|
||||
; AVX1-NEXT: orb %cl, %dl
|
||||
; AVX1-NEXT: vpextrd $3, %xmm0, %ecx
|
||||
; AVX1-NEXT: shlb $3, %cl
|
||||
; AVX1-NEXT: orb %dl, %cl
|
||||
; AVX1-NEXT: orb %al, %cl
|
||||
; AVX1-NEXT: andb $15, %cl
|
||||
; AVX1-NEXT: movb %cl, (%rdi)
|
||||
; AVX1-NEXT: vzeroupper
|
||||
; AVX1-NEXT: retq
|
||||
;
|
||||
; AVX2-LABEL: bitcast_4i64_store:
|
||||
; AVX2: # %bb.0:
|
||||
; AVX2-NEXT: vpxor %xmm1, %xmm1, %xmm1
|
||||
; AVX2-NEXT: vpcmpgtq %ymm0, %ymm1, %ymm0
|
||||
; AVX2-NEXT: vextracti128 $1, %ymm0, %xmm1
|
||||
; AVX2-NEXT: vpackssdw %xmm1, %xmm0, %xmm0
|
||||
; AVX2-NEXT: vmovd %xmm0, %eax
|
||||
; AVX2-NEXT: andb $1, %al
|
||||
; AVX2-NEXT: vpextrd $1, %xmm0, %ecx
|
||||
; AVX2-NEXT: andb $1, %cl
|
||||
; AVX2-NEXT: addb %cl, %cl
|
||||
; AVX2-NEXT: vpextrd $2, %xmm0, %edx
|
||||
; AVX2-NEXT: andb $1, %dl
|
||||
; AVX2-NEXT: shlb $2, %dl
|
||||
; AVX2-NEXT: orb %cl, %dl
|
||||
; AVX2-NEXT: vpextrd $3, %xmm0, %ecx
|
||||
; AVX2-NEXT: shlb $3, %cl
|
||||
; AVX2-NEXT: orb %dl, %cl
|
||||
; AVX2-NEXT: orb %al, %cl
|
||||
; AVX2-NEXT: andb $15, %cl
|
||||
; AVX2-NEXT: movb %cl, (%rdi)
|
||||
; AVX2-NEXT: vzeroupper
|
||||
; AVX2-NEXT: retq
|
||||
; AVX12-LABEL: bitcast_4i64_store:
|
||||
; AVX12: # %bb.0:
|
||||
; AVX12-NEXT: vmovmskpd %ymm0, %eax
|
||||
; AVX12-NEXT: movb %al, (%rdi)
|
||||
; AVX12-NEXT: vzeroupper
|
||||
; AVX12-NEXT: retq
|
||||
;
|
||||
; AVX512F-LABEL: bitcast_4i64_store:
|
||||
; AVX512F: # %bb.0:
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue