gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/pr85381-4.c
Tom de Vries 00908992f2 [nvptx, libgomp] Update pr85381-{2,4}.c test-cases
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
2019-06-15 12:01:30 +00:00

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 } } */