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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.c/] [pr48591.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 735 jeremybenn
/* PR middle-end/48591 */
2
/* { dg-do run { target i?86-*-linux* x86_64-*-linux* ia64-*-linux* } } */
3
/* { dg-options "-fopenmp" } */
4
 
5
extern void abort (void);
6
 
7
int
8
main ()
9
{
10
  __float128 f = 0.0;
11
  int i;
12
  #pragma omp parallel for reduction(+:f)
13
    for (i = 0; i < 128; i++)
14
      f += 0.5Q;
15
  if (f != 64.0Q)
16
    abort ();
17
  #pragma omp atomic
18
    f += 8.5Q;
19
  if (f != 72.5Q)
20
    abort ();
21
  return 0;
22
}

powered by: WebSVN 2.1.0

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