[Issue 7593] New: cfloat to cdouble conversion is broken when using xmm

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 26 08:20:01 PST 2012


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

           Summary: cfloat to cdouble conversion is broken when using xmm
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: wrong-code
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: yebblies at gmail.com
        ReportedBy: yebblies at gmail.com


--- Comment #0 from yebblies <yebblies at gmail.com> 2012-02-27 03:20:00 EST ---
cdcnvt checks to see if the types are complex too late, if xmm registers are
used this check is never reached and the wrong code is generated.

cdouble conv(cfloat a)
{
    return a;
}
void main()
{
    assert(conv(1.0f+1.0fi) == 1.0+1.0i);
}

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


More information about the Digitalmars-d-bugs mailing list