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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [c99-math-float-1.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do run { target *-*-solaris2.1[0-9]* } } */
2
/* { dg-options "-std=c99 -O" } */
3
 
4
#include <math.h>
5
#include "c99-math.h"
6
 
7
int main(void)
8
{
9
  volatile float nan = NAN;
10
  volatile float inf = INFINITY;
11
  volatile float huge = HUGE_VALF;
12
  volatile float norm1 = __FLT_MIN__;
13
  volatile float norm2 = 1;
14
  volatile float norm3 = __FLT_MAX__;
15
  volatile float sub = __FLT_MIN__ / 2;
16
  volatile float zero = 0.0f;
17
 
18
  C99_MATH_TESTS (nan, inf, huge, norm1, norm2, norm3, sub, zero, /*neg=*/0)
19
  C99_MATH_TESTS (-nan, -inf, -huge, -norm1, -norm2, -norm3, -sub, -zero, /*neg=*/1)
20
 
21
  return 0;
22
}

powered by: WebSVN 2.1.0

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