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.target/] [i386/] [pr39431.c] - Rev 378

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

/* PR target/39431 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-options "-O2 -march=i686 -fpic" { target { ilp32 && fpic } } } */
 
extern void bar (char *, int);
 
int
foo (long long *p, long long oldv, long long *q, int n)
{
  char buf[n];
  bar (buf, n);
  p[256 + n] = __sync_val_compare_and_swap (p + n, oldv, oldv + 6);
  return __sync_bool_compare_and_swap (q + n, oldv, oldv + 8);
}
 

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

powered by: WebSVN 2.1.0

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