libgomp.c-c++-common/pr109062.c: Fix expected spin count for hybrid x86

On my system with E and P cores (hybrid) x86, the spincount is by default 1
and not 300000, cf. PR109812 and r14-4571-ge1e127de18dbee.

Hence, this commit updates the expected value of the testcase to also
accept omp_display_env showing "GOMP_SPINCOUNT = '1'" - but only for
x86-64, which might be hybrid.

libgomp/ChangeLog:

	* testsuite/libgomp.c-c++-common/pr109062.c: Update dg-output
	to also accept GOMP_SPINCOUNT = 1 for x86-64.
This commit is contained in:
Tobias Burnus 2024-11-11 17:22:20 +01:00
parent 3d498cfe02
commit 5114789038

View file

@ -11,4 +11,8 @@ main ()
return 0;
}
/* { dg-output ".*\\\[host] GOMP_SPINCOUNT = '300000'.*" { target native } } */
/* On hybrid x86-64, i.e. with P and E cores, the default is GOMP_SPINCOUNT=1;
hence, handle either value; see PR109812. */
/* { dg-output ".*\\\[host] GOMP_SPINCOUNT = '(?:300000|1)'.*" { target { native && { x86_64-*-* i?86-*-* } } } } */
/* { dg-output ".*\\\[host] GOMP_SPINCOUNT = '300000'.*" { target { native && { ! { x86_64-*-* i?86-*-* } } } } } */