aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2016-05-17 21:28:11 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2016-05-17 21:28:11 +0000
commit2efd67ed19cbae6cd3112f9f9d9bb81c144baa24 (patch)
tree14ddb504ba0a30cb893bee3e61e089fec0a09ace
parent1988b2c22a3afda962e12ccf22ccd23398dce220 (diff)
downloadgcc-2efd67ed19cbae6cd3112f9f9d9bb81c144baa24.zip
gcc-2efd67ed19cbae6cd3112f9f9d9bb81c144baa24.tar.gz
gcc-2efd67ed19cbae6cd3112f9f9d9bb81c144baa24.tar.bz2
20030222-1.c: Skip on ptx.
* gcc.c-torture/execute/20030222-1.c: Skip on ptx. * gcc.dg/pr68671.c: Fix ptx xfail-if. * gcc.dg/torture/pr54261-1.c: Allocate atomic var statically. * gcc.dg/torture/type-generic-1.c: Enable UNSAFE for ptx. From-SVN: r236346
-rw-r--r--gcc/testsuite/ChangeLog7
-rw-r--r--gcc/testsuite/gcc.c-torture/execute/20030222-1.c1
-rw-r--r--gcc/testsuite/gcc.dg/pr68671.c2
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr54261-1.c5
-rw-r--r--gcc/testsuite/gcc.dg/torture/type-generic-1.c2
5 files changed, 14 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5e94e1e..e803bd6 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,12 @@
2016-05-17 Nathan Sidwell <nathan@acm.org>
+ * gcc.c-torture/execute/20030222-1.c: Skip on ptx.
+ * gcc.dg/pr68671.c: Fix ptx xfail-if.
+ * gcc.dg/torture/pr54261-1.c: Allocate atomic var statically.
+ * gcc.dg/torture/type-generic-1.c: Enable UNSAFE for ptx.
+
+2016-05-17 Nathan Sidwell <nathan@acm.org>
+
* gcc.target/nvptx/abi-vararg-3.c: New.
2016-05-17 Mikhail Maltsev <maltsevm@gmail.com>
diff --git a/gcc/testsuite/gcc.c-torture/execute/20030222-1.c b/gcc/testsuite/gcc.c-torture/execute/20030222-1.c
index 385ae68..a820cf2 100644
--- a/gcc/testsuite/gcc.c-torture/execute/20030222-1.c
+++ b/gcc/testsuite/gcc.c-torture/execute/20030222-1.c
@@ -4,6 +4,7 @@
actually truncated to int, in case a single register is wide enough
for a long long. */
/* { dg-skip-if "asm would require extra shift-left-4-byte" { spu-*-* } "*" "" } */
+/* { dg-skip-if "asm requires register allocation" { nvptx-*-* } "*" "" } */
#include <limits.h>
void
diff --git a/gcc/testsuite/gcc.dg/pr68671.c b/gcc/testsuite/gcc.dg/pr68671.c
index af08cdb..0950156 100644
--- a/gcc/testsuite/gcc.dg/pr68671.c
+++ b/gcc/testsuite/gcc.dg/pr68671.c
@@ -1,7 +1,7 @@
/* PR tree-optimization/68671 */
/* { dg-do run } */
/* { dg-options " -O2 -fno-tree-dce" } */
-/* { dg-xfail-if "ptxas crashes" { nvptx-*-* } { "" } { "" } } */
+/* { dg-xfail-if "ptxas crashes" { nvptx-*-* } { "*" } { "" } } */
volatile int a = -1;
volatile int b;
diff --git a/gcc/testsuite/gcc.dg/torture/pr54261-1.c b/gcc/testsuite/gcc.dg/torture/pr54261-1.c
index 571727b..071b323 100644
--- a/gcc/testsuite/gcc.dg/torture/pr54261-1.c
+++ b/gcc/testsuite/gcc.dg/torture/pr54261-1.c
@@ -32,7 +32,10 @@ void g (int *at, int val)
int main(void)
{
- int x = 41;
+ /* On PTX it is not valid to perform atomic operations on auto
+ variables, which end up in .local. Making this static places it
+ in .global. */
+ static int x = 41;
int a = 1;
g (&x, a);
diff --git a/gcc/testsuite/gcc.dg/torture/type-generic-1.c b/gcc/testsuite/gcc.dg/torture/type-generic-1.c
index 3897818..ef32b78 100644
--- a/gcc/testsuite/gcc.dg/torture/type-generic-1.c
+++ b/gcc/testsuite/gcc.dg/torture/type-generic-1.c
@@ -3,7 +3,7 @@
/* { dg-do run } */
/* { dg-skip-if "No Inf/NaN support" { spu-*-* } } */
-/* { dg-options "-DUNSAFE" { target tic6x*-*-* visium-*-* } } */
+/* { dg-options "-DUNSAFE" { target tic6x*-*-* visium-*-* nvptx-*-* } } */
/* { dg-add-options ieee } */
#include "../tg-tests.h"