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/] [pr28403.c] - Diff between revs 297 and 338

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

Rev 297 Rev 338
typedef unsigned long long ull;
typedef unsigned long long ull;
int global;
int global;
 
 
int __attribute__((noinline))
int __attribute__((noinline))
foo (int x1, int x2, int x3, int x4, int x5, int x6, int x7, int x8)
foo (int x1, int x2, int x3, int x4, int x5, int x6, int x7, int x8)
{
{
  global = x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8;
  global = x1 + x2 + x3 + x4 + x5 + x6 + x7 + x8;
}
}
 
 
ull __attribute__((noinline))
ull __attribute__((noinline))
bar (ull x)
bar (ull x)
{
{
  foo (1, 2, 1, 3, 1, 4, 1, 5);
  foo (1, 2, 1, 3, 1, 4, 1, 5);
  return x >> global;
  return x >> global;
}
}
 
 
int
int
main (void)
main (void)
{
{
  if (bar (0x123456789abcdefULL) != (0x123456789abcdefULL >> 18))
  if (bar (0x123456789abcdefULL) != (0x123456789abcdefULL >> 18))
    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.