URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [c-c++-common/] [gomp/] [atomic-10.c] - Rev 709
Go to most recent revision | Compare with Previous | Blame | View Log
/* PR middle-end/28046 */ /* { dg-do compile } */ /* { dg-options "-fopenmp -fdump-tree-ompexp" } */ /* { dg-require-effective-target cas_int } */ int a[3], b; struct C { int x; int y; } c; int bar (void), *baz (void); void foo (void) { #pragma omp atomic a[2] += bar (); #pragma omp atomic b += bar (); #pragma omp atomic c.y += bar (); #pragma omp atomic *baz () += bar (); } /* { dg-final { scan-tree-dump-times "__atomic_fetch_add" 4 "ompexp" } } */ /* { dg-final { cleanup-tree-dump "ompexp" } } */
Go to most recent revision | Compare with Previous | Blame | View Log