From 70888d0982d9c4df4f74cd6f06f943778af1d1eb Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Tue, 7 Feb 2023 19:46:29 +0100 Subject: [PATCH] testsuite: Fix asm-goto-with-outputs tests; limit to lra targets 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(-) diff --git a/gcc/testsuite/gcc.dg/pr100590.c b/gcc/testsuite/gcc.dg/pr100590.c index 5cd3687..8d1e1a0 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 41eadde..4fc1168 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) -- 2.7.4