diff --git a/libgomp/testsuite/libgomp.c-c++-common/pr109062.c b/libgomp/testsuite/libgomp.c-c++-common/pr109062.c index 5c7c287dafd7..cb05c333e0e9 100644 --- a/libgomp/testsuite/libgomp.c-c++-common/pr109062.c +++ b/libgomp/testsuite/libgomp.c-c++-common/pr109062.c @@ -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-*-* } } } } } */