public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Tom de Vries <Tom_deVries@mentor.com>
To: GCC Patches <gcc-patches@gcc.gnu.org>
Cc: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>,
	Mike Stump	<mikestump@comcast.net>
Subject: [testsuite, PR81662, committed] Skip fpatchable-function-entry tests for nvptx
Date: Thu, 03 Aug 2017 07:17:00 -0000	[thread overview]
Message-ID: <9b7cba92-382d-4255-9983-2868726ad4f5@mentor.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 245 bytes --]

Hi,

fpatchable-function-entry requires nop, which nvptx does not have.

I've disabled the corresponding test for nvptx.

I suppose I could add an effective target has_nop, but I'm not sure if 
it's worth the trouble.

Committed.

Thanks,
- Tom

[-- Attachment #2: 0001-Skip-fpatchable-function-entry-tests-for-nvptx.patch --]
[-- Type: text/x-patch, Size: 2113 bytes --]

Skip fpatchable-function-entry tests for nvptx

2017-08-02  Tom de Vries  <tom@codesourcery.com>

	PR target/81662
	* c-c++-common/patchable_function_entry-decl.c: Skip for nvptx.
	* c-c++-common/patchable_function_entry-default.c: Same.
	* c-c++-common/patchable_function_entry-definition.c: Same.

---
 gcc/testsuite/c-c++-common/patchable_function_entry-decl.c       | 2 +-
 gcc/testsuite/c-c++-common/patchable_function_entry-default.c    | 2 +-
 gcc/testsuite/c-c++-common/patchable_function_entry-definition.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/c-c++-common/patchable_function_entry-decl.c b/gcc/testsuite/c-c++-common/patchable_function_entry-decl.c
index 8514b10..5c39a35 100644
--- a/gcc/testsuite/c-c++-common/patchable_function_entry-decl.c
+++ b/gcc/testsuite/c-c++-common/patchable_function_entry-decl.c
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { ! nvptx*-*-* } } } */
 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
 /* { dg-final { scan-assembler-times "nop" 2 } } */
 
diff --git a/gcc/testsuite/c-c++-common/patchable_function_entry-default.c b/gcc/testsuite/c-c++-common/patchable_function_entry-default.c
index 0dcf118..48094f7 100644
--- a/gcc/testsuite/c-c++-common/patchable_function_entry-default.c
+++ b/gcc/testsuite/c-c++-common/patchable_function_entry-default.c
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { ! nvptx*-*-* } } } */
 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
 /* { dg-final { scan-assembler-times "nop" 3 } } */
 
diff --git a/gcc/testsuite/c-c++-common/patchable_function_entry-definition.c b/gcc/testsuite/c-c++-common/patchable_function_entry-definition.c
index a007867..af8202f 100644
--- a/gcc/testsuite/c-c++-common/patchable_function_entry-definition.c
+++ b/gcc/testsuite/c-c++-common/patchable_function_entry-definition.c
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { ! nvptx*-*-* } } } */
 /* { dg-options "-O2 -fpatchable-function-entry=3,1" } */
 /* { dg-final { scan-assembler-times "nop" 1 } } */
 

             reply	other threads:[~2017-08-03  7:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-03  7:17 Tom de Vries [this message]
2017-08-03 11:23 ` [nvptx, PR 81662, committed] Error out on nvptx for fpatchable-function-entry Tom de Vries
2017-08-10 13:13   ` Thomas Schwinge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9b7cba92-382d-4255-9983-2868726ad4f5@mentor.com \
    --to=tom_devries@mentor.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=mikestump@comcast.net \
    --cc=ro@CeBiTec.Uni-Bielefeld.DE \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).