http://d.puremagic.com/issues/show_bug.cgi?id=7592
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 AssignedTo: yebbl...@gmail.com ReportedBy: yebbl...@gmail.com --- Comment #0 from yebblies <yebbl...@gmail.com> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------