[Issue 702] New: inline assembler: "SMSW r32" fails to compile

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 21 01:08:35 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=702

           Summary: inline assembler: "SMSW r32" fails to compile
           Product: D
           Version: 0.177
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: thomas-dloop at kuehne.cn


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


-- 



More information about the Digitalmars-d-bugs mailing list