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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [gomp/] [flush-1.c] - Blame information for rev 867

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

Line No. Rev Author Line
1 149 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, y, z;
10
 
11
void f2(_Bool p)
12
{
13
  if (p)
14
    {
15
      #pragma omp flush (x)
16
    }
17
  else
18
    {
19
      #pragma omp flush (x, y, z)
20
    }
21
}
22
 
23
/* { dg-final { scan-tree-dump-times "__sync_synchronize" 3 "gimple" } } */
24
/* { 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.