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

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

Rev 297 Rev 338
int
int
foo1 (value)
foo1 (value)
     long long value;
     long long value;
{
{
  register const long long constant = 0xc000000080000000LL;
  register const long long constant = 0xc000000080000000LL;
 
 
  if (value < constant)
  if (value < constant)
    return 1;
    return 1;
  else
  else
    return 2;
    return 2;
}
}
 
 
int
int
foo2 (value)
foo2 (value)
     unsigned long long value;
     unsigned long long value;
{
{
  register const unsigned long long constant = 0xc000000080000000LL;
  register const unsigned long long constant = 0xc000000080000000LL;
 
 
  if (value < constant)
  if (value < constant)
    return 1;
    return 1;
  else
  else
    return 2;
    return 2;
}
}
 
 
main ()
main ()
{
{
  unsigned long long value = 0xc000000000000001LL;
  unsigned long long value = 0xc000000000000001LL;
  int x, y;
  int x, y;
 
 
  x = foo1 (value);
  x = foo1 (value);
  y = foo2 (value);
  y = foo2 (value);
  if (x != y || x != 1)
  if (x != y || x != 1)
    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.