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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [941031-1.c] - Rev 826

Compare with Previous | Blame | View Log

typedef long mpt;
 
int
f (mpt us, mpt vs)
{
  long aus;
  long avs;
 
  aus = us >= 0 ? us : -us;
  avs = vs >= 0 ? vs : -vs;
 
  if (aus < avs)
    {
      long t = aus;
      aus = avs;
      avs = aus;
    }
 
  return avs;
}
 
main ()
{
  if (f ((mpt) 3, (mpt) 17) != 17)
    abort ();
  exit (0);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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