From patchwork Wed Oct 18 15:24:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Carlotti X-Patchwork-Id: 154933 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4870377vqb; Wed, 18 Oct 2023 08:25:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHaH1r1awf2HJyeVyiDk4qTRq7Ndd4XiSSMuUZmuHUg9PNi+ge1YUJxSz727MtJrMAzTmjK X-Received: by 2002:a05:6214:29e5:b0:66d:5d31:999e with SMTP id jv5-20020a05621429e500b0066d5d31999emr6283650qvb.43.1697642715774; Wed, 18 Oct 2023 08:25:15 -0700 (PDT) Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d17-20020a05621416d100b006558891f40fsi66885qvz.258.2023.10.18.08.25.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 08:25:15 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=hybA4fkE; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=hybA4fkE; arc=fail (previous hop failed); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8A5EC3858423 for ; Wed, 18 Oct 2023 15:25:15 +0000 (GMT) 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-db8eur05on2058.outbound.protection.outlook.com [40.107.20.58]) by sourceware.org (Postfix) with ESMTPS id DF2433858CDB for ; Wed, 18 Oct 2023 15:24:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DF2433858CDB Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DF2433858CDB Authentication-Results: server2.sourceware.org; arc=fail smtp.remote-ip=40.107.20.58 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1697642690; cv=fail; b=gRjOPjXU0giTIbUZpwy2tRLxRIwsH+e2L8xWQ3PtfLo44mgkjiCnpn0YNfWimgM+H73Whm/SBIvDdioSUIfrZgeiqMQN5Na2+fBOzFtfmQJVYWmYPxVYYpdetquyrJziE2VpAFeJP8nmSBkaQbgEbOgXfeOFx6mYuCXevRt6zjI= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1697642690; c=relaxed/simple; bh=fpwe3uNFUSmLUOAxYJdxRgoD2qwswOshgN7cWi69Y1g=; h=DKIM-Signature:DKIM-Signature:Date:From:To:Subject:Message-ID: MIME-Version; b=ZKKBjIdpQLc9ZhnmRvRcotDbHclN4lsf0mIUNLz1+DecuBexha3hS/h9y7QiJwyWBstqGuRnmw2N+DVFA3e4NJbmA1gswHmFnLUUuMHeZq18TrPiYeSqmQMYMjFBzAU+YsoHm6zOKqOv3+gEBUcGJHYNyJB+tUl9GRu6uujrqqs= ARC-Authentication-Results: i=2; server2.sourceware.org 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=VxQzpfhfQAUfbFwmrc+NQyFTnV4G5YTpJz/rgZ/zNTs=; b=hybA4fkEWaoP2AdjBf3dxUp4/3LBt/btQEOYTEQ5jf9IyEHHLE4iU79w5E0Xh+/T+L/175ZV4gscbeA3H7MpwGcZcg6B+TSeUU89/tbIaNbOuAK7PSF4aqOHle/xsQYO6LH0XhRF56Rwm7VyS6/kjHqgkYjtHLZLluf9nxTwNOk= Received: from AM0PR03CA0099.eurprd03.prod.outlook.com (2603:10a6:208:69::40) by PA4PR08MB7483.eurprd08.prod.outlook.com (2603:10a6:102:2a7::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Wed, 18 Oct 2023 15:24:46 +0000 Received: from AM3PEPF0000A79A.eurprd04.prod.outlook.com (2603:10a6:208:69:cafe::ba) by AM0PR03CA0099.outlook.office365.com (2603:10a6:208:69::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.23 via Frontend Transport; Wed, 18 Oct 2023 15:24: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; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM3PEPF0000A79A.mail.protection.outlook.com (10.167.16.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.21 via Frontend Transport; Wed, 18 Oct 2023 15:24:44 +0000 Received: ("Tessian outbound d9a8e74be042:v215"); Wed, 18 Oct 2023 15:24:44 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: b4137b6e35ba7621 X-CR-MTA-TID: 64aa7808 Received: from a1ad4499f900.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B5C1A940-0F27-4717-8E1A-2C30060C6F62.1; Wed, 18 Oct 2023 15:24:38 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id a1ad4499f900.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 18 Oct 2023 15:24:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ciTohwprJOL5e9fR4TkYcRyPzrTCFvQB0N3v9mAzaXo8H58RHdaWYsCPafLr01u6211rgcf8VszQuGg/EcoVgEKJnP0Mt72Kp3uyGJHNZiLeuVpHe/DNCYEYgOG2Cxm+NQ7nQ7qTC8laS8m+1H1e2xJ5+6/Ol6+H398StamiviFyBX9qyaVZS3DAtOT1DQO3Y746sGDTcrpwkSxO38H5+WfuvHJlkqpZAX/90gsYHaM/qT5e1k49qIBOScA5MWKFIXLTvjKS4EEzXJLOtEgsY7FQzkB41hikv09O/d+j0U/uPjDmRPkDKoEFS/6As9wMlQ41TsMck3IVdjZla1VA2g== 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=VxQzpfhfQAUfbFwmrc+NQyFTnV4G5YTpJz/rgZ/zNTs=; b=enddZe/+kx6TJnGTqnlNKQwmgIDd9h7nJOP2OTViJ6dbS9XdYuHM2gQWMkE1sHIxsGCL10S7P7xPYWRTaqOE5e1AmiN5oxGQAdjZYV2NValE9CCOz91xdlQBL3bCX6pKcgEA+I8qPhTF3736EFDQCqkA3DD7oaayay3Et0rAZpMn1jmfI/U08yxTfRn9pOzZA7Kkchw1I4TBAczRoS47tBq2+IUrPpY8WutDmnUgaTzdACSpiosyA1Z2X9Gf8R6XiR6cLSmPowEG2ffT0afZ+iXB1avzGxMl9UYIX8kb2RWetRXzLe45JILBiDUARLezdto6/FXVPRY/IsQ7kf5RMA== 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=VxQzpfhfQAUfbFwmrc+NQyFTnV4G5YTpJz/rgZ/zNTs=; b=hybA4fkEWaoP2AdjBf3dxUp4/3LBt/btQEOYTEQ5jf9IyEHHLE4iU79w5E0Xh+/T+L/175ZV4gscbeA3H7MpwGcZcg6B+TSeUU89/tbIaNbOuAK7PSF4aqOHle/xsQYO6LH0XhRF56Rwm7VyS6/kjHqgkYjtHLZLluf9nxTwNOk= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) by VI0PR08MB10390.eurprd08.prod.outlook.com (2603:10a6:800:207::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.21; Wed, 18 Oct 2023 15:24:37 +0000 Received: from AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::3880:6a2c:60e:3f3e]) by AS8PR08MB6678.eurprd08.prod.outlook.com ([fe80::3880:6a2c:60e:3f3e%7]) with mapi id 15.20.6886.034; Wed, 18 Oct 2023 15:24:36 +0000 Date: Wed, 18 Oct 2023 16:24:36 +0100 From: Andrew Carlotti To: gcc-patches@gcc.gnu.org Subject: aarch64: Replace duplicated selftests Message-ID: <90f070dd-b4ca-7f59-47db-dd1e10db2fba@e124511.cambridge.arm.com> Content-Disposition: inline X-ClientProxiedBy: LO2P265CA0516.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:13b::23) To AS8PR08MB6678.eurprd08.prod.outlook.com (2603:10a6:20b:398::8) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: AS8PR08MB6678:EE_|VI0PR08MB10390:EE_|AM3PEPF0000A79A:EE_|PA4PR08MB7483:EE_ X-MS-Office365-Filtering-Correlation-Id: da75575d-4f75-44f8-1985-08dbcfee5b76 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: 8/Oe8CV0vap/yLvpemsvKFyUsrJjENdRyp1/QBCV88tdMpNfZYzgZ8O21rQHjS/kccIFNUojS9bahirrAoVCi7TvtyX8MHCtrlt87gJIpxmXCKQ0jvdXwA788uWWPiybGbN31c6LZfdW0xHo+5YUPkqpuBsi+Syty/VLFC/xzaz76iqKbJfpAz8SKQ2pRfzPl6FHj8bWA7AyRLMdZIXZqvph53NRHAXXfd0HdljOCUGm4Lj9PrY8WRJ7EZgWaE98Tao6W7UFdYweuv7GT/5xnotbIQRzZhSiMbPZ2R1imrhmZVYqlEVBJIisTgHFtTC7zAW4RgQ40ycYPvIjHG1HDwm+mw+FmDKPgzGgjLS7Suyi70BFv67cFkXgOXXUHpB1JXxsVVA+AxglcuX6tkIye6FUR9zlMkY+h64L+EUNX1RRklMOCtvFZm92qKNLPWG7qt7EE8M1R8fCnVSusIRbmvymPCRiC4m9Gui6WRwt0DKUlt6z/UQ4NAABoJba6h5T8goCLBxxZw5UtsgHeG/KEqgpHHfXVJeMBcgKkwncDZgvMU97/EIOBXjkuZDDG87l X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS8PR08MB6678.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(346002)(39860400002)(376002)(366004)(396003)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(86362001)(6916009)(316002)(2906002)(66556008)(6506007)(66946007)(66476007)(478600001)(6486002)(31696002)(38100700002)(26005)(6512007)(8936002)(8676002)(31686004)(5660300002)(41300700001)(44832011); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR08MB10390 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM3PEPF0000A79A.eurprd04.prod.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 250b51f7-f772-4c35-f6d7-08dbcfee56a2 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hOLK05gE/BHlYy/oTFVO9tn2j5VnILcZxnwpiMRcel6XcLafuxCQdZ3k2TMZUrECTPiSMvs0QuBMSKBpGD5fzCIkv4kvtltyT4J6MlS9SNQ9D8YhJcE1wEPeymsoz5+89g4iFvm8bT0j2uuRbo9IER3XrcMNpz25YxE1YfSib907Pagcpya6DS9wu5NX5KZsjQxDIHoBPpqHSOoHIRufalMAVE5FpRqstZsqRa3VtWRgMiK7EGexmWdXuc790kqZAngVoOaGwBAA+TBpN1HfRqCcmvnIGwdRsVsxl59DzZh2eXToaM8E7pEYDolm/ByY17RsaNy9aMUqwQ3zTzHE8j8Uuyz1IBStlMofqodw2Zj5qlroQHYueHEFrk9mqPFl4JfWoygjGSR9HSVOIB59LAQOk1Yd1iyRYtpvnqqXzmZCiLcst/VvMVxQMWysVdkleB9d5vEqwAOIIAeVJwrlLkTZ18oacbbtuoKt2VHuojiDqeOnlP3hgxwj5xSfp0xny04Wgod0VmauuP5+Rel66MFffS+rEljK40rzjRBoDXwX+O1WIZiPpLRcO/M5GP4QVzODKkAFeXAqUPGc/vwNe4XmzS2JGZ3l8lscecJ6SJxQtDXBnBwSQWZtJEo9b0V10b9vMeH0lKIIIaIaWAF5UX4knJDDiHN+halSLD/ww+6uSty37MBnbnxRsREwUudLmLjxCMF/d9zhbTlomPyrWXSZDTK7q0gnVxFBi4oOOltZsvlHl2Hy0tTKeGJ0setV 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:(13230031)(4636009)(376002)(346002)(39860400002)(136003)(396003)(230922051799003)(451199024)(1800799009)(64100799003)(82310400011)(186009)(36840700001)(40470700004)(46966006)(40460700003)(336012)(36860700001)(26005)(8936002)(6506007)(44832011)(47076005)(5660300002)(41300700001)(2906002)(478600001)(8676002)(6486002)(6916009)(70206006)(356005)(316002)(81166007)(82740400003)(86362001)(70586007)(31696002)(40480700001)(31686004)(6512007); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2023 15:24:44.6220 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: da75575d-4f75-44f8-1985-08dbcfee5b76 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: AM3PEPF0000A79A.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB7483 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, GIT_PATCH_0, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780107408362615516 X-GMAIL-MSGID: 1780107408362615516 Pushed as obvious. gcc/ChangeLog: * config/aarch64/aarch64.cc (aarch64_test_fractional_cost): Test <= instead of testing < twice. diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 2b0de7ca0389be6698c329b54f9501b8ec09183f..9c3c0e705e2e6ea3b55b4a5f1e7d3360f91eb51d 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -27529,18 +27529,18 @@ aarch64_test_fractional_cost () ASSERT_EQ (cf (2, 3) * 5, cf (10, 3)); ASSERT_EQ (14 * cf (11, 21), cf (22, 3)); - ASSERT_TRUE (cf (4, 15) < cf (5, 15)); - ASSERT_FALSE (cf (5, 15) < cf (5, 15)); - ASSERT_FALSE (cf (6, 15) < cf (5, 15)); - ASSERT_TRUE (cf (1, 3) < cf (2, 5)); - ASSERT_TRUE (cf (1, 12) < cf (1, 6)); - ASSERT_FALSE (cf (5, 3) < cf (5, 3)); - ASSERT_TRUE (cf (239, 240) < 1); - ASSERT_FALSE (cf (240, 240) < 1); - ASSERT_FALSE (cf (241, 240) < 1); - ASSERT_FALSE (2 < cf (207, 104)); - ASSERT_FALSE (2 < cf (208, 104)); - ASSERT_TRUE (2 < cf (209, 104)); + ASSERT_TRUE (cf (4, 15) <= cf (5, 15)); + ASSERT_TRUE (cf (5, 15) <= cf (5, 15)); + ASSERT_FALSE (cf (6, 15) <= cf (5, 15)); + ASSERT_TRUE (cf (1, 3) <= cf (2, 5)); + ASSERT_TRUE (cf (1, 12) <= cf (1, 6)); + ASSERT_TRUE (cf (5, 3) <= cf (5, 3)); + ASSERT_TRUE (cf (239, 240) <= 1); + ASSERT_TRUE (cf (240, 240) <= 1); + ASSERT_FALSE (cf (241, 240) <= 1); + ASSERT_FALSE (2 <= cf (207, 104)); + ASSERT_TRUE (2 <= cf (208, 104)); + ASSERT_TRUE (2 <= cf (209, 104)); ASSERT_TRUE (cf (4, 15) < cf (5, 15)); ASSERT_FALSE (cf (5, 15) < cf (5, 15));