mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
ff12c11f45
As previously discussed <https://sourceware.org/ml/libc-alpha/2013-10/msg00345.html>, it would be desirable to be able to use the same version of the soft-fp code in the Linux kernel as well as in glibc and libgcc (instead of an old version in the kernel that's missing ten years of bug fixes, performance improvements and new features), and to that end it is useful to add to glibc's copy features in the kernel's copy, even when they are not directly useful in glibc. To that end, this patch adds one of those features: support for more precise "invalid" exceptions describing the particular kind of invalid operation. These are relevant for powerpc emulation, and are also as described in IEEE 754-2008 as sub-exceptions. The set of sub-exceptions here is the union of those supported on powerpc and those from IEEE 754-2008 (the former adds a distinction between 0/0 and Inf/Inf; the latter adds a distinction between Inf*0 from multiplication and the same from fma). This includes sub-exceptions for sqrt, conversions to integer and comparisons that are not supported in the kernel; I see no obvious reason for these being missing from the kernel support, given that they are supported on powerpc so accurate powerpc emulation should generate them. Tested for powerpc-nofpu that the disassembly of installed shared libraries is unchanged by this patch. * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro. (FP_EX_INVALID_IMZ): Likewise. (FP_EX_INVALID_IMZ_FMA): Likewise. (FP_EX_INVALID_ISI): Likewise. (FP_EX_INVALID_ZDZ): Likewise. (FP_EX_INVALID_IDI): Likewise. (FP_EX_INVALID_SQRT): Likewise. (FP_EX_INVALID_CVI): Likewise. (FP_EX_INVALID_VC): Likewise. * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise "invalid" exceptions. (_FP_CHECK_SIGNAN_SEMIRAW): Likewise. (_FP_ADD_INTERNAL): Likewise. (_FP_MUL): Likewise. (_FP_FMA): Likewise. (_FP_DIV): Likewise. (_FP_CMP_CHECK_NAN): Likewise. (_FP_SQRT): Likewise. (_FP_TO_INT): Likewise. (FP_EXTEND): Likewise. |
||
---|---|---|
.. | ||
adddf3.c | ||
addsf3.c | ||
addtf3.c | ||
Banner | ||
divdf3.c | ||
divsf3.c | ||
divtf3.c | ||
double.h | ||
eqdf2.c | ||
eqsf2.c | ||
eqtf2.c | ||
extenddftf2.c | ||
extended.h | ||
extendsfdf2.c | ||
extendsftf2.c | ||
extendxftf2.c | ||
fixdfdi.c | ||
fixdfsi.c | ||
fixdfti.c | ||
fixsfdi.c | ||
fixsfsi.c | ||
fixsfti.c | ||
fixtfdi.c | ||
fixtfsi.c | ||
fixtfti.c | ||
fixunsdfdi.c | ||
fixunsdfsi.c | ||
fixunsdfti.c | ||
fixunssfdi.c | ||
fixunssfsi.c | ||
fixunssfti.c | ||
fixunstfdi.c | ||
fixunstfsi.c | ||
fixunstfti.c | ||
floatdidf.c | ||
floatdisf.c | ||
floatditf.c | ||
floatsidf.c | ||
floatsisf.c | ||
floatsitf.c | ||
floattidf.c | ||
floattisf.c | ||
floattitf.c | ||
floatundidf.c | ||
floatundisf.c | ||
floatunditf.c | ||
floatunsidf.c | ||
floatunsisf.c | ||
floatunsitf.c | ||
floatuntidf.c | ||
floatuntisf.c | ||
floatuntitf.c | ||
fmadf4.c | ||
fmasf4.c | ||
fmatf4.c | ||
gedf2.c | ||
gesf2.c | ||
getf2.c | ||
ledf2.c | ||
lesf2.c | ||
letf2.c | ||
Makefile | ||
muldf3.c | ||
mulsf3.c | ||
multf3.c | ||
negdf2.c | ||
negsf2.c | ||
negtf2.c | ||
op-1.h | ||
op-2.h | ||
op-4.h | ||
op-8.h | ||
op-common.h | ||
quad.h | ||
single.h | ||
soft-fp.h | ||
sqrtdf2.c | ||
sqrtsf2.c | ||
sqrttf2.c | ||
subdf3.c | ||
subsf3.c | ||
subtf3.c | ||
testit.c | ||
truncdfsf2.c | ||
trunctfdf2.c | ||
trunctfsf2.c | ||
trunctfxf2.c | ||
unorddf2.c | ||
unordsf2.c | ||
unordtf2.c |