This is the mail archive of the
mailing list for the GCC project.
How to get a vector FMA with GCC in a portable way?
- From: Vincent Lefevre <vincent+gcc at vinc17 dot org>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 15 Jan 2019 17:54:31 +0100
- Subject: How to get a vector FMA with GCC in a portable way?
I would like to know how to get a vector FMA with GCC in a portable
By "portable way", I mean that the behavior must not depend on the
compilation options (e.g., if FP contraction is disabled, I still
want a true FMA) and that the code must not depend on the architecture
(thus intrinsics should not be used... even when restricting to x86,
one reason is FMA3 vs FMA4 issues).
For instance, for addition, one can write "a + b". But for FMA?
Vincent Lefèvre <firstname.lastname@example.org> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)