[llvm-bugs] [Bug 26791] New: Unions containing a double as the first member are sometimes copied incorrectly

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 1 12:12:12 PST 2016


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

            Bug ID: 26791
           Summary: Unions containing a double as the first member are
                    sometimes copied incorrectly
           Product: clang
           Version: 3.7
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: jleroy9 at bloomberg.net
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15968
  --> https://llvm.org/bugs/attachment.cgi?id=15968&action=edit
zip containing C++ code

Unions consisting of a double as the first member with a total size equal to a
double are sometimes copied incorrectly, i.e. as doubles instead of bytes,
flipping the Quiet NaN bit in the process. This happens only with -O2
optimizations and the pentium2 architecture. See top of attached clang_1.cpp
file for compilation command and bottom for output.

-- 
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/20160301/73f2434e/attachment.html>


More information about the llvm-bugs mailing list