[Issue 15999] New: Inline assembly incorrect sign extension instead of error

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat May 7 08:28:28 PDT 2016


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

          Issue ID: 15999
           Summary: Inline assembly incorrect sign extension instead of
                    error
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Keywords: accepts-invalid, iasm, wrong-code
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: safety0ff.bugz at gmail.com

Taken from issue 6459:
> I also notice if you do:
>
> and RAX,0x00000000FFFFFFFF
>
> the compiler accepts it but generates:
>
> and RAX,0xFFFFFFFFFFFFFFFF
?
> because, of course, there is no imm64 mode for and/or etc. instructions.
> Same applies for all other immediate constants that can be encoded into 8 bits.

I have a fix incomming.

--


More information about the Digitalmars-d-bugs mailing list