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: unassignedb...@nondot.org
          Reporter: llvm-...@redking.me.uk
                CC: craig.top...@gmail.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to