From patchwork Sat Sep 13 07:01:44 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 120186 Return-Path: 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 E56C23857B96 for ; Sat, 13 Sep 2025 07:02:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E56C23857B96 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=blCHc0gr X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id BDD693857C5F for ; Sat, 13 Sep 2025 07:02:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BDD693857C5F Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BDD693857C5F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757746928; cv=none; b=INquFFoMMRMD+8TbTbSFA1HIPtqU0F3pC3DxbbDNVYyDQxYsKuZfmw6cD4dR3zxbpC/SQSb6v8+FAB+04Mh8rcIeAAUWCy5GawvVgWeUh3n8dTzKFqg8kS9WhfnH26C/uhySoZyOmO6r2RnTEuKGAEaIwjzi+TDcGU4z+3HFgyY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757746928; c=relaxed/simple; bh=OpLolbReY8dpGOqnT7AA12cbJqOPz9yxM4ShoTxj0VY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=unma/NhjKUzc4Ppb8R+0F/3KNXEqFFlV/hyWIVw+eqQOlXIyKSXUtV6HkE1r6WhDKS4kM9AqtD7+v3910tF2DMbNT1mQHYNlGL3RtyxtJO7mys+Awe8MWYYi16aOoDthxaUBWSrLgdtM1Tv1izY1gRWGcNrdh2L4Vt1snZAGHnU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDD693857C5F Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-77256e75eacso2374428b3a.0 for ; Sat, 13 Sep 2025 00:02:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1757746927; x=1758351727; darn=gcc.gnu.org; h=mime-version:user-agent:message-id:in-reply-to:date:references :organization:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=v8iuC7f66zs2ENVT+lRYC85tnNLTACBrLR4xMD6GciQ=; b=blCHc0gr7/ptX/JceXTnq4mTabySbkLXeU4hr+JnSd63nF+u4ow6idBPTna0aR3g42 s99KQoMV/4ftNUNci8YRLRGqlDLuyQq8IPf4TfP8EuXNQhyyMwk/Efb/rMIPpRFc62Qa Yw9TfooAMnNZshekTvnkGmPV5oM7kZXiW5qo2/Hu06QxnPB5qYntDmkDVbcV/4UZdpGX tnNsF9dv9ixzm2j+3iSXyPX+rgU+aKrI7xfD1nQSFXQrIKewlXuXwtRH4FwK4MSylzHy l265MsUZPM4eHu74EpPj3KNVD/LEiVMPOxamExKjbgKiaX8bGu1S4K/u+hne7szR0vlT lcew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757746927; x=1758351727; h=mime-version:user-agent:message-id:in-reply-to:date:references :organization:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=v8iuC7f66zs2ENVT+lRYC85tnNLTACBrLR4xMD6GciQ=; b=XOs1yNFagZbaShDBk18Cd6knG3brD9wiy5E1zYasYj1p2p/vSziBE7r3gy79WRzpXO vYTZJ7pWN5u5cT2Kr+Kx7UTtqAYzw6xiP/dto0ffcoiX7rwGAA/Fcx+fPAh0qoNNoGpt MP0jGKNQn3RTCIFsAbyExgEBDuqBUslIbqfrrcKT2V82OWF82YI7psZWb7UitLzxx1YA FViEQMIdU1TcDr9SwmR+rhcDnPnWLg+rxvZMGh0l1+wziRUIz23glM8+fPep+CGurfxT QP5NuPSRJl/7TtRiIuQdLXhLf8R/Gib6B1PrHAnIBZVocwmmmSmew0g3iDHDfSyXkECo YNSw== X-Gm-Message-State: AOJu0YxXgusxKm21HEGkuQegf5SUskZFNmlB8ooseQlldxyeEJ6TK6en aW9Sk3FltRo4BE6xOh4hfLs2ShoaLmvpwczsq8qaO4/7YTi9o354IX8vIMkfE4UV+yP4ij8JeET 5JjngKQ== X-Gm-Gg: ASbGncs9kc6/PFi5LzVebXEXcaWm5ZyICzKeCq+Ni7BYFs/UXsmEBg3fHNnnc57vO5m cOWqSlZkHSxUq5HMaaOLm9Qkyi3DeHzvYMr1l6ky2lgHh8KxaFG8RfsjB9Uxsr11TL1NlLK82gf 1YGOsNdQ3SFsj4LyidUToVqa81sjzvGuonulgz0Q9EpwKRWPPIUAEdvXSdXIGTj5W/bZndWDlme /Vkz/qTLe4RZpe283LuIFYSILKt29FbRSD0NLdXrsh0uKEExNbpOw81KQJoaLZ/SLJ0lMq8d74+ hJpxXP4FW2dHw8nTVG6LiIWnnaiTvpnp13HPSjREABV8f2bJnQhOdeHV8kj9VyoBYr6eUDnhBGS bh1Oybhd+H3b241WlaHYv5klIRQ== X-Google-Smtp-Source: AGHT+IHXjY7glH5JVvIq3+5Z/JKNAhggR9wSwIPHhk2jPpwtr7n7aE245WtanQH1srMjfR7jBgaAUw== X-Received: by 2002:a05:6a21:999b:b0:245:fdeb:d273 with SMTP id adf61e73a8af0-26029fa0baamr6824159637.4.1757746926807; Sat, 13 Sep 2025 00:02:06 -0700 (PDT) Received: from free.home ([2804:7f1:218c:71:f23c:affb:45e1:1f0a]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-b54a36d0d5bsm6679311a12.22.2025.09.13.00.02.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Sep 2025 00:02:06 -0700 (PDT) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 58D71iXk2083683 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 13 Sep 2025 04:01:45 -0300 From: Alexandre Oliva To: gcc-patches@gcc.gnu.org Cc: Vladimir Makarov , Rainer Orth , Mike Stump , Richard Earnshaw , Tamar Christina , Kyrylo Tkachov Subject: [PATCH 1v1/2] [aarch64] [testsuite] accept ldr after failed ira-remat Organization: Free thinker, does not speak for AdaCore References: Date: Sat, 13 Sep 2025 04:01:44 -0300 In-Reply-To: (Alexandre Oliva's message of "Sat, 13 Sep 2025 03:39:59 -0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, WEIRD_QUOTING 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~patchwork=sourceware.org@gcc.gnu.org When -fPIE is enabled (by default), nonlocal_goto tests fail because ira drops reg equivalences for function invariants such as stack addresses, and then, instead of the expected add instructions, we get ldr to restore the pseudo holding the address, as it ends up living in a stack slot across a call. Tested o aarch64-linux-gnu with --enable-default-pie. Ok to install? for gcc/testsuite/ChangeLog * gcc.target/aarch64/sme/nonlocal_goto_1.c: Accept ldr. * gcc.target/aarch64/sme/nonlocal_goto_2.c: Likewise. * gcc.target/aarch64/sme/nonlocal_goto_3.c: Likewise. --- .../gcc.target/aarch64/sme/nonlocal_goto_1.c | 2 +- .../gcc.target/aarch64/sme/nonlocal_goto_2.c | 2 +- .../gcc.target/aarch64/sme/nonlocal_goto_3.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_1.c b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_1.c index 11578279b9287..de9702e744519 100644 --- a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_1.c +++ b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_1.c @@ -17,7 +17,7 @@ void run(void (*)()); ** ldr x16, \1 ** tbz x16, 0, .* ** smstart sm -** add x0, .* +** (add|ldr) x0, .* ** ldr x16, \1 ** tbz x16, 0, .* ** smstop sm diff --git a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_2.c b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_2.c index 37dbcbae1a4f8..598db3cad38dd 100644 --- a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_2.c +++ b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_2.c @@ -9,7 +9,7 @@ void run(void (*)()); ** smstop sm ** bl [^\n]*[cC]ache[^\n]* ** smstart sm -** add x0, .* +** (add|ldr) x0, .* ** smstop sm ** bl run ** smstart sm diff --git a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_3.c b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_3.c index ae661653f3028..9aedd088d7807 100644 --- a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_3.c +++ b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_3.c @@ -11,7 +11,7 @@ void run(void (*)()); ** smstop sm ** bl [^\n]*[cC]ache[^\n]* ** smstart sm -** add x0, .* +** (add|ldr) x0, .* ** smstop sm ** bl run ** smstart sm From patchwork Sat Sep 13 07:04:20 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Oliva X-Patchwork-Id: 120187 Return-Path: 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 21AA93857C7A for ; Sat, 13 Sep 2025 07:05:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 21AA93857C7A Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=Pahdxmyh X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by sourceware.org (Postfix) with ESMTPS id F2BA33857C4F for ; Sat, 13 Sep 2025 07:04:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F2BA33857C4F Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F2BA33857C4F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1030 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757747078; cv=none; b=eUqzckEcsdhxh/oUs0GQOTjlW6r98aDGvRL/BsOT03cI1c8ivFby8cXP6iU1Gm1rCDgNVxUo1erOX/nXyGLNWfVlwRFvIoKDElv5Bjs2hBdBf0byL9CbB0K1wLDomscWODyyHgyoBjaqKAZZWz6D8Xfs8YzUtpnT3d3FFsRaJe8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1757747078; c=relaxed/simple; bh=544QuSGmwJmbqb1GZgrJk0/D8jkzV4UGDFVFx6wPQ9Q=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=I9Uq2E4JBBruYdbBTnPkdBiuhOIysnTDabIDOe1KZb5/ydd6Cop8tz1+/J566RQ0z0L2O7Y8gCfdXBUfR8/nxv89EiR0iS33jJVFGShuRvKxhW2ADTyCG4UbePnd72MadknucI8nCs+N5jLWlvkiNg9gG1hlNgwtuU9j1AiviOA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F2BA33857C4F Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-32326e8005bso2399354a91.3 for ; Sat, 13 Sep 2025 00:04:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1757747077; x=1758351877; darn=gcc.gnu.org; h=mime-version:user-agent:message-id:in-reply-to:date:references :organization:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=5UUOXqfgjOWkmBIffHit4X5naHLrLdK82U5iXu1eaa8=; b=PahdxmyhaV4KUUR0i2hXH0dZtje98+qlA2Vr8+3gfuJ/7iKAe2h+9b+lx4IaIjr/UA ypR/uHlLkfxS8La0/CH89VQCWV5r84BtN5plsi+ltDZ4AOwY18HXo/woiHWNYaq7D1ho 0+Fbu2KffbDnOBl0sX7UxM+qW69qBYDby0GPYSMFWauKBYpjGMJQaCkgA2nnb4vJxjqx Pc5wSlTVQ4uC2+L55KxygHpvBdCHgxx6UvIWbo6s+6a424OJh6VgypNyPrxHEF5JIvoE xXaMozD3V5ISUNXHZNA+xbiKe4VVGrEyR3PDvXcD2z1adYa5G+PcuU859u02U64qn8ND xw1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757747077; x=1758351877; h=mime-version:user-agent:message-id:in-reply-to:date:references :organization:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5UUOXqfgjOWkmBIffHit4X5naHLrLdK82U5iXu1eaa8=; b=AwlpDgmgAXc0Ckotugaik5dmYOMBiOxkRJjGVGfSyBQoaQnUeNlWU49br5sr2d026g 7udvBjl79hu2LPJfdQTaEvpcX8LNVS53/qqbULUXSUVqJ5qffzazQ7Xmc87qzGOAXxLG +PUiG2OgHPBH38K2nZYMIqCFlHmCg54lC+miEAe501qQ+wmUg7QSvOrG8nigbbjZ4Dh+ 1XDPjNtqUgb0aesBNokXjLzWtEWWpiTpCLEnXOXbMEcMrYzrTFVLeZMjyEX0EX8BpxO/ jS4TyIA3pBFCZ6QyORXN8FkEb//f1czc4uxtueESeLHbO9E+8kyOW3u55eDnbAWbYZsx HYtA== X-Gm-Message-State: AOJu0YyPWBVj2JWouqstWE6Fkc2XmpscRW5PdAZeFL0sCVA0zJ448Pic fh0hV3VGqBgc3DEbr3tUXCrolAOzcdnWKbt3nTi2Tm7pVJzt7ZcntfPv0F/zMHfs4czwvFbOrjM KOsNwyA== X-Gm-Gg: ASbGnctcPdvRaeD6hotyzJviccam4qZue4gZXMwGsEaG6zpLJjTYbZXV4CPh7xp8wF8 4woyhQlgyCkW9Z1okV6C/7gWVeiCpfaul4Oq7ncSpk0lxNX4r59eWTD06TNOfnfi508jgl5CQbm LV+HoKYAvbPxOmdx1vU2Vnrw82ipS7x3PyvXnnYA9r+SKZQ0OfVRd6elmd/TrwFhI2UN/nKQ8Eh I2WwWfKJzJpckA4h69LGwnYKgZwd40ZDEkHtoRPJoQd9MXlxabL3JPkkL4JtI01mZIx/XvmZXc/ 3SCUiJghsUbLnhVckt6vpt+x0WV9ew3B+uQdNOn+AWOPdOiCCXtcToTo3N0mYXLiOtKSGZHfRTW OnMtxrYF8y/k1i32DZypsM63Nvg== X-Google-Smtp-Source: AGHT+IEumUGzbEqyEPNlYq70kpGNhW7wAhfrb1LrtAmH5QLCqRNMaNBlx/sgc/tY3fun13p7ixNiLw== X-Received: by 2002:a17:90a:6286:b0:32b:be39:780c with SMTP id 98e67ed59e1d1-32de4f8f0b2mr5176695a91.17.1757747076862; Sat, 13 Sep 2025 00:04:36 -0700 (PDT) Received: from free.home ([2804:7f1:218c:71:f23c:affb:45e1:1f0a]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-32dd9809e5asm7804004a91.3.2025.09.13.00.04.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Sep 2025 00:04:36 -0700 (PDT) Received: from livre (livre.home [172.31.160.2]) by free.home (8.15.2/8.15.2) with ESMTPS id 58D74KFN2083771 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sat, 13 Sep 2025 04:04:20 -0300 From: Alexandre Oliva To: gcc-patches@gcc.gnu.org Cc: Vladimir Makarov , Rainer Orth , Mike Stump , Richard Earnshaw , Tamar Christina , Kyrylo Tkachov Subject: [PATCH 1v2/2] [aarch64] [testsuite] disable PIE for nonlocal_goto sme tests Organization: Free thinker, does not speak for AdaCore References: Date: Sat, 13 Sep 2025 04:04:20 -0300 In-Reply-To: (Alexandre Oliva's message of "Sat, 13 Sep 2025 03:39:59 -0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, WEIRD_QUOTING 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~patchwork=sourceware.org@gcc.gnu.org When an aarch64 toolchain is configured with --enable-default-pie, gcc.target/aarch64/sme/nonlocal_goto_[123].c fail because ira.cc's setup_reg_equiv resets function_invariant_p(x) equivalences when e.g. flag_pic and !CONSTANT_P (x), and then lra ends up unable to rematerialize stack addresses that would otherwise be rematerialized as small constants added to sp, and instead the addresses end up in pseudos assigned to stack slots. Tested on aarch64-linux-gnu with --enable-default-pie. Ok to install? for gcc/testsuite/ChangeLog * gcc.target/aarch64/sme/nonlocal_goto_1.c: Force PIE off. * gcc.target/aarch64/sme/nonlocal_goto_2.c: Likewise. * gcc.target/aarch64/sme/nonlocal_goto_3.c: Likewise. --- .../gcc.target/aarch64/sme/nonlocal_goto_1.c | 2 +- .../gcc.target/aarch64/sme/nonlocal_goto_2.c | 2 +- .../gcc.target/aarch64/sme/nonlocal_goto_3.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_1.c b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_1.c index 572c17a06d7c1..11578279b9287 100644 --- a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_1.c +++ b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_1.c @@ -1,4 +1,4 @@ -/* { dg-options "-O2 -fno-schedule-insns -fno-schedule-insns2" } */ +/* { dg-options "-O2 -fno-schedule-insns -fno-schedule-insns2 -fno-PIE" } */ /* { dg-final { check-function-bodies "**" "" } } */ void run(void (*)()); diff --git a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_2.c b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_2.c index 721a2b7898636..37dbcbae1a4f8 100644 --- a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_2.c +++ b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_2.c @@ -1,4 +1,4 @@ -/* { dg-options "-O2 -fno-schedule-insns -fno-schedule-insns2" } */ +/* { dg-options "-O2 -fno-schedule-insns -fno-schedule-insns2 -fno-PIE" } */ /* { dg-final { check-function-bodies "**" "" } } */ void run(void (*)()); diff --git a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_3.c b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_3.c index 25db9283b169a..ae661653f3028 100644 --- a/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_3.c +++ b/gcc/testsuite/gcc.target/aarch64/sme/nonlocal_goto_3.c @@ -1,4 +1,4 @@ -/* { dg-options "-O2 -fno-schedule-insns -fno-schedule-insns2" } */ +/* { dg-options "-O2 -fno-schedule-insns -fno-schedule-insns2 -fno-PIE" } */ /* { dg-final { check-function-bodies "**" "" } } */ void run(void (*)());