* 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
+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.
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
/* 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;
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);
/* { 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"