49188cd1f2
The goacc.exp test-cases nvptx-merged-loop.c and nvptx-sese-1.c are failing during linking due to missing libgomp.spec. Move them to the libgomp testsuite. Build and reg-tested on x86_64 with nvptx accelerator. 2018-12-19 Tom de Vries <tdevries@suse.de> * gcc.dg/goacc/nvptx-merged-loop.c: Move to libgomp/testsuite/libgomp.oacc-c-c++-common. * gcc.dg/goacc/nvptx-sese-1.c: Same. * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp. * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from gcc/testsuite/gcc.dg/goacc. * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same. From-SVN: r267267
31 lines
617 B
C
31 lines
617 B
C
/* { dg-do run { target openacc_nvidia_accel_selected } } */
|
|
/* { dg-options "-foffload=-fdump-rtl-mach" } */
|
|
/* { dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
|
|
|
|
#define N (32*32*32+17)
|
|
void __attribute__ ((noinline)) Foo (int *ary)
|
|
{
|
|
int ix;
|
|
|
|
#pragma acc parallel num_workers(32) vector_length(32) copyout(ary[0:N])
|
|
{
|
|
/* Loop partitioning should be merged. */
|
|
#pragma acc loop worker vector
|
|
for (unsigned ix = 0; ix < N; ix++)
|
|
{
|
|
ary[ix] = ix;
|
|
}
|
|
}
|
|
}
|
|
|
|
int main ()
|
|
{
|
|
int ary[N];
|
|
|
|
Foo (ary);
|
|
|
|
return 0;
|
|
}
|
|
|
|
/* { dg-final { scan-offload-rtl-dump "Merging loop .* into " "mach" } } */
|