Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2020-02

Re: Fixes for i386/x86_64 assembler

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hi Gareth,

i have fixed this bug in the last year (my avx512-branch) and Florian has merged my avx512-branch to trunk (23.10.2019).

Torsten

-----Original-Nachricht-----
Betreff: [fpc-devel] Fixes for i386/x86_64 assembler Datum: 2020-02-17T10:44:57+0100
Von: "J. Gareth Moreton"
An: "FPC developers' list"

Hi everyone,
I made some fixes to the compiler when it comes to SSE and AVX instructions that deal with single (rather than packed) data, since it got the memory sizes wrong and assumed they were 128-bit or 256-bit instead. Thanks to Marco for pointing out that it was single data in issue #32219 - I completely overlooked that.
Details and patches are here:
https://bugs.freepascal.org/view.php?id=35700
<https://bugs.freepascal.org/view.php?id=35700>
What it means is that the following will now compile without any warnings or errors on i386 and x86_64:

ADDSD XMM0, QWORD PTR [EAX] ADDSD XMM0, [EAX] ADDSD XMM0, VarOfTypeDouble

And with other instructions of a similar format.
Gareth aka. Kit

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> 

Reply by email

J. Gareth Moreton
to Unknown author

That's good to hear.  I had to look at the issue to see what you were talking about since it was some time ago.

Gareth

Show quoted text 49 lines
Hi Gareth, i have fixed this bug in the last year (my avx512-branch) and Florian has merged my avx512-branch to trunk (23.10.2019). Torsten -----Original-Nachricht----- Betreff: [fpc-devel] Fixes for i386/x86_64 assembler Datum: 2020-02-17T10:44:57+0100 Von: "J. Gareth Moreton" An: "FPC developers' list" Hi everyone, I made some fixes to the compiler when it comes to SSE and AVX instructions that deal with single (rather than packed) data, since it got the memory sizes wrong and assumed they were 128-bit or 256-bit instead.  Thanks to Marco for pointing out that it was single data in issue #32219 - I completely overlooked that. Details and patches are here: https://bugs.freepascal.org/view.php?id=35700 What it means is that the following will now compile without any warnings or errors on i386 and x86_64: ADDSD XMM0, QWORD PTR [EAX] ADDSD XMM0, [EAX] ADDSD XMM0, VarOfTypeDouble And with other instructions of a similar format. Gareth aka. Kit <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>  _______________________________________________ fpc-devel maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email