gcc/ PR c/30013 * config/dfp-bit.c: Don't skip TFmode conversions; move strto* declarations to top. (DFP_TO_BFP): Use for either XFmode or TFmode. (BFP_TO_DFP): Use for either XFmode or TFmode; always use cast of BFP_VIA_TYPE. * config/dfp-bit.h: Include float.h. (LONG_DOUBLE_HAS_XF_MODE, LONG_DOUBLE_HAS_TF_MODE): Define if long double is one of these modes, rather than using LIBGCC_HAS_*F_MODE which doesn't mean the same thing. (BFP_KIND): Use 4 to mean TFmode. (BFP_FMT): Specify the number of decimal digits based on the number of mantissa digits. (BFP_VIA_TYPE): Binary float type to use as cast for sprintf. (BFP_TO_DFP, DFP_TO_BFP): Define names for TFmode variants. (STR_TO_BFP): Use strtold for XFmode or TFmode. (TFtype): Define if TFmode is supported. * doc/libgcc.texi (Decimal float library routines): Document TF conversion functions. gcc/testsuite/ * gcc.dg/dfp/convert-bfp.c: Replace SKIP_LONG_DOUBLE with runtime checks for size of long double. * gcc.dg/dfp/convert.h: New file. * gcc.dg/dfp/convert-bfp-2.c: New test. * gcc.dg/dfp/convert-bfp-3.c: Ditto. * gcc.dg/dfp/convert-bfp-4.c: Ditto. * gcc.dg/dfp/convert-bfp-5.c: Ditto. * gcc.dg/dfp/convert-bfp-6.c: Ditto. * gcc.dg/dfp/convert-bfp-7.c: Ditto. * gcc.dg/dfp/convert-bfp-8.c: Ditto. * gcc.dg/dfp/convert-bfp-9.c: Ditto. * gcc.dg/dfp/convert-bfp-10.c: Ditto. * gcc.dg/dfp/convert-bfp-11.c: Ditto. From-SVN: r128361
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
Wbad-function-cast-1.c | Loading commit data... | |
Wtraditional-conversion-2.c | Loading commit data... | |
altivec-types.c | Loading commit data... | |
call-by-value.c | Loading commit data... | |
cast-bad.c | Loading commit data... | |
cast.c | Loading commit data... | |
compare-eq-const.c | Loading commit data... | |
compare-eq-d128.c | Loading commit data... | |
compare-eq-d32.c | Loading commit data... | |
compare-eq-d64.c | Loading commit data... | |
compare-eq-dfp.c | Loading commit data... | |
compare-eq.h | Loading commit data... | |
compare-rel-const.c | Loading commit data... | |
compare-rel-d128.c | Loading commit data... | |
compare-rel-d32.c | Loading commit data... | |
compare-rel-d64.c | Loading commit data... | |
compare-rel-dfp.c | Loading commit data... | |
compare-rel.h | Loading commit data... | |
compare-special-d128.c | Loading commit data... | |
compare-special-d32.c | Loading commit data... | |
compare-special-d64.c | Loading commit data... | |
compare-special.h | Loading commit data... | |
composite-type.c | Loading commit data... | |
constants-c99.c | Loading commit data... | |
constants-hex.c | Loading commit data... | |
constants-pedantic.c | Loading commit data... | |
constants.c | Loading commit data... | |
convert-bfp-10.c | Loading commit data... | |
convert-bfp-11.c | Loading commit data... | |
convert-bfp-2.c | Loading commit data... | |
convert-bfp-3.c | Loading commit data... | |
convert-bfp-4.c | Loading commit data... | |
convert-bfp-5.c | Loading commit data... | |
convert-bfp-6.c | Loading commit data... | |
convert-bfp-7.c | Loading commit data... | |
convert-bfp-8.c | Loading commit data... | |
convert-bfp-9.c | Loading commit data... | |
convert-bfp-fold.c | Loading commit data... | |
convert-bfp.c | Loading commit data... | |
convert-complex.c | Loading commit data... | |
convert-dfp-fold.c | Loading commit data... | |
convert-dfp-round-thread.c | Loading commit data... | |
convert-dfp-round.c | Loading commit data... | |
convert-dfp.c | Loading commit data... | |
convert-int-fold.c | Loading commit data... | |
convert-int-max-fold.c | Loading commit data... | |
convert-int-max.c | Loading commit data... | |
convert-int-saturate.c | Loading commit data... | |
convert-int.c | Loading commit data... | |
convert.h | Loading commit data... | |
ctypes.c | Loading commit data... | |
dec-eval-method.c | Loading commit data... | |
decfloat-constants.c | Loading commit data... | |
dfp-except.h | Loading commit data... | |
dfp-round.h | Loading commit data... | |
dfp.exp | Loading commit data... | |
fe-binop.c | Loading commit data... | |
fe-check.h | Loading commit data... | |
fe-convert-1.c | Loading commit data... | |
fe-convert-2.c | Loading commit data... | |
fe-convert-3.c | Loading commit data... | |
func-array.c | Loading commit data... | |
func-mixed.c | Loading commit data... | |
func-scalar.c | Loading commit data... | |
func-struct.c | Loading commit data... | |
func-vararg-alternate-d128.c | Loading commit data... | |
func-vararg-alternate-d32.c | Loading commit data... | |
func-vararg-alternate-d64.c | Loading commit data... | |
func-vararg-alternate.h | Loading commit data... | |
func-vararg-dfp.c | Loading commit data... | |
func-vararg-mixed.c | Loading commit data... | |
func-vararg-size0.c | Loading commit data... | |
inf-1.c | Loading commit data... | |
keywords-c89.c | Loading commit data... | |
keywords-c99.c | Loading commit data... | |
keywords-ignored-c99.c | Loading commit data... | |
keywords-pedantic.c | Loading commit data... | |
keywords-reserved.c | Loading commit data... | |
loop-index.c | Loading commit data... | |
modes.c | Loading commit data... | |
nan-1.c | Loading commit data... | |
nan-2.c | Loading commit data... | |
operator-arith-fold.c | Loading commit data... | |
operator-assignment.c | Loading commit data... | |
operator-bitwise.c | Loading commit data... | |
operator-comma.c | Loading commit data... | |
operator-cond.c | Loading commit data... | |
operator-logical.c | Loading commit data... | |
operator-unary.c | Loading commit data... | |
pr31344.c | Loading commit data... | |
pr31385.c | Loading commit data... | |
signbit-1.c | Loading commit data... | |
signbit-2.c | Loading commit data... | |
struct-layout-1.c | Loading commit data... | |
struct-union.c | Loading commit data... | |
typespec.c | Loading commit data... | |
union-init.c | Loading commit data... | |
usual-arith-conv-bad-2.c | Loading commit data... | |
usual-arith-conv-bad.c | Loading commit data... | |
usual-arith-conv-const.c | Loading commit data... | |
usual-arith-conv.c | Loading commit data... | |
wtr-conversion-1.c | Loading commit data... |