Debian Codegraph @

libgomp/testsuite/libgomp.c-c++-common/pr109062.c

raw
1 /* { dg-do run } */
2
3 #include <omp.h>
4 #include <stdlib.h>
5
6 int
7 main ()
8 {
9 omp_display_env (1);
10
11 return 0;
12 }
13
14 /* On hybrid x86-64, i.e. with P and E cores, the default is GOMP_SPINCOUNT=1;
15 hence, handle either value; see PR109812. */
16 /* { dg-output ".*\\\[host] GOMP_SPINCOUNT = '(?:300000|1)'.*" { target { native && { x86_64-*-* i?86-*-* } } } } */
17
18 /* { dg-output ".*\\\[host] GOMP_SPINCOUNT = '300000'.*" { target { native && { ! { x86_64-*-* i?86-*-* } } } } } */