mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[X86][AVX512] Split AVX512F/AVX512VL tests to demonstrate missed int2fp opportunities without AVX512VL
llvm-svn: 287348
This commit is contained in:
parent
482bb1693d
commit
dfc7a9279d
@ -2,7 +2,8 @@
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+sse2 | FileCheck %s --check-prefix=ALL --check-prefix=SSE --check-prefix=SSE2
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=VEX --check-prefix=AVX1
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx2 | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=VEX --check-prefix=AVX2
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512vl | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX512
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX512 --check-prefix=AVX512F
|
||||
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512vl | FileCheck %s --check-prefix=ALL --check-prefix=AVX --check-prefix=AVX512 --check-prefix=AVX512VL
|
||||
;
|
||||
; 32-bit tests to make sure we're not doing anything stupid.
|
||||
; RUN: llc < %s -mtriple=i686-unknown-unknown
|
||||
@ -237,21 +238,37 @@ define <4 x double> @sitofp_4i64_to_4f64(<4 x i64> %a) {
|
||||
; AVX2-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: sitofp_4i64_to_4f64:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vextracti32x4 $1, %ymm0, %xmm1
|
||||
; AVX512-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512-NEXT: vcvtsi2sdq %rax, %xmm2, %xmm2
|
||||
; AVX512-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm1
|
||||
; AVX512-NEXT: vunpcklpd {{.*#+}} xmm1 = xmm1[0],xmm2[0]
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm2
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm0
|
||||
; AVX512-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm2[0]
|
||||
; AVX512-NEXT: vinsertf32x4 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: sitofp_4i64_to_4f64:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vextracti128 $1, %ymm0, %xmm1
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512F-NEXT: vcvtsi2sdq %rax, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512F-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm1
|
||||
; AVX512F-NEXT: vunpcklpd {{.*#+}} xmm1 = xmm1[0],xmm2[0]
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm2
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm0
|
||||
; AVX512F-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm2[0]
|
||||
; AVX512F-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: sitofp_4i64_to_4f64:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vextracti32x4 $1, %ymm0, %xmm1
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2sdq %rax, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm1
|
||||
; AVX512VL-NEXT: vunpcklpd {{.*#+}} xmm1 = xmm1[0],xmm2[0]
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm2
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm0
|
||||
; AVX512VL-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm2[0]
|
||||
; AVX512VL-NEXT: vinsertf32x4 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%cvt = sitofp <4 x i64> %a to <4 x double>
|
||||
ret <4 x double> %cvt
|
||||
}
|
||||
@ -462,10 +479,20 @@ define <2 x double> @uitofp_2i32_to_2f64(<4 x i32> %a) {
|
||||
; VEX-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm2[0],xmm0[0]
|
||||
; VEX-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_2i32_to_2f64:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vcvtudq2pd %xmm0, %xmm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_2i32_to_2f64:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vpmovzxdq {{.*#+}} xmm0 = xmm0[0],zero,xmm0[1],zero
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2sdq %rax, %xmm1, %xmm1
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2sdq %rax, %xmm2, %xmm0
|
||||
; AVX512F-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_2i32_to_2f64:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vcvtudq2pd %xmm0, %xmm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%shuf = shufflevector <4 x i32> %a, <4 x i32> undef, <2 x i32> <i32 0, i32 1>
|
||||
%cvt = uitofp <2 x i32> %shuf to <2 x double>
|
||||
ret <2 x double> %cvt
|
||||
@ -516,11 +543,18 @@ define <2 x double> @uitofp_4i32_to_2f64(<4 x i32> %a) {
|
||||
; AVX2-NEXT: vzeroupper
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_4i32_to_2f64:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vcvtudq2pd %xmm0, %ymm0
|
||||
; AVX512-NEXT: # kill: %XMM0<def> %XMM0<kill> %YMM0<kill>
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_4i32_to_2f64:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: # kill: %XMM0<def> %XMM0<kill> %YMM0<def>
|
||||
; AVX512F-NEXT: vcvtudq2pd %ymm0, %zmm0
|
||||
; AVX512F-NEXT: # kill: %XMM0<def> %XMM0<kill> %ZMM0<kill>
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_4i32_to_2f64:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vcvtudq2pd %xmm0, %ymm0
|
||||
; AVX512VL-NEXT: # kill: %XMM0<def> %XMM0<kill> %YMM0<kill>
|
||||
; AVX512VL-NEXT: retq
|
||||
%cvt = uitofp <4 x i32> %a to <4 x double>
|
||||
%shuf = shufflevector <4 x double> %cvt, <4 x double> undef, <2 x i32> <i32 0, i32 1>
|
||||
ret <2 x double> %shuf
|
||||
@ -709,21 +743,37 @@ define <4 x double> @uitofp_4i64_to_4f64(<4 x i64> %a) {
|
||||
; AVX2-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_4i64_to_4f64:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vextracti32x4 $1, %ymm0, %xmm1
|
||||
; AVX512-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512-NEXT: vcvtusi2sdq %rax, %xmm2, %xmm2
|
||||
; AVX512-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm1
|
||||
; AVX512-NEXT: vunpcklpd {{.*#+}} xmm1 = xmm1[0],xmm2[0]
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm2
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm0
|
||||
; AVX512-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm2[0]
|
||||
; AVX512-NEXT: vinsertf32x4 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_4i64_to_4f64:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vextracti128 $1, %ymm0, %xmm1
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512F-NEXT: vcvtusi2sdq %rax, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512F-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm1
|
||||
; AVX512F-NEXT: vunpcklpd {{.*#+}} xmm1 = xmm1[0],xmm2[0]
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm2
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm0
|
||||
; AVX512F-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm2[0]
|
||||
; AVX512F-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_4i64_to_4f64:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vextracti32x4 $1, %ymm0, %xmm1
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2sdq %rax, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm1
|
||||
; AVX512VL-NEXT: vunpcklpd {{.*#+}} xmm1 = xmm1[0],xmm2[0]
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm2
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm0
|
||||
; AVX512VL-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm2[0]
|
||||
; AVX512VL-NEXT: vinsertf32x4 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%cvt = uitofp <4 x i64> %a to <4 x double>
|
||||
ret <4 x double> %cvt
|
||||
}
|
||||
@ -781,10 +831,17 @@ define <4 x double> @uitofp_4i32_to_4f64(<4 x i32> %a) {
|
||||
; AVX2-NEXT: vaddpd %ymm0, %ymm1, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_4i32_to_4f64:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vcvtudq2pd %xmm0, %ymm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_4i32_to_4f64:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: # kill: %XMM0<def> %XMM0<kill> %YMM0<def>
|
||||
; AVX512F-NEXT: vcvtudq2pd %ymm0, %zmm0
|
||||
; AVX512F-NEXT: # kill: %YMM0<def> %YMM0<kill> %ZMM0<kill>
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_4i32_to_4f64:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vcvtudq2pd %xmm0, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%cvt = uitofp <4 x i32> %a to <4 x double>
|
||||
ret <4 x double> %cvt
|
||||
}
|
||||
@ -1149,21 +1206,37 @@ define <4 x float> @sitofp_4i64_to_4f32(<4 x i64> %a) {
|
||||
; AVX2-NEXT: vzeroupper
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: sitofp_4i64_to_4f32:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm1, %xmm1
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm1 = xmm2[0],xmm1[0],xmm2[2,3]
|
||||
; AVX512-NEXT: vextracti32x4 $1, %ymm0, %xmm0
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm2
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm2[0],xmm1[3]
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm0
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[0]
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: sitofp_4i64_to_4f32:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm1, %xmm1
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm1 = xmm2[0],xmm1[0],xmm2[2,3]
|
||||
; AVX512F-NEXT: vextracti128 $1, %ymm0, %xmm0
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm2
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm2[0],xmm1[3]
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm0
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[0]
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: sitofp_4i64_to_4f32:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm1, %xmm1
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm1 = xmm2[0],xmm1[0],xmm2[2,3]
|
||||
; AVX512VL-NEXT: vextracti32x4 $1, %ymm0, %xmm0
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm2
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm2[0],xmm1[3]
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm0
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[0]
|
||||
; AVX512VL-NEXT: retq
|
||||
%cvt = sitofp <4 x i64> %a to <4 x float>
|
||||
ret <4 x float> %cvt
|
||||
}
|
||||
@ -1540,10 +1613,17 @@ define <4 x float> @uitofp_4i32_to_4f32(<4 x i32> %a) {
|
||||
; AVX2-NEXT: vaddps %xmm0, %xmm1, %xmm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_4i32_to_4f32:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vcvtudq2ps %xmm0, %xmm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_4i32_to_4f32:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: # kill: %XMM0<def> %XMM0<kill> %ZMM0<def>
|
||||
; AVX512F-NEXT: vcvtudq2ps %zmm0, %zmm0
|
||||
; AVX512F-NEXT: # kill: %XMM0<def> %XMM0<kill> %ZMM0<kill>
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_4i32_to_4f32:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vcvtudq2ps %xmm0, %xmm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%cvt = uitofp <4 x i32> %a to <4 x float>
|
||||
ret <4 x float> %cvt
|
||||
}
|
||||
@ -1865,21 +1945,37 @@ define <4 x float> @uitofp_4i64_to_4f32(<4 x i64> %a) {
|
||||
; AVX2-NEXT: vzeroupper
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_4i64_to_4f32:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm1, %xmm1
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm1 = xmm2[0],xmm1[0],xmm2[2,3]
|
||||
; AVX512-NEXT: vextracti32x4 $1, %ymm0, %xmm0
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm2
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm2[0],xmm1[3]
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm0
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[0]
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_4i64_to_4f32:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm1, %xmm1
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm1 = xmm2[0],xmm1[0],xmm2[2,3]
|
||||
; AVX512F-NEXT: vextracti128 $1, %ymm0, %xmm0
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm2
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm2[0],xmm1[3]
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm0
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[0]
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_4i64_to_4f32:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm1, %xmm1
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm1 = xmm2[0],xmm1[0],xmm2[2,3]
|
||||
; AVX512VL-NEXT: vextracti32x4 $1, %ymm0, %xmm0
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm2
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm2[0],xmm1[3]
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm0
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[0]
|
||||
; AVX512VL-NEXT: retq
|
||||
%cvt = uitofp <4 x i64> %a to <4 x float>
|
||||
ret <4 x float> %cvt
|
||||
}
|
||||
@ -1931,10 +2027,17 @@ define <8 x float> @uitofp_8i32_to_8f32(<8 x i32> %a) {
|
||||
; AVX2-NEXT: vaddps %ymm0, %ymm1, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_8i32_to_8f32:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vcvtudq2ps %ymm0, %ymm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_8i32_to_8f32:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: # kill: %YMM0<def> %YMM0<kill> %ZMM0<def>
|
||||
; AVX512F-NEXT: vcvtudq2ps %zmm0, %zmm0
|
||||
; AVX512F-NEXT: # kill: %YMM0<def> %YMM0<kill> %ZMM0<kill>
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_8i32_to_8f32:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vcvtudq2ps %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%cvt = uitofp <8 x i32> %a to <8 x float>
|
||||
ret <8 x float> %cvt
|
||||
}
|
||||
@ -2079,15 +2182,25 @@ define <2 x double> @sitofp_load_2i64_to_2f64(<2 x i64> *%a) {
|
||||
; VEX-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
||||
; VEX-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: sitofp_load_2i64_to_2f64:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vmovdqa64 (%rdi), %xmm0
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2sdq %rax, %xmm1, %xmm1
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2sdq %rax, %xmm2, %xmm0
|
||||
; AVX512-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: sitofp_load_2i64_to_2f64:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vmovdqa (%rdi), %xmm0
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2sdq %rax, %xmm1, %xmm1
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2sdq %rax, %xmm2, %xmm0
|
||||
; AVX512F-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: sitofp_load_2i64_to_2f64:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vmovdqa64 (%rdi), %xmm0
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2sdq %rax, %xmm1, %xmm1
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2sdq %rax, %xmm2, %xmm0
|
||||
; AVX512VL-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <2 x i64>, <2 x i64> *%a
|
||||
%cvt = sitofp <2 x i64> %ld to <2 x double>
|
||||
ret <2 x double> %cvt
|
||||
@ -2104,12 +2217,17 @@ define <2 x double> @sitofp_load_2i32_to_2f64(<2 x i32> *%a) {
|
||||
; VEX-NEXT: vcvtdq2pd (%rdi), %xmm0
|
||||
; VEX-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: sitofp_load_2i32_to_2f64:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vpmovzxdq {{.*#+}} xmm0 = mem[0],zero,mem[1],zero
|
||||
; AVX512-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
||||
; AVX512-NEXT: vcvtdq2pd %xmm0, %xmm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: sitofp_load_2i32_to_2f64:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vcvtdq2pd (%rdi), %xmm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: sitofp_load_2i32_to_2f64:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vpmovzxdq {{.*#+}} xmm0 = mem[0],zero,mem[1],zero
|
||||
; AVX512VL-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
||||
; AVX512VL-NEXT: vcvtdq2pd %xmm0, %xmm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <2 x i32>, <2 x i32> *%a
|
||||
%cvt = sitofp <2 x i32> %ld to <2 x double>
|
||||
ret <2 x double> %cvt
|
||||
@ -2213,22 +2331,39 @@ define <4 x double> @sitofp_load_4i64_to_4f64(<4 x i64> *%a) {
|
||||
; AVX2-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: sitofp_load_4i64_to_4f64:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vmovdqa64 (%rdi), %ymm0
|
||||
; AVX512-NEXT: vextracti32x4 $1, %ymm0, %xmm1
|
||||
; AVX512-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512-NEXT: vcvtsi2sdq %rax, %xmm2, %xmm2
|
||||
; AVX512-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm1
|
||||
; AVX512-NEXT: vunpcklpd {{.*#+}} xmm1 = xmm1[0],xmm2[0]
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm2
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm0
|
||||
; AVX512-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm2[0]
|
||||
; AVX512-NEXT: vinsertf32x4 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: sitofp_load_4i64_to_4f64:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vmovdqa (%rdi), %ymm0
|
||||
; AVX512F-NEXT: vextracti128 $1, %ymm0, %xmm1
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512F-NEXT: vcvtsi2sdq %rax, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512F-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm1
|
||||
; AVX512F-NEXT: vunpcklpd {{.*#+}} xmm1 = xmm1[0],xmm2[0]
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm2
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm0
|
||||
; AVX512F-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm2[0]
|
||||
; AVX512F-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: sitofp_load_4i64_to_4f64:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vmovdqa64 (%rdi), %ymm0
|
||||
; AVX512VL-NEXT: vextracti32x4 $1, %ymm0, %xmm1
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2sdq %rax, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm1
|
||||
; AVX512VL-NEXT: vunpcklpd {{.*#+}} xmm1 = xmm1[0],xmm2[0]
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm2
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2sdq %rax, %xmm3, %xmm0
|
||||
; AVX512VL-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm2[0]
|
||||
; AVX512VL-NEXT: vinsertf32x4 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <4 x i64>, <4 x i64> *%a
|
||||
%cvt = sitofp <4 x i64> %ld to <4 x double>
|
||||
ret <4 x double> %cvt
|
||||
@ -2332,15 +2467,25 @@ define <2 x double> @uitofp_load_2i64_to_2f64(<2 x i64> *%a) {
|
||||
; VEX-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm2[0],xmm0[0]
|
||||
; VEX-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_load_2i64_to_2f64:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vmovdqa64 (%rdi), %xmm0
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2sdq %rax, %xmm1, %xmm1
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2sdq %rax, %xmm2, %xmm0
|
||||
; AVX512-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_load_2i64_to_2f64:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vmovdqa (%rdi), %xmm0
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2sdq %rax, %xmm1, %xmm1
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2sdq %rax, %xmm2, %xmm0
|
||||
; AVX512F-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_load_2i64_to_2f64:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vmovdqa64 (%rdi), %xmm0
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2sdq %rax, %xmm1, %xmm1
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2sdq %rax, %xmm2, %xmm0
|
||||
; AVX512VL-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <2 x i64>, <2 x i64> *%a
|
||||
%cvt = uitofp <2 x i64> %ld to <2 x double>
|
||||
ret <2 x double> %cvt
|
||||
@ -2381,12 +2526,22 @@ define <2 x double> @uitofp_load_2i32_to_2f64(<2 x i32> *%a) {
|
||||
; VEX-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm2[0],xmm0[0]
|
||||
; VEX-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_load_2i32_to_2f64:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vpmovzxdq {{.*#+}} xmm0 = mem[0],zero,mem[1],zero
|
||||
; AVX512-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
||||
; AVX512-NEXT: vcvtudq2pd %xmm0, %xmm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_load_2i32_to_2f64:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vpmovzxdq {{.*#+}} xmm0 = mem[0],zero,mem[1],zero
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2sdq %rax, %xmm1, %xmm1
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2sdq %rax, %xmm2, %xmm0
|
||||
; AVX512F-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm1[0]
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_load_2i32_to_2f64:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vpmovzxdq {{.*#+}} xmm0 = mem[0],zero,mem[1],zero
|
||||
; AVX512VL-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
||||
; AVX512VL-NEXT: vcvtudq2pd %xmm0, %xmm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <2 x i32>, <2 x i32> *%a
|
||||
%cvt = uitofp <2 x i32> %ld to <2 x double>
|
||||
ret <2 x double> %cvt
|
||||
@ -2408,14 +2563,21 @@ define <2 x double> @uitofp_load_2i16_to_2f64(<2 x i16> *%a) {
|
||||
; VEX-NEXT: vcvtdq2pd %xmm0, %xmm0
|
||||
; VEX-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_load_2i16_to_2f64:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vpmovzxwq {{.*#+}} xmm0 = mem[0],zero,zero,zero,mem[1],zero,zero,zero
|
||||
; AVX512-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
||||
; AVX512-NEXT: vpxord %xmm1, %xmm1, %xmm1
|
||||
; AVX512-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0],xmm1[1],xmm0[2],xmm1[3,4,5,6,7]
|
||||
; AVX512-NEXT: vcvtdq2pd %xmm0, %xmm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_load_2i16_to_2f64:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vmovd {{.*#+}} xmm0 = mem[0],zero,zero,zero
|
||||
; AVX512F-NEXT: vpmovzxwd {{.*#+}} xmm0 = xmm0[0],zero,xmm0[1],zero,xmm0[2],zero,xmm0[3],zero
|
||||
; AVX512F-NEXT: vcvtdq2pd %xmm0, %xmm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_load_2i16_to_2f64:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vpmovzxwq {{.*#+}} xmm0 = mem[0],zero,zero,zero,mem[1],zero,zero,zero
|
||||
; AVX512VL-NEXT: vpshufd {{.*#+}} xmm0 = xmm0[0,2,2,3]
|
||||
; AVX512VL-NEXT: vpxord %xmm1, %xmm1, %xmm1
|
||||
; AVX512VL-NEXT: vpblendw {{.*#+}} xmm0 = xmm0[0],xmm1[1],xmm0[2],xmm1[3,4,5,6,7]
|
||||
; AVX512VL-NEXT: vcvtdq2pd %xmm0, %xmm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <2 x i16>, <2 x i16> *%a
|
||||
%cvt = uitofp <2 x i16> %ld to <2 x double>
|
||||
ret <2 x double> %cvt
|
||||
@ -2440,12 +2602,20 @@ define <2 x double> @uitofp_load_2i8_to_2f64(<2 x i8> *%a) {
|
||||
; VEX-NEXT: vcvtdq2pd %xmm0, %xmm0
|
||||
; VEX-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_load_2i8_to_2f64:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vpmovzxbq {{.*#+}} xmm0 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,xmm0[8],zero,zero,zero,xmm0[u],zero,zero,zero,xmm0[u],zero,zero,zero
|
||||
; AVX512-NEXT: vcvtdq2pd %xmm0, %xmm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_load_2i8_to_2f64:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: movzwl (%rdi), %eax
|
||||
; AVX512F-NEXT: vmovd %eax, %xmm0
|
||||
; AVX512F-NEXT: vpmovzxbd {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,xmm0[1],zero,zero,zero,xmm0[2],zero,zero,zero,xmm0[3],zero,zero,zero
|
||||
; AVX512F-NEXT: vcvtdq2pd %xmm0, %xmm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_load_2i8_to_2f64:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vpmovzxbq {{.*#+}} xmm0 = mem[0],zero,zero,zero,zero,zero,zero,zero,mem[1],zero,zero,zero,zero,zero,zero,zero
|
||||
; AVX512VL-NEXT: vpshufb {{.*#+}} xmm0 = xmm0[0],zero,zero,zero,xmm0[8],zero,zero,zero,xmm0[u],zero,zero,zero,xmm0[u],zero,zero,zero
|
||||
; AVX512VL-NEXT: vcvtdq2pd %xmm0, %xmm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <2 x i8>, <2 x i8> *%a
|
||||
%cvt = uitofp <2 x i8> %ld to <2 x double>
|
||||
ret <2 x double> %cvt
|
||||
@ -2530,22 +2700,39 @@ define <4 x double> @uitofp_load_4i64_to_4f64(<4 x i64> *%a) {
|
||||
; AVX2-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_load_4i64_to_4f64:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vmovdqa64 (%rdi), %ymm0
|
||||
; AVX512-NEXT: vextracti32x4 $1, %ymm0, %xmm1
|
||||
; AVX512-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512-NEXT: vcvtusi2sdq %rax, %xmm2, %xmm2
|
||||
; AVX512-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm1
|
||||
; AVX512-NEXT: vunpcklpd {{.*#+}} xmm1 = xmm1[0],xmm2[0]
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm2
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm0
|
||||
; AVX512-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm2[0]
|
||||
; AVX512-NEXT: vinsertf32x4 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_load_4i64_to_4f64:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vmovdqa (%rdi), %ymm0
|
||||
; AVX512F-NEXT: vextracti128 $1, %ymm0, %xmm1
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512F-NEXT: vcvtusi2sdq %rax, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512F-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm1
|
||||
; AVX512F-NEXT: vunpcklpd {{.*#+}} xmm1 = xmm1[0],xmm2[0]
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm2
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm0
|
||||
; AVX512F-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm2[0]
|
||||
; AVX512F-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_load_4i64_to_4f64:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vmovdqa64 (%rdi), %ymm0
|
||||
; AVX512VL-NEXT: vextracti32x4 $1, %ymm0, %xmm1
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2sdq %rax, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm1
|
||||
; AVX512VL-NEXT: vunpcklpd {{.*#+}} xmm1 = xmm1[0],xmm2[0]
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm2
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2sdq %rax, %xmm3, %xmm0
|
||||
; AVX512VL-NEXT: vunpcklpd {{.*#+}} xmm0 = xmm0[0],xmm2[0]
|
||||
; AVX512VL-NEXT: vinsertf32x4 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <4 x i64>, <4 x i64> *%a
|
||||
%cvt = uitofp <4 x i64> %ld to <4 x double>
|
||||
ret <4 x double> %cvt
|
||||
@ -2607,10 +2794,17 @@ define <4 x double> @uitofp_load_4i32_to_4f64(<4 x i32> *%a) {
|
||||
; AVX2-NEXT: vaddpd %ymm0, %ymm1, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_load_4i32_to_4f64:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vcvtudq2pd (%rdi), %ymm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_load_4i32_to_4f64:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vmovaps (%rdi), %xmm0
|
||||
; AVX512F-NEXT: vcvtudq2pd %ymm0, %zmm0
|
||||
; AVX512F-NEXT: # kill: %YMM0<def> %YMM0<kill> %ZMM0<kill>
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_load_4i32_to_4f64:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vcvtudq2pd (%rdi), %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <4 x i32>, <4 x i32> *%a
|
||||
%cvt = uitofp <4 x i32> %ld to <4 x double>
|
||||
ret <4 x double> %cvt
|
||||
@ -2721,22 +2915,39 @@ define <4 x float> @sitofp_load_4i64_to_4f32(<4 x i64> *%a) {
|
||||
; AVX2-NEXT: vzeroupper
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: sitofp_load_4i64_to_4f32:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vmovdqa64 (%rdi), %ymm0
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm1, %xmm1
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm1 = xmm2[0],xmm1[0],xmm2[2,3]
|
||||
; AVX512-NEXT: vextracti32x4 $1, %ymm0, %xmm0
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm2
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm2[0],xmm1[3]
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm0
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[0]
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: sitofp_load_4i64_to_4f32:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vmovdqa (%rdi), %ymm0
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm1, %xmm1
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm1 = xmm2[0],xmm1[0],xmm2[2,3]
|
||||
; AVX512F-NEXT: vextracti128 $1, %ymm0, %xmm0
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm2
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm2[0],xmm1[3]
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm0
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[0]
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: sitofp_load_4i64_to_4f32:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vmovdqa64 (%rdi), %ymm0
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm1, %xmm1
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm1 = xmm2[0],xmm1[0],xmm2[2,3]
|
||||
; AVX512VL-NEXT: vextracti32x4 $1, %ymm0, %xmm0
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm2
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm2[0],xmm1[3]
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm0
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[0]
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <4 x i64>, <4 x i64> *%a
|
||||
%cvt = sitofp <4 x i64> %ld to <4 x float>
|
||||
ret <4 x float> %cvt
|
||||
@ -2899,36 +3110,67 @@ define <8 x float> @sitofp_load_8i64_to_8f32(<8 x i64> *%a) {
|
||||
; AVX2-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: sitofp_load_8i64_to_8f32:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vmovdqa64 (%rdi), %zmm0
|
||||
; AVX512-NEXT: vextracti32x4 $2, %zmm0, %xmm1
|
||||
; AVX512-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm1
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0],xmm2[0],xmm1[2,3]
|
||||
; AVX512-NEXT: vextracti32x4 $3, %zmm0, %xmm2
|
||||
; AVX512-NEXT: vmovq %xmm2, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm3
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm3[0],xmm1[3]
|
||||
; AVX512-NEXT: vpextrq $1, %xmm2, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm2
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1,2],xmm2[0]
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm2
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm3
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm2 = xmm3[0],xmm2[0],xmm3[2,3]
|
||||
; AVX512-NEXT: vextracti32x4 $1, %zmm0, %xmm0
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm3
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm2 = xmm2[0,1],xmm3[0],xmm2[3]
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm0
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm0 = xmm2[0,1,2],xmm0[0]
|
||||
; AVX512-NEXT: vinsertf32x4 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: sitofp_load_8i64_to_8f32:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vmovdqa64 (%rdi), %zmm0
|
||||
; AVX512F-NEXT: vextracti32x4 $2, %zmm0, %xmm1
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm1
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0],xmm2[0],xmm1[2,3]
|
||||
; AVX512F-NEXT: vextracti32x4 $3, %zmm0, %xmm2
|
||||
; AVX512F-NEXT: vmovq %xmm2, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm3
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm3[0],xmm1[3]
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm2, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm2
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1,2],xmm2[0]
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm2
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm3
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm2 = xmm3[0],xmm2[0],xmm3[2,3]
|
||||
; AVX512F-NEXT: vextracti32x4 $1, %zmm0, %xmm0
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm3
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm2 = xmm2[0,1],xmm3[0],xmm2[3]
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm0
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm0 = xmm2[0,1,2],xmm0[0]
|
||||
; AVX512F-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: sitofp_load_8i64_to_8f32:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vmovdqa64 (%rdi), %zmm0
|
||||
; AVX512VL-NEXT: vextracti32x4 $2, %zmm0, %xmm1
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm1
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0],xmm2[0],xmm1[2,3]
|
||||
; AVX512VL-NEXT: vextracti32x4 $3, %zmm0, %xmm2
|
||||
; AVX512VL-NEXT: vmovq %xmm2, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm3, %xmm3
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm3[0],xmm1[3]
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm2, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm2
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1,2],xmm2[0]
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm2
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm3
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm2 = xmm3[0],xmm2[0],xmm3[2,3]
|
||||
; AVX512VL-NEXT: vextracti32x4 $1, %zmm0, %xmm0
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm3
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm2 = xmm2[0,1],xmm3[0],xmm2[3]
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtsi2ssq %rax, %xmm4, %xmm0
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm0 = xmm2[0,1,2],xmm0[0]
|
||||
; AVX512VL-NEXT: vinsertf32x4 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <8 x i64>, <8 x i64> *%a
|
||||
%cvt = sitofp <8 x i64> %ld to <8 x float>
|
||||
ret <8 x float> %cvt
|
||||
@ -3238,22 +3480,39 @@ define <4 x float> @uitofp_load_4i64_to_4f32(<4 x i64> *%a) {
|
||||
; AVX2-NEXT: vzeroupper
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_load_4i64_to_4f32:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vmovdqa64 (%rdi), %ymm0
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm1, %xmm1
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm1 = xmm2[0],xmm1[0],xmm2[2,3]
|
||||
; AVX512-NEXT: vextracti32x4 $1, %ymm0, %xmm0
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm2
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm2[0],xmm1[3]
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm0
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[0]
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_load_4i64_to_4f32:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vmovdqa (%rdi), %ymm0
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm1, %xmm1
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm1 = xmm2[0],xmm1[0],xmm2[2,3]
|
||||
; AVX512F-NEXT: vextracti128 $1, %ymm0, %xmm0
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm2
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm2[0],xmm1[3]
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm0
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[0]
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_load_4i64_to_4f32:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vmovdqa64 (%rdi), %ymm0
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm1, %xmm1
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm1 = xmm2[0],xmm1[0],xmm2[2,3]
|
||||
; AVX512VL-NEXT: vextracti32x4 $1, %ymm0, %xmm0
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm2
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm2[0],xmm1[3]
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm0
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm0 = xmm1[0,1,2],xmm0[0]
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <4 x i64>, <4 x i64> *%a
|
||||
%cvt = uitofp <4 x i64> %ld to <4 x float>
|
||||
ret <4 x float> %cvt
|
||||
@ -3295,10 +3554,17 @@ define <4 x float> @uitofp_load_4i32_to_4f32(<4 x i32> *%a) {
|
||||
; AVX2-NEXT: vaddps %xmm0, %xmm1, %xmm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_load_4i32_to_4f32:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vcvtudq2ps (%rdi), %xmm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_load_4i32_to_4f32:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vmovaps (%rdi), %xmm0
|
||||
; AVX512F-NEXT: vcvtudq2ps %zmm0, %zmm0
|
||||
; AVX512F-NEXT: # kill: %XMM0<def> %XMM0<kill> %ZMM0<kill>
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_load_4i32_to_4f32:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vcvtudq2ps (%rdi), %xmm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <4 x i32>, <4 x i32> *%a
|
||||
%cvt = uitofp <4 x i32> %ld to <4 x float>
|
||||
ret <4 x float> %cvt
|
||||
@ -3736,36 +4002,67 @@ define <8 x float> @uitofp_load_8i64_to_8f32(<8 x i64> *%a) {
|
||||
; AVX2-NEXT: vinsertf128 $1, %xmm0, %ymm1, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_load_8i64_to_8f32:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vmovdqa64 (%rdi), %zmm0
|
||||
; AVX512-NEXT: vextracti32x4 $2, %zmm0, %xmm1
|
||||
; AVX512-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm1
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0],xmm2[0],xmm1[2,3]
|
||||
; AVX512-NEXT: vextracti32x4 $3, %zmm0, %xmm2
|
||||
; AVX512-NEXT: vmovq %xmm2, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm3
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm3[0],xmm1[3]
|
||||
; AVX512-NEXT: vpextrq $1, %xmm2, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm2
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1,2],xmm2[0]
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm2
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm3
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm2 = xmm3[0],xmm2[0],xmm3[2,3]
|
||||
; AVX512-NEXT: vextracti32x4 $1, %zmm0, %xmm0
|
||||
; AVX512-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm3
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm2 = xmm2[0,1],xmm3[0],xmm2[3]
|
||||
; AVX512-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm0
|
||||
; AVX512-NEXT: vinsertps {{.*#+}} xmm0 = xmm2[0,1,2],xmm0[0]
|
||||
; AVX512-NEXT: vinsertf32x4 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_load_8i64_to_8f32:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vmovdqa64 (%rdi), %zmm0
|
||||
; AVX512F-NEXT: vextracti32x4 $2, %zmm0, %xmm1
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512F-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm1
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0],xmm2[0],xmm1[2,3]
|
||||
; AVX512F-NEXT: vextracti32x4 $3, %zmm0, %xmm2
|
||||
; AVX512F-NEXT: vmovq %xmm2, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm3
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm3[0],xmm1[3]
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm2, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm2
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1,2],xmm2[0]
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm2
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm3
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm2 = xmm3[0],xmm2[0],xmm3[2,3]
|
||||
; AVX512F-NEXT: vextracti32x4 $1, %zmm0, %xmm0
|
||||
; AVX512F-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm3
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm2 = xmm2[0,1],xmm3[0],xmm2[3]
|
||||
; AVX512F-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512F-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm0
|
||||
; AVX512F-NEXT: vinsertps {{.*#+}} xmm0 = xmm2[0,1,2],xmm0[0]
|
||||
; AVX512F-NEXT: vinsertf128 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_load_8i64_to_8f32:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vmovdqa64 (%rdi), %zmm0
|
||||
; AVX512VL-NEXT: vextracti32x4 $2, %zmm0, %xmm1
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm1, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm2, %xmm2
|
||||
; AVX512VL-NEXT: vmovq %xmm1, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm1
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0],xmm2[0],xmm1[2,3]
|
||||
; AVX512VL-NEXT: vextracti32x4 $3, %zmm0, %xmm2
|
||||
; AVX512VL-NEXT: vmovq %xmm2, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm3, %xmm3
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1],xmm3[0],xmm1[3]
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm2, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm2
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm1 = xmm1[0,1,2],xmm2[0]
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm2
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm3
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm2 = xmm3[0],xmm2[0],xmm3[2,3]
|
||||
; AVX512VL-NEXT: vextracti32x4 $1, %zmm0, %xmm0
|
||||
; AVX512VL-NEXT: vmovq %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm3
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm2 = xmm2[0,1],xmm3[0],xmm2[3]
|
||||
; AVX512VL-NEXT: vpextrq $1, %xmm0, %rax
|
||||
; AVX512VL-NEXT: vcvtusi2ssq %rax, %xmm4, %xmm0
|
||||
; AVX512VL-NEXT: vinsertps {{.*#+}} xmm0 = xmm2[0,1,2],xmm0[0]
|
||||
; AVX512VL-NEXT: vinsertf32x4 $1, %xmm1, %ymm0, %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <8 x i64>, <8 x i64> *%a
|
||||
%cvt = uitofp <8 x i64> %ld to <8 x float>
|
||||
ret <8 x float> %cvt
|
||||
@ -3822,10 +4119,17 @@ define <8 x float> @uitofp_load_8i32_to_8f32(<8 x i32> *%a) {
|
||||
; AVX2-NEXT: vaddps %ymm0, %ymm1, %ymm0
|
||||
; AVX2-NEXT: retq
|
||||
;
|
||||
; AVX512-LABEL: uitofp_load_8i32_to_8f32:
|
||||
; AVX512: # BB#0:
|
||||
; AVX512-NEXT: vcvtudq2ps (%rdi), %ymm0
|
||||
; AVX512-NEXT: retq
|
||||
; AVX512F-LABEL: uitofp_load_8i32_to_8f32:
|
||||
; AVX512F: # BB#0:
|
||||
; AVX512F-NEXT: vmovaps (%rdi), %ymm0
|
||||
; AVX512F-NEXT: vcvtudq2ps %zmm0, %zmm0
|
||||
; AVX512F-NEXT: # kill: %YMM0<def> %YMM0<kill> %ZMM0<kill>
|
||||
; AVX512F-NEXT: retq
|
||||
;
|
||||
; AVX512VL-LABEL: uitofp_load_8i32_to_8f32:
|
||||
; AVX512VL: # BB#0:
|
||||
; AVX512VL-NEXT: vcvtudq2ps (%rdi), %ymm0
|
||||
; AVX512VL-NEXT: retq
|
||||
%ld = load <8 x i32>, <8 x i32> *%a
|
||||
%cvt = uitofp <8 x i32> %ld to <8 x float>
|
||||
ret <8 x float> %cvt
|
||||
|
Loading…
Reference in New Issue
Block a user