testsuite: Fix asm-goto-with-outputs tests; limit to lra targets

Message ID 20230208204551.0D78A2040B@pchp3.se.axis.com
State Repeat Merge
Headers
Series testsuite: Fix asm-goto-with-outputs tests; limit to lra targets |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Hans-Peter Nilsson Feb. 8, 2023, 8:45 p.m. UTC
  Sanity-checked for cris-elf with the
check_effective_target_lra correction in
https://gcc.gnu.org/pipermail/gcc-patches/2023-February/611531.html
Committed as obvious.

--- 8< ---
These tests spuriously lacked a "lra" limiter.  Code using
"asm goto" with outputs gets a:
 error: the target does not support 'asm goto' with outputs in 'asm'
compilation error when compiled for a non-LRA target.  Limit
to LRA targets as other asm-goto-with-outputs tests.

	* gcc.dg/torture/pr100398.c: Limit to lra targets.
	* gcc.dg/pr100590.c: Ditto.
---
 gcc/testsuite/gcc.dg/pr100590.c         | 2 +-
 gcc/testsuite/gcc.dg/torture/pr100398.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gcc/testsuite/gcc.dg/pr100590.c b/gcc/testsuite/gcc.dg/pr100590.c
index 5cd36877fa1d..8d1e1a0d3064 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 } */
+/* { dg-do compile { target lra } } */
 /* { dg-options "-O1 -fno-dce -w" } */
 
 int
diff --git a/gcc/testsuite/gcc.dg/torture/pr100398.c b/gcc/testsuite/gcc.dg/torture/pr100398.c
index 41eaddee27e4..4fc1168d22fd 100644
--- a/gcc/testsuite/gcc.dg/torture/pr100398.c
+++ b/gcc/testsuite/gcc.dg/torture/pr100398.c
@@ -1,4 +1,4 @@ 
-/* { dg-do compile } */
+/* { dg-do compile { target lra } } */
 
 int
 test5_limit (void)