Commit b4e9f2aa by Martin Jambor Committed by Martin Jambor

[hsa testsuite] Suppress hsa warnings in compiler gomp tests

2016-03-07  Martin Jambor  <mjambor@suse.cz>

	* c-c++-common/gomp/clauses-1.c: Remove dg-options.
	* c-c++-common/gomp/if-1.c: Likewise.
	* c-c++-common/gomp/pr61486-2.c: Likewise.
	* c-c++-common/gomp/target-teams-1.c: Moved dg-options except -fopenmp
	to dg-additional-options.
	* g++.dg/gomp/gomp.exp: Pass -Wno-hsa to all tests.
	* g++/gomp/target-teams-1.c: Likewise.
	* gcc.dg/gomp/gomp.exp: Likewise.
	* gcc.dg/gomp/pr68128-2.c: Moved dg-options except -fopenmp to
	dg-additional-options.
	* gfortran.dg/gomp/gomp.exp: Likewise.
	* gfortran.dg/gomp/target1.f90: Remove dg-options.
	* gfortran.dg/gomp/target2.f90: Moved dg-options except -fopenmp to
	dg-additional-options.
	* gfortran.dg/gomp/target3.f90: Remove dg-options.

From-SVN: r234044
parent f86e631e
2016-03-07 Martin Jambor <mjambor@suse.cz>
* c-c++-common/gomp/clauses-1.c: Remove dg-options.
* c-c++-common/gomp/if-1.c: Likewise.
* c-c++-common/gomp/pr61486-2.c: Likewise.
* c-c++-common/gomp/target-teams-1.c: Moved dg-options except -fopenmp
to dg-additional-options.
* g++.dg/gomp/gomp.exp: Pass -Wno-hsa to all tests.
* g++/gomp/target-teams-1.c: Likewise.
* gcc.dg/gomp/gomp.exp: Likewise.
* gcc.dg/gomp/pr68128-2.c: Moved dg-options except -fopenmp to
dg-additional-options.
* gfortran.dg/gomp/gomp.exp: Likewise.
* gfortran.dg/gomp/target1.f90: Remove dg-options.
* gfortran.dg/gomp/target2.f90: Moved dg-options except -fopenmp to
dg-additional-options.
* gfortran.dg/gomp/target3.f90: Remove dg-options.
2016-03-07 Martin Jambor <mjambor@suse.cz>
* lib/target-supports.exp (check_effective_target_offload_hsa): New.
* c-c++-common/gomp/gridify-1.c: New test.
* gfortran.dg/gomp/gridify-1.f90: Likewise.
......
/* { dg-do compile } */
/* { dg-options "-fopenmp" } */
/* { dg-additional-options "-std=c99" { target c } } */
int t;
......
/* { dg-do compile } */
/* { dg-options "-fopenmp" } */
void
foo (int a, int b, int *p, int *q)
......
/* PR middle-end/61486 */
/* { dg-do compile } */
/* { dg-options "-fopenmp" } */
/* { dg-require-effective-target alloca } */
#pragma omp declare target
......
/* { dg-do compile } */
/* { dg-options "-fopenmp -fdump-tree-gimple" } */
/* { dg-additional-options "-fdump-tree-gimple" } */
int v = 6;
void bar (int);
......
......@@ -29,7 +29,7 @@ dg-init
# Main loop.
g++-dg-runtest [lsort [concat \
[find $srcdir/$subdir *.C] \
[find $srcdir/c-c++-common/gomp *.c]]] "" "-fopenmp"
[find $srcdir/c-c++-common/gomp *.c]]] "" "-fopenmp -Wno-hsa"
# All done.
dg-finish
// { dg-do compile }
// { dg-options "-fopenmp -fdump-tree-gimple" }
// { dg-additional-options "-fdump-tree-gimple" }
int v = 6;
void bar (int);
......
......@@ -31,7 +31,7 @@ dg-init
# Main loop.
dg-runtest [lsort [concat \
[find $srcdir/$subdir *.c] \
[find $srcdir/c-c++-common/gomp *.c]]] "" "-fopenmp"
[find $srcdir/c-c++-common/gomp *.c]]] "" "-fopenmp -Wno-hsa"
# All done.
dg-finish
/* PR tree-optimization/68128 */
/* { dg-do compile } */
/* { dg-options "-O2 -fopenmp -fdump-tree-omplower" } */
/* { dg-additional-options "-O2 -fdump-tree-omplower" } */
extern int omp_get_thread_num (void);
extern int omp_get_ancestor_thread_num (int);
......
......@@ -30,7 +30,7 @@ dg-init
# Main loop.
gfortran-dg-runtest [lsort \
[find $srcdir/$subdir *.\[fF\]{,90,95,03,08} ] ] "" "-fopenmp"
[find $srcdir/$subdir *.\[fF\]{,90,95,03,08} ] ] "" "-fopenmp -Wno-hsa"
# All done.
dg-finish
! { dg-do compile }
! { dg-options "-fopenmp" }
module target1
interface
......
! { dg-do compile }
! { dg-options "-fopenmp -ffree-line-length-160" }
! { dg-additional-options "-ffree-line-length-160" }
subroutine foo (n, s, t, u, v, w)
integer :: n, i, s, t, u, v, w
......
! { dg-do compile }
! { dg-options "-fopenmp" }
subroutine foo (r)
integer :: i, r
......
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