From patchwork Mon Jul 15 03:06:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 1960394 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=axis.com header.i=@axis.com header.a=rsa-sha256 header.s=selector1 header.b=Y0C6LBSx; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WMnDj0L00z1xrQ for ; Mon, 15 Jul 2024 13:07:15 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 2A1A93864826 for ; Mon, 15 Jul 2024 03:07:12 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from DU2PR03CU002.outbound.protection.outlook.com (mail-northeuropeazlp170120003.outbound.protection.outlook.com [IPv6:2a01:111:f403:c200::3]) by sourceware.org (Postfix) with ESMTPS id 621CA3858289 for ; Mon, 15 Jul 2024 03:06:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 621CA3858289 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=axis.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=axis.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 621CA3858289 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2a01:111:f403:c200::3 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1721012810; cv=pass; b=DQuDavIlvnE8O9THbH7aVlBE4SlY9YdX9AVeBHWVLdyjvAzQOxlXXqvXD8WsOYOdfcTdIfg4nH0P9qSL5sxiC5kCIarwpnlB9rrWlr/cKPbYmv9aDl80tG8/y695+TxzMW04dN8AsEmWUqoFg6zt36WiJG06JoNZ8AqCnTbi/Qw= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1721012810; c=relaxed/simple; bh=AAqyOyy+ZSgIDl/Z9kwSp7BHl5O3J3BPW4TaS7hl85U=; h=DKIM-Signature:From:To:Subject:MIME-Version:Message-ID:Date; b=wR2UafMbNq5aU5GRaOPfjdGKivp6m1LTBQ/VukM/VwmhUpnqpHv0hxGVia7FSu82VT57QHkHScPLFk1JD8HWyf3I2PuSf5Njd6+uNYvVhwUs3N931j9KxEmUjSLP4gRyljK/zY4Vak8Od/j8Le5Q+Vji3ri8G/FWgItKIu0XgE4= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IJC1Sb6EOsmzCIv8OcFrbF6jYdi9p6/+Ozja6UuuwHwtWUeWHb2PAa/tT649UucNzZb3g7E+b9HYnqPO3ryUPByTrWMpKrkgaQeT+V3Ylsmz/mfpt3sODg9jH66QW3MhIqqF2tlCAg90/tNjwhxZuhh6tb+OghR8GPTVP34XWgfQunH82sJpq6A92cJah2HxDxxBxbq/vbU62LGOA0ZeB9wFJ9AbrXiL6UBfsSvVdfJXQHa9RDPVKF1yBdPDeuLujXCR3Hrw68CzL5F14VSq6p1FFa+FEnI/iQ0PDEjNAvB77SEL+Wnd4gaylEQthRjaMrEcj4pPmSHNO2yecEh7lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=tzXr1aPlwD0rh9ZEQ9fuYrlXrJ6QmUpgePCOPZEHr3Y=; b=AnVk35msUNu4kX4ZSGmxRDRtXR6hK8uXM3YMSXD/j4QFmBGUvQssMabrK4WUFOse1s44dbSNfDEqfy+E66zzcJpHkUosUjBmwfpkUYmf+9BUC6mZMrrSv7U4/7vnzyEkXFeUWttZ8w6Rxh1zjacbR/14Mg3/arYd1EzJAlsLPTR6wTiB+z0zfaB3vIzYC9GBTqRonJNa7w8UBLfriz3Weyzsbga3PycjMtiRP2W8BA92SkXF2MCSjGugyHILpgRh4Ph1RPM5kfXn+HUXYqYet1XBUcg4AzwclD49YTdx9WuL9n1WefY+wVRkiQF0uG4nIAAQ0zXHaIZipIoMzALVNA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 195.60.68.100) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=axis.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tzXr1aPlwD0rh9ZEQ9fuYrlXrJ6QmUpgePCOPZEHr3Y=; b=Y0C6LBSxMVv5pLsPACiGBrvuut4u2nfLX8sBQCGxQj4Vj2GtM8TNA6T8Jm3ONHMKFUjIBNwIuwxxN23+O2NwiJ4Z4ELastNayQfXlbc36W2qMfp7rXBXuVISk4qYWRhhMBSpYfJMhlJs/UmprG4fDKT5K7BplC5czrC9IENPQ7A= Received: from DB8PR06CA0055.eurprd06.prod.outlook.com (2603:10a6:10:120::29) by AM7PR02MB5749.eurprd02.prod.outlook.com (2603:10a6:20b:108::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.28; Mon, 15 Jul 2024 03:06:45 +0000 Received: from DU2PEPF00028CFF.eurprd03.prod.outlook.com (2603:10a6:10:120:cafe::b7) by DB8PR06CA0055.outlook.office365.com (2603:10a6:10:120::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.28 via Frontend Transport; Mon, 15 Jul 2024 03:06:45 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 195.60.68.100) smtp.mailfrom=axis.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=axis.com; Received-SPF: Pass (protection.outlook.com: domain of axis.com designates 195.60.68.100 as permitted sender) receiver=protection.outlook.com; client-ip=195.60.68.100; helo=mail.axis.com; pr=C Received: from mail.axis.com (195.60.68.100) by DU2PEPF00028CFF.mail.protection.outlook.com (10.167.242.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7784.11 via Frontend Transport; Mon, 15 Jul 2024 03:06:43 +0000 Received: from se-mail01w.axis.com (10.20.40.7) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Mon, 15 Jul 2024 05:06:43 +0200 Received: from se-intmail01x.se.axis.com (10.0.5.60) by se-mail01w.axis.com (10.20.40.7) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Mon, 15 Jul 2024 05:06:43 +0200 Received: from pchp3.se.axis.com (pchp3.se.axis.com [10.88.21.53]) by se-intmail01x.se.axis.com (Postfix) with ESMTP id 497CF216; Mon, 15 Jul 2024 05:06:43 +0200 (CEST) Received: by pchp3.se.axis.com (Postfix, from userid 171) id 44A7020447; Mon, 15 Jul 2024 05:06:43 +0200 (CEST) From: Hans-Peter Nilsson To: CC: Subject: [COMMITTED] CRIS: Adjust gcc.dg/tree-ssa/loop-1.c MIME-Version: 1.0 Message-ID: <20240715030643.44A7020447@pchp3.se.axis.com> Date: Mon, 15 Jul 2024 05:06:43 +0200 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PEPF00028CFF:EE_|AM7PR02MB5749:EE_ X-MS-Office365-Filtering-Correlation-Id: 3876467b-ac42-4971-ac1d-08dca47b2809 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|376014|82310400026|1800799024; X-Microsoft-Antispam-Message-Info: =?iso-8859-1?q?7A+/zSJ1FBZ366Qnekn6FO/7Be?= =?iso-8859-1?q?Ji8L2YwABS/3rnEQZg85qVej03T8h0CDaIGaLUc4X8uvnLtR+2EfplfVa6F5?= =?iso-8859-1?q?iCHTASUH3/BZWLrhG7CaIbIev2F2UJfIefUfb43Dn0m9SdLSWsq1u1ug4CQI?= =?iso-8859-1?q?NclAB4+p5DpZzMYERHdMUFcQs9jmvgxykeVThOw3fm26YHxMny7eUMNK6YSx?= =?iso-8859-1?q?uBAj8DjtxZvv3mzj6pBY/K8qVHpZL4PQqB3PlL51Ts5czBn1h8Nr5uNaXXt3?= =?iso-8859-1?q?LFTgXUXVCwHHF+2Q1WXAHiKu7ZZNOg/7rCYuk5wSB7i314N2Tkuhci99QFiT?= =?iso-8859-1?q?KzLBz4oyKrw8uTuId7VtmjNiHtFYPf4V12k+HpG8PMEegUntYEV0ZVkMUyYA?= =?iso-8859-1?q?UtqbbLc/diDmwm2jyGxLyJ9K8aBawXFzAcSQNTPY5VANGf3kGY9NFpgcepLx?= =?iso-8859-1?q?1JSxVT88XNFMvGbhsxU4pnzlCqLcQbINz5wLDJ8xXPwCOIXy1RT3RE+kqzrh?= =?iso-8859-1?q?GR0tCRNr6Dx8a6R5/py/KnTdbqrvryJFykmVfuxn5qx6s0dFKTbbkk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?= X-Forefront-Antispam-Report: CIP:195.60.68.100; CTRY:SE; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230040)(36860700013)(376014)(82310400026)(1800799024); DIR:OUT; SFP:1101; X-OriginatorOrg: axis.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2024 03:06:43.8641 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3876467b-ac42-4971-ac1d-08dca47b2809 X-MS-Exchange-CrossTenant-Id: 78703d3c-b907-432f-b066-88f7af9ca3af X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=78703d3c-b907-432f-b066-88f7af9ca3af; Ip=[195.60.68.100]; Helo=[mail.axis.com] X-MS-Exchange-CrossTenant-AuthSource: DU2PEPF00028CFF.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR02MB5749 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP 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~incoming=patchwork.ozlabs.org@gcc.gnu.org Committed. -- >8 -- With r15-1619-g3b9b8d6cfdf593, there's a XPASS and a FAIL for this test-case for cris-elf. Looking at the generated code, _foo is indeed no longer saved in a register for CRIS. While that looks like a regression, coremark results are the same around this revision, so simply adjust the test-case: remove the target-specific exceptions for cris-*-*. * gcc.dg/tree-ssa/loop-1.c: Remove target-specific test and xfail to adjust for recent changes in register allocation. --- gcc/testsuite/gcc.dg/tree-ssa/loop-1.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c b/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c index a531b7584a64..a8f2c3bbfdb4 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c @@ -43,16 +43,15 @@ int xxx(void) /* The SH targets always use separate instructions to load the address and to do the actual call - bsr is only generated by link time relaxation. */ -/* CRIS and MSP430 keep the address in a register. */ +/* MSP430 keeps the address in a register. */ /* m68k sometimes puts the address in a register, depending on CPU and PIC. */ -/* { dg-final { scan-assembler-times "foo" 5 { xfail hppa*-*-* ia64*-*-* sh*-*-* cris-*-* fido-*-* m68k-*-* i?86-*-mingw* i?86-*-cygwin* x86_64-*-mingw* visium-*-* nvptx*-*-* pdp11*-*-* msp430-*-* amdgcn*-*-* } } } */ +/* { dg-final { scan-assembler-times "foo" 5 { xfail hppa*-*-* ia64*-*-* sh*-*-* fido-*-* m68k-*-* i?86-*-mingw* i?86-*-cygwin* x86_64-*-mingw* visium-*-* nvptx*-*-* pdp11*-*-* msp430-*-* amdgcn*-*-* } } } */ /* { dg-final { scan-assembler-times "foo,%r" 5 { target hppa*-*-* } } } */ /* { dg-final { scan-assembler-times "= foo" 5 { target ia64*-*-* } } } */ /* { dg-final { scan-assembler-times "call\[ \t\]*_foo" 5 { target i?86-*-mingw* i?86-*-cygwin* } } } */ /* { dg-final { scan-assembler-times "call\[ \t\]*foo" 5 { target x86_64-*-mingw* } } } */ /* { dg-final { scan-assembler-times "jsr|bsrf|blink\ttr?,r18" 5 { target sh*-*-* } } } */ -/* { dg-final { scan-assembler-times "Jsr \\\$r" 5 { target cris-*-* } } } */ /* { dg-final { scan-assembler-times "\[jb\]sr" 5 { target fido-*-* m68k-*-* pdp11-*-* } } } */ /* { dg-final { scan-assembler-times "bra *tr,r\[1-9\]*,r21" 5 { target visium-*-* } } } */ /* { dg-final { scan-assembler-times "(?n)\[ \t\]call\[ \t\].*\[ \t\]foo," 5 { target nvptx*-*-* } } } */