From patchwork Mon May 9 14:35:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe Lyon X-Patchwork-Id: 1628659 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=TPi1Md+a; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KxkMV3rHVz9sGJ for ; Tue, 10 May 2022 00:39:17 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ACE95394B01A for ; Mon, 9 May 2022 14:39:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ACE95394B01A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1652107155; bh=I57YDXtuBW4W3LAG5Pu3m0aVNOfa67LwCT5LWTUiz18=; 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=TPi1Md+aeJFFL/BnnjvPKteihTfCm0Eruj1L4i1cz9/zLYQSqZWW1RHoATfyNc4nP 48OjholMQaQkc5Hbm7z1/mUw7C48bURYFwMj7Caq1+VYeelqN8KSwTS3hITI1z597e Fq0nY5sk0juCbr3SbZ4HTHtIv/ww9qC12X1X7PjE= 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-db8eur05on2088.outbound.protection.outlook.com [40.107.20.88]) by sourceware.org (Postfix) with ESMTPS id 21BA83948A6B for ; Mon, 9 May 2022 14:35:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 21BA83948A6B ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=A5ohniXWfV2JWOXPG7iTaasVUISl1fALLAfFvjuPFSdDbsvxRggdgMzz+RQH8QlYQZL9QVOzmAjjvT0Yz3TIXeOmWOZvi2octgue6bPMFH+n7dx1QQ0e7StsCgVM0EyaEZbn3LXRHSHUD0Whas42NGs+caBttDjDMU8TKLq5t1IpByNZSg/MFfxOrROXjNG8Odg86AnB3F2tgSW3g5+vHftv7nc3HQ8LcDR/PlSmntlIBnpdWc0A/TNG1n+KL70qMi5rZbWqtjJhzZoIt/dk5/CEiNcIwBlpBd52av+oYU+NwA3bLvnBTos03Tyb9mLBEtr1zdsIbBgzGTtvWBwZ9g== 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=I57YDXtuBW4W3LAG5Pu3m0aVNOfa67LwCT5LWTUiz18=; b=MgTOiPEKSnkDrWsMaSrjXEbMJO9FUEvlbRWWuEIug2Jlbijta5iZOW2BfHMRh1kCgOUE60vwP5L37DCwZIXRdr1ARwCDrrg8LzxfEDhP4lli8VG3XuKEZKl/fnj9hwRedqAb5Dba1NXz+IKekrcwaPMD1ti+1bGvBjCtq2OB8RBkWDb19oK5rhJsqBfoNXZTpArGfwuMyKMDFinW5jaEPhTa1UBx5acWmrIyQiKQ/digFmlo4MiYIVp0ym3/hdGixmsvovlxDTJajshsUeSADiIhmRqZSGPNPEjeE9h5pEs/Y03+FcjTxvTHyxOSrYWoeHOkJ5j8uZwGoxMOTsgvwg== 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 AS8PR04CA0101.eurprd04.prod.outlook.com (2603:10a6:20b:31e::16) by DU2PR08MB7343.eurprd08.prod.outlook.com (2603:10a6:10:2f2::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15; Mon, 9 May 2022 14:35:43 +0000 Received: from VE1EUR03FT032.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:31e:cafe::32) by AS8PR04CA0101.outlook.office365.com (2603:10a6:20b:31e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.23 via Frontend Transport; Mon, 9 May 2022 14:35:43 +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 VE1EUR03FT032.mail.protection.outlook.com (10.152.18.121) 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:42 +0000 Received: ("Tessian outbound 78191104f1b7:v118"); Mon, 09 May 2022 14:35:42 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 48b7d93ecb94cd4f X-CR-MTA-TID: 64aa7808 Received: from 56c78103d889.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6F31C1B0-D978-47EC-8B39-F3724D43F183.1; Mon, 09 May 2022 14:35:35 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 56c78103d889.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 09 May 2022 14:35:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k9x3ik2BFu/XVvNArjpR5/SPC6sol6Q5pF86hTVVjdMaiUtarksf6vf5dU60EBGan7o64AN/WVXVVHAFM+9Ys2unNoKCT8SYbKMlXWUbQ9tpNIECIE9EYswE3/Wz86ReylpjMvZdOmkZdTpq890TtWf2O3Ioepl2xO5KI4q9JxvMCPiZeePYMqan1cAkW5mvFMuIo/xtx5v7OISJ/C9snHAz1fSdtEHaOhcdmoKR0az+wVo9OiMQdjGjD2yORxr6zWpDt9rjuJOxnFa3halZ+Ij3yB8tzcmWUpcov54LVJbSTr7hTl35iCJD8jIP+I2spKXWmJedbKqnEexsaEzLcg== 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=I57YDXtuBW4W3LAG5Pu3m0aVNOfa67LwCT5LWTUiz18=; b=IaTCIskwKunt950DF+WEEoPf/3tsdPM/8cp4CySBwNKQvSoKFjcr0ea9hdeKWpiVKmb5lLQPHQGMFiHjYxl9pfaIKdWhI9vCahgKJKHYuAsTTzzUPwBTLf4t2nNzN/Iuw5sUfnCqz6zgeQc/POSkKE1Mpvr0Gnkyx3PaWqMQAGy1ha2pmsPx50AhEWPiSiNcLpFWgydkdXUdQRKILGtPdmIZ95PcFfF3XFaPeYhMvREQdbkl0xOo4Evp2v0/d3hFkVl+30soM6YXWM2f9OlUWJuWOFFRSVFkc7jy9XXGaaCFbhPzPwkeZXOs3RdPoyKQbjFxCHV3fO+HuwPXtXWUVw== 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 AM6P192CA0104.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:8d::45) by AM6PR08MB4897.eurprd08.prod.outlook.com (2603:10a6:20b:c2::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.20; Mon, 9 May 2022 14:35:32 +0000 Received: from AM5EUR03FT042.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:8d:cafe::97) by AM6P192CA0104.outlook.office365.com (2603:10a6:209:8d::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.18 via Frontend Transport; Mon, 9 May 2022 14:35:32 +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:32 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Mon, 9 May 2022 14:35:36 +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:35 +0000 To: Subject: [PATCH 07/10] testsuite: enable more BID DFP tests for AArch64 Date: Mon, 9 May 2022 16:35:04 +0200 Message-ID: <20220509143507.239804-8-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: c89f4b0a-2ddb-4a10-ec0a-08da31c93259 X-MS-TrafficTypeDiagnostic: AM6PR08MB4897:EE_|VE1EUR03FT032:EE_|DU2PR08MB7343: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: TfvBBqtdP+/CtS3tWDfakcGPxlOq473XKjl36RaIx56FQ+6s5jXhJI2wEMDUd9BUc8qlRiu6/C/8oSxiK+h6BpjLZ7eQCki5OrR+OXxOFZLKsOMuJTXsGFhioD68gIm8AfHu6F4EzaoDHKBQxCxpoAeHop33SMIKI+oUQSka2hNfI+VcYUEg7o6PHVXsHXfwPKOJYFHzpyhggyUl3Y6jazzZIck496rWAfj0KHdMetTBLAVikg5EqZ4PPLcNHgS1Mou7JHNZys28G13lw1ck01E6dgS1UTlAvLoP891UMHjB9im+vtFOIvO0NG6iR2DcURoTPKCeeaeIJ0nxO2M4vyjg7uouMrS+8Q7VOWnIJm/azyK/AjDRfVEpKhJXjPLOYP3wnyV0t2Hnl5Nv1UTZsKZ59AYc6EfK/5avtKwnm2kwhcgPsQoT/MTCJ/g9YV6WKDp2uSgTp0IZ+LVgqxg0egXIuqxqlXwFHokE9S8coyfCzcMr7MvqXAdnRe9CPmt/z+mCbEPBMPSSArJaYd1GNeoQzEWc1y8pyXf/ZgPsdZD9xRaKOTNJlwMk0Yhyr+9nen4h4mveYoYbNdUMt2Mczm797O7T+VqScrF7h+XcthRvL9zXXMvQ+XZyK+Dn8GhKGWSsutPCNseste79BstmH680DLtJp0bGkw33HVm/kZesSqOwCSt9AooJm6aNefoNTvMNNC5bPpJS6rGJhrk2rvyhHb0i/o9F+nrd4nVWSuDhuU7B8RIUYd+np6za2nDTX0r4wnwiaKChounBq+2uHDplS81zR6NdA2FwJI1zIFu7826FY3FTl+naZ3ek8Pzu3rNFwsjrGMeL4R6ph7VQGw== 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)(46966006)(40470700004)(36840700001)(47076005)(8936002)(508600001)(5660300002)(44832011)(8676002)(84970400001)(426003)(336012)(1076003)(40460700003)(356005)(36860700001)(26005)(86362001)(6666004)(2906002)(83380400001)(2616005)(81166007)(7696005)(6916009)(186003)(70586007)(70206006)(316002)(36756003)(4326008)(82310400005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR08MB4897 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: a7f03ac0-2109-4268-f08d-08da31c92c26 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pAn3SYqJ+5fVOYavtFNQD4W9UjrA8SlrdtNBVsap0pZ0K+NlUrninUar7MzieY93Sexfai4MMgbEWhLnYtLlV/5yYtJ2YxJy3V73WBgVKoOpAV6UQjBfVLye2N9iQZXLSQW2K/2X402rkMFkFET+GdZZvYX2fHSveKGdNXAhQnGxGqXPbQ0ZX+5y4QPcSdigt/CdWIPxWZEzg6GlMGTcOdUXCssZk9nBsdb26wGDkSppDETRJh/syTrOCe5CmhidM5hxE6+lKmQDZ8oRttM8/P5CW9V1Qo1eprji9MFbkV3RaWwBwGtIzFjBUzZbon/mQ4zi5DpMTOeUku/ckTqOvI/EptfYs7/gpnQai7bA2y6/GktHcYDVWR08Y/JGBEkbTCDrurB3temhw8fd7h/ELtxypEIIE6Z9ZqqHzvEI6jucKmDpPPFG+FiE/w7sIkYZ3lG0a01gtLjy6AnHpr0f9SXwbqCZray3VhhjUB3QGiEBJLtjagZPilnn3hHsNYO28t0mNKporxYqK1q0VYDsU3sCUpOIfTh9M6BEhGDSUVvm84ZmlS1i9dHLCW5R142cu0esJspr9hW+bPxIoBL4JzLHLhCgzsQe/Usg8UmER1STVCK7omZyzPg23cn8tsCaB1r7AwSoCPB6KM5RPL78EYa+24XyRVWSN8OBC9/pS/hNi88gs01CyY42Z1U4r60gpMjEN6lp4LVcW6L4rNnBzGGESsbvHqWrolxixue6l5USSlRWs4h8/CiaeU65dqpYZUuP71uJbxqSpNplFUSXaNFy/XuRdtN8BRBDq1gd4vpOTYoSL8W6ROV5Gt3hYwsA 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)(46966006)(40470700004)(81166007)(6666004)(7696005)(5660300002)(36860700001)(2906002)(1076003)(84970400001)(8936002)(508600001)(40460700003)(47076005)(336012)(426003)(186003)(83380400001)(316002)(6916009)(82310400005)(70586007)(70206006)(86362001)(2616005)(4326008)(26005)(36756003)(8676002)(44832011); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2022 14:35:42.7870 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c89f4b0a-2ddb-4a10-ec0a-08da31c93259 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: VE1EUR03FT032.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB7343 X-Spam-Status: No, score=-13.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_NUMSUBJECT, 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+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" Some tests for the BID format are currently restricted to i?86 and x86_64, but they also pass on AArch64, so this patch enables them. Since all these tests are related to the BID format, it seems useful to introduce a new effective-target (dfp_bid) instead of adding aarch64 to the current target list. 2022-04-28 Christophe Lyon gcc/doc/ * sourcebuild.texi (Decimal floating point attributes): Document dfp_bid effective-target. gcc/testsuite/ * lib/target-supports.exp (check_effective_target_dfp_bid): New. * gcc.dg/dfp/bid-non-canonical-d128-1.c: Use dfp_bid effective-target. * gcc.dg/dfp/bid-non-canonical-d128-2.c: Likewise. * gcc.dg/dfp/bid-non-canonical-d128-3.c: Likewise. * gcc.dg/dfp/bid-non-canonical-d128-4.c: Likewise. * gcc.dg/dfp/bid-non-canonical-d32-1.c: Likewise. * gcc.dg/dfp/bid-non-canonical-d32-2.c: Likewise. * gcc.dg/dfp/bid-non-canonical-d64-1.c: Likewise. * gcc.dg/dfp/bid-non-canonical-d64-2.c: Likewise. --- gcc/doc/sourcebuild.texi | 3 +++ gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-1.c | 3 ++- gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-2.c | 3 ++- gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-3.c | 3 ++- gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-4.c | 3 ++- gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-1.c | 3 ++- gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-2.c | 3 ++- gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-1.c | 3 ++- gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-2.c | 3 ++- gcc/testsuite/lib/target-supports.exp | 11 +++++++++++ 10 files changed, 30 insertions(+), 8 deletions(-) diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 613ac29967b..8189d9ec8ec 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -1937,6 +1937,9 @@ test system can execute decimal floating point tests. @item hard_dfp Target generates decimal floating point instructions with current options. + +@item dfp_bid +Target uses the BID format for decimal floating point. @end table @subsubsection ARM-specific attributes diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-1.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-1.c index eee5471cae0..f8da7022213 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-1.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-1.c @@ -1,5 +1,6 @@ /* Test non-canonical BID significands: _Decimal128. Bug 91226. */ -/* { dg-do run { target { { i?86-*-* x86_64-*-* } && lp64 } } } */ +/* { dg-do run { target lp64 } } */ +/* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu2x -O2" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-2.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-2.c index 626712153b4..dade48fcf66 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-2.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-2.c @@ -1,6 +1,7 @@ /* Test non-canonical BID significands: _Decimal128, case where combination field starts 11. Bug 91226. */ -/* { dg-do run { target { { i?86-*-* x86_64-*-* } && lp64 } } } */ +/* { dg-do run { target lp64 } } */ +/* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu2x -O2" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-3.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-3.c index 9190daedaf6..77c0941c027 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-3.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-3.c @@ -1,5 +1,6 @@ /* Test non-canonical BID significands: _Decimal128. Bug 91226. */ -/* { dg-do run { target { { i?86-*-* x86_64-*-* } && lp64 } } } */ +/* { dg-do run { target lp64 } } */ +/* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu2x -O0" } */ #include "bid-non-canonical-d128-1.c" diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-4.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-4.c index b148ce445e7..93ff0fc6d57 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-4.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d128-4.c @@ -1,6 +1,7 @@ /* Test non-canonical BID significands: _Decimal128, case where combination field starts 11. Bug 91226. */ -/* { dg-do run { target { { i?86-*-* x86_64-*-* } && lp64 } } } */ +/* { dg-do run { target lp64 } } */ +/* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu2x -O0" } */ #include "bid-non-canonical-d128-2.c" diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-1.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-1.c index b46b71cc3fc..69d014f68c0 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-1.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-1.c @@ -1,5 +1,6 @@ /* Test non-canonical BID significands: _Decimal32. Bug 91226. */ -/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-do run } */ +/* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu2x -O2" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-2.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-2.c index 11d64dce193..874b2fb3633 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-2.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d32-2.c @@ -1,5 +1,6 @@ /* Test non-canonical BID significands: _Decimal32. Bug 91226. */ -/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-do run } */ +/* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu2x -O0" } */ #include "bid-non-canonical-d32-1.c" diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-1.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-1.c index 87b106945d4..4602d34d7cb 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-1.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-1.c @@ -1,5 +1,6 @@ /* Test non-canonical BID significands: _Decimal64. Bug 91226. */ -/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-do run } */ +/* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu2x -O2" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-2.c b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-2.c index 3c10145a314..c2993b6476f 100644 --- a/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-2.c +++ b/gcc/testsuite/gcc.dg/dfp/bid-non-canonical-d64-2.c @@ -1,5 +1,6 @@ /* Test non-canonical BID significands: _Decimal64. Bug 91226. */ -/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-do run } */ +/* { dg-require-effective-target dfp_bid } */ /* { dg-options "-std=gnu2x -O0" } */ #include "bid-non-canonical-d64-1.c" diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 2d5d0539bb4..c13932e9532 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -3397,6 +3397,17 @@ proc check_effective_target_dfprt { } { }] } +# Return 1 if the target uses the BID format for Decimal Floating +# Point, 0 otherwise. + +proc check_effective_target_dfp_bid { } { + if { [istarget aarch64*-*-*] + || [istarget i?86-*-*] || [istarget x86_64-*-*]} { + return 1 + } + return 0 +} + # Return 1 iff target has unsigned plain 'char' by default. proc check_effective_target_unsigned_char {} {