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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr39431.c] - Blame information for rev 848

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

Line No. Rev Author Line
1 691 jeremybenn
/* PR target/39431 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
/* { dg-options "-O2 -march=i686 -fpic" { target { ia32 && fpic } } } */
5
 
6
extern void bar (char *, int);
7
 
8
int
9
foo (long long *p, long long oldv, long long *q, int n)
10
{
11
  char buf[n];
12
  bar (buf, n);
13
  p[256 + n] = __sync_val_compare_and_swap (p + n, oldv, oldv + 6);
14
  return __sync_bool_compare_and_swap (q + n, oldv, oldv + 8);
15
}

powered by: WebSVN 2.1.0

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