Commit 2efd67ed by Nathan Sidwell Committed by Nathan Sidwell

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
parent 1988b2c2
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>
......
......@@ -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
......
/* 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;
......
......@@ -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);
......
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment