[Issue 23130] Inline asm lets you mov to half a variable.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 21 00:42:06 UTC 2022


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

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@maxhaton created dlang/dmd pull request #14152 "Fix Issues 23130, 19528 :
Inline asm was too liberal about operand si…" fixing this issue:

- Fix Issues 23130, 19528 : Inline asm was too liberal about operand sizes.

  A 8-byte type was only considered 8 bytes in 64 bit code, for some reason.
  This led to inconsistent compilation of extended asm.

  I tried to add an error message suggesting the use of an instruction like
movsx
  but this code is spaghetti.

https://github.com/dlang/dmd/pull/14152

--


More information about the Digitalmars-d-bugs mailing list