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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20020103-1.c] - Diff between revs 297 and 338

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

Rev 297 Rev 338
/* On h8300 port, the following used to be broken with -mh or -ms.  */
/* On h8300 port, the following used to be broken with -mh or -ms.  */
 
 
extern void abort (void);
extern void abort (void);
extern void exit (int);
extern void exit (int);
 
 
unsigned long
unsigned long
foo (unsigned long a)
foo (unsigned long a)
{
{
  return a ^ 0x0000ffff;
  return a ^ 0x0000ffff;
}
}
 
 
unsigned long
unsigned long
bar (unsigned long a)
bar (unsigned long a)
{
{
  return a ^ 0xffff0000;
  return a ^ 0xffff0000;
}
}
 
 
int
int
main ()
main ()
{
{
  if (foo (0) != 0x0000ffff)
  if (foo (0) != 0x0000ffff)
    abort ();
    abort ();
 
 
  if (bar (0) != 0xffff0000)
  if (bar (0) != 0xffff0000)
    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.