]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Fix asm-goto-with-outputs tests; limit to lra targets
authorHans-Peter Nilsson <hp@axis.com>
Tue, 7 Feb 2023 18:46:29 +0000 (19:46 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Wed, 8 Feb 2023 20:44:10 +0000 (21:44 +0100)
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
gcc/testsuite/gcc.dg/torture/pr100398.c

index 5cd36877fa1db25c7e7e7e9d2735df9094b0bf84..8d1e1a0d3064f3bfaf867d4258c8ecd677be4649 100644 (file)
@@ -1,5 +1,5 @@
 /* PR rtl-optimization/100590 */
-/* { dg-do compile } */
+/* { dg-do compile { target lra } } */
 /* { dg-options "-O1 -fno-dce -w" } */
 
 int
index 41eaddee27e42492667a9998389f5997ed4df412..4fc1168d22fddeb3153cc47bff1762d25cd7b3e8 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target lra } } */
 
 int
 test5_limit (void)