2018-08-28 05:13:07 +08:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2018-08-31 04:10:10 +08:00
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X64
|
|
|
|
; RUN: llc < %s -mtriple=i386-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefix=X86
|
2018-08-28 05:13:07 +08:00
|
|
|
|
|
|
|
define void @test_udiv7_v2i32(<2 x i32>* %x, <2 x i32>* %y) nounwind {
|
|
|
|
; X64-LABEL: test_udiv7_v2i32:
|
|
|
|
; X64: # %bb.0:
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: movdqa {{.*#+}} xmm1 = [613566757,613566757,613566757,613566757]
|
|
|
|
; X64-NEXT: movdqa %xmm0, %xmm2
|
|
|
|
; X64-NEXT: pmuludq %xmm1, %xmm2
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm2 = xmm2[1,3,2,3]
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm3 = xmm0[1,1,3,3]
|
|
|
|
; X64-NEXT: pmuludq %xmm1, %xmm3
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm1 = xmm3[1,3,2,3]
|
|
|
|
; X64-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
|
|
|
|
; X64-NEXT: psubd %xmm2, %xmm0
|
|
|
|
; X64-NEXT: psrld $1, %xmm0
|
|
|
|
; X64-NEXT: paddd %xmm2, %xmm0
|
|
|
|
; X64-NEXT: psrld $2, %xmm0
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: movq %xmm0, (%rsi)
|
|
|
|
; X64-NEXT: retq
|
|
|
|
;
|
|
|
|
; X86-LABEL: test_udiv7_v2i32:
|
|
|
|
; X86: # %bb.0:
|
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
2018-09-13 14:13:37 +08:00
|
|
|
; X86-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movdqa {{.*#+}} xmm1 = [613566757,613566757,613566757,613566757]
|
|
|
|
; X86-NEXT: movdqa %xmm0, %xmm2
|
|
|
|
; X86-NEXT: pmuludq %xmm1, %xmm2
|
|
|
|
; X86-NEXT: pshufd {{.*#+}} xmm2 = xmm2[1,3,2,3]
|
|
|
|
; X86-NEXT: movdqa %xmm0, %xmm3
|
|
|
|
; X86-NEXT: shufps {{.*#+}} xmm3 = xmm3[1,1],xmm0[2,3]
|
|
|
|
; X86-NEXT: pmuludq %xmm1, %xmm3
|
|
|
|
; X86-NEXT: pshufd {{.*#+}} xmm1 = xmm3[1,3,2,3]
|
|
|
|
; X86-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
|
|
|
|
; X86-NEXT: psubd %xmm2, %xmm0
|
|
|
|
; X86-NEXT: psrld $1, %xmm0
|
|
|
|
; X86-NEXT: paddd %xmm2, %xmm0
|
|
|
|
; X86-NEXT: psrld $2, %xmm0
|
|
|
|
; X86-NEXT: movq %xmm0, (%eax)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X86-NEXT: retl
|
2018-08-28 05:13:07 +08:00
|
|
|
%a = load <2 x i32>, <2 x i32>* %x
|
|
|
|
%b = udiv <2 x i32> %a, <i32 7, i32 7>
|
|
|
|
store <2 x i32> %b, <2 x i32>* %y
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_urem7_v2i32(<2 x i32>* %x, <2 x i32>* %y) nounwind {
|
|
|
|
; X64-LABEL: test_urem7_v2i32:
|
|
|
|
; X64: # %bb.0:
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: movdqa {{.*#+}} xmm1 = [613566757,613566757,613566757,613566757]
|
|
|
|
; X64-NEXT: movdqa %xmm0, %xmm2
|
|
|
|
; X64-NEXT: pmuludq %xmm1, %xmm2
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm2 = xmm2[1,3,2,3]
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm3 = xmm0[1,1,3,3]
|
|
|
|
; X64-NEXT: pmuludq %xmm1, %xmm3
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm1 = xmm3[1,3,2,3]
|
|
|
|
; X64-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
|
|
|
|
; X64-NEXT: movdqa %xmm0, %xmm1
|
|
|
|
; X64-NEXT: psubd %xmm2, %xmm1
|
|
|
|
; X64-NEXT: psrld $1, %xmm1
|
|
|
|
; X64-NEXT: paddd %xmm2, %xmm1
|
|
|
|
; X64-NEXT: psrld $2, %xmm1
|
|
|
|
; X64-NEXT: movdqa %xmm1, %xmm2
|
|
|
|
; X64-NEXT: pslld $3, %xmm2
|
|
|
|
; X64-NEXT: psubd %xmm2, %xmm1
|
|
|
|
; X64-NEXT: paddd %xmm0, %xmm1
|
|
|
|
; X64-NEXT: movq %xmm1, (%rsi)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: retq
|
|
|
|
;
|
|
|
|
; X86-LABEL: test_urem7_v2i32:
|
|
|
|
; X86: # %bb.0:
|
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
2018-09-13 14:13:37 +08:00
|
|
|
; X86-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movdqa {{.*#+}} xmm1 = [613566757,613566757,613566757,613566757]
|
|
|
|
; X86-NEXT: movdqa %xmm0, %xmm2
|
|
|
|
; X86-NEXT: pmuludq %xmm1, %xmm2
|
|
|
|
; X86-NEXT: pshufd {{.*#+}} xmm2 = xmm2[1,3,2,3]
|
|
|
|
; X86-NEXT: movdqa %xmm0, %xmm3
|
|
|
|
; X86-NEXT: shufps {{.*#+}} xmm3 = xmm3[1,1],xmm0[2,3]
|
|
|
|
; X86-NEXT: pmuludq %xmm1, %xmm3
|
|
|
|
; X86-NEXT: pshufd {{.*#+}} xmm1 = xmm3[1,3,2,3]
|
|
|
|
; X86-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
|
|
|
|
; X86-NEXT: movdqa %xmm0, %xmm1
|
|
|
|
; X86-NEXT: psubd %xmm2, %xmm1
|
|
|
|
; X86-NEXT: psrld $1, %xmm1
|
|
|
|
; X86-NEXT: paddd %xmm2, %xmm1
|
|
|
|
; X86-NEXT: psrld $2, %xmm1
|
|
|
|
; X86-NEXT: movdqa %xmm1, %xmm2
|
|
|
|
; X86-NEXT: pslld $3, %xmm2
|
|
|
|
; X86-NEXT: psubd %xmm2, %xmm1
|
|
|
|
; X86-NEXT: paddd %xmm0, %xmm1
|
|
|
|
; X86-NEXT: movq %xmm1, (%eax)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X86-NEXT: retl
|
2018-08-28 05:13:07 +08:00
|
|
|
%a = load <2 x i32>, <2 x i32>* %x
|
|
|
|
%b = urem <2 x i32> %a, <i32 7, i32 7>
|
|
|
|
store <2 x i32> %b, <2 x i32>* %y
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_sdiv7_v2i32(<2 x i32>* %x, <2 x i32>* %y) nounwind {
|
|
|
|
; X64-LABEL: test_sdiv7_v2i32:
|
|
|
|
; X64: # %bb.0:
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: movdqa {{.*#+}} xmm1 = [2454267027,2454267027,2454267027,2454267027]
|
|
|
|
; X64-NEXT: movdqa %xmm0, %xmm2
|
|
|
|
; X64-NEXT: pmuludq %xmm1, %xmm2
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm2 = xmm2[1,3,2,3]
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm3 = xmm0[1,1,3,3]
|
|
|
|
; X64-NEXT: pmuludq %xmm1, %xmm3
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm3 = xmm3[1,3,2,3]
|
|
|
|
; X64-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
|
|
|
|
; X64-NEXT: pxor %xmm3, %xmm3
|
|
|
|
; X64-NEXT: pcmpgtd %xmm0, %xmm3
|
|
|
|
; X64-NEXT: pand %xmm1, %xmm3
|
|
|
|
; X64-NEXT: paddd %xmm0, %xmm3
|
|
|
|
; X64-NEXT: psubd %xmm3, %xmm2
|
|
|
|
; X64-NEXT: paddd %xmm0, %xmm2
|
|
|
|
; X64-NEXT: movdqa %xmm2, %xmm0
|
|
|
|
; X64-NEXT: psrld $31, %xmm0
|
|
|
|
; X64-NEXT: psrad $2, %xmm2
|
|
|
|
; X64-NEXT: paddd %xmm0, %xmm2
|
|
|
|
; X64-NEXT: movq %xmm2, (%rsi)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: retq
|
|
|
|
;
|
|
|
|
; X86-LABEL: test_sdiv7_v2i32:
|
|
|
|
; X86: # %bb.0:
|
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
2018-09-13 14:13:37 +08:00
|
|
|
; X86-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movdqa {{.*#+}} xmm1 = [2454267027,2454267027,2454267027,2454267027]
|
|
|
|
; X86-NEXT: movdqa %xmm0, %xmm2
|
|
|
|
; X86-NEXT: pmuludq %xmm1, %xmm2
|
|
|
|
; X86-NEXT: pshufd {{.*#+}} xmm2 = xmm2[1,3,2,3]
|
|
|
|
; X86-NEXT: movdqa %xmm0, %xmm3
|
|
|
|
; X86-NEXT: shufps {{.*#+}} xmm3 = xmm3[1,1],xmm0[2,3]
|
|
|
|
; X86-NEXT: pmuludq %xmm1, %xmm3
|
|
|
|
; X86-NEXT: pshufd {{.*#+}} xmm3 = xmm3[1,3,2,3]
|
|
|
|
; X86-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
|
|
|
|
; X86-NEXT: pxor %xmm3, %xmm3
|
|
|
|
; X86-NEXT: pcmpgtd %xmm0, %xmm3
|
|
|
|
; X86-NEXT: pand %xmm1, %xmm3
|
|
|
|
; X86-NEXT: paddd %xmm0, %xmm3
|
|
|
|
; X86-NEXT: psubd %xmm3, %xmm2
|
|
|
|
; X86-NEXT: paddd %xmm0, %xmm2
|
|
|
|
; X86-NEXT: movdqa %xmm2, %xmm0
|
|
|
|
; X86-NEXT: psrld $31, %xmm0
|
|
|
|
; X86-NEXT: psrad $2, %xmm2
|
|
|
|
; X86-NEXT: paddd %xmm0, %xmm2
|
|
|
|
; X86-NEXT: movq %xmm2, (%eax)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X86-NEXT: retl
|
2018-08-28 05:13:07 +08:00
|
|
|
%a = load <2 x i32>, <2 x i32>* %x
|
|
|
|
%b = sdiv <2 x i32> %a, <i32 7, i32 7>
|
|
|
|
store <2 x i32> %b, <2 x i32>* %y
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_srem7_v2i32(<2 x i32>* %x, <2 x i32>* %y) nounwind {
|
|
|
|
; X64-LABEL: test_srem7_v2i32:
|
|
|
|
; X64: # %bb.0:
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: movdqa {{.*#+}} xmm1 = [2454267027,2454267027,2454267027,2454267027]
|
|
|
|
; X64-NEXT: movdqa %xmm0, %xmm2
|
|
|
|
; X64-NEXT: pmuludq %xmm1, %xmm2
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm2 = xmm2[1,3,2,3]
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm3 = xmm0[1,1,3,3]
|
|
|
|
; X64-NEXT: pmuludq %xmm1, %xmm3
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm3 = xmm3[1,3,2,3]
|
|
|
|
; X64-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
|
|
|
|
; X64-NEXT: pxor %xmm3, %xmm3
|
|
|
|
; X64-NEXT: pcmpgtd %xmm0, %xmm3
|
|
|
|
; X64-NEXT: pand %xmm1, %xmm3
|
|
|
|
; X64-NEXT: paddd %xmm0, %xmm3
|
|
|
|
; X64-NEXT: psubd %xmm3, %xmm2
|
|
|
|
; X64-NEXT: paddd %xmm0, %xmm2
|
|
|
|
; X64-NEXT: movdqa %xmm2, %xmm1
|
|
|
|
; X64-NEXT: psrld $31, %xmm1
|
|
|
|
; X64-NEXT: psrad $2, %xmm2
|
|
|
|
; X64-NEXT: paddd %xmm1, %xmm2
|
|
|
|
; X64-NEXT: movdqa %xmm2, %xmm1
|
|
|
|
; X64-NEXT: pslld $3, %xmm1
|
|
|
|
; X64-NEXT: psubd %xmm1, %xmm2
|
|
|
|
; X64-NEXT: paddd %xmm0, %xmm2
|
|
|
|
; X64-NEXT: movq %xmm2, (%rsi)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: retq
|
|
|
|
;
|
|
|
|
; X86-LABEL: test_srem7_v2i32:
|
|
|
|
; X86: # %bb.0:
|
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
2018-09-13 14:13:37 +08:00
|
|
|
; X86-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movdqa {{.*#+}} xmm1 = [2454267027,2454267027,2454267027,2454267027]
|
|
|
|
; X86-NEXT: movdqa %xmm0, %xmm2
|
|
|
|
; X86-NEXT: pmuludq %xmm1, %xmm2
|
|
|
|
; X86-NEXT: pshufd {{.*#+}} xmm2 = xmm2[1,3,2,3]
|
|
|
|
; X86-NEXT: movdqa %xmm0, %xmm3
|
|
|
|
; X86-NEXT: shufps {{.*#+}} xmm3 = xmm3[1,1],xmm0[2,3]
|
|
|
|
; X86-NEXT: pmuludq %xmm1, %xmm3
|
|
|
|
; X86-NEXT: pshufd {{.*#+}} xmm3 = xmm3[1,3,2,3]
|
|
|
|
; X86-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
|
|
|
|
; X86-NEXT: pxor %xmm3, %xmm3
|
|
|
|
; X86-NEXT: pcmpgtd %xmm0, %xmm3
|
|
|
|
; X86-NEXT: pand %xmm1, %xmm3
|
|
|
|
; X86-NEXT: paddd %xmm0, %xmm3
|
|
|
|
; X86-NEXT: psubd %xmm3, %xmm2
|
|
|
|
; X86-NEXT: paddd %xmm0, %xmm2
|
|
|
|
; X86-NEXT: movdqa %xmm2, %xmm1
|
|
|
|
; X86-NEXT: psrld $31, %xmm1
|
|
|
|
; X86-NEXT: psrad $2, %xmm2
|
|
|
|
; X86-NEXT: paddd %xmm1, %xmm2
|
|
|
|
; X86-NEXT: movdqa %xmm2, %xmm1
|
|
|
|
; X86-NEXT: pslld $3, %xmm1
|
|
|
|
; X86-NEXT: psubd %xmm1, %xmm2
|
|
|
|
; X86-NEXT: paddd %xmm0, %xmm2
|
|
|
|
; X86-NEXT: movq %xmm2, (%eax)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X86-NEXT: retl
|
2018-08-28 05:13:07 +08:00
|
|
|
%a = load <2 x i32>, <2 x i32>* %x
|
|
|
|
%b = srem <2 x i32> %a, <i32 7, i32 7>
|
|
|
|
store <2 x i32> %b, <2 x i32>* %y
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_udiv_pow2_v2i32(<2 x i32>* %x, <2 x i32>* %y) nounwind {
|
|
|
|
; X64-LABEL: test_udiv_pow2_v2i32:
|
|
|
|
; X64: # %bb.0:
|
|
|
|
; X64-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: psrld $3, %xmm0
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: movq %xmm0, (%rsi)
|
|
|
|
; X64-NEXT: retq
|
|
|
|
;
|
|
|
|
; X86-LABEL: test_udiv_pow2_v2i32:
|
|
|
|
; X86: # %bb.0:
|
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
|
|
|
; X86-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: psrld $3, %xmm0
|
2018-08-28 05:34:37 +08:00
|
|
|
; X86-NEXT: movq %xmm0, (%eax)
|
|
|
|
; X86-NEXT: retl
|
2018-08-28 05:13:07 +08:00
|
|
|
%a = load <2 x i32>, <2 x i32>* %x
|
|
|
|
%b = udiv <2 x i32> %a, <i32 8, i32 8>
|
|
|
|
store <2 x i32> %b, <2 x i32>* %y
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_urem_pow2_v2i32(<2 x i32>* %x, <2 x i32>* %y) nounwind {
|
|
|
|
; X64-LABEL: test_urem_pow2_v2i32:
|
|
|
|
; X64: # %bb.0:
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
|
|
|
|
; X64-NEXT: andps {{.*}}(%rip), %xmm0
|
|
|
|
; X64-NEXT: movlps %xmm0, (%rsi)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: retq
|
|
|
|
;
|
|
|
|
; X86-LABEL: test_urem_pow2_v2i32:
|
|
|
|
; X86: # %bb.0:
|
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
2018-10-06 18:20:04 +08:00
|
|
|
; X86-NEXT: movsd {{.*#+}} xmm0 = mem[0],zero
|
|
|
|
; X86-NEXT: andps {{\.LCPI.*}}, %xmm0
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movlps %xmm0, (%eax)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X86-NEXT: retl
|
2018-08-28 05:13:07 +08:00
|
|
|
%a = load <2 x i32>, <2 x i32>* %x
|
|
|
|
%b = urem <2 x i32> %a, <i32 8, i32 8>
|
|
|
|
store <2 x i32> %b, <2 x i32>* %y
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_sdiv_pow2_v2i32(<2 x i32>* %x, <2 x i32>* %y) nounwind {
|
|
|
|
; X64-LABEL: test_sdiv_pow2_v2i32:
|
|
|
|
; X64: # %bb.0:
|
|
|
|
; X64-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: movdqa %xmm0, %xmm1
|
2018-08-28 05:13:07 +08:00
|
|
|
; X64-NEXT: psrad $31, %xmm1
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: psrld $29, %xmm1
|
|
|
|
; X64-NEXT: paddd %xmm0, %xmm1
|
|
|
|
; X64-NEXT: psrad $3, %xmm1
|
|
|
|
; X64-NEXT: movq %xmm1, (%rsi)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: retq
|
|
|
|
;
|
|
|
|
; X86-LABEL: test_sdiv_pow2_v2i32:
|
|
|
|
; X86: # %bb.0:
|
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
2019-03-15 19:05:42 +08:00
|
|
|
; X86-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movdqa %xmm0, %xmm1
|
2019-03-15 19:05:42 +08:00
|
|
|
; X86-NEXT: psrad $31, %xmm1
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: psrld $29, %xmm1
|
|
|
|
; X86-NEXT: paddd %xmm0, %xmm1
|
|
|
|
; X86-NEXT: psrad $3, %xmm1
|
|
|
|
; X86-NEXT: movq %xmm1, (%eax)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X86-NEXT: retl
|
2018-08-28 05:13:07 +08:00
|
|
|
%a = load <2 x i32>, <2 x i32>* %x
|
|
|
|
%b = sdiv <2 x i32> %a, <i32 8, i32 8>
|
|
|
|
store <2 x i32> %b, <2 x i32>* %y
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_srem_pow2_v2i32(<2 x i32>* %x, <2 x i32>* %y) nounwind {
|
|
|
|
; X64-LABEL: test_srem_pow2_v2i32:
|
|
|
|
; X64: # %bb.0:
|
|
|
|
; X64-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: psrld $3, %xmm0
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: movq %xmm0, (%rsi)
|
|
|
|
; X64-NEXT: retq
|
|
|
|
;
|
|
|
|
; X86-LABEL: test_srem_pow2_v2i32:
|
|
|
|
; X86: # %bb.0:
|
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
|
|
|
; X86-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: psrld $3, %xmm0
|
2018-08-28 05:34:37 +08:00
|
|
|
; X86-NEXT: movq %xmm0, (%eax)
|
|
|
|
; X86-NEXT: retl
|
2018-08-28 05:13:07 +08:00
|
|
|
%a = load <2 x i32>, <2 x i32>* %x
|
|
|
|
%b = udiv <2 x i32> %a, <i32 8, i32 8>
|
|
|
|
store <2 x i32> %b, <2 x i32>* %y
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2018-08-28 23:24:12 +08:00
|
|
|
define void @test_udiv_v2i32(<2 x i32>* %x, <2 x i32>* %y, <2 x i32>* %z) nounwind {
|
|
|
|
; X64-LABEL: test_udiv_v2i32:
|
|
|
|
; X64: # %bb.0:
|
|
|
|
; X64-NEXT: movq %rdx, %rcx
|
|
|
|
; X64-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: movq {{.*#+}} xmm1 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: movd %xmm0, %eax
|
|
|
|
; X64-NEXT: movd %xmm1, %esi
|
2018-08-28 23:24:12 +08:00
|
|
|
; X64-NEXT: xorl %edx, %edx
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: divl %esi
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: movd %eax, %xmm2
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm0 = xmm0[1,1,2,3]
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: movd %xmm0, %eax
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm0 = xmm1[1,1,2,3]
|
|
|
|
; X64-NEXT: movd %xmm0, %esi
|
2018-08-28 23:24:12 +08:00
|
|
|
; X64-NEXT: xorl %edx, %edx
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: divl %esi
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: movd %eax, %xmm0
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
|
|
|
|
; X64-NEXT: movq %xmm2, (%rcx)
|
2018-08-28 23:24:12 +08:00
|
|
|
; X64-NEXT: retq
|
|
|
|
;
|
|
|
|
; X86-LABEL: test_udiv_v2i32:
|
|
|
|
; X86: # %bb.0:
|
|
|
|
; X86-NEXT: pushl %esi
|
2019-08-07 07:00:43 +08:00
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %edx
|
2018-08-28 23:24:12 +08:00
|
|
|
; X86-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2018-09-13 14:13:37 +08:00
|
|
|
; X86-NEXT: movq {{.*#+}} xmm1 = mem[0],zero
|
|
|
|
; X86-NEXT: movd %xmm0, %eax
|
|
|
|
; X86-NEXT: movd %xmm1, %esi
|
|
|
|
; X86-NEXT: xorl %edx, %edx
|
|
|
|
; X86-NEXT: divl %esi
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movd %eax, %xmm2
|
|
|
|
; X86-NEXT: shufps {{.*#+}} xmm0 = xmm0[1,1,2,3]
|
|
|
|
; X86-NEXT: movd %xmm0, %eax
|
|
|
|
; X86-NEXT: shufps {{.*#+}} xmm1 = xmm1[1,1],xmm0[2,3]
|
|
|
|
; X86-NEXT: movd %xmm1, %esi
|
Bias physical register immediate assignments
The machine scheduler currently biases register copies to/from
physical registers to be closer to their point of use / def to
minimize their live ranges. This change extends this to also physical
register assignments from immediate values.
This causes a reduction in reduction in overall register pressure and
minor reduction in spills and indirectly fixes an out-of-registers
assertion (PR39391).
Most test changes are from minor instruction reorderings and register
name selection changes and direct consequences of that.
Reviewers: MatzeB, qcolombet, myatsina, pcc
Subscribers: nemanjai, jvesely, nhaehnle, eraman, hiraditya,
javed.absar, arphaman, jfb, jsji, llvm-commits
Differential Revision: https://reviews.llvm.org/D54218
llvm-svn: 346894
2018-11-15 05:11:53 +08:00
|
|
|
; X86-NEXT: xorl %edx, %edx
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: divl %esi
|
2018-08-28 23:24:12 +08:00
|
|
|
; X86-NEXT: movd %eax, %xmm0
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
|
|
|
|
; X86-NEXT: movq %xmm2, (%ecx)
|
2018-08-28 23:24:12 +08:00
|
|
|
; X86-NEXT: popl %esi
|
|
|
|
; X86-NEXT: retl
|
|
|
|
%a = load <2 x i32>, <2 x i32>* %x
|
|
|
|
%b = load <2 x i32>, <2 x i32>* %y
|
|
|
|
%c = udiv <2 x i32> %a, %b
|
|
|
|
store <2 x i32> %c, <2 x i32>* %z
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2018-08-28 05:13:07 +08:00
|
|
|
define void @test_urem_v2i32(<2 x i32>* %x, <2 x i32>* %y, <2 x i32>* %z) nounwind {
|
|
|
|
; X64-LABEL: test_urem_v2i32:
|
|
|
|
; X64: # %bb.0:
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: movq %rdx, %rcx
|
|
|
|
; X64-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: movq {{.*#+}} xmm1 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: movd %xmm0, %eax
|
|
|
|
; X64-NEXT: movd %xmm1, %esi
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: xorl %edx, %edx
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: divl %esi
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: movd %edx, %xmm2
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm0 = xmm0[1,1,2,3]
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: movd %xmm0, %eax
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm0 = xmm1[1,1,2,3]
|
|
|
|
; X64-NEXT: movd %xmm0, %esi
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: xorl %edx, %edx
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: divl %esi
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: movd %edx, %xmm0
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
|
|
|
|
; X64-NEXT: movq %xmm2, (%rcx)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: retq
|
|
|
|
;
|
|
|
|
; X86-LABEL: test_urem_v2i32:
|
|
|
|
; X86: # %bb.0:
|
|
|
|
; X86-NEXT: pushl %esi
|
2019-08-07 07:00:43 +08:00
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %edx
|
2018-08-28 23:24:12 +08:00
|
|
|
; X86-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
2018-09-13 14:13:37 +08:00
|
|
|
; X86-NEXT: movq {{.*#+}} xmm1 = mem[0],zero
|
|
|
|
; X86-NEXT: movd %xmm0, %eax
|
|
|
|
; X86-NEXT: movd %xmm1, %esi
|
|
|
|
; X86-NEXT: xorl %edx, %edx
|
|
|
|
; X86-NEXT: divl %esi
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movd %edx, %xmm2
|
|
|
|
; X86-NEXT: shufps {{.*#+}} xmm0 = xmm0[1,1,2,3]
|
|
|
|
; X86-NEXT: movd %xmm0, %eax
|
|
|
|
; X86-NEXT: shufps {{.*#+}} xmm1 = xmm1[1,1],xmm0[2,3]
|
|
|
|
; X86-NEXT: movd %xmm1, %esi
|
Bias physical register immediate assignments
The machine scheduler currently biases register copies to/from
physical registers to be closer to their point of use / def to
minimize their live ranges. This change extends this to also physical
register assignments from immediate values.
This causes a reduction in reduction in overall register pressure and
minor reduction in spills and indirectly fixes an out-of-registers
assertion (PR39391).
Most test changes are from minor instruction reorderings and register
name selection changes and direct consequences of that.
Reviewers: MatzeB, qcolombet, myatsina, pcc
Subscribers: nemanjai, jvesely, nhaehnle, eraman, hiraditya,
javed.absar, arphaman, jfb, jsji, llvm-commits
Differential Revision: https://reviews.llvm.org/D54218
llvm-svn: 346894
2018-11-15 05:11:53 +08:00
|
|
|
; X86-NEXT: xorl %edx, %edx
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: divl %esi
|
2018-09-13 14:13:37 +08:00
|
|
|
; X86-NEXT: movd %edx, %xmm0
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
|
|
|
|
; X86-NEXT: movq %xmm2, (%ecx)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X86-NEXT: popl %esi
|
|
|
|
; X86-NEXT: retl
|
2018-08-28 05:13:07 +08:00
|
|
|
%a = load <2 x i32>, <2 x i32>* %x
|
2018-08-28 23:24:12 +08:00
|
|
|
%b = load <2 x i32>, <2 x i32>* %y
|
2018-08-28 05:13:07 +08:00
|
|
|
%c = urem <2 x i32> %a, %b
|
|
|
|
store <2 x i32> %c, <2 x i32>* %z
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_sdiv_v2i32(<2 x i32>* %x, <2 x i32>* %y, <2 x i32>* %z) nounwind {
|
|
|
|
; X64-LABEL: test_sdiv_v2i32:
|
|
|
|
; X64: # %bb.0:
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: movq %rdx, %rcx
|
|
|
|
; X64-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
|
|
|
; X64-NEXT: movq {{.*#+}} xmm1 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: movd %xmm0, %eax
|
|
|
|
; X64-NEXT: movd %xmm1, %esi
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: cltd
|
|
|
|
; X64-NEXT: idivl %esi
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: movd %eax, %xmm2
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm0 = xmm0[1,1,2,3]
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: movd %xmm0, %eax
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm0 = xmm1[1,1,2,3]
|
|
|
|
; X64-NEXT: movd %xmm0, %esi
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: cltd
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: idivl %esi
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: movd %eax, %xmm0
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
|
|
|
|
; X64-NEXT: movq %xmm2, (%rcx)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: retq
|
|
|
|
;
|
|
|
|
; X86-LABEL: test_sdiv_v2i32:
|
|
|
|
; X86: # %bb.0:
|
|
|
|
; X86-NEXT: pushl %ebx
|
|
|
|
; X86-NEXT: pushl %edi
|
|
|
|
; X86-NEXT: pushl %esi
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %esi
|
2018-08-28 05:34:37 +08:00
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
2018-08-28 23:24:12 +08:00
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
2018-09-13 14:13:37 +08:00
|
|
|
; X86-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
|
|
|
; X86-NEXT: movq {{.*#+}} xmm1 = mem[0],zero
|
|
|
|
; X86-NEXT: movd %xmm0, %ecx
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: shufps {{.*#+}} xmm0 = xmm0[1,1,2,3]
|
2018-09-13 14:13:37 +08:00
|
|
|
; X86-NEXT: movd %xmm0, %eax
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movd %xmm1, %edi
|
|
|
|
; X86-NEXT: shufps {{.*#+}} xmm1 = xmm1[1,1],xmm0[2,3]
|
2018-09-13 14:13:37 +08:00
|
|
|
; X86-NEXT: movd %xmm1, %ebx
|
2019-08-06 02:25:36 +08:00
|
|
|
; X86-NEXT: cltd
|
2019-08-07 07:00:43 +08:00
|
|
|
; X86-NEXT: idivl %ebx
|
|
|
|
; X86-NEXT: movd %eax, %xmm0
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movl %ecx, %eax
|
|
|
|
; X86-NEXT: cltd
|
|
|
|
; X86-NEXT: idivl %edi
|
|
|
|
; X86-NEXT: movd %eax, %xmm1
|
|
|
|
; X86-NEXT: punpckldq {{.*#+}} xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
|
|
|
|
; X86-NEXT: movq %xmm1, (%esi)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X86-NEXT: popl %esi
|
|
|
|
; X86-NEXT: popl %edi
|
|
|
|
; X86-NEXT: popl %ebx
|
|
|
|
; X86-NEXT: retl
|
2018-08-28 05:13:07 +08:00
|
|
|
%a = load <2 x i32>, <2 x i32>* %x
|
2018-08-28 23:24:12 +08:00
|
|
|
%b = load <2 x i32>, <2 x i32>* %y
|
2018-08-28 05:13:07 +08:00
|
|
|
%c = sdiv <2 x i32> %a, %b
|
|
|
|
store <2 x i32> %c, <2 x i32>* %z
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define void @test_srem_v2i32(<2 x i32>* %x, <2 x i32>* %y, <2 x i32>* %z) nounwind {
|
|
|
|
; X64-LABEL: test_srem_v2i32:
|
|
|
|
; X64: # %bb.0:
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: movq %rdx, %rcx
|
|
|
|
; X64-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
|
|
|
; X64-NEXT: movq {{.*#+}} xmm1 = mem[0],zero
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: movd %xmm0, %eax
|
|
|
|
; X64-NEXT: movd %xmm1, %esi
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: cltd
|
|
|
|
; X64-NEXT: idivl %esi
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: movd %eax, %xmm2
|
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm0 = xmm0[1,1,2,3]
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: movd %xmm0, %eax
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: pshufd {{.*#+}} xmm0 = xmm1[1,1,2,3]
|
|
|
|
; X64-NEXT: movd %xmm0, %esi
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: cltd
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: idivl %esi
|
2018-09-13 14:13:37 +08:00
|
|
|
; X64-NEXT: movd %eax, %xmm0
|
2019-08-08 00:24:26 +08:00
|
|
|
; X64-NEXT: punpckldq {{.*#+}} xmm2 = xmm2[0],xmm0[0],xmm2[1],xmm0[1]
|
|
|
|
; X64-NEXT: movq %xmm2, (%rcx)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X64-NEXT: retq
|
|
|
|
;
|
|
|
|
; X86-LABEL: test_srem_v2i32:
|
|
|
|
; X86: # %bb.0:
|
|
|
|
; X86-NEXT: pushl %ebx
|
|
|
|
; X86-NEXT: pushl %edi
|
|
|
|
; X86-NEXT: pushl %esi
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %esi
|
2018-08-28 05:34:37 +08:00
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
|
2018-08-28 23:24:12 +08:00
|
|
|
; X86-NEXT: movl {{[0-9]+}}(%esp), %ecx
|
2018-09-13 14:13:37 +08:00
|
|
|
; X86-NEXT: movq {{.*#+}} xmm0 = mem[0],zero
|
|
|
|
; X86-NEXT: movq {{.*#+}} xmm1 = mem[0],zero
|
|
|
|
; X86-NEXT: movd %xmm0, %ecx
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: shufps {{.*#+}} xmm0 = xmm0[1,1,2,3]
|
2018-09-13 14:13:37 +08:00
|
|
|
; X86-NEXT: movd %xmm0, %eax
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movd %xmm1, %edi
|
|
|
|
; X86-NEXT: shufps {{.*#+}} xmm1 = xmm1[1,1],xmm0[2,3]
|
2018-09-13 14:13:37 +08:00
|
|
|
; X86-NEXT: movd %xmm1, %ebx
|
2019-08-06 02:25:36 +08:00
|
|
|
; X86-NEXT: cltd
|
2019-08-07 07:00:43 +08:00
|
|
|
; X86-NEXT: idivl %ebx
|
|
|
|
; X86-NEXT: movd %eax, %xmm0
|
2019-08-08 00:24:26 +08:00
|
|
|
; X86-NEXT: movl %ecx, %eax
|
|
|
|
; X86-NEXT: cltd
|
|
|
|
; X86-NEXT: idivl %edi
|
|
|
|
; X86-NEXT: movd %eax, %xmm1
|
|
|
|
; X86-NEXT: punpckldq {{.*#+}} xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
|
|
|
|
; X86-NEXT: movq %xmm1, (%esi)
|
2018-08-28 05:34:37 +08:00
|
|
|
; X86-NEXT: popl %esi
|
|
|
|
; X86-NEXT: popl %edi
|
|
|
|
; X86-NEXT: popl %ebx
|
|
|
|
; X86-NEXT: retl
|
2018-08-28 05:13:07 +08:00
|
|
|
%a = load <2 x i32>, <2 x i32>* %x
|
2018-08-28 23:24:12 +08:00
|
|
|
%b = load <2 x i32>, <2 x i32>* %y
|
2018-08-28 05:13:07 +08:00
|
|
|
%c = sdiv <2 x i32> %a, %b
|
|
|
|
store <2 x i32> %c, <2 x i32>* %z
|
|
|
|
ret void
|
|
|
|
}
|