7351 – Possible asm bug: bad type/size of operands 'xadd'

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7351 - Possible asm bug: bad type/size of operands 'xadd'
Summary: Possible asm bug: bad type/size of operands 'xadd'
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: iasm
Depends on:
Blocks:
Reported: 2012年01月22日 21:27 UTC by siegelords_abode
Modified: 2012年01月24日 13:41 UTC (History)
1 user (show)

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description siegelords_abode 2012年01月22日 21:27:26 UTC
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 github-bugzilla 2012年01月24日 13:39:16 UTC
Commit pushed to https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/116fbd90a28ea6203fb1965f7dfebf2f08ed0afb
fix Issue 7351 - Possible asm bug: bad type/size of operands 'xadd'
Comment 2 github-bugzilla 2012年01月24日 13:39:30 UTC
Commit pushed to https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/067f67a7efa04c21ddbb49eb919a97fd481f4469
fix Issue 7351 - Possible asm bug: bad type/size of operands 'xadd'


AltStyle によって変換されたページ (->オリジナル) /