OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [pr36194.c] - Diff between revs 298 and 384

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

Rev 298 Rev 384
/* { dg-do run } */
/* { dg-do run } */
/* { dg-options "-O2" } */
/* { dg-options "-O2" } */
 
 
void abort (void);
void abort (void);
 
 
__attribute__ ((noinline)) void
__attribute__ ((noinline)) void
f (int i)
f (int i)
{
{
#if(__SIZEOF_INT__ >= 4)
#if(__SIZEOF_INT__ >= 4)
  if (i != 0x87654321)
  if (i != 0x87654321)
#else
#else
  if (i != 0x4321)
  if (i != 0x4321)
#endif
#endif
    abort ();
    abort ();
  asm ("");
  asm ("");
}
}
 
 
__attribute__ ((noinline)) void
__attribute__ ((noinline)) void
g (long long a)
g (long long a)
{
{
  f (a);
  f (a);
  asm ("");
  asm ("");
}
}
 
 
main ()
main ()
{
{
  g (0x1234567887654321ll);
  g (0x1234567887654321ll);
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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