From patchwork Mon Apr 8 20:13:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Schwinge X-Patchwork-Id: 1921028 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=wuhoS2Bp; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4VD0g55c5nz1yYb for ; Tue, 9 Apr 2024 06:14:25 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E134B3846410 for ; Mon, 8 Apr 2024 20:14:23 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id 1129D3858D28 for ; Mon, 8 Apr 2024 20:13:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1129D3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=baylibre.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1129D3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::433 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712607241; cv=none; b=xZJ5Cyk5t7svpeHW316FjewYps5oABZI8czRut/EldcIFHIfMKtbAn+yUz0FUA/aLQLkxkEBFcURy44PWnNr159FlkiROun+++8VgzGg3GzBthllzcobAfVU7ThEjSgau1l+kKnIdP5H9bFoC0DZZtzvq9xJBqlXgNC/nE9U86o= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712607241; c=relaxed/simple; bh=o/s7vqMNzgi3QsUnFJfoUqBDMAmgeVLcCjST/x+ta/U=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=i3voDoM9eZbiHUKjXSZhBtaW4Ws+xIZ2S7ZmrkXeWhlVoQwZ54mZgKs7jl7Gy74z4OVb/AYWGauSq9cSutUiZuU4FJpF0QcyTxCBKgRVhZUwACyg1q7hr3mp6bw/AVRS0TjrhxKtkBbYWSpCKKTx3eX5SZeLg9QKNPR6sraqupc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-3455ff1339dso1483070f8f.0 for ; Mon, 08 Apr 2024 13:13:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1712607236; x=1713212036; darn=gcc.gnu.org; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=SBeC57hstli1Lcm1yBqThgdJlGDGk1sif96pgoODqpU=; b=wuhoS2Bp02dAKJ5cieui55EzFfEym17+3rQxSxHCkLVTmBXRYYWiBTX42dcxMuwjtS O92YozEjN6n/9Rzfm81wCdAW34S2ksBrGtPOffWb/34A4VxjeVTjyUKbZlnrg+T/1cCA XeO8C2IB0AIipdcr59085K9Q+GuB2Ux/fczhZfgFjvNWneZ3Aj6LtuI93d+sb3P8skp2 E2GFL8LaUxNjlyyjLAqUtT8mOYiktjkhaP/BbuuWBLU1NkPMNOH94cF9xHhjC2BIInB5 Byot8VMShNwDpkpkmF/H09HZ1yWZiES/pRfcxoGLbq9vtvBqeQMBWzoKv2XVcSMXZclN 32dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712607236; x=1713212036; h=mime-version:message-id:date:user-agent:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SBeC57hstli1Lcm1yBqThgdJlGDGk1sif96pgoODqpU=; b=qppUFc9DuPYrRyJhbr8Dp0tsjbm335zdSrxoIaPrvnaC0ZO90E4R0BAryz/DNBf1Xk 4uXewGxMt59ywzRzKYe9Sg5MW/1D+qOEcPJSNDsqA2tPhHGRR3tQv/3Vc/KgxowlblUE jD5EEh5EFg8Ap2un6jjSDf28uKA/UFC2HCfF2qMrAJ2tpp+oVmi8qIZ2NgdIPz5pMe0G vXDgeVWOEnNy9QzxTdSrTMNVYp3zpkO/r2ZX4VyjwI83ZMfxYMu5nW0P+szh35dAp70N GeujAreaZvXUQkxn6g619U6cKWsE6vn8mL7ia165D5ppBIwZZD9A9VhJ2Cn1H5HO98gJ L1iw== X-Gm-Message-State: AOJu0Ywo1heX9kM1KRGxYapEq9d6YSLvvz8G41+UeFIWUgIgLDN37GGl rJp/Cx0nyGdgAVBAl6SyPK/JSJdde71gbbEY4celSq+HtyfiQm9ECHPV3EM9JpXpIUw0sC+Cc9K oi5o= X-Google-Smtp-Source: AGHT+IFg0BC60KRJ0iKdaQiPenqb6LUC2lv2mkXP+oxoUsazpGc69tpH+r34X5r/gUeHp8sS1DjYMA== X-Received: by 2002:a05:6000:1885:b0:343:bb92:c7d0 with SMTP id a5-20020a056000188500b00343bb92c7d0mr9612483wri.12.1712607236588; Mon, 08 Apr 2024 13:13:56 -0700 (PDT) Received: from euler.schwinge.homeip.net (p200300c8b70ce600fbf8323f8abe0da4.dip0.t-ipconnect.de. [2003:c8:b70c:e600:fbf8:323f:8abe:da4]) by smtp.gmail.com with ESMTPSA id cg6-20020a5d5cc6000000b00345e730aa7csm1924191wrb.11.2024.04.08.13.13.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 13:13:55 -0700 (PDT) From: Thomas Schwinge To: gcc-patches@gcc.gnu.org Cc: Mike Stump , Jakub Jelinek , Richard Biener , Rainer Orth , Jeff Law Subject: New effective-target 'asm_goto_with_outputs' (was: [PATCH] testsuite: Fix up lra effective target) In-Reply-To: <87ttkzompl.fsf@euler.schwinge.ddns.net> References: <2357E81F-095F-4D98-8FE9-767107359BF8@comcast.net> <87ttkzompl.fsf@euler.schwinge.ddns.net> User-Agent: Notmuch/0.30+8~g47a4bad (https://notmuchmail.org) Emacs/29.2 (x86_64-pc-linux-gnu) Date: Mon, 08 Apr 2024 22:13:53 +0200 Message-ID: <87wmp7mx32.fsf@euler.schwinge.ddns.net> MIME-Version: 1.0 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Hi! On 2024-03-21T12:20:38+0100, I wrote: > On 2024-02-16T10:48:53-0800, Mike Stump wrote: >> On Feb 16, 2024, at 2:16 AM, Jakub Jelinek wrote: >>> >>> There is one special case, NVPTX, which is a TARGET_NO_REGISTER_ALLOCATION >>> target. I think claiming for it that it is a lra target is strange (even >>> though it effectively returns true for targetm.lra_p ()), unsure if it >>> supports asm goto with outputs or not, if it does and we want to test it, >>> perhaps we should introduce asm_goto_outputs effective target and use >>> lra || nvptx-*-* for that? >> >> Since the port people have to maintain that code in general, I usually leave it to them to try and select a cheap, maintainable way to manage it. >> >> If people want to pave the way, I'd tend to defer to them, having thought about more than I. > > Here I am. ;-) > > After commit e16f90be2dc8af6c371fe79044c3e668fa3dda62 > "testsuite: Fix up lra effective target", we get for nvptx target: > > -PASS: gcc.c-torture/compile/asmgoto-2.c -O0 (test for excess errors) > +ERROR: gcc.c-torture/compile/asmgoto-2.c -O0 : no files matched glob pattern "lra1020113.c.[0-9][0-9][0-9]r.reload" for " dg-do 2 compile { target lra } " > > Etc. > > That is, the current effective-target 'lra' is not suitable for nvptx -- > which, I suppose, is OK, given that nvptx neither uses LRA nor doesn't > use LRA. ;-) (Therefore, effective-target 'lra' shouldn't get used in > test cases that are active for nvptx.) > > However, nvptx appears to support 'asm goto' with outputs, including the > new execution test case: > > PASS: gcc.dg/pr107385.c execution test > > I'm attaching "[WIP] New effective-target 'asm_goto_with_outputs'", which > does address the effective-target check for nvptx, and otherwise does > 's%lra%asm_goto_with_outputs'. (I have not yet actually merged > 'check_effective_target_lra' into > 'check_effective_target_asm_goto_with_outputs'.) > > I have verified that all current effective-target 'lra' test cases > actually use 'asm goto' with outputs, there is just one exception: > 'gcc.dg/pr110079.c' (see > > "bb-reorder: Fix -freorder-blocks-and-partition ICEs on aarch64 with asm goto [PR110079]", > > "ICE with -freorder-blocks-and-partition and inline-asm goto"). That > test case, 'gcc.dg/pr110079.c', currently uses 'target lra', and uses > 'asm goto' -- but not with outputs, so is 'asm_goto_with_outputs' not > really applicable? The test case does PASS for nvptx target (but I've > not verified what it's actually doing/testing). How to handle that one? I've now pushed a v2 version to trunk branch in commit 3fa8bff30ab58bd8b8018764d390ec2fcc8153bb "New effective-target 'asm_goto_with_outputs'", see attached. Grüße Thomas From 3fa8bff30ab58bd8b8018764d390ec2fcc8153bb Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 4 Mar 2024 16:04:11 +0100 Subject: [PATCH] New effective-target 'asm_goto_with_outputs' After commit e16f90be2dc8af6c371fe79044c3e668fa3dda62 "testsuite: Fix up lra effective target", we get for nvptx target: -PASS: gcc.c-torture/compile/asmgoto-2.c -O0 (test for excess errors) +ERROR: gcc.c-torture/compile/asmgoto-2.c -O0 : no files matched glob pattern "lra1020113.c.[0-9][0-9][0-9]r.reload" for " dg-do 2 compile { target lra } " Etc. However, nvptx appears to support 'asm goto' with outputs, including the new execution test case: PASS: gcc.dg/pr107385.c execution test Therefore, generally use new effective-target 'asm_goto_with_outputs' instead of 'lra'. One exceptions is 'gcc.dg/pr110079.c', which doesn't use 'asm goto' with outputs, and continues using effective-target 'lra', with special-casing nvptx target, to avoid ERROR for 'lra'. gcc/ * doc/sourcebuild.texi (Effective-Target Keywords): Document 'asm_goto_with_outputs'. Add comment to 'lra'. gcc/testsuite/ * lib/target-supports.exp (check_effective_target_lra): Add comment. (check_effective_target_asm_goto_with_outputs): New. * gcc.c-torture/compile/asmgoto-2.c: Use it. * gcc.c-torture/compile/asmgoto-5.c: Likewise. * gcc.c-torture/compile/asmgoto-6.c: Likewise. * gcc.c-torture/compile/pr98096.c: Likewise. * gcc.dg/pr100590.c: Likewise. * gcc.dg/pr107385.c: Likewise. * gcc.dg/pr108095.c: Likewise. * gcc.dg/pr97954.c: Likewise. * gcc.dg/torture/pr100329.c: Likewise. * gcc.dg/torture/pr100398.c: Likewise. * gcc.dg/torture/pr100519.c: Likewise. * gcc.dg/torture/pr110422.c: Likewise. * gcc.dg/pr110079.c: Special-case nvptx target. --- gcc/doc/sourcebuild.texi | 6 ++++++ gcc/testsuite/gcc.c-torture/compile/asmgoto-2.c | 2 +- gcc/testsuite/gcc.c-torture/compile/asmgoto-5.c | 2 +- gcc/testsuite/gcc.c-torture/compile/asmgoto-6.c | 3 +-- gcc/testsuite/gcc.c-torture/compile/pr98096.c | 2 +- gcc/testsuite/gcc.dg/pr100590.c | 2 +- gcc/testsuite/gcc.dg/pr107385.c | 2 +- gcc/testsuite/gcc.dg/pr108095.c | 2 +- gcc/testsuite/gcc.dg/pr110079.c | 2 +- gcc/testsuite/gcc.dg/pr97954.c | 2 +- gcc/testsuite/gcc.dg/torture/pr100329.c | 2 +- gcc/testsuite/gcc.dg/torture/pr100398.c | 2 +- gcc/testsuite/gcc.dg/torture/pr100519.c | 2 +- gcc/testsuite/gcc.dg/torture/pr110422.c | 2 +- gcc/testsuite/lib/target-supports.exp | 13 ++++++++++++- 15 files changed, 31 insertions(+), 15 deletions(-) diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 7ef82fc9b00..7c0df90e822 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -2871,6 +2871,9 @@ Target supports weak undefined symbols @item R_flag_in_section Target supports the 'R' flag in .section directive in assembly inputs. +@item asm_goto_with_outputs +Target supports 'asm goto' with outputs. + @item automatic_stack_alignment Target supports automatic stack alignment. @@ -2945,6 +2948,9 @@ Target is using an LLVM assembler and/or linker, instead of GNU Binutils. @item lra Target supports local register allocator (LRA). +This must not be called (results in @code{ERROR}) for targets that +don't do register allocation, and therefore neither use nor don't use +LRA. @item lto Compiler has been configured to support link-time optimization (LTO). diff --git a/gcc/testsuite/gcc.c-torture/compile/asmgoto-2.c b/gcc/testsuite/gcc.c-torture/compile/asmgoto-2.c index 43e597bc59f..234c90e5295 100644 --- a/gcc/testsuite/gcc.c-torture/compile/asmgoto-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/asmgoto-2.c @@ -1,5 +1,5 @@ /* This test should be switched off for a new target with less than 4 allocatable registers */ -/* { dg-do compile { target lra } } */ +/* { dg-do compile { target asm_goto_with_outputs } } */ int foo (void) { diff --git a/gcc/testsuite/gcc.c-torture/compile/asmgoto-5.c b/gcc/testsuite/gcc.c-torture/compile/asmgoto-5.c index e1574a2903a..af1ba5a7001 100644 --- a/gcc/testsuite/gcc.c-torture/compile/asmgoto-5.c +++ b/gcc/testsuite/gcc.c-torture/compile/asmgoto-5.c @@ -1,5 +1,5 @@ /* Test to generate output reload in asm goto on x86_64. */ -/* { dg-do compile { target lra } } */ +/* { dg-do compile { target asm_goto_with_outputs } } */ /* { dg-skip-if "no O0" { { i?86-*-* x86_64-*-* } && { ! ia32 } } { "-O0" } { "" } } */ #if defined __x86_64__ diff --git a/gcc/testsuite/gcc.c-torture/compile/asmgoto-6.c b/gcc/testsuite/gcc.c-torture/compile/asmgoto-6.c index 6799b83c20a..cb3c7d711a6 100644 --- a/gcc/testsuite/gcc.c-torture/compile/asmgoto-6.c +++ b/gcc/testsuite/gcc.c-torture/compile/asmgoto-6.c @@ -1,5 +1,4 @@ - -/* { dg-do compile { target lra } } */ +/* { dg-do compile { target asm_goto_with_outputs } } */ /* PR middle-end/110420 */ /* PR middle-end/103979 */ /* PR middle-end/98619 */ diff --git a/gcc/testsuite/gcc.c-torture/compile/pr98096.c b/gcc/testsuite/gcc.c-torture/compile/pr98096.c index bba3fa5c619..3a1b6159c2e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr98096.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr98096.c @@ -1,6 +1,6 @@ /* Test for correct naming of label operands in asm goto in case of presence of input/output operands. */ -/* { dg-do compile { target lra } } */ +/* { dg-do compile { target asm_goto_with_outputs } } */ int i, j; int f(void) { asm goto ("# %0 %2" : "+r" (i) ::: jmp); diff --git a/gcc/testsuite/gcc.dg/pr100590.c b/gcc/testsuite/gcc.dg/pr100590.c index 8d1e1a0d306..64cb717ed0e 100644 --- a/gcc/testsuite/gcc.dg/pr100590.c +++ b/gcc/testsuite/gcc.dg/pr100590.c @@ -1,5 +1,5 @@ /* PR rtl-optimization/100590 */ -/* { dg-do compile { target lra } } */ +/* { dg-do compile { target asm_goto_with_outputs } } */ /* { dg-options "-O1 -fno-dce -w" } */ int diff --git a/gcc/testsuite/gcc.dg/pr107385.c b/gcc/testsuite/gcc.dg/pr107385.c index 0cc0655d848..690ad3c1b5e 100644 --- a/gcc/testsuite/gcc.dg/pr107385.c +++ b/gcc/testsuite/gcc.dg/pr107385.c @@ -1,5 +1,5 @@ /* PR middle-end/107385 */ -/* { dg-do run { target lra } } */ +/* { dg-do run { target asm_goto_with_outputs } } */ /* { dg-options "-O2" } */ __attribute__((noipa)) int diff --git a/gcc/testsuite/gcc.dg/pr108095.c b/gcc/testsuite/gcc.dg/pr108095.c index 0a487cf614a..115ea73e39b 100644 --- a/gcc/testsuite/gcc.dg/pr108095.c +++ b/gcc/testsuite/gcc.dg/pr108095.c @@ -1,5 +1,5 @@ /* PR tree-optimization/108095 */ -/* { dg-do compile { target lra } } */ +/* { dg-do compile { target asm_goto_with_outputs } } */ /* { dg-options "-Os -g" } */ int v; diff --git a/gcc/testsuite/gcc.dg/pr110079.c b/gcc/testsuite/gcc.dg/pr110079.c index 1682f9c2344..f87064d5f2c 100644 --- a/gcc/testsuite/gcc.dg/pr110079.c +++ b/gcc/testsuite/gcc.dg/pr110079.c @@ -1,5 +1,5 @@ /* PR rtl-optimization/110079 */ -/* { dg-do compile { target lra } } */ +/* { dg-do compile { target { nvptx-*-* || lra } } } */ /* { dg-options "-O2" } */ /* { dg-additional-options "-freorder-blocks-and-partition" { target freorder } } */ diff --git a/gcc/testsuite/gcc.dg/pr97954.c b/gcc/testsuite/gcc.dg/pr97954.c index 0be60f500b6..619bed3b40c 100644 --- a/gcc/testsuite/gcc.dg/pr97954.c +++ b/gcc/testsuite/gcc.dg/pr97954.c @@ -1,5 +1,5 @@ /* PR rtl-optimization/97954 */ -/* { dg-do compile { target lra } } */ +/* { dg-do compile { target asm_goto_with_outputs } } */ /* { dg-options "-O2" } */ int diff --git a/gcc/testsuite/gcc.dg/torture/pr100329.c b/gcc/testsuite/gcc.dg/torture/pr100329.c index 2a4331ba712..5759131a6ca 100644 --- a/gcc/testsuite/gcc.dg/torture/pr100329.c +++ b/gcc/testsuite/gcc.dg/torture/pr100329.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target lra } } */ +/* { dg-do compile { target asm_goto_with_outputs } } */ /* { dg-additional-options "--param tree-reassoc-width=2" } */ unsigned int a0; diff --git a/gcc/testsuite/gcc.dg/torture/pr100398.c b/gcc/testsuite/gcc.dg/torture/pr100398.c index 4fc1168d22f..eeeaf98e15b 100644 --- a/gcc/testsuite/gcc.dg/torture/pr100398.c +++ b/gcc/testsuite/gcc.dg/torture/pr100398.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target lra } } */ +/* { dg-do compile { target asm_goto_with_outputs } } */ int test5_limit (void) diff --git a/gcc/testsuite/gcc.dg/torture/pr100519.c b/gcc/testsuite/gcc.dg/torture/pr100519.c index 89dff668a97..b82ce46c529 100644 --- a/gcc/testsuite/gcc.dg/torture/pr100519.c +++ b/gcc/testsuite/gcc.dg/torture/pr100519.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target lra } } */ +/* { dg-do compile { target asm_goto_with_outputs } } */ /* { dg-additional-options "--param tree-reassoc-width=2" } */ unsigned int foo_a1, foo_a2; diff --git a/gcc/testsuite/gcc.dg/torture/pr110422.c b/gcc/testsuite/gcc.dg/torture/pr110422.c index 2a653bdfce3..34de7a2980f 100644 --- a/gcc/testsuite/gcc.dg/torture/pr110422.c +++ b/gcc/testsuite/gcc.dg/torture/pr110422.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target lra } } */ +/* { dg-do compile { target asm_goto_with_outputs } } */ struct T { int x; }; int foo(void) { diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 45435586de2..49f2482686a 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -13204,7 +13204,9 @@ proc check_effective_target_powerpc_as_p10_htm { } { }] } -# return 1 if LRA is supported. +# Return 1 if LRA is supported. This must not be called (results in ERROR) for +# targets that don't do register allocation, and therefore neither use nor +# don't use LRA. proc check_effective_target_lra { } { # Start with heavily used targets which are known to always use LRA. @@ -13220,6 +13222,15 @@ proc check_effective_target_lra { } { } {-O2 -fdump-rtl-reload-details}] ;# LRA notes requires a detailed dump. } +# Return 1 if 'asm goto' with outputs is supported, 0 otherwise. + +proc check_effective_target_asm_goto_with_outputs { } { + if { [istarget nvptx-*-*] } { + return 1 + } + return [check_effective_target_lra] +} + # Test whether optimizations are enabled ('__OPTIMIZE__') per the # 'current_compiler_flags' (thus don't cache). -- 2.34.1