702 – inline assembler: "SMSW r32" fails to compile

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 702 - inline assembler: "SMSW r32" fails to compile
Summary: inline assembler: "SMSW r32" fails to compile
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Linux
: P2 normal
Assignee: Walter Bright
URL:
Keywords: rejects-valid
Depends on:
Blocks:
Reported: 2006年12月21日 03:08 UTC by Thomas Kühne
Modified: 2014年02月15日 13:21 UTC (History)
0 users

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 Thomas Kühne 2006年12月21日 03:08:34 UTC
The following code fails to compile with the message
"bad type/size of operands 'smsw'":
asm{ SMSW EAX; }
SMSW r32 is valid i386 assembler:
IA-32 Intel® Architecture Software Developer’s
Manual Volume 2B: Instruction Set Reference, N-Z
4-274 Vol. 2B
Opcode:
0F 01 /4
Instruction:
SMSW r32/m16
Description:
Store machine status word in low-order 16 bits of r32/m16; high-order 16 bits of r32 are undefined.
testcase:
http://dstress.kuehne.cn/run/a/asm_smsw_02_A.d 
Comment 1 Walter Bright 2007年01月03日 22:05:59 UTC
Fixed DMD 1.00


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