Bug#948482: ppc64el patch improvement

Frédéric Bonnard frediz at debian.org
Thu Jan 9 09:05:38 GMT 2020


Package: src:qd
Version: 2.3.22+dfsg.1-3
Control: tags -1 patch ftbfs

--

Hi,

after contacting the ppc64 toolchain team about bug #935289, especially
Pat Haugen, he said :
---
Basically the testcase is sensitive to
precision differences when FMA instructions are used (floating point
multiply-add). The compiler will generate these insns when it sees
expressions of the form (a * b) + c. If you want to continue to compile the
code at -O2 you'll need to specify the compiler option "-ffp-contract=off"
in order to prevent the FMA transformation(s).
this is just something specific to the values being used in the
testcase. The compiler will continue to generate 'fmadd' type instructions
at -O2 unless -ffp-contract=off is specified. My digging into the testcase
showed that different results were produced based on whether a fmadd insn
was generated for a specific expression. If it was not the result was 0, if
it was the result was some very small value. That value is then used
further and differences compounded, as you could guess.
---

so, so we may improve the patch by changing -fno-tree-pre into -ffp-contract=off

Thanks,

F.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20200109/4243824e/attachment.sig>


More information about the debian-science-maintainers mailing list