00908992f2
After the fix for "PR tree-optimization/89713 - Assume loop with an exit is finite" ( r272234 ) empty oacc loops are removed before expand. Update pr85381-{2,4}.c accordingly. 2019-06-15 Tom de Vries <tdevries@suse.de> PR tree-optimization/89713 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync. * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same. From-SVN: r272324
25 lines
435 B
C
25 lines
435 B
C
/* { dg-additional-options "-save-temps -w" } */
|
|
/* { dg-do run { target openacc_nvidia_accel_selected } }
|
|
{ dg-skip-if "" { *-*-* } { "*" } { "-O2" } } */
|
|
|
|
#define n 1024
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
#pragma acc parallel
|
|
{
|
|
#pragma acc loop worker
|
|
for (int i = 0; i < n; i++)
|
|
;
|
|
|
|
#pragma acc loop worker
|
|
for (int i = 0; i < n; i++)
|
|
;
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
/* { dg-final { scan-assembler-times "bar.sync" 0 } } */
|