From patchwork Mon May 9 14:35:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 53662 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 56A4C3948829 for ; Mon, 9 May 2022 14:42:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 56A4C3948829 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1652107356; bh=PbajVPQZhx+8gReMrmrkOFZBG+AEZgommtTeKrAvoF0=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Jm1bjW2yjC3poJTCrZ4ggAyvgoC/vryEmYoTvg/bq062s9zVb0eSHuP72svOZ8jyq J/LnXtVwKvzvozNIy01dlUK4W9602crYDjsgM9DHZCTt1yInF1LoWyBhpqQ1eNEGz+ AN/36cn1Ycl96X00aZEPltkTatoMGWSVIFaAXkdY= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2051.outbound.protection.outlook.com [40.107.20.51]) by sourceware.org (Postfix) with ESMTPS id 636F93949F19 for ; Mon, 9 May 2022 14:35:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 636F93949F19 ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=gajyyTrTUKNQlS1lUrylXDMV/Ww4yEYFidvU3fUkDu/i2CDMgcTdxENH/AKtQN2Gd4NQBU9yA4tLgJXbVLYMhWy+YWFfpkTgTPlxGRoJCfiLk+HY7ocPRnRrw66dGqny9DN2VGmDvRu0ByTNF2ksGTZKVJg3nAR8ue7jB95H8nOGfVc7XY4LlNRgK4xeBpSv7CFCVaqQO3RXsBCTUegp62Gt8tI9MkXa9FXk+Fw+KDOCz4oCiBiAIVxh4eO2T+4sq/zZPXqp+lmeRD6+lLujQk4dizRB87CxbezJRMs3iSuoYipfIKhNAD/e6Hr1YKbaR+tl8mIl/wqrOL5NviPAvQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PbajVPQZhx+8gReMrmrkOFZBG+AEZgommtTeKrAvoF0=; b=S7skll8d91fczg7DNXxGe9PHSV6vStxwCYAaZaJuDatToMJPwmAwaJO+KOOkCrOs2fjS7Bvl/Hf1F+ryKENI73rrYFfFnFZlC18l9opBSApnYVXvTXxo+GjV5derqcfneX5xYKsSb9qceHfvOw2e5X7LtZNoyfIWJ2Z4pbVV9mCKstaKM4Vc0XPfCeei/8oO4UaDbuLzMIqtTXynM0ywiyfRQgyZqR3zOe27svLU8uLd7krms2hwXguxQelUQXfBrKFZ8GK8YnKvSR1oc5dxkfHUGkR4HrdC2w8Uyyh22VZYl+olUvVScIn4RFLkDXD6W04UGBiKQZYCrsr0oYXweQ== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) Received: from AM6P193CA0111.EURP193.PROD.OUTLOOK.COM (2603:10a6:209:85::16) by AS1PR08MB7475.eurprd08.prod.outlook.com (2603:10a6:20b:4dd::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.21; Mon, 9 May 2022 14:35:46 +0000 Received: from AM5EUR03FT026.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:85:cafe::16) by AM6P193CA0111.outlook.office365.com (2603:10a6:209:85::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.20 via Frontend Transport; Mon, 9 May 2022 14:35:46 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT026.mail.protection.outlook.com (10.152.16.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.15 via Frontend Transport; Mon, 9 May 2022 14:35:45 +0000 Received: ("Tessian outbound 2d401af10eb3:v118"); Mon, 09 May 2022 14:35:45 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 986c799c439f2d35 X-CR-MTA-TID: 64aa7808 Received: from 051e6389e2b2.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 61BC15E6-B833-4C55-AF50-C63408BF4806.1; Mon, 09 May 2022 14:35:34 +0000 Received: from EUR01-DB5-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 051e6389e2b2.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 09 May 2022 14:35:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OvtqdYNQTHF/XxdIKEONbBy4KEEojC1lskKhJrHLZphK1CZEJ5S9NiCizoIlkUbtwiCEdbyLxBB9mvKNAqAM+jiKJAR7ciIwaWq1qQgIQwUQebYmmDviv2E5v/3Wz4D2wHm7Kh3xp0ss5AhkomD7pteCnBhKGKz4oIBy16V2rICm2VEbiF+SAIS2CeW5cgwdiKvXB7wV23l3b6M87ue3Y2JpmdexisQlB6rznCIsbF1uLnGZwPmiUTRWrTxihHEKu9US82ttYhpHsCre/bCsqkOwyzSN2Ytv1/xqFbo/9yBQbXLzAdFoNsVOpfSpgRulPOwdFcjzha0OqFllCPTK7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PbajVPQZhx+8gReMrmrkOFZBG+AEZgommtTeKrAvoF0=; b=h1Oxv00UDwIBldfrMokOcVBDQdjR6cUw3o08yF799jVgLnCMlDdum2zdEqt62AwDD+jce+gnTqYQmr9hBn491SYGL96GuMp2jzYMUFlOpcOsuFbLbpi7JJEeUmrv5NuPP+wkXD4N+gDuwSCtoTL20zcidKUNxE5XJZmp0gsluf6u1QAdfjZ+iOZW0DOhcTib8/JdZQioN/CN39/VLV+450Z6/7s0H9N4ywNeF0FXbFdukgKdjF+MGvRgKlfqclfXGtW+WDKQgOJ2E/eKyhIZ8eN9h7ygjtFkLvkhPq9Ub0C23TrhC0Ss7hg/haVZmj3UzseLPn5208sthwtHFZSQdQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none Received: from AM6P192CA0093.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:8d::34) by VI1PR08MB3086.eurprd08.prod.outlook.com (2603:10a6:803:46::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5206.12; Mon, 9 May 2022 14:35:31 +0000 Received: from AM5EUR03FT042.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:8d:cafe::c) by AM6P192CA0093.outlook.office365.com (2603:10a6:209:8d::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.20 via Frontend Transport; Mon, 9 May 2022 14:35:31 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT042.mail.protection.outlook.com (10.152.17.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5227.15 via Frontend Transport; Mon, 9 May 2022 14:35:30 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2308.27; Mon, 9 May 2022 14:35:35 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.27; Mon, 9 May 2022 14:35:29 +0000 Received: from e129018.arm.com (10.57.34.214) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2308.27 via Frontend Transport; Mon, 9 May 2022 14:35:34 +0000 To: Subject: [PATCH 03/10] libgcc: Enable XF mode conversions to/from DFP modes only if supported Date: Mon, 9 May 2022 16:35:00 +0200 Message-ID: <20220509143507.239804-4-christophe.lyon@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220509143507.239804-1-christophe.lyon@arm.com> References: <20220509143507.239804-1-christophe.lyon@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: 243c97cd-2e2d-49e2-37ad-08da31c93422 X-MS-TrafficTypeDiagnostic: VI1PR08MB3086:EE_|AM5EUR03FT026:EE_|AS1PR08MB7475:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Bnx0LYvif9LibxD32qTjMJlxueEUbKBrmD8lJ72D8PZ4n7vEEFzysze6uZQ3b4ZYL+oewHLVw276So7tBP8vujE/qRAL8qoAOk84gzr4R51LUIN4KncePluO/xTZ4J82700r0eeaJAqABtHmtGsRtnxTDWeXlgSYTWsed6rAADNl0rs/mor8+boKw7uzRCchmz0ltihbGnlabSSpRPZETVZksq9ZVwCOAZ0Q0ZrrHT/4eThKG1pWIACCWnQVNWLCsK01tUho00dB8AUZTJJ/3lwbHgonOSWKMRR+KfCnbPBBhDahAUodJDQpUyDnsmZbAynVG9Y40SGH/nJPZlGSyHSyEGLbB42PO/ZQJdxBm2yBMwsCil5EbCCgmJI8dw7JroZzJVymKUqL26qWQq95YpfUbyjMOEkfV/2VRZ1V5fVDsK3B2SEYHDq6begfOANU9UIwO8zFP091Bkc/N6iEV6JVpBVUHQ6OcQLgsRvWVMMuI/7heD4I36jwza+lmMVlgZWQfYv16mfvoIxlDntrYTjVDgqTeYiv4DCJi3vfX2MFJxDmZvmumoaVhTsLztFhMZmtLoGO7HUWQ4Y5K8Fear2kc+dDSTmxbTT7r2M4OrlZDRtp+VbA2qb6XK5tqjPTyClv/BKikVRNh26f+VEvgKTwndcPO/ITD4wGhYBRiVm1B8PgjFAW76Xu5m6/LszemEcaZSLkm/sYPvyJEZjUeg== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:nebula.arm.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(46966006)(36840700001)(40460700003)(36860700001)(426003)(47076005)(336012)(82310400005)(5660300002)(186003)(44832011)(36756003)(86362001)(316002)(2616005)(8676002)(1076003)(4326008)(70206006)(6916009)(70586007)(8936002)(7696005)(81166007)(26005)(508600001)(6666004)(356005)(2906002)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3086 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT026.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 908f92c9-8adc-4153-f7bc-08da31c92b3d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Uqr69zBDLcs3WKwNLYqScdn2kKfvR39VKpSzhS/P9GVNen3iVuqmKJUSfbjANxZiPYbO69iMhzvPap0bXDrln4FxLKU7KWCdFV0BgRLrMDds9PY7/Rm/RtVXMW6BOoj6F4JluVX4dviyU0I+q36tPsOodnp4UETdCA832ra/Qr3jsv1rosm24xa5a11tfr0+NQ8ObiRATMV8bqVsuxQnjC8HEai5a1gJAkDPX+QDPAzqJ+SDIxJTP/UrnXS60xS+HBcwFul1IBh7JlsR3raD2HGHc0olmoZKyKSjjWxCaw2zVDPrd/Yy3PJ9TVoC6lstIeynvG4VrYtp/XbBaH80c9AnsErZPyD3+OpRQGCd0kfXb6JapTvY9QSLvyJsp1WqTVi4bM1Q2Uq9F6lFt7TL22IgEvF8USswHtaeCRkeU/CwkDzJ1a5IoselnpMYgfzEHnVLTB9Js0DmaE0Q/5lqiWtsptGtFTqlqHAg2RQymv5jsKXMdU96H0hJ8QIKSH02zvsdkL249vGXiLAdWIOMj3ifoNQ+cTTtxrZfFXqjJN/+vd1TUaxFCtEBTu+VuH1PshETSbAhQlDO/mPNsQkxRKyFyvPC7F3jnuCtDZGBUygz1lFCYZYOnK6S1UDgVHjctXjbMigV+4TcE2sOk25+b38FEQE6xY5IL5tYRt0xU3vvLPt18bMWDx1qUTiYsExU X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(47076005)(426003)(36756003)(336012)(186003)(70206006)(44832011)(8936002)(36860700001)(2616005)(40460700003)(5660300002)(26005)(8676002)(4326008)(1076003)(70586007)(86362001)(6916009)(508600001)(7696005)(2906002)(81166007)(6666004)(316002)(82310400005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2022 14:35:45.8566 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 243c97cd-2e2d-49e2-37ad-08da31c93422 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT026.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR08MB7475 X-Spam-Status: No, score=-13.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Christophe Lyon via Gcc-patches From: Christophe Lyon Reply-To: Christophe Lyon Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" Some targets do not support XF mode (eg AArch64), so don't build the corresponding to/from DFP modes convertion routines if __LIBGCC_HAS_XF_MODE__ is not defined. 2022-03-31 Christophe Lyon libgcc/ * config/libbid/_dd_to_xf.c: Check __LIBGCC_HAS_XF_MODE__. * config/libbid/_sd_to_xf.c: Likewise. * config/libbid/_td_to_xf.c: Likewise. * config/libbid/_xf_to_dd.c: Likewise. * config/libbid/_xf_to_sd.c: Likewise. * config/libbid/_xf_to_td.c: Likewise. --- libgcc/config/libbid/_dd_to_xf.c | 2 ++ libgcc/config/libbid/_sd_to_xf.c | 2 ++ libgcc/config/libbid/_td_to_xf.c | 2 ++ libgcc/config/libbid/_xf_to_dd.c | 2 ++ libgcc/config/libbid/_xf_to_sd.c | 2 ++ libgcc/config/libbid/_xf_to_td.c | 2 ++ 6 files changed, 12 insertions(+) diff --git a/libgcc/config/libbid/_dd_to_xf.c b/libgcc/config/libbid/_dd_to_xf.c index 5a2abbbb1f4..e4b12e8ac4f 100644 --- a/libgcc/config/libbid/_dd_to_xf.c +++ b/libgcc/config/libbid/_dd_to_xf.c @@ -25,6 +25,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "bid_functions.h" #include "bid_gcc_intrinsics.h" +#ifdef __LIBGCC_HAS_XF_MODE__ XFtype __bid_extendddxf (_Decimal64 x) { XFtype res; @@ -34,3 +35,4 @@ __bid_extendddxf (_Decimal64 x) { res = __bid64_to_binary80 (ux.i); return (res); } +#endif diff --git a/libgcc/config/libbid/_sd_to_xf.c b/libgcc/config/libbid/_sd_to_xf.c index 9af09913684..288ccb25075 100644 --- a/libgcc/config/libbid/_sd_to_xf.c +++ b/libgcc/config/libbid/_sd_to_xf.c @@ -25,6 +25,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "bid_functions.h" #include "bid_gcc_intrinsics.h" +#ifdef __LIBGCC_HAS_XF_MODE__ XFtype __bid_extendsdxf (_Decimal32 x) { XFtype res; @@ -34,3 +35,4 @@ __bid_extendsdxf (_Decimal32 x) { res = __bid32_to_binary80 (ux.i); return (res); } +#endif diff --git a/libgcc/config/libbid/_td_to_xf.c b/libgcc/config/libbid/_td_to_xf.c index b0c76a71497..e990282162d 100644 --- a/libgcc/config/libbid/_td_to_xf.c +++ b/libgcc/config/libbid/_td_to_xf.c @@ -25,6 +25,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "bid_functions.h" #include "bid_gcc_intrinsics.h" +#ifdef __LIBGCC_HAS_XF_MODE__ XFtype __bid_trunctdxf (_Decimal128 x) { XFtype res; @@ -34,3 +35,4 @@ __bid_trunctdxf (_Decimal128 x) { res = __bid128_to_binary80 (ux.i); return (res); } +#endif diff --git a/libgcc/config/libbid/_xf_to_dd.c b/libgcc/config/libbid/_xf_to_dd.c index 9feb0f2c3d6..e3246a1c2e1 100644 --- a/libgcc/config/libbid/_xf_to_dd.c +++ b/libgcc/config/libbid/_xf_to_dd.c @@ -25,9 +25,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "bid_functions.h" #include "bid_gcc_intrinsics.h" +#ifdef __LIBGCC_HAS_XF_MODE__ _Decimal64 __bid_truncxfdd (XFtype x) { union decimal64 res; res.i = __binary80_to_bid64 (x); return (res.d); } +#endif diff --git a/libgcc/config/libbid/_xf_to_sd.c b/libgcc/config/libbid/_xf_to_sd.c index 7d46548af6c..9147e979182 100644 --- a/libgcc/config/libbid/_xf_to_sd.c +++ b/libgcc/config/libbid/_xf_to_sd.c @@ -25,9 +25,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "bid_functions.h" #include "bid_gcc_intrinsics.h" +#ifdef __LIBGCC_HAS_XF_MODE__ _Decimal32 __bid_truncxfsd (XFtype x) { union decimal32 res; res.i = __binary80_to_bid32 (x); return (res.d); } +#endif diff --git a/libgcc/config/libbid/_xf_to_td.c b/libgcc/config/libbid/_xf_to_td.c index 07987fdcc3a..c8d102b0b7f 100644 --- a/libgcc/config/libbid/_xf_to_td.c +++ b/libgcc/config/libbid/_xf_to_td.c @@ -25,9 +25,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #include "bid_functions.h" #include "bid_gcc_intrinsics.h" +#ifdef __LIBGCC_HAS_XF_MODE__ _Decimal128 __bid_extendxftd (XFtype x) { union decimal128 res; res.i = __binary80_to_bid128 (x); return (res.d); } +#endif