From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id 4C9BB3854140 for ; Mon, 3 Oct 2022 14:36:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 4C9BB3854140 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=foss.arm.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=foss.arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9B00B176B; Mon, 3 Oct 2022 07:37:02 -0700 (PDT) Received: from [10.2.78.76] (unknown [10.2.78.76]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6B59E3F73B; Mon, 3 Oct 2022 07:36:55 -0700 (PDT) Message-ID: Date: Mon, 3 Oct 2022 15:36:54 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] [testsuite][arm] Fix cmse-15.c expected output Content-Language: en-GB To: =?UTF-8?Q?Torbj=c3=b6rn_SVENSSON?= , gcc-patches@gcc.gnu.org References: <20220923084330.4131742-1-torbjorn.svensson@foss.st.com> From: Richard Earnshaw In-Reply-To: <20220923084330.4131742-1-torbjorn.svensson@foss.st.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3497.2 required=5.0 tests=BAYES_00,GIT_PATCH_0,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,KAM_SHORT,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,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 List-Id: On 23/09/2022 09:43, Torbjörn SVENSSON via Gcc-patches wrote: > The cmse-15.c testcase fails at -Os because ICF means that we > generate > secure3: > b secure1 > > which is OK, but does not match the currently expected > secure3: > ... > bx r[0-3] > > gcc/testsuite/ChangeLog: > > * gcc.target/arm/cmse/cmse-15.c: Align with -Os improvements. OK. R. > > Co-Authored-By: Yvan ROUX > Signed-off-by: Torbjörn SVENSSON > --- > gcc/testsuite/gcc.target/arm/cmse/cmse-15.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/gcc/testsuite/gcc.target/arm/cmse/cmse-15.c b/gcc/testsuite/gcc.target/arm/cmse/cmse-15.c > index b0fefe561a1..5188f1d697f 100644 > --- a/gcc/testsuite/gcc.target/arm/cmse/cmse-15.c > +++ b/gcc/testsuite/gcc.target/arm/cmse/cmse-15.c > @@ -144,6 +144,8 @@ int secure2 (s_bar_ptr s_bar_p) > ** bx r[0-3] > ** | > ** blx r[0-3] > +** | > +** b secure1 > ** ) > ** ... > */