]> git.ipfire.org Git - thirdparty/gcc.git/commit - libgcc/ChangeLog
[ARM] Fix PR target/59833
authorramana <ramana@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Jul 2016 08:27:47 +0000 (08:27 +0000)
committerramana <ramana@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Jul 2016 08:27:47 +0000 (08:27 +0000)
commit04aca775de7d80107005933e4933d06e3b27b06c
tree3973337fb07a5c53e6c89382ef87a62c8ee3a2c6
parent5a5a7a90ecadbeec5011f8fc883eb365aa7745a4
[ARM] Fix PR target/59833

For Aurelien Jarno <aurelien@aurel32.net>

On ARM soft-float, the float to double conversion doesn't convert a sNaN
to qNaN as the IEEE Std 754 standard mandates:

"Under default exception handling, any operation signaling an invalid
operation exception and for which a floating-point result is to be
delivered shall deliver a quiet NaN."

Given the soft float ARM code ignores exceptions and always provides a
result, a float to double conversion of a signaling NaN should return a
quiet NaN. Fix this in extendsfdf2.

gcc/ChangeLog:

PR target/59833
* config/arm/ieee754-df.S (extendsfdf2): Convert sNaN to qNaN.

gcc/testsuite/ChangeLog:

* gcc.dg/pr59833.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238584 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/gcc.dg/pr59833.c [new file with mode: 0644]
libgcc/ChangeLog
libgcc/config/arm/ieee754-df.S