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: nob...@puremagic.com Reporter: safety0ff.b...@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. --