From patchwork Mon Jan 21 16:15:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 1028753 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-494444-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="tSsC43Il"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43jxW904Dzz9s3l for ; Tue, 22 Jan 2019 03:16:19 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; q=dns; s=default; b=FikD92amxykxTm8W IQlvJpopJ9BOEbCAtwesAa8QCq7j+bH/ncxiSbGy2kbBD3t7QDE0OiK57liqBlTq yhQSCSOaQGtvgW9uVpjtVoP5had5JCXdmCVpTfRwe8WroY0602VHzcbgG5cLkwVO J0r5ak7Sg0DPCiTy8xdpU6KhBls= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=default; bh=vwJX4jaE5EKCZ1cu7zANtN XzDpI=; b=tSsC43Il4bAdS6foLmt+E6f3n+D9pBkHxiSed9ttPQm9ZBOQ8iDdTc yo6nL/8LTHWvq5Ouw0SeaCSRXL0btzemtzIAMrTytbycpfCgPk75VSoxDQXlb2YA jOT2it9JRgIVW4xZfwa3febXV/OWV5z16KQShJh9RPvfXocSxGif0= Received: (qmail 89636 invoked by alias); 21 Jan 2019 16:16:12 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 89498 invoked by uid 89); 21 Jan 2019 16:16:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.2 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_SOFTFAIL autolearn=ham version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-HELO: mga04.intel.com Received: from mga04.intel.com (HELO mga04.intel.com) (192.55.52.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 21 Jan 2019 16:16:01 +0000 Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jan 2019 08:15:46 -0800 Received: from gnu-cfl-1.sc.intel.com ([172.25.70.237]) by fmsmga006.fm.intel.com with ESMTP; 21 Jan 2019 08:15:46 -0800 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Cc: Uros Bizjak Subject: [PATCH] x86-64: Use TI->SF and TI->DF conversions in soft-fp Date: Mon, 21 Jan 2019 08:15:46 -0800 Message-Id: <20190121161546.2900-1-hjl.tools@gmail.com> MIME-Version: 1.0 X-IsSubscribed: yes 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))