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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20061124-1.c] - Blame information for rev 867

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do run } */
2
/* { dg-require-effective-target sync_char_short } */
3
 
4
/* This testcase failed on s390 because no compare instruction for
5
   the check of FLAG was emitted.  */
6
 
7
unsigned short int count = 0;
8
int flag = 1;
9
 
10
extern void abort (void);
11
extern void exit (int);
12
 
13
int
14
main ()
15
{
16
  __sync_add_and_fetch (&count, -1);
17
 
18
  if (!flag)
19
    abort ();
20
  exit (0);
21
}

powered by: WebSVN 2.1.0

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