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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20061005-1.c] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* PR target/28924 */
/* PR target/28924 */
 
 
char c;
char c;
 
 
void
void
testc (void)
testc (void)
{
{
  (void) __sync_fetch_and_add (&c, -1);
  (void) __sync_fetch_and_add (&c, -1);
}
}
 
 
short s;
short s;
 
 
void
void
tests (void)
tests (void)
{
{
  (void) __sync_fetch_and_add (&s, -1);
  (void) __sync_fetch_and_add (&s, -1);
}
}
 
 
void
void
testc2 (void)
testc2 (void)
{
{
  (void) __sync_val_compare_and_swap (&c, -1, -3);
  (void) __sync_val_compare_and_swap (&c, -1, -3);
}
}
 
 

powered by: WebSVN 2.1.0

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