diff options
| author | Craig Topper <craig.topper@intel.com> | 2019-09-03 02:51:10 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@intel.com> | 2019-09-03 02:51:10 +0000 |
| commit | dcecc7ea468d62dda89bd7666001a1412dae6345 (patch) | |
| tree | de6b19cc216709dfacccf1d7722e2ce31611650c /llvm/test/CodeGen | |
| parent | dea9cad10e02e12ecb1705bca4c4244208891230 (diff) | |
| download | bcm5719-llvm-dcecc7ea468d62dda89bd7666001a1412dae6345.tar.gz bcm5719-llvm-dcecc7ea468d62dda89bd7666001a1412dae6345.zip | |
[X86] Custom promote i32->f80 uint_to_fp on AVX512 64-bit targets.
Reuse the same code to promote all i32 uint_to_fp on 64-bit targets
to simplify the X86ISelLowering constructor.
llvm-svn: 370693
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/X86/scalar-int-to-fp.ll | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/llvm/test/CodeGen/X86/scalar-int-to-fp.ll b/llvm/test/CodeGen/X86/scalar-int-to-fp.ll index 8a46b960526..580da1535e3 100644 --- a/llvm/test/CodeGen/X86/scalar-int-to-fp.ll +++ b/llvm/test/CodeGen/X86/scalar-int-to-fp.ll @@ -230,15 +230,12 @@ define x86_fp80 @u32_to_x(i32 %a) nounwind { ; AVX512_32-NEXT: popl %ebp ; AVX512_32-NEXT: retl ; -; AVX512_64-LABEL: u32_to_x: -; AVX512_64: # %bb.0: -; AVX512_64-NEXT: vmovq {{.*#+}} xmm0 = mem[0],zero -; AVX512_64-NEXT: vmovd %edi, %xmm1 -; AVX512_64-NEXT: vpor %xmm0, %xmm1, %xmm1 -; AVX512_64-NEXT: vsubsd %xmm0, %xmm1, %xmm0 -; AVX512_64-NEXT: vmovsd %xmm0, -{{[0-9]+}}(%rsp) -; AVX512_64-NEXT: fldl -{{[0-9]+}}(%rsp) -; AVX512_64-NEXT: retq +; CHECK64-LABEL: u32_to_x: +; CHECK64: # %bb.0: +; CHECK64-NEXT: movl %edi, %eax +; CHECK64-NEXT: movq %rax, -{{[0-9]+}}(%rsp) +; CHECK64-NEXT: fildll -{{[0-9]+}}(%rsp) +; CHECK64-NEXT: retq ; ; SSE2_32-LABEL: u32_to_x: ; SSE2_32: # %bb.0: @@ -256,13 +253,6 @@ define x86_fp80 @u32_to_x(i32 %a) nounwind { ; SSE2_32-NEXT: popl %ebp ; SSE2_32-NEXT: retl ; -; SSE2_64-LABEL: u32_to_x: -; SSE2_64: # %bb.0: -; SSE2_64-NEXT: movl %edi, %eax -; SSE2_64-NEXT: movq %rax, -{{[0-9]+}}(%rsp) -; SSE2_64-NEXT: fildll -{{[0-9]+}}(%rsp) -; SSE2_64-NEXT: retq -; ; X87-LABEL: u32_to_x: ; X87: # %bb.0: ; X87-NEXT: pushl %ebp |

