[Issue 9863] New: Incorrect generation of SAHF instruction on 64 bits

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 2 12:21:13 PDT 2013


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

           Summary: Incorrect generation of SAHF instruction on 64 bits
           Product: D
           Version: D1 & D2
          Platform: x86_64
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: bugzilla at digitalmars.com


--- Comment #0 from Walter Bright <bugzilla at digitalmars.com> 2013-04-02 12:21:12 PDT ---
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.

-- 
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