Bug 9863 – Incorrect generation of SAHF instruction on 64 bits
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2013-04-02T12:21:00Z
Last change time
2015-06-09T05:11:56Z
Assigned to
nobody
Creator
bugzilla
Comments
Comment #0 by bugzilla — 2013-04-02T12:21:12Z
The SAHF instruction does not exist on early 64 bit CPUs, so dmd should not generate it. Example code that does:
bool foo(creal c)
{
return c != 0;
}
This will cause an illegal instruction fault on older 64 bit CPUs.