powerpc: Fix llround spurious inexact on 32-bit POWER4 [BZ #22697]
commitaf1e6be4ba60067907ea9e19e0cd6897d194e9cf
authorTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 12 Jan 2018 22:39:42 +0000 (12 20:39 -0200)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 12 Jan 2018 22:39:42 +0000 (12 20:39 -0200)
tree7b4980cf45cfc1f7fd95b143cbc4fd2b3929e5b4
parent98d13ce07a6aee9efb2ef2405a95c6bb8e01dca3
powerpc: Fix llround spurious inexact on 32-bit POWER4 [BZ #22697]

This issue is similar to BZ #19235, where spurious exceptions are
created from adding 0.5 then converting to an integer.
The solution is based on Joseph's fix for BZ #19235.

[BZ #22697]
* sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S (__llround):
Do not add 0.5 to integer or out-of-range arguments.
ChangeLog
sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S