[PATCH] RISC-V: Fix unordered float compare for Signaling NaN.

Kito Cheng kito.cheng@gmail.com
Wed Oct 3 03:05:00 GMT 2018


Hi Jim:

This patch is fixing the wrong behavior for unordered float compare
for Signaling NaN, current implementation will suppress the FP
exception flags unconditionally, however signaling NaN should signal
an exception according IEEE 754-2008 spec.

I've add an test for that, and full test is included in glibc/math,
glibc/math testsuite report is attached.

Tested with RV32GC and RV64GC linux gcc and glibc testsuite, no new
failed case introduced.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subdir-tests.sum
Type: application/octet-stream
Size: 103732 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181003/eaedb934/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-RISC-V-Fix-unordered-float-compare-for-signaling-NaN.patch
Type: text/x-patch
Size: 4025 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181003/eaedb934/attachment.bin>


More information about the Gcc-patches mailing list