glibc/soft-fp
Zong Li af1d5782c1 soft-fp: Add implementation for 128 bit self-contained
Here only add the implementation when building the RV32 port.

These macros are used when the following situations occur at the same
time: soft-fp fma, ldbl-128 and 32-bit _FP_W_TYPE_SIZE. The RISC-V
32-bit port is the first port which use all three together.

This is the building flow about the situation:
When building soft-fp/s_fmal.c, there uses the FP_FMA_Q in __fmal.
The _FP_W_TYPE_SIZE is defined to 32-bit in sysdeps/riscv/sfp-machine.h,
so the FP_FMA_Q was defined to _FP_FMA (Q, 4, 8, R, X, Y, Z) in
soft-fp/quad.h.

Something in the soft-fp/quad.h:
 #if _FP_W_TYPE_SIZE < 64
    # define FP_FMA_Q(R, X, Y, Z)    _FP_FMA (Q, 4, 8, R, X, Y, Z)
 #else
    # define FP_FMA_Q(R, X, Y, Z)    _FP_FMA (Q, 2, 4, R, X, Y, Z)
 #endif

Finally, in _FP_FMA (fs, wc, dwc, R, X, Y, Z), it will use the
_FP_FRAC_HIGHBIT_DW_##dwc macro, and it will be expanded to
_FP_FRAC_HIGHBIT_DW_8, but the _FP_FRAC_HIGHBIT_DW_8 is not be
implemented in soft-fp/op-8.h. there is only _FP_FRAC_HIGHBIT_DW_1,
_FP_FRAC_HIGHBIT_DW_2 and _FP_FRAC_HIGHBIT_DW_4 in the
soft-fp/op-*.h.

After this modification, we can pass the soft floating testing of glibc
testsuites on RV32.

	* soft-fp/op-8.h (_FP_FRAC_SET_8, _FP_FRAC_ADD_8, _FP_FRAC_SUB_8)
	(_FP_FRAC_CLZ_8, _FP_MINFRAC_8, _FP_FRAC_NEGP_8, _FP_FRAC_ZEROP_8)
	(_FP_FRAC_HIGHBIT_DW_8, _FP_FRAC_COPY_4_8, _FP_FRAC_COPY_8_4)
	(__FP_FRAC_SET_8): Add implementation for RV32 use.
2018-11-01 18:22:00 +00:00
..
adddf3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
addsf3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
addtf3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
divdf3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
divsf3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
divtf3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
double.h Do not use packed structures in soft-fp. 2018-02-01 20:44:49 +00:00
eqdf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
eqsf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
eqtf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
extenddftf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
extended.h Do not use packed structures in soft-fp. 2018-02-01 20:44:49 +00:00
extendhftf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
extendsfdf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
extendsftf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
extendxftf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixdfdi.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixdfsi.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixdfti.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixhfti.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixsfdi.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixsfsi.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixsfti.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixtfdi.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixtfsi.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixtfti.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixunsdfdi.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixunsdfsi.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixunsdfti.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixunshfti.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixunssfdi.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixunssfsi.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixunssfti.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixunstfdi.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixunstfsi.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fixunstfti.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatdidf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatdisf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatditf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatsidf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatsisf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatsitf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floattidf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floattihf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floattisf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floattitf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatundidf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatundisf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatunditf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatunsidf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatunsisf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatunsitf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatuntidf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatuntihf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatuntisf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
floatuntitf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gedf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gesf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
getf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
half.h Do not use packed structures in soft-fp. 2018-02-01 20:44:49 +00:00
ledf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
lesf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
letf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
Makefile Make powerpc-nofpu __sqrtsf2, __sqrtdf2 compat symbols (bug 18473). 2018-06-01 17:25:12 +00:00
muldf3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mulsf3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
multf3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
negdf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
negsf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
negtf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
op-1.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
op-2.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
op-4.h soft-fp: Use temporary variable in FP_FRAC_SUB_3/FP_FRAC_SUB_4 2018-11-01 17:34:39 +00:00
op-8.h soft-fp: Add implementation for 128 bit self-contained 2018-11-01 18:22:00 +00:00
op-common.h Add narrowing multiply functions. 2018-05-16 00:05:28 +00:00
quad.h Do not use packed structures in soft-fp. 2018-02-01 20:44:49 +00:00
single.h Do not use packed structures in soft-fp. 2018-02-01 20:44:49 +00:00
soft-fp.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
subdf3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
subsf3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
subtf3.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
testit.c Remove trailing whitespace. 2013-06-05 20:44:03 +00:00
truncdfsf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
trunctfdf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
trunctfhf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
trunctfsf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
trunctfxf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
unorddf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
unordsf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
unordtf2.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00