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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [libgomp/] [testsuite/] [libgomp.c/] [loop-4.c] - Blame information for rev 859

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 273 jeremybenn
/* { dg-do run } */
2
 
3
extern void abort (void);
4
 
5
int
6
main (void)
7
{
8
  int e = 0;
9
#pragma omp parallel num_threads (4) reduction(+:e)
10
  {
11
    long i;
12
    #pragma omp for schedule(dynamic,1)
13
    for (i = __LONG_MAX__ - 30001; i <= __LONG_MAX__ - 10001; i += 10000)
14
      if (i != __LONG_MAX__ - 30001
15
          && i != __LONG_MAX__ - 20001
16
          && i != __LONG_MAX__ - 10001)
17
        e = 1;
18
    #pragma omp for schedule(dynamic,1)
19
    for (i = -__LONG_MAX__ + 30000; i >= -__LONG_MAX__ + 10000; i -= 10000)
20
      if (i != -__LONG_MAX__ + 30000
21
          && i != -__LONG_MAX__ + 20000
22
          && i != -__LONG_MAX__ + 10000)
23
        e = 1;
24
  }
25
  if (e)
26
    abort ();
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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