http://d.puremagic.com/issues/show_bug.cgi?id=7455

           Summary: narrowing float cast skipped for x87 values
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: d...@dawgfoto.de


--- Comment #0 from d...@dawgfoto.de 2012-02-06 19:46:54 PST ---
int main()
{
    real a = 1.0L + float.epsilon;
    if (cast(float)(a + 1.0L) > 2.0L)
        return 1;
    return 0;
}

-----
cast(float) is skipped
-----

A similar test with double and SSE works correctly.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to