a152954ea4
Add pr85381*.c test-cases that are already passing without the fix for PR85381. Build and reg-tested on x86_64 with nvptx accelerator. 2018-12-19 Tom de Vries <tdevries@suse.de> * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test. * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test. * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test. From-SVN: r267268
36 lines
545 B
C
36 lines
545 B
C
/* { dg-additional-options "-save-temps -w" } */
|
|
/* { dg-do run { target openacc_nvidia_accel_selected } }
|
|
{ dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
|
|
|
|
int a;
|
|
#pragma acc declare create(a)
|
|
|
|
#pragma acc routine vector
|
|
void __attribute__((noinline, noclone))
|
|
foo_v (void)
|
|
{
|
|
a = 1;
|
|
}
|
|
|
|
#pragma acc routine worker
|
|
void __attribute__((noinline, noclone))
|
|
foo_w (void)
|
|
{
|
|
a = 2;
|
|
}
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
|
|
#pragma acc parallel
|
|
foo_v ();
|
|
|
|
#pragma acc parallel
|
|
foo_w ();
|
|
|
|
return 0;
|
|
}
|
|
|
|
/* { dg-final { scan-assembler-not "bar.sync" } } */
|