[LLVMbugs] [Bug 2856] New: x86_fp80 NaN constants emitted inconsistently

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Oct 3 10:06:41 PDT 2008


           Summary: x86_fp80 NaN constants emitted inconsistently
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: miscompilation
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: kamm-removethis at incasoftware.de
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=2054)
 --> (http://llvm.org/bugs/attachment.cgi?id=2054)
test case

The compiling and executing the attached LLVM IR prints 


even though the x86_fp80 constants used are identical

The relevant sections in the asm output are

the in-line constant (0x7FC00000):
        .long   2143289344      # float nan

the global (0x7FFF400000000000)
        .size   _D3nan4rvale, 12
        .short  0       # long double least significant halfword of ~nan
        .short  0       # long double next halfword
        .short  0       # long double next halfword
        .short  16384   # long double next halfword
        .short  32767   # long double most significant halfword
        .zero   2

and they should describe the same value, but don't.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list