public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Add dg-require to existing powerpc/pr93122.c test
@ 2020-03-03 15:42 will schmidt
  2020-03-04  0:31 ` Segher Boessenkool
  0 siblings, 1 reply; 2+ messages in thread
From: will schmidt @ 2020-03-03 15:42 UTC (permalink / raw)
  To: gcc-patches; +Cc: Segher Boessenkool, David Edelsohn

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.

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 *);
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Add dg-require to existing powerpc/pr93122.c test
  2020-03-03 15:42 Add dg-require to existing powerpc/pr93122.c test will schmidt
@ 2020-03-04  0:31 ` Segher Boessenkool
  0 siblings, 0 replies; 2+ messages in thread
From: Segher Boessenkool @ 2020-03-04  0:31 UTC (permalink / raw)
  To: will schmidt; +Cc: gcc-patches, David Edelsohn

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-04  0:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-03 15:42 Add dg-require to existing powerpc/pr93122.c test will schmidt
2020-03-04  0:31 ` Segher Boessenkool

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).