URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
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);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.