Bug 7351 – Possible asm bug: bad type/size of operands 'xadd'
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-01-22T21:27:00Z
Last change time
2012-01-24T13:41:34Z
Keywords
iasm
Assigned to
nobody
Creator
siegelords_abode
Comments
Comment #0 by siegelords_abode — 2012-01-22T21:27:26Z
When compiled with dmd 2.057 on 64 bit Linux OS the following code gives an error:
void main()
{
asm
{
xadd qword ptr [RAX],RDX;
}
}
test.d(5): bad type/size of operands 'xadd'
LDC2 compiles that code fine on the same system. I don't know enough assembly to tell who is wrong.
Comment #1 by github-bugzilla — 2012-01-24T13:39:16Z