Message ID | 20241126124213.1599233-1-torbjorn.svensson@foss.st.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A6A8F3858C31 for <patchwork@sourceware.org>; Tue, 26 Nov 2024 13:14:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6A8F3858C31 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=foss.st.com header.i=@foss.st.com header.a=rsa-sha256 header.s=selector1 header.b=HVc9n3nN X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by sourceware.org (Postfix) with ESMTPS id 783523858D33 for <gcc-patches@gcc.gnu.org>; Tue, 26 Nov 2024 13:13:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 783523858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=foss.st.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 783523858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=185.132.182.106 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732626828; cv=none; b=wc3lWY7X1bZH10RNqttdVHodyfdikLa13wE28oG0EGFikDDKx8a1fsIqoSxjNjT+cVuBLRKHWLGoLhUszxZl7c/sdSWRNb6011eFnvQlvtqBCX5MhdMOaQTPGjPLPhP+8cvVWCvNkVdik3VfN6NTFxvtDrCbYSNq3zFF1UrWKy4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732626828; c=relaxed/simple; bh=ro3Ngcv62lbsAycYz4trh3blkGwdRl5PKsW0OJHKY1c=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=UlFYA1U48kyoqp8mmYBe5doEc+ltquwlxHYnK22NwCj0MALmmmDj9wICHNurHJLa/0fzzOajI+sVNbSKghIrbdxHIKI7eGdYxABe6ToDN3zu4r59aTU+YoLhA4DyKlcMWsM7xtDd9g5rYdjxIomv9DY+JFlIrge9bt/uX4KhLnA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 783523858D33 Received: from pps.filterd (m0369458.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4AQAk2LY000944; Tue, 26 Nov 2024 14:13:46 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=selector1; bh=9ACDXR1O/6IAdsS5g9sqVs 1tydJO3U75ESdeGa7c7uQ=; b=HVc9n3nNbBoZpEouVMGUfaAmMGNKQ4+XbMGACV PF2VMfB8rhh4GhLFApVqD3nLGC+Wt02uMwD6dw3BnGIpTEiGfCspLXmxJBmCaXPY 0tB8cx09eYxcDmBTloHbPntvFfRka872JRuVpVNzI7RLmqy3MmFcnNIBq4/Qp6gv EsM9coqj2a0kDavQPzFWLWD7XXG7XhWbXxYurEmt3TpC7XVsywUtOXuj0/Wj8BzV d1J2fsBL+Vou6ctu6PVBIbIx0qAJz9c+g0hKWf/G4Z0QaUKLMFlPLpRSG/yZu6CO kYq2us7zFN0PPQAtTNPWIDLxi+ZsbyPtyCQzmbuqhadBD1OQ== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 433sg4ar7n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Nov 2024 14:13:46 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 984AB40045; Tue, 26 Nov 2024 14:12:38 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id C69FB27723A; Tue, 26 Nov 2024 14:10:34 +0100 (CET) Received: from jkgcxl0004.jkg.st.com (10.74.22.255) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.37; Tue, 26 Nov 2024 14:10:34 +0100 From: =?utf-8?q?Torbj=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com> To: <gcc-patches@gcc.gnu.org> CC: <richard.earnshaw@arm.com>, <christophe.lyon@linaro.org>, =?utf-8?q?Torb?= =?utf-8?q?j=C3=B6rn_SVENSSON?= <torbjorn.svensson@foss.st.com> Subject: [PATCH] testsuite: arm: Use correct the expected asm in epilog-1.c test Date: Tue, 26 Nov 2024 13:42:14 +0100 Message-ID: <20241126124213.1599233-1-torbjorn.svensson@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.74.22.255] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <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>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org |
Series |
testsuite: arm: Use correct the expected asm in epilog-1.c test
|
|
Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_gcc_build--master-arm | success | Build passed |
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 | success | Build passed |
linaro-tcwg-bot/tcwg_gcc_check--master-arm | success | Test passed |
linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 | success | Test passed |
Commit Message
Torbjorn SVENSSON
Nov. 26, 2024, 12:42 p.m. UTC
Hi,
Sorry for the mess. I'm not sure how I managed to miss this...
Maybe I tested the GCC15 binaries on the GCC14 test tree.
Anyway, here is a fix that uses the assembler generated in GCC14.
The csinc instruction was introduced in r15-1579-g792f97b44ff that
was not backported.
Ok for releases/gcc-14?
--
In r14.2.0-376-g724446556e5, I accidentally introduced a regression in
the expected assembler as the csinc instruction was not used for
armv8.1-m.main.
The generated assembler for armv8.1-m.main is:
push {r3, r4, r5, lr}
ldr r4, .L5
ldr r5, [r4]
adds r4, r2, #1
tst r5, #4
it ne
movne r2, r4
bl bar
movs r0, #0
pop {r3, r4, r5, pc}
gcc/testsuite/ChangeLog:
* gcc.target/arm/epilog-1.c: Corrected armv8.1.m-main asm.
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
---
gcc/testsuite/gcc.target/arm/epilog-1.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Comments
On 11/26/24 13:42, Torbjörn SVENSSON wrote: > Hi, > > Sorry for the mess. I'm not sure how I managed to miss this... > Maybe I tested the GCC15 binaries on the GCC14 test tree. > Anyway, here is a fix that uses the assembler generated in GCC14. > > The csinc instruction was introduced in r15-1579-g792f97b44ff that > was not backported. > > Ok for releases/gcc-14? > > -- > > In r14.2.0-376-g724446556e5, I accidentally introduced a regression in > the expected assembler as the csinc instruction was not used for > armv8.1-m.main. > > The generated assembler for armv8.1-m.main is: > push {r3, r4, r5, lr} > ldr r4, .L5 > ldr r5, [r4] > adds r4, r2, #1 > tst r5, #4 > it ne > movne r2, r4 > bl bar > movs r0, #0 > pop {r3, r4, r5, pc} > > gcc/testsuite/ChangeLog: > > * gcc.target/arm/epilog-1.c: Corrected armv8.1.m-main asm. > OK, thanks. Christophe > Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> > --- > gcc/testsuite/gcc.target/arm/epilog-1.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/gcc/testsuite/gcc.target/arm/epilog-1.c b/gcc/testsuite/gcc.target/arm/epilog-1.c > index a1516456460..d765dc42b82 100644 > --- a/gcc/testsuite/gcc.target/arm/epilog-1.c > +++ b/gcc/testsuite/gcc.target/arm/epilog-1.c > @@ -20,8 +20,10 @@ Below block is for non-armv8.1-m.main > ** | > > Below block is for armv8.1-m.main > +** adds (r[0-9]+), r2, #1 > ** tst r[0-9]+, #4 > -** csinc r2, r2, r2, eq > +** it ne > +** movne r2, \1 > > ** ) > ** bl bar
On 2024-11-26 16:33, Christophe Lyon wrote: > > > On 11/26/24 13:42, Torbjörn SVENSSON wrote: >> Hi, >> >> Sorry for the mess. I'm not sure how I managed to miss this... >> Maybe I tested the GCC15 binaries on the GCC14 test tree. >> Anyway, here is a fix that uses the assembler generated in GCC14. >> >> The csinc instruction was introduced in r15-1579-g792f97b44ff that >> was not backported. >> >> Ok for releases/gcc-14? >> >> -- >> >> In r14.2.0-376-g724446556e5, I accidentally introduced a regression in >> the expected assembler as the csinc instruction was not used for >> armv8.1-m.main. >> >> The generated assembler for armv8.1-m.main is: >> push {r3, r4, r5, lr} >> ldr r4, .L5 >> ldr r5, [r4] >> adds r4, r2, #1 >> tst r5, #4 >> it ne >> movne r2, r4 >> bl bar >> movs r0, #0 >> pop {r3, r4, r5, pc} >> >> gcc/testsuite/ChangeLog: >> >> * gcc.target/arm/epilog-1.c: Corrected armv8.1.m-main asm. >> > > OK, thanks. Pushed as r14.2.0-461-g407970fdd3f. Kind regards, Torbjörn > > Christophe > >> Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> >> --- >> gcc/testsuite/gcc.target/arm/epilog-1.c | 4 +++- >> 1 file changed, 3 insertions(+), 1 deletion(-) >> >> diff --git a/gcc/testsuite/gcc.target/arm/epilog-1.c b/gcc/testsuite/ >> gcc.target/arm/epilog-1.c >> index a1516456460..d765dc42b82 100644 >> --- a/gcc/testsuite/gcc.target/arm/epilog-1.c >> +++ b/gcc/testsuite/gcc.target/arm/epilog-1.c >> @@ -20,8 +20,10 @@ Below block is for non-armv8.1-m.main >> ** | >> Below block is for armv8.1-m.main >> +** adds (r[0-9]+), r2, #1 >> ** tst r[0-9]+, #4 >> -** csinc r2, r2, r2, eq >> +** it ne >> +** movne r2, \1 >> ** ) >> ** bl bar
diff --git a/gcc/testsuite/gcc.target/arm/epilog-1.c b/gcc/testsuite/gcc.target/arm/epilog-1.c index a1516456460..d765dc42b82 100644 --- a/gcc/testsuite/gcc.target/arm/epilog-1.c +++ b/gcc/testsuite/gcc.target/arm/epilog-1.c @@ -20,8 +20,10 @@ Below block is for non-armv8.1-m.main ** | Below block is for armv8.1-m.main +** adds (r[0-9]+), r2, #1 ** tst r[0-9]+, #4 -** csinc r2, r2, r2, eq +** it ne +** movne r2, \1 ** ) ** bl bar