OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [pr34610.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR gcov-profile/34610 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fprofile-arcs -fopenmp" } */
4
 
5
extern void bar (int);
6
extern void baz (int) __attribute__((noreturn));
7
 
8
void
9
foo (int k)
10
{
11
  int i;
12
#pragma omp for schedule(dynamic)
13
  for (i = 0; i < 10; ++i)
14
    bar (i);
15
#pragma omp parallel for schedule(static)
16
  for (i = 0; i < 10; ++i)
17
    bar (i);
18
#pragma omp parallel for schedule(static, 4)
19
  for (i = 0; i < 10; ++i)
20
    bar (i);
21
  if (k)
22
  #pragma omp for schedule(dynamic)
23
    for (i = 0; i < 10; ++i)
24
      baz (i);
25
#pragma omp parallel
26
  for (i = 0; i < 10; ++i)
27
    bar (i);
28
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.