Bug 8846 – Specs for Inline Assembler don't include cmpxchg16b
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-10-17T20:05:00Z
Last change time
2016-01-03T14:19:57Z
Keywords
iasm, spec
Assigned to
nobody
Creator
resume755
Comments
Comment #0 by resume755 — 2012-10-17T20:05:17Z
It can be useful for compare-and-swap of values (typically pointers), for cas2 (double cas) function implementation which can be used in lock-free code.
Comment #1 by clugdbug — 2012-11-12T23:59:27Z
It is implemented, but is missing from the list in the spec. Also cmpxchg8b is incorrectly written as cmpxch8b.