[PATCH] Fix to soft-fp underflow detection.
Marcus Shawcroft
marcus.shawcroft@linaro.org
Tue Nov 13 14:33:00 GMT 2012
This patch addresses an issue in which soft-fp truncation fails to
raise underflow, the issue was found while porting glibc to aarch64,
relevant posts on libc-ports start here:
http://sourceware.org/ml/libc-ports/2012-11/msg00017.html
This patch has been tested by updating the copy of soft-fp in gcc and
running the glibc test suite for aarch64.
OK?
/Marcus
2012-11-13 Marcus Shawcroft <marcus.shawcroft@linaro.org>
* soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
detection to immediately after _FP_ROUND().
* soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
bits are 0.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: underflow-detection.diff
Type: application/octet-stream
Size: 2611 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20121113/0530a886/attachment.obj>
More information about the Libc-alpha
mailing list