[fpc-devel] assembler memory addressing in 64-bit mode

Torsten fckama at freenet.de
Fri Jan 6 12:15:39 CET 2012


Hi Florian,



Am 06.01.2012 11:53, schrieb Florian Klämpfl:
> Am 06.01.2012 11:16, schrieb Torsten:
>> Hi,
>>
>> i don't understand the follow error message in 64-bit mode:
>>
>>
>> assemblercode
>>
>> asm
>> addpd xmm0, [EAX]
>> end;
>>
>>
>> I think this is a bug.
> While in theory, it might be possible to write such code, I'am still
> prefer the error of FPC: in 99.9% of the use cases using a 32 bit
> reference in 64 bit mode is an error and crashes anyways on run time. If
> such code is really needed, it still can be encoded manually using .byte
> or if it's a bigger part, an external assembler can be used.
I am working on the AVX-support for the fp-compiler and i make tests 
with different memory references.

It is ok for me. I ignore all 32-bit register memory references in my tests.

> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
>




More information about the fpc-devel mailing list