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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [flush-1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fopenmp -fdump-tree-gimple" } */
3
 
4
void f1(void)
5
{
6
  #pragma omp flush
7
}
8
 
9
int x;
10
 
11
void f2(bool p)
12
{
13
  int z;
14
  if (p)
15
    {
16
      #pragma omp flush (x)
17
    }
18
  else
19
    {
20
      #pragma omp flush (x, z, p)
21
    }
22
}
23
 
24
/* { dg-final { scan-tree-dump-times "__sync_synchronize" 3 "gimple" } } */
25
/* { dg-final { cleanup-tree-dump "gimple" } } */

powered by: WebSVN 2.1.0

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