Thread overview
[Issue 19528] asm ptoblem
Dec 30, 2018
steven kladitis
Dec 30, 2018
steven kladitis
Dec 30, 2018
steven kladitis
Jan 07, 2019
Nicholas Wilson
Aug 30, 2020
Basile-z
May 20, 2022
mhh
May 21, 2022
Dlang Bot
December 30, 2018
https://issues.dlang.org/show_bug.cgi?id=19528

--- Comment #1 from steven kladitis <steven_kladitis@yahoo.com> ---
Created attachment 1721
  --> https://issues.dlang.org/attachment.cgi?id=1721&action=edit
does notc cimpile witjh  -O -inline

this compiles instantly in DMD32 D Compiler v2.084.0-rc.1
with --> dmd -O
but the compiler  sits forever in compile with -> dmd -O -inline

--
December 30, 2018
https://issues.dlang.org/show_bug.cgi?id=19528

--- Comment #2 from steven kladitis <steven_kladitis@yahoo.com> ---
this on windows 64 bit. 32g RAM AND DMD32 D Compiler v2.084.0-rc.1

--
December 30, 2018
https://issues.dlang.org/show_bug.cgi?id=19528

--- Comment #3 from steven kladitis <steven_kladitis@yahoo.com> ---
i do not know how I made this one issue, but it should be two.
1. for the asm
2. for the dmd -O -inline.

--
January 07, 2019
https://issues.dlang.org/show_bug.cgi?id=19528

Nicholas Wilson <iamthewilsonator@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iamthewilsonator@hotmail.co
                   |                            |m

--- Comment #4 from Nicholas Wilson <iamthewilsonator@hotmail.com> ---
EAX is 32 bits ib size, a long is 64, I'm surprised the 32-bit one compiles to be honest.

The hang with -O -inline is not good though.

--
August 30, 2020
https://issues.dlang.org/show_bug.cgi?id=19528

Basile-z <b2.temp@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |iasm
                 CC|                            |b2.temp@gmx.com

--
May 20, 2022
https://issues.dlang.org/show_bug.cgi?id=19528

mhh <maxhaton@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxhaton@gmail.com

--- Comment #5 from mhh <maxhaton@gmail.com> ---
This doesn't hang anymore, but it shouldn't compile in 32 bit mode.

X86 doesn't have a mov m64, r32 instruction.

--
May 21, 2022
https://issues.dlang.org/show_bug.cgi?id=19528

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

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

--- Comment #6 from Dlang Bot <dlang-bot@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

--