Seems to ignore the rex prefix.
@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
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