summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/scalar-int-to-fp.ll
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-10-19 11:53:48 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-10-19 11:53:48 +0000
commit6ada70d1b55b9efb8b0603575a0b86e14f049553 (patch)
tree58433e616ace9a6d38daceaeaf5d33353d6b80c4 /llvm/test/CodeGen/X86/scalar-int-to-fp.ll
parentd5367db95c4295b088bf9ae3cf99e24d8bf7e249 (diff)
downloadbcm5719-llvm-6ada70d1b55b9efb8b0603575a0b86e14f049553.tar.gz
bcm5719-llvm-6ada70d1b55b9efb8b0603575a0b86e14f049553.zip
[X86][SSE] LowerUINT_TO_FP_i64 - only use HADDPD for size/fast-hops
We were always generating a single source HADDPD, but really we should only do this if shouldUseHorizontalOp says its a good idea. Differential Revision: https://reviews.llvm.org/D69175 llvm-svn: 375341
Diffstat (limited to 'llvm/test/CodeGen/X86/scalar-int-to-fp.ll')
-rw-r--r--llvm/test/CodeGen/X86/scalar-int-to-fp.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/scalar-int-to-fp.ll b/llvm/test/CodeGen/X86/scalar-int-to-fp.ll
index 580da1535e3..31faa728ce2 100644
--- a/llvm/test/CodeGen/X86/scalar-int-to-fp.ll
+++ b/llvm/test/CodeGen/X86/scalar-int-to-fp.ll
@@ -610,8 +610,9 @@ define double @u64_to_d(i64 %a) nounwind {
; AVX512F_32-NEXT: vmovsd {{.*#+}} xmm0 = mem[0],zero
; AVX512F_32-NEXT: vunpcklps {{.*#+}} xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
; AVX512F_32-NEXT: vsubpd {{\.LCPI.*}}, %xmm0, %xmm0
-; AVX512F_32-NEXT: vhaddpd %xmm0, %xmm0, %xmm0
-; AVX512F_32-NEXT: vmovlpd %xmm0, (%esp)
+; AVX512F_32-NEXT: vpermilpd {{.*#+}} xmm1 = xmm0[1,0]
+; AVX512F_32-NEXT: vaddsd %xmm0, %xmm1, %xmm0
+; AVX512F_32-NEXT: vmovsd %xmm0, (%esp)
; AVX512F_32-NEXT: fldl (%esp)
; AVX512F_32-NEXT: movl %ebp, %esp
; AVX512F_32-NEXT: popl %ebp
OpenPOWER on IntegriCloud