[llvm-bugs] [Bug 36152] New: float to unsigned char conversion looses zero-extend

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 30 07:43:32 PST 2018


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

            Bug ID: 36152
           Summary: float to unsigned char conversion looses zero-extend
           Product: libraries
           Version: 5.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: jeroen.dobbelaere at synopsys.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 19772
  --> https://bugs.llvm.org/attachment.cgi?id=19772&action=edit
example.c

On architectures where i8/i16 are not valid register types, legalization
wrongly omits a 'zext i8 to i32' for code like 'unsigned char foo(float a) {
return a; }'

-- 
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/20180130/30da75e4/attachment.html>


More information about the llvm-bugs mailing list