www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9863] New: Incorrect generation of SAHF instruction on 64 bits

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: bugzilla digitalmars.com


--- Comment #0 from Walter Bright <bugzilla 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: -------
Apr 02 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9863



--- Comment #1 from Walter Bright <bugzilla digitalmars.com> 2013-04-02
13:59:31 PDT ---
https://github.com/D-Programming-Language/dmd/pull/1827

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 02 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9863



--- Comment #2 from github-bugzilla puremagic.com 2013-04-02 20:30:14 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/47765afdf90a1b658dc546e2dfdb576367ce3a7a
fix Issue 9863 - Incorrect generation of SAHF instruction on 64 bits

https://github.com/D-Programming-Language/dmd/commit/57005973408fd82adf1f7d544ceae4f53beb7fcd
Merge pull request #1827 from WalterBright/fix9863

fix Issue 9863 - Incorrect generation of SAHF instruction on 64 bits

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 02 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9863


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies gmail.com


--- Comment #3 from yebblies <yebblies gmail.com> 2013-04-03 14:31:25 EST ---
Fixed D2.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 02 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9863


Brad Roberts <braddr puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |braddr puremagic.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 03 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9863



--- Comment #4 from yebblies <yebblies gmail.com> 2013-04-03 20:21:18 EST ---
Where is the D1 commit?  Or did this never really apply to D1?

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 03 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9863



--- Comment #5 from Walter Bright <bugzilla digitalmars.com> 2013-04-03
02:28:34 PDT ---
It's been merged into D1:

https://github.com/D-Programming-Language/dmd/commits/dmd-1.x

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 03 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9863



--- Comment #6 from yebblies <yebblies gmail.com> 2013-04-03 20:31:04 EST ---
Ok.

https://github.com/D-Programming-Language/dmd/commit/d22d98cdab8758b6a584beda868478df7820607a

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Apr 03 2013