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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to