Bug 23123 – -vasm wrong result for cmpxchg16b

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2022-05-18T00:13:34Z
Last change time
2022-05-18T21:50:42Z
Keywords
pull
Assigned to
No Owner
Creator
mhh

Comments

Comment #0 by maxhaton — 2022-05-18T00:13:34Z
Seems to ignore the rex prefix.
Comment #1 by dlang-bot — 2022-05-18T00:21:09Z
@maxhaton created dlang/dmd pull request #14136 "Fix Issue 23123 - -vasm ignored REX prefix for cmpxchg" fixing this issue: - Fix Issue 23123 - -vasm ignored REX prefix for cmpxchg This led to a mistaken bug report because obj2asm has the same issue. The bug makes it look like dmd is emitting the wrong CAS instruction (but it actually was) https://github.com/dlang/dmd/pull/14136
Comment #2 by dlang-bot — 2022-05-18T21:50:42Z
dlang/dmd pull request #14136 "Fix Issue 23123 - -vasm ignored REX prefix for cmpxchg" was merged into master: - 1785681ed0fe34bc2bc8d3102347ec051b0971c2 by mhh: Fix Issue 23123 - -vasm ignored REX prefix for cmpxchg This led to a mistaken bug report because obj2asm has the same issue. The bug makes it look like dmd is emitting the wrong CAS instruction (but it actually was) https://github.com/dlang/dmd/pull/14136