[Issue 11071] REX.R and REX.W prefixes do not seem to be generated in some cases

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 12 02:38:01 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=11071

Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #5 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Joseph Cassman from comment #0)
> However, the following code fails to compile. The problem occurs for all
> generic registers (RAX .. RDX R8 .. R15).
> 
>     mul   RAX,0xffffffffUL;
>     div   RAX,0xffffffffUL;
>     idiv  RAX,0xffffffffUL;
>     and   RAX,0x1ffffffffUL;
>     or    RAX,0x1ffffffffUL;
>     xor   RAX,0x1ffffffffUL;
>     add   RAX,0x1ffffffffUL;
>     adc   RAX,0x1ffffffffUL;
>     sub   RAX,0x1ffffffffUL;
>     sbb   RAX,0x1ffffffffUL;
>     cmp   RAX,0x1ffffffffUL;
>     mul   RAX,0x1ffffffffUL;
>     imul  RAX,0x1ffffffffUL;
>     div   RAX,0x1ffffffffUL;
>     idiv  RAX,0x1ffffffffUL;
>     test  RAX,0x1ffffffffUL;

These all correctly fail to compile, too. See:

https://www.felixcloutier.com/x86/index.html

for descriptions of which operands are acceptable for each opcode.

--


More information about the Digitalmars-d-bugs mailing list