public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] x86-64: Use TI->SF and TI->DF conversions in soft-fp
@ 2019-01-21 16:16 H.J. Lu
  2019-01-21 16:43 ` Uros Bizjak
  2019-01-21 23:48 ` Joseph Myers
  0 siblings, 2 replies; 12+ messages in thread
From: H.J. Lu @ 2019-01-21 16:16 UTC (permalink / raw)
  To: gcc-patches; +Cc: Uros Bizjak

TI->SF and TI->DF conversions in libgcc2.c:

FSTYPE
FUNC (DWtype u)
{
  ...
}

have no rounding mode support.  We should replace __floattisf, __floattidf,
__floatuntisf and __floatuntidf in libgcc2.c with these from soft-fp.

	PR libgcc/88931
	* config/i386/64/t-softfp-compat (libgcc2-ti-functions): New.
	(LIB2FUNCS_EXCLUDE): Likewise.
	(libgcc2-ti-softp): Likewise.
	(LIB2ADD): Likewise.
---
 libgcc/config/i386/64/t-softfp-compat | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/libgcc/config/i386/64/t-softfp-compat b/libgcc/config/i386/64/t-softfp-compat
index 0978695c3a4..abb78032bf5 100644
--- a/libgcc/config/i386/64/t-softfp-compat
+++ b/libgcc/config/i386/64/t-softfp-compat
@@ -13,3 +13,11 @@ libgcc2-tf-functions = _divtc3 _multc3 _powitf2
 LIB2FUNCS_EXCLUDE += $(libgcc2-tf-functions)
 libgcc2-tf-compats = $(addsuffix .c, $(libgcc2-tf-functions))
 LIB2ADD += $(addprefix $(srcdir)/config/i386/64/, $(libgcc2-tf-compats))
+
+# Replace _floatdisf, _floatdidf, _floatundisf and _floatundidf in
+# libgcc2.c, which have no rounding mode support, with floattisf.c,
+# floattidf.c, floatundisf.c and floatundidf.c from soft-fp.
+libgcc2-ti-functions = _floatdisf _floatdidf _floatundisf _floatundidf
+LIB2FUNCS_EXCLUDE += $(libgcc2-ti-functions)
+libgcc2-ti-softp = floattisf.c floattidf.c floatuntisf.c floatuntidf.c
+LIB2ADD += $(addprefix $(srcdir)/soft-fp/, $(libgcc2-ti-softp))
-- 
2.20.1

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-01-23  2:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-21 16:16 [PATCH] x86-64: Use TI->SF and TI->DF conversions in soft-fp H.J. Lu
2019-01-21 16:43 ` Uros Bizjak
2019-01-21 16:56   ` H.J. Lu
2019-01-21 16:59     ` Uros Bizjak
2019-01-21 17:10       ` H.J. Lu
2019-01-21 18:37         ` H.J. Lu
2019-01-21 23:48 ` Joseph Myers
2019-01-22  0:40   ` Terry Guo
2019-01-22  0:58     ` Joseph Myers
2019-01-22  1:34       ` H.J. Lu
2019-01-22  2:03         ` Joseph Myers
2019-01-23  8:19           ` H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).