Bug 15999 – Inline assembly incorrect sign extension instead of error

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
All
Creation time
2016-05-07T15:28:00Z
Last change time
2016-10-01T11:46:58Z
Keywords
accepts-invalid, iasm, pull, wrong-code
Assigned to
safety0ff.bugz
Creator
safety0ff.bugz

Comments

Comment #0 by safety0ff.bugz — 2016-05-07T15:28:28Z
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.
Comment #1 by safety0ff.bugz — 2016-05-13T23:18:10Z
Comment #2 by github-bugzilla — 2016-07-06T07:55:14Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/cb1911c64ed7bd988e80ea0b3d0b3a431cfd094e Fix issue 15999 - Inline assembly incorrect sign extension instead of error https://github.com/dlang/dmd/commit/702c543a83b809826b289bd17f01e4259d453177 Merge pull request #5739 from WalterWaldron/fix13147 Fix issue 15999 - Inline assembly incorrect sign extension instead of…
Comment #3 by github-bugzilla — 2016-10-01T11:46:58Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/cb1911c64ed7bd988e80ea0b3d0b3a431cfd094e Fix issue 15999 - Inline assembly incorrect sign extension instead of error https://github.com/dlang/dmd/commit/702c543a83b809826b289bd17f01e4259d453177 Merge pull request #5739 from WalterWaldron/fix13147