diff mbox

[PTX] more test markup

Message ID 68444b3d-629e-3047-112d-3b2769d22edb@acm.org
State New
Headers show

Commit Message

Nathan Sidwell May 11, 2016, 3:54 p.m. UTC
I've applied this patch to markup some more tests on what they require.  Two 
crash the PTX assembler, so skip those.

nathan
diff mbox

Patch

2016-05-11  Nathan Sidwell  <nathan@acm.org>

	* gcc.dg/pr68671.c: Xfail on PTX -- assembler crash.
	* gcc.c-torture/execute/pr68185.c: Likewise.
	* gcc.dg/ipa/pr70306.c: Requires global constructors.
	* gcc.dg/pr69634.c: Requires scheduling.
	* gcc.dg/torture/pr66178.c: Require label values.
	* gcc.dg/setjmp-6.c: Require indirect jumps.

Index: gcc.dg/pr68671.c
===================================================================
--- gcc.dg/pr68671.c	(revision 236101)
+++ gcc.dg/pr68671.c	(working copy)
@@ -1,6 +1,7 @@ 
 /* PR tree-optimization/68671 */
 /* { dg-do run } */
 /* { dg-options " -O2 -fno-tree-dce" } */
+/* { dg-xfail-if "ptxas crashes" { nvptx-*-* } { "" } { "" } } */
 
 volatile int a = -1;
 volatile int b;
Index: gcc.dg/ipa/pr70306.c
===================================================================
--- gcc.dg/ipa/pr70306.c	(revision 236101)
+++ gcc.dg/ipa/pr70306.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-options "-O2 -fdump-ipa-icf" } */
 /* { dg-do run } */
+/* { dg-require-effective-target global_constructor } */
 
 int ctor_counter = 1;
 int dtor_counter;
Index: gcc.dg/pr69634.c
===================================================================
--- gcc.dg/pr69634.c	(revision 236101)
+++ gcc.dg/pr69634.c	(working copy)
@@ -1,6 +1,7 @@ 
 /* { dg-do compile } */
 /* { dg-options "-O2 -fno-dce -fschedule-insns -fno-tree-vrp -fcompare-debug" } */
 /* { dg-additional-options "-Wno-psabi -mno-sse" { target i?86-*-* x86_64-*-* } } */
+/* { dg-require-effective-target scheduling } */
 
 typedef unsigned short u16;
 typedef short v16u16 __attribute__ ((vector_size (16)));
Index: gcc.dg/torture/pr66178.c
===================================================================
--- gcc.dg/torture/pr66178.c	(revision 236101)
+++ gcc.dg/torture/pr66178.c	(working copy)
@@ -1,4 +1,6 @@ 
 /* { dg-do compile } */
+/* { dg-require-effective-target label_values } */
+
 int test(void)
 {
     static int a =  ((char *)&&l1-(char *)&&l2)-1;
Index: gcc.dg/setjmp-6.c
===================================================================
--- gcc.dg/setjmp-6.c	(revision 236101)
+++ gcc.dg/setjmp-6.c	(working copy)
@@ -1,6 +1,7 @@ 
 /* PR69569 */
 /* { dg-do compile } */
 /* { dg-options "-O3" } */
+/* { dg-require-effective-target indirect_jumps } */
 
 #include <setjmp.h>
 
Index: gcc.c-torture/execute/pr68185.c
===================================================================
--- gcc.c-torture/execute/pr68185.c	(revision 236101)
+++ gcc.c-torture/execute/pr68185.c	(working copy)
@@ -1,3 +1,5 @@ 
+/* { dg-xfail-if "ptxas crashes" { nvptx-*-* } { "-O0" } { "" } } */
+
 int a, b, d = 1, e, f, o, u, w = 1, z;
 short c, q, t;