From patchwork Thu Nov 21 14:11:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tamar Christina X-Patchwork-Id: 1198971 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-514315-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="FVBWRp1X"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="h6dg0JH0"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=armh.onmicrosoft.com header.i=@armh.onmicrosoft.com header.b="h6dg0JH0"; 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 47JhLp3QQ1z9sNx for ; Fri, 22 Nov 2019 01:11:30 +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:content-type:mime-version; q=dns; s=default; b=nzdpz/LFIsIDs/1YRrs55gJrmrRhni6T7H4o6ngkptCf884gYz cOo2DZZQEVif5M+SU5ZJQ4sgQttUzBLODFHfi1OERDBtycxvKEhXZRNcbNiFZNWS e3bHhsmIHu8dYZL8TghAtiWK0iXMvjKFa7QlC+dbDkVFBtK1oHH88DJ8Y= 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:content-type:mime-version; s= default; bh=FlPoQ8WmNJ7b8EpfNtf424xVAO4=; b=FVBWRp1XV8FvIZx535cZ 8cmSa4GJeKZ/lUAkklMPbMvRHHBU9wfA6xn80GVqIRAQ6RUvQiVeasKhNllHR6+A iiqW6+f+yxZfVbDXyUSCKb9eA3xVIJMHpMrv5arl/byZ6dmeo+xhKXtzEzacJyZj GBoQXwY2EsDn0fC+eNjhZsw= Received: (qmail 62533 invoked by alias); 21 Nov 2019 14:11:23 -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 62525 invoked by uid 89); 21 Nov 2019 14:11:23 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-20.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: EUR03-DB5-obe.outbound.protection.outlook.com Received: from mail-eopbgr40087.outbound.protection.outlook.com (HELO EUR03-DB5-obe.outbound.protection.outlook.com) (40.107.4.87) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Nov 2019 14:11:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JsSglA2KYLI/qU4k80fGBERl5VqUEt6GPs/HGFx8sWs=; b=h6dg0JH0WkZFop+HKfVNQv1v4EC9x4KO7j4b4Ca2fGbVHV6RsSL+7unLfpEqLXCrrsHd4wl5FsUv4dOIr+e/LFmBZmVj8pTL4OuLyAzD2pkuOce18Fxf5MKR2QR1yCcFylTmpyHBDF+WOTri+RmhU5i0vmRA08eG30otFYXfXmg= Received: from VI1PR0802CA0026.eurprd08.prod.outlook.com (2603:10a6:800:a9::12) by DB6PR08MB2757.eurprd08.prod.outlook.com (2603:10a6:6:18::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.19; Thu, 21 Nov 2019 14:11:17 +0000 Received: from AM5EUR03FT037.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::208) by VI1PR0802CA0026.outlook.office365.com (2603:10a6:800:a9::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.17 via Frontend Transport; Thu, 21 Nov 2019 14:11:17 +0000 Authentication-Results: spf=fail (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; gcc.gnu.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; gcc.gnu.org; dmarc=none action=none header.from=arm.com; Received-SPF: Fail (protection.outlook.com: domain of arm.com does not designate 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 AM5EUR03FT037.mail.protection.outlook.com (10.152.17.241) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.17 via Frontend Transport; Thu, 21 Nov 2019 14:11:17 +0000 Received: ("Tessian outbound fee635499979:v33"); Thu, 21 Nov 2019 14:11:17 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e7a575b04c520c3e X-CR-MTA-TID: 64aa7808 Received: from fb3b47b87844.1 (ip-172-16-0-2.eu-west-1.compute.internal [104.47.9.58]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 48833A0F-6BF8-4684-BEAE-5E9D7CCE7661.1; Thu, 21 Nov 2019 14:11:11 +0000 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-ve1eur03lp2058.outbound.protection.outlook.com [104.47.9.58]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id fb3b47b87844.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 21 Nov 2019 14:11:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mSnOPTHU77GGdZL8WbdPkysoCuM+6ScZ7qodDY+/ukIazuptSwkvCq1/qRl1UI7v2c2wxLZh2sxzJQRdD5bsM5N3r3cRfkxmXrq1YuM1YwCVOmS4qvIZ/O63YxGb0m2iITgPlyQe4RvVjZWy2HUHWG3aEc6CakKciVG7x7zEs7Uwc43+kc0IMPhCBVnH081xWCa6f+hsKrATriDSioTxH2KIsbgP2z9ZthrEf9ptQx3qx+lialtdbzoxYLeEu4OBBTsoQWtyyDSNV2O/HNMq0jN/HybUwPpI7KaGO/eyTOukF3d++1O4vJQ+Ne77pAtrelmW+rEXc40d2qFHrMRAqA== 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-SenderADCheck; bh=JsSglA2KYLI/qU4k80fGBERl5VqUEt6GPs/HGFx8sWs=; b=l28lQEEZCsIGr99/aQf/JKgyQtbWIGGDIXht9AgIO1eEGWFmDGVeQFQ2FeFoPcWwQEBLMPRE0GC1mTjRwPBGzbTlbn0z4sfG15Po6dPSsBf7lF5d7iYE7tgatmxBJuItfAsYkwtVP9Qfdrxv94i1RAJYtdCtx66waXFfYoWcaY0NAO6kLdf4nOGgzEyZ4F9x5ucLKSLqkZcCF5m0sRyQquXV8zGaMW/qFzFqwKXwFHw9GHVDpQTPruL1Xnfq7DL30UeboHHX7GF73Fz93Zgb2naVfd0fMYxOsyuTkgC6Rg2qB8HYpdX1aon7gRQA7C1FBUW0OnNO68OV4PyXJ9QLeA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JsSglA2KYLI/qU4k80fGBERl5VqUEt6GPs/HGFx8sWs=; b=h6dg0JH0WkZFop+HKfVNQv1v4EC9x4KO7j4b4Ca2fGbVHV6RsSL+7unLfpEqLXCrrsHd4wl5FsUv4dOIr+e/LFmBZmVj8pTL4OuLyAzD2pkuOce18Fxf5MKR2QR1yCcFylTmpyHBDF+WOTri+RmhU5i0vmRA08eG30otFYXfXmg= Received: from DB6PR0802MB2309.eurprd08.prod.outlook.com (10.172.228.13) by DB6PR0802MB2614.eurprd08.prod.outlook.com (10.172.246.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2451.23; Thu, 21 Nov 2019 14:11:10 +0000 Received: from DB6PR0802MB2309.eurprd08.prod.outlook.com ([fe80::f1c6:c479:4e23:d31a]) by DB6PR0802MB2309.eurprd08.prod.outlook.com ([fe80::f1c6:c479:4e23:d31a%6]) with mapi id 15.20.2451.031; Thu, 21 Nov 2019 14:11:09 +0000 From: Tamar Christina To: "gcc-patches@gcc.gnu.org" , "joseph@codesourcery.com" , "christophe.lyon@linaro.org" , "hjl.tools@gmail.com" CC: nd Subject: [committed] [testsuite] Fix fp-int-convert-timode-1.c testism. Date: Thu, 21 Nov 2019 14:11:09 +0000 Message-ID: <20191121141105.GA20322@arm.com> Authentication-Results-Original: spf=none (sender IP is ) smtp.mailfrom=Tamar.Christina@arm.com; x-checkrecipientrouted: true x-ms-oob-tlc-oobclassifiers: OLM:7691;OLM:7691; X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(4636009)(346002)(396003)(136003)(366004)(39850400004)(376002)(54534003)(199004)(189003)(53754006)(4744005)(316002)(6512007)(305945005)(14454004)(66946007)(110136005)(3846002)(6116002)(2906002)(6486002)(6436002)(7736002)(52116002)(186003)(1076003)(25786009)(8936002)(478600001)(2501003)(102836004)(6506007)(386003)(66616009)(81166006)(64756008)(66556008)(4326008)(66476007)(2616005)(99286004)(36756003)(66446008)(33656002)(5660300002)(256004)(8676002)(2201001)(4001150100001)(86362001)(26005)(81156014)(66066001)(71200400001)(71190400001)(44832011); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0802MB2614; H:DB6PR0802MB2309.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: qvT5phnQ/BrJU4kS7qRqMs+hQj8oo+uteVJispdWF7DTErXRX4+RavVf/tJfjfomXCK7WTNNWBv1lRekqq+Vxvfc60EFXhrFShhbhe1Ap9xEzOIPXbEXHJDnpyF8xY/9he4mHZzMvtWM3v68ZWqaOgEEmgcui0EK30pSIAmInNsIISY+E//yqx+TouCNULFLLfCVqYmfTx7rC+/dTNPnb/QPyub9psXI6Svv7Hza1EpLEPEGI1xjSIV0W6TVPe+E6ZQP6Fit1sKetE+dG6oPNGWmzBY234vc35WQTJYpxt7CWThGHxUZkwmtC0ktrqiG1bZ8yGpDQXq2/zqF6y70R62XkQnZbHjBgVJYb2oNWTUkPgcI6MflXXoqSOpPIR/0TDUckAmkIC/6zdsPvGmWa8o9HEA09XELP+TDgRs5jy3j1EF1WNYL9/MdUtglcT0V x-ms-exchange-transport-forked: True MIME-Version: 1.0 Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Tamar.Christina@arm.com; X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT037.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: c0bfc856-ca24-4514-8592-08d76e8ca865 X-IsSubscribed: yes Hi All, The test fp-int-convert-timode-1.c uses FE_TONEAREST without actually checking if the target has defined it. Like the rest of the tests I now add a check to see if the target has actually implemented it. This fixed Arm newlib target failures. Regtested on aarch64-none-elf and aarch64_be-none-elf and no issues. Committed under the GCC obvious rules. gcc/testsuite/ChangeLog: 2019-11-21 Tamar Christina * gcc.dg/torture/fp-int-convert-timode-1.c: Add check for FE_TONEAREST. diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode-1.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode-1.c index 0c524a8c4782b6197bc0247a7f66340ca7d9579c..bf7f3cedb294cc834437593dae3507005f0f6b56 100644 --- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode-1.c +++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode-1.c @@ -11,6 +11,7 @@ int main (void) { +#ifdef FE_TONEAREST volatile unsigned long long h = 0x8000000000000000LL; volatile unsigned long long l = 0xdLL; volatile unsigned __int128 u128 = (((unsigned __int128) h) << 64) | l; @@ -22,5 +23,6 @@ main (void) double ds = s128; if (ds != -0x1p+127) abort (); +#endif exit (0); }