ASM: Loading address of label truncates to 32 bits on x64
claptrap
clap at trap.com
Sun Nov 10 20:58:45 UTC 2024
On Sunday, 10 November 2024 at 12:37:27 UTC, claptrap wrote:
> On Sunday, 10 November 2024 at 00:47:07 UTC, claptrap wrote:
>> Looks like a bug to me as it works OK on DMD. At least I
>> compiled a small test and DMD prints out a 64 bit address
>
> Am I understanding correctly that LDC parse D symtax and
> converts it to LDC/GDC syntax, and this is done with
>
> asm-x86.h
>
> So could be the problem is the lea is not converted to the
> correct symtax?
Ok apparently...
lea RCX,[RIP+LABEL]
works.
More information about the digitalmars-d-ldc
mailing list