Summary: Conversion from ireal to ifloat broken when using xmm
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from yebblies <> 2012-02-27 03:13:55 EST ---
CastExp::toElem contains a typo making it emit (OPd_f (OPf_d v)) instead of
(OPd_f (OPlld_d v)) when converting from ireal to ifloat.  This does not cause
problem when v is in a floating point register, but generates wrong code when
using xmm registers.

ifloat conv(ireal v)
    return cast(ifloat)v;
void main()
    assert(conv(1.0Li) == 1.0fi);

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to