[llvm-bugs] [Bug 39078] New: combineUIntToFP - UINT_TO_FP(vXi1) handling

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 25 10:17:06 PDT 2018


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

            Bug ID: 39078
           Summary: combineUIntToFP - UINT_TO_FP(vXi1) handling
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org

X86's UINT_TO_FP combine for bool vectors has a comment:

  // UINT_TO_FP(vXi1) -> SINT_TO_FP(SEXT(vXi1 to vXi32))
  // UINT_TO_FP(vXi8) -> SINT_TO_FP(ZEXT(vXi8 to vXi32))
  // UINT_TO_FP(vXi16) -> SINT_TO_FP(ZEXT(vXi16 to vXi32))

But always zero-extends the source:

  SDValue P = DAG.getNode(ISD::ZERO_EXTEND, dl, DstVT, Op0);
  return DAG.getNode(ISD::SINT_TO_FP, dl, VT, P);

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180925/4c7e632b/attachment-0001.html>


More information about the llvm-bugs mailing list