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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [ieee/] [inf-1.c] - Rev 825

Go to most recent revision | Compare with Previous | Blame | View Log

extern void abort (void);
 
int main()
{
  float fi = __builtin_inff();
  double di = __builtin_inf();
  long double li = __builtin_infl();
 
  float fh = __builtin_huge_valf();
  double dh = __builtin_huge_val();
  long double lh = __builtin_huge_vall();
 
  if (fi + fi != fi)
    abort ();
  if (di + di != di)
    abort ();
  if (li + li != li)
    abort ();
 
  if (fi != fh)
    abort ();
  if (di != dh)
    abort ();
  if (li != lh)
    abort ();
 
  if (fi <= 0)
    abort ();
  if (di <= 0)
    abort ();
  if (li <= 0)
    abort ();
 
  return 0;
}
 

Go to most recent revision | 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.