https://llvm.org/bugs/show_bug.cgi?id=27291

            Bug ID: 27291
           Summary: [X86] Failure to fold v2i32 load into CVTDQ2PD
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedb...@nondot.org
          Reporter: llvm-...@redking.me.uk
                CC: llvm-bugs@lists.llvm.org, spatel+l...@rotateright.com
    Classification: Unclassified

define <2 x double> @cvt_2i32_2f64(<2 x i32>* %p, <2 x double>* %q) {
  %n = load <2 x i32>, <2 x i32>* %p
  %z = sitofp <2 x i32> %n to <2 x double>
  ret <2 x double> %z
}

llc -mtriple=x86_64-unknown -mcpu=btver2:

cvt_2i32_2f64:
        vmovq   (%rdi), %xmm0           # xmm0 = mem[0],zero
        vcvtdq2pd       %xmm0, %xmm0
        retq

(v)cvtdq2pd supports either an XMM register or a 64-bit memory location as the
source parameter but it appears the patterns are missing to fold the 64-bit
load.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to