Thread overview
[Issue 20131] Bad codegen from inline asm LOCK CMPXCHG; possible REX prefix missing
Aug 15, 2019
Walter Bright
Aug 15, 2019
Walter Bright
Aug 15, 2019
Walter Bright
Aug 15, 2019
Walter Bright
Aug 15, 2019
Dlang Bot
Aug 16, 2019
Dlang Bot
August 15, 2019
https://issues.dlang.org/show_bug.cgi?id=20131

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com
            Summary|Bad codegen from inline     |Bad codegen from inline asm
                   |asm; possible REX prefix    |LOCK CMPXCHG; possible REX
                   |missing                     |prefix missing

--
August 15, 2019
https://issues.dlang.org/show_bug.cgi?id=20131

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |iasm

--
August 15, 2019
https://issues.dlang.org/show_bug.cgi?id=20131

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
Minimal test case:

  bool test() {
    asm {
        naked;
        cmpxchg [RDX], DIL;
    }
  }

--
August 15, 2019
https://issues.dlang.org/show_bug.cgi?id=20131

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
For the moment, until I fix it, you can use db to insert the exact bytes you need.

--
August 15, 2019
https://issues.dlang.org/show_bug.cgi?id=20131

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #10312 "fix Issue 20131 - Bad codegen from inline asm LOCK CMPXCHG; possible …" fixing this issue:

- fix Issue 20131 - Bad codegen from inline asm LOCK CMPXCHG; possible REX prefix missing

https://github.com/dlang/dmd/pull/10312

--
August 16, 2019
https://issues.dlang.org/show_bug.cgi?id=20131

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #10312 "fix Issue 20131 - Bad codegen from inline asm LOCK CMPXCHG; possible …" was merged into master:

- e26754056f0e671edbcdb80b9507780fa078907d by Walter Bright:
  fix Issue 20131 - Bad codegen from inline asm LOCK CMPXCHG; possible REX
prefix missing

https://github.com/dlang/dmd/pull/10312

--