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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [ieee/] [hugeval.c] - Rev 715

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

#include <math.h>
 
static const double zero =  0.0;
static const double pone =  1.0;
static const double none = -1.0;
static const double pinf =  1.0 / 0.0;
static const double ninf = -1.0 / 0.0;
 
int
main ()
{
  if (pinf != pone/zero)
    abort ();
 
  if (ninf != none/zero)
    abort ();
 
#ifdef HUGE_VAL
  if (HUGE_VAL != pinf)
    abort ();
 
  if (-HUGE_VAL != ninf)
    abort ();
#endif
 
  exit (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.