{"id":2226016,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2226016/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/20260422022136.8C63B2044E@pchp3.se.axis.com/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/1.1/projects/17/?format=json","name":"GNU Compiler Collection","link_name":"gcc","list_id":"gcc-patches.gcc.gnu.org","list_email":"gcc-patches@gcc.gnu.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260422022136.8C63B2044E@pchp3.se.axis.com>","date":"2026-04-22T02:21:36","name":"[committed] Fix PR124959, gcc.dg/hoist-register-pressure-1.c, *-[23].c, failing","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"01fb87046983ad3a0910028239ed24fe66bbe8df","submitter":{"id":78298,"url":"http://patchwork.ozlabs.org/api/1.1/people/78298/?format=json","name":"Hans-Peter Nilsson","email":"hp@axis.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/20260422022136.8C63B2044E@pchp3.se.axis.com/mbox/","series":[{"id":500912,"url":"http://patchwork.ozlabs.org/api/1.1/series/500912/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=500912","date":"2026-04-22T02:21:36","name":"[committed] Fix PR124959, gcc.dg/hoist-register-pressure-1.c, *-[23].c, failing","version":1,"mbox":"http://patchwork.ozlabs.org/series/500912/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2226016/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2226016/checks/","tags":{},"headers":{"Return-Path":"<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":["incoming@patchwork.ozlabs.org","gcc-patches@gcc.gnu.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","gcc-patches@gcc.gnu.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=axis.com header.i=@axis.com header.a=rsa-sha256\n header.s=selector1 header.b=iXyuHWoJ;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)","sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=axis.com header.i=@axis.com header.a=rsa-sha256\n header.s=selector1 header.b=iXyuHWoJ","sourceware.org;\n dmarc=pass (p=none dis=none) header.from=axis.com","sourceware.org; spf=pass smtp.mailfrom=axis.com","server2.sourceware.org;\n arc=pass smtp.remote-ip=52.101.65.56"],"Received":["from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0jfc0FHgz1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 12:22:13 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id CABD14BA23F9\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 02:22:11 +0000 (GMT)","from DU2PR03CU002.outbound.protection.outlook.com\n (mail-northeuropeazon11011056.outbound.protection.outlook.com [52.101.65.56])\n by sourceware.org (Postfix) with ESMTPS id EC6E84BA23F9\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 02:21:41 +0000 (GMT)","from AS8P250CA0018.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:330::23)\n by DU0PR02MB7827.eurprd02.prod.outlook.com (2603:10a6:10:343::22)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9846.16; Wed, 22 Apr\n 2026 02:21:37 +0000","from AM4PEPF00027A5E.eurprd04.prod.outlook.com\n (2603:10a6:20b:330:cafe::43) by AS8P250CA0018.outlook.office365.com\n (2603:10a6:20b:330::23) with Microsoft SMTP Server (version=TLS1_3,\n cipher=TLS_AES_256_GCM_SHA384) id 15.20.9791.48 via Frontend Transport; Wed,\n 22 Apr 2026 02:21:37 +0000","from mail.axis.com (195.60.68.100) by\n AM4PEPF00027A5E.mail.protection.outlook.com (10.167.16.72) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9846.18 via Frontend Transport; Wed, 22 Apr 2026 02:21:37 +0000","from SE-MAILARCH01W.axis.com (10.20.40.15) by se-mail10w.axis.com\n (10.20.40.10) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1748.39; Wed, 22 Apr\n 2026 04:21:36 +0200","from se-mail11w.axis.com (10.20.40.11) by SE-MAILARCH01W.axis.com\n (10.20.40.15) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.61; Wed, 22 Apr\n 2026 04:21:36 +0200","from se-intmail01x.se.axis.com (10.4.0.28) by se-mail11w.axis.com\n (10.20.40.11) with Microsoft SMTP Server id 15.2.1748.39 via Frontend\n Transport; Wed, 22 Apr 2026 04:21:36 +0200","from pchp3.se.axis.com (pchp3.se.axis.com [10.88.21.53])\n by se-intmail01x.se.axis.com (Postfix) with ESMTP id 928D92BB4;\n Wed, 22 Apr 2026 04:21:36 +0200 (CEST)","by pchp3.se.axis.com (Postfix, from userid 171)\n id 8C63B2044E; Wed, 22 Apr 2026 04:21:36 +0200 (CEST)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org CABD14BA23F9","OpenDKIM Filter v2.11.0 sourceware.org EC6E84BA23F9"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org EC6E84BA23F9","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org EC6E84BA23F9","ARC-Seal":["i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1776824502; cv=pass;\n b=JJRqQoy4Ep09oB4vPtDURTzaoPVhDJ6jCpnbn/YoNF1NFyPhIo94EnZjqQbJG2eV/NdLIhPjKiOKL8kyPmlIOvdebS2Ri3QS4yDfX5e3f8FmgYqUXOePrI/WP4nTZEM6a92Q+YWZtXjDbmyb3cyemLl73y/Q3Iu9inl6Xn1SvwE=","i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=iOpSP/IiNV/sWolvEHmZoglHKOiBFlAjMmylAJJpTmRm6Fj/CR3tdS0rPDVtYuuR/t6W5J5Qms3nYL7QSRXE3b7hH3P9oFV/gLdvxzUyXN005O5tjUxKrM2iA0gvrv0ArM91HF1RXey5PfHMIgj/BcNX/pdC15/Occ/icpITcN5NS71F/uheaIgXSwPA9mTcheQDPH7/i6Dgo3RSejlftPJ9P5OrySTtKrNacP/NBTsaLFJTHeU/KH5d5KrDWXt7k3Ro6REkG+3wed36MVoIOp07887DfDPRPO0T+yUfsizYT399x2orqbN1rEcf9Anw6wbZcqUsccYgvrdbqepV7A=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776824502; c=relaxed/simple;\n bh=WVEnJSXl6RS1H52is/TuFY/oRsXScAsv812ho/MN/Pg=;\n h=DKIM-Signature:From:To:Subject:MIME-Version:Message-ID:Date;\n b=pEukI4/O89a3g6XeReVu7lOELH0+eSsN9mBMWJvFxiUH9FLL9PPMjG5YA+P2DmRfhN5LXbnW+GAtXO5XL7xYODvl1RF/GnT7kqm2PJZA2UBhmdCCWMK8GFoajSBERmn8K3lTP7dw7px1mt+vBai/7mOuJfI3OD4dEFv1YqEbS9E=","i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n 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;\n bh=LWWwypSZGxM8Ah/6Yo/+94w3QQrHi5IO4VPTPYdRH90=;\n b=kOSYKBvMRZhCP59+bRWHPgTySEPEVZJoDyr7WOSARe3xw+TVSNSDBkWj34sKHeM0F+0QkVGLJujyxa3WKaZFXo8CKfwFxT1BGGxgBMax9hBxI67LjjK73VrLBB8XOm+fRQ2gr/t51DxWW+RmzSH8WjeLRmnhPNV92/fEAtkogWy7vKkaWfMTYQ1D/F0ucpt9M/2/lL71PI+TSoENqrjAb9hBMk86oxsLs5l0tr4phi7T/jxnzI9h4V1UX7HzWQ+JI2HogdZ6WBGuBHJVoVzDc3R608oM5TCZBiWsnOwwixMEbBbFFleMwkjOPRsPZOVx05pSORJi6cDU+GpqaqIJsQ=="],"ARC-Authentication-Results":["i=2; server2.sourceware.org","i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 195.60.68.100) smtp.rcpttodomain=gcc.gnu.org smtp.mailfrom=axis.com;\n dmarc=pass (p=none sp=none pct=100) action=none header.from=axis.com;\n dkim=none (message not signed); arc=none (0)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; s=selector1;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=LWWwypSZGxM8Ah/6Yo/+94w3QQrHi5IO4VPTPYdRH90=;\n b=iXyuHWoJcOI4UpIvZDg5Fopk9U75Spy09ifdnlWHLZJd0m89UIUWFvu8hu6xuHituysQTA0QvxrGxkkqKE1pZTv5e8Oqlfs8cIkGF9GgSVT54nzWp91wNGRpFD4PbeLcXF9Gdy6yKuKNL0RJ3L7e9NeAUSdPdHRrd7P9VbiZ2v0=","X-MS-Exchange-Authentication-Results":"spf=pass (sender IP is 195.60.68.100)\n smtp.mailfrom=axis.com; dkim=none (message not signed)\n header.d=none;dmarc=pass action=none header.from=axis.com;","Received-SPF":"Pass (protection.outlook.com: domain of axis.com designates\n 195.60.68.100 as permitted sender) receiver=protection.outlook.com;\n client-ip=195.60.68.100; helo=mail.axis.com; pr=C","From":"Hans-Peter Nilsson <hp@axis.com>","To":"<gcc-patches@gcc.gnu.org>","Subject":"[committed] Fix PR124959, gcc.dg/hoist-register-pressure-1.c,\n *-[23].c,\n failing","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"iso-8859-1\"","Content-Transfer-Encoding":"8BIT","Message-ID":"<20260422022136.8C63B2044E@pchp3.se.axis.com>","Date":"Wed, 22 Apr 2026 04:21:36 +0200","X-EOPAttributedMessage":"0","X-MS-PublicTrafficType":"Email","X-MS-TrafficTypeDiagnostic":"AM4PEPF00027A5E:EE_|DU0PR02MB7827:EE_","X-MS-Office365-Filtering-Correlation-Id":"1a665588-6668-4146-1aa4-08dea015e18a","X-MS-Exchange-SenderADCheck":"1","X-MS-Exchange-AntiSpam-Relay":"0","X-Microsoft-Antispam":"BCL:0;\n ARA:13230040|376014|82310400026|1800799024|36860700016|13003099007|18002099003|56012099003;","X-Microsoft-Antispam-Message-Info":"\n L/qs8iJzPL9AVPsp4i+ZfUzFuLbwdhWXIKkzA4oSnDy6CrMWVn5yTn/HgPu4zpEh7esMea7ziRXzamUJWbPmaM3O19PsWKmTjZt8SR6fPiEMhcXA/6K5/FBrKVhP54mojOBxYa2GFxNO6t8hhCqWYT9UiRgA3S9+tAaeoHiHfsATB+8JnXMpqQhhiyEEZkfAtkwqZjqtvSJ1FWbLSd3OnxN6jCQ2MUds7976NbapYPdt95ZPGlOuibTSSbFk4WSOwmkr2ZinQhHxVEfw1w2dhlMglnPoYxFpzP1IU/4rEOMwCSxRlb1l1GQyBf+QLcR2Bzjzln9bIZzE6VlXFNpAbsJeCiZCwxT1AcAPBeyo0hdn36QGawdrQgBwQD/csrbxNV9xff5tcc8omF3M1i0wYCPmzzs8NoGGqBt02Qu6rGAwwa125bTNhFtzutIPN7Vh0UbJ7FTf3KELS3MDxd4LXHk6q6sx0dWoq9kRfmmUvDZ6R07SbL5jMbh77PtMiyKY3LqZ7wm/XJWaEDRdl9TfKTnQCnpudevvO0+3HEnRTh3B88+OQlkEglv21r8RwjEf7C6b1m++a65DHBEcl7+g7C6lLLp+xJ/dN31o3ahyh4KECihLgCaexYk7aBblxlRk1HdgWcyMHtkgNF9Q2m+mJ3nbVgGh7tdfIBpWnSHc9KopN61/ceImOdid/LsKYqEN61KON9B/0vCMgDj2NOQUgAgNltYd8hvZFHnQ+Btxx8Y=","X-Forefront-Antispam-Report":"CIP:195.60.68.100; CTRY:SE; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:mail.axis.com; PTR:InfoDomainNonexistent; CAT:NONE;\n SFS:(13230040)(376014)(82310400026)(1800799024)(36860700016)(13003099007)(18002099003)(56012099003);\n DIR:OUT; SFP:1101;","X-MS-Exchange-AntiSpam-MessageData-ChunkCount":"1","X-MS-Exchange-AntiSpam-MessageData-0":"\n kt2+hfHH5bOYEegIRGaYoCgjYYZ8JxXEhkxVPyNgbJ+ReKo+Z/OuM2LS0SiwgQP5Vb/ZlbtalbXcKKGF1B4ZV/mXQYUGRXN9ulES/I+sB9cBlkD90SYX6TmvssVGi4ouosV6kI3COG35QT5U5/irOinJD84YpoYOUQAiiHKu+Phq8M/G+RIVd4/mMYH3H2XjaHBtILgObJwBM8mkpTyX0ewyTtkYBD99UggsebHFBsm5iLLPgBaBKpALqgBcndHGAjFtwOn8WJFNXq/BS3X6ajUfKQSZVivZOuQYGEVdDWVppm9jWljiPxJtibBvEKkkheqMYYla++zUwPM9UU/1AKQAoBg/e+r1RD/IipdUtB09WAtWA1s/UAzlAYz/Zv8NNM/MkE8vy/I16ZvzW+HUMTNU1fwYe+FI4hOv5QAOLonDWdxWyRTo+3SyqIA9fTGP","X-OriginatorOrg":"axis.com","X-MS-Exchange-CrossTenant-OriginalArrivalTime":"22 Apr 2026 02:21:37.1485 (UTC)","X-MS-Exchange-CrossTenant-Network-Message-Id":"\n 1a665588-6668-4146-1aa4-08dea015e18a","X-MS-Exchange-CrossTenant-Id":"78703d3c-b907-432f-b066-88f7af9ca3af","X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp":"\n TenantId=78703d3c-b907-432f-b066-88f7af9ca3af; Ip=[195.60.68.100];\n Helo=[mail.axis.com]","X-MS-Exchange-CrossTenant-AuthSource":"\n AM4PEPF00027A5E.eurprd04.prod.outlook.com","X-MS-Exchange-CrossTenant-AuthAs":"Anonymous","X-MS-Exchange-CrossTenant-FromEntityHeader":"HybridOnPrem","X-MS-Exchange-Transport-CrossTenantHeadersStamped":"DU0PR02MB7827","X-BeenThere":"gcc-patches@gcc.gnu.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Gcc-patches mailing list <gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>","List-Archive":"<https://gcc.gnu.org/pipermail/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-request@gcc.gnu.org?subject=help>","List-Subscribe":"<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"},"content":"I double-checked the patch by \"typoing\" the cris-*-* target\nand re-running the test, observing it failing as expected.\n-- >8 --\nThese test-cases got typo-corrected in\nr16-8316-g630b53cd4ff1c3, which exposed them failing for\ncris-elf.  Though, at one time they were passing for the\nright reason, and bisection shows they'd start failing when\nthe CRIS target was CC0-converted, and for the same reason\nthe S/390 32-bit fails.  See the pre-existing comment in the\ntest and also see the PR for details, including a suggested\nplan how to fix the optimization pass, if someone is\ninterested in an \"easy hack\".  Though admittedly, the missed\noptimization doesn't affect many targets.\n\nRegarding the target pattern selector expression, I went for\nthe simplest possible, even though I'm including CRIS in the\n64-bit exception.\n\n\tPR target/124959\n\t* gcc.dg/hoist-register-pressure-1.c,\n\tgcc.dg/hoist-register-pressure-2.c,\n\tgcc.dg/hoist-register-pressure-3.c: Exclude cris-*-*.\n---\n gcc/testsuite/gcc.dg/hoist-register-pressure-1.c | 2 +-\n gcc/testsuite/gcc.dg/hoist-register-pressure-2.c | 2 +-\n gcc/testsuite/gcc.dg/hoist-register-pressure-3.c | 2 +-\n 3 files changed, 3 insertions(+), 3 deletions(-)","diff":"diff --git a/gcc/testsuite/gcc.dg/hoist-register-pressure-1.c b/gcc/testsuite/gcc.dg/hoist-register-pressure-1.c\nindex 516357d3c920..38d19a8914ab 100644\n--- a/gcc/testsuite/gcc.dg/hoist-register-pressure-1.c\n+++ b/gcc/testsuite/gcc.dg/hoist-register-pressure-1.c\n@@ -3,7 +3,7 @@\n    be assigned without clobbering cc.  For a PLUS rtx on S/390 this\n    requires a load address instruction which is fine on 64 bit but\n    cannot be used on 31 bit since it does a 31 bit add only.  */\n-/* { dg-final { scan-rtl-dump \"PRE/HOIST: end of bb .* copying expression\" \"hoist\" { target { { { ! s390*-*-* } || lp64 } && nonpic } } } } */\n+/* { dg-final { scan-rtl-dump \"PRE/HOIST: end of bb .* copying expression\" \"hoist\" { target { { { ! { s390*-*-* cris-*-* } } || lp64 } && nonpic } } } } */\n \n #define BUF 100\n long a[BUF];\ndiff --git a/gcc/testsuite/gcc.dg/hoist-register-pressure-2.c b/gcc/testsuite/gcc.dg/hoist-register-pressure-2.c\nindex 2e1283233788..d8af93db6532 100644\n--- a/gcc/testsuite/gcc.dg/hoist-register-pressure-2.c\n+++ b/gcc/testsuite/gcc.dg/hoist-register-pressure-2.c\n@@ -3,7 +3,7 @@\n    be assigned without clobbering cc.  For a PLUS rtx on S/390 this\n    requires a load address instruction which is fine on 64 bit but\n    cannot be used on 31 bit since it does a 31 bit add only.  */\n-/* { dg-final { scan-rtl-dump \"PRE/HOIST: end of bb .* copying expression\" \"hoist\" { target { { ! s390*-*-* } || lp64 } } } } */\n+/* { dg-final { scan-rtl-dump \"PRE/HOIST: end of bb .* copying expression\" \"hoist\" { target { { ! { s390*-*-* cris-*-* } } || lp64 } } } } */\n \n #define BUF 100\n long a[BUF];\ndiff --git a/gcc/testsuite/gcc.dg/hoist-register-pressure-3.c b/gcc/testsuite/gcc.dg/hoist-register-pressure-3.c\nindex 0a705edd79cf..97b22c6a9691 100644\n--- a/gcc/testsuite/gcc.dg/hoist-register-pressure-3.c\n+++ b/gcc/testsuite/gcc.dg/hoist-register-pressure-3.c\n@@ -3,7 +3,7 @@\n    be assigned without clobbering cc.  For a PLUS rtx on S/390 this\n    requires a load address instruction which is fine on 64 bit but\n    cannot be used on 31 bit since it does a 31 bit add only.  */\n-/* { dg-final { scan-rtl-dump \"PRE/HOIST: end of bb .* copying expression\" \"hoist\" { target { { ! s390*-*-* } || lp64 } } } } */\n+/* { dg-final { scan-rtl-dump \"PRE/HOIST: end of bb .* copying expression\" \"hoist\" { target { { ! { s390*-*-* cris-*-* } } || lp64 } } } } */\n \n #define BUF 100\n long a[BUF];\n","prefixes":["committed"]}