OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [atomic-2.c] - Blame information for rev 404

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
 
3
float x, y;
4
 
5
void f1(void)
6
{
7
  #pragma omp atomic
8
    x++;
9
  #pragma omp atomic
10
    x--;
11
  #pragma omp atomic
12
    ++x;
13
  #pragma omp atomic
14
    --x;
15
  #pragma omp atomic
16
    x += 1;
17
  #pragma omp atomic
18
    x -= y;
19
  #pragma omp atomic
20
    x *= 3;
21
  #pragma omp atomic
22
    x /= 3;
23
}

powered by: WebSVN 2.1.0

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