[LLVMbugs] [Bug 14285] New: Bad __DBL_MIN__, __LDBL_MIN__, ... generated

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 7 14:09:43 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=14285

             Bug #: 14285
           Summary: Bad __DBL_MIN__, __LDBL_MIN__, ...  generated
           Product: clang
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jeroen.dobbelaere at synopsys.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


When a backend wants to map a 'double' type to a float instance, it indicates
this with setting the 'DoubleFormat' to &llvm::APFloat::IEEESingle
Same thing can be done for 'LongDobleFormat'.

This is mostly fine (the C 'double' type will result in 'f32' llvm-ir type,
but some of the internal generated min/max numbers (__FLT_MIN__, __DBL_MIN__,
...)
contain the wrong suffix, such that __DBL_MIN__ will be interpreted as a float
type, in stead of a double type.

-- 
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