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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [atomic-7.C] - Blame information for rev 825

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

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

powered by: WebSVN 2.1.0

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