digitalmars.D.bugs - [Issue 15999] New: Inline assembly incorrect sign extension instead
- via Digitalmars-d-bugs (19/25) May 07 2016 https://issues.dlang.org/show_bug.cgi?id=15999
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 puremagic.com Reporter: safety0ff.bugz 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. --
May 07 2016