]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: gcc.dg/pr108117.c: Require effective-target scheduling
authorHans-Peter Nilsson <hp@axis.com>
Fri, 10 Mar 2023 16:38:42 +0000 (17:38 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Fri, 10 Mar 2023 22:47:39 +0000 (23:47 +0100)
Targets that don't support scheduling get a warning:
cc1: warning: instruction scheduling not supported on this target machine

Do like other target-generic tests unconditionally passing
-fschedule-insns: require effective target scheduling.

* gcc.dg/pr108117.c: Require effective-target scheduling.

gcc/testsuite/gcc.dg/pr108117.c

index ae151693e2f9636024f3a0799509ccb346862231..4b3bebe229e579ad2c369f8d518af027dcfe1d38 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-require-effective-target nonlocal_goto } */
+/* { dg-require-effective-target scheduling } */
 /* { dg-options "-O2 -fschedule-insns" } */
 
 #include <stdio.h>