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.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20061124-1.c] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* { dg-do run } */
/* { dg-do run } */
/* { dg-require-effective-target sync_char_short } */
/* { dg-require-effective-target sync_char_short } */
 
 
/* This testcase failed on s390 because no compare instruction for
/* This testcase failed on s390 because no compare instruction for
   the check of FLAG was emitted.  */
   the check of FLAG was emitted.  */
 
 
unsigned short int count = 0;
unsigned short int count = 0;
int flag = 1;
int flag = 1;
 
 
extern void abort (void);
extern void abort (void);
extern void exit (int);
extern void exit (int);
 
 
int
int
main ()
main ()
{
{
  __sync_add_and_fetch (&count, -1);
  __sync_add_and_fetch (&count, -1);
 
 
  if (!flag)
  if (!flag)
    abort ();
    abort ();
  exit (0);
  exit (0);
}
}
 
 

powered by: WebSVN 2.1.0

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