[Issue 6270] New: XMMREGS not preserved on indirect function call
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 8 14:01:40 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6270
Summary: XMMREGS not preserved on indirect function call
Product: D
Version: D2
Platform: x86_64
OS/Version: FreeBSD
Status: NEW
Keywords: wrong-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at dawgfoto.de 2011-07-08 13:56:34 PDT ---
class XMMPainter
{
float call()
{
return sumFloats(0.0f, 0.0f);
}
static float sumFloats(float a, float b)
{
return a + b;
}
}
void testXMM()
{
auto painter = new XMMPainter;
assert(XMMPainter.sumFloats(20, painter.call()) == 20.0f);
}
---
The expression painter.call() is evaluated after 20 has been loaded into xmm1,
but the register is not saved.
--
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