diff mbox series

Add dg-require to existing powerpc/pr93122.c test

Message ID 8831ae95c306a729253ba28053525d2ee2918cd3.camel@vnet.ibm.com
State New
Headers show
Series Add dg-require to existing powerpc/pr93122.c test | expand

Commit Message

will schmidt March 3, 2020, 3:42 p.m. UTC
Add dg-require to existing pr93122.c test
    
Hi,
  This test (gcc.target/powerpc/pr93122.c) uses the
-mcpu=future option.  It should also ensure the
target can support the same.
Thus, add a dg-requires clause to indicate
a future target is supported on the platform.

Sniff tested successfully.  (mostly obvious).

OK for master?

Thanks
-Will


2020-03-03  Will Schmidt  <will_schmidt@vnet.ibm.com>

testsuite/

	* gcc.target/powerpc/pr93122.c: Add dg-require.

Comments

Segher Boessenkool March 4, 2020, 12:31 a.m. UTC | #1
Hi!

On Tue, Mar 03, 2020 at 09:42:10AM -0600, will schmidt wrote:
>   This test (gcc.target/powerpc/pr93122.c) uses the
> -mcpu=future option.  It should also ensure the
> target can support the same.
> Thus, add a dg-requires clause to indicate
> a future target is supported on the platform.
> 
> Sniff tested successfully.  (mostly obvious).
> 
> OK for master?

Okay for trunk.  Thanks!


Segher
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/powerpc/pr93122.c b/gcc/testsuite/gcc.target/powerpc/pr93122.c
index 701711a..a440a05 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr93122.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr93122.c
@@ -1,6 +1,7 @@ 
 /* PR target/93122 */
+/* { dg-require-effective-target powerpc_future_ok } */
 /* { dg-do compile { target lp64 } } */
 /* { dg-options "-fstack-clash-protection -mprefixed -mfuture" } */
 
 void bar (char *);