Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git] / gcc / testsuite / gcc.dg / c99-math-double-1.c
blob6441a59fe1c261b0b7ecf6c61e407343ef518554
1 /* { dg-do run { target *-*-solaris2.1[0-9]* } } */
2 /* { dg-options "-std=c99 -O" } */
4 #include <math.h>
5 #include "c99-math.h"
7 int main(void)
9 volatile double nan = NAN;
10 volatile double inf = INFINITY;
11 volatile double huge = HUGE_VAL;
12 volatile double norm1 = __DBL_MIN__;
13 volatile double norm2 = 1;
14 volatile double norm3 = __DBL_MAX__;
15 volatile double sub = __DBL_MIN__ / 2;
16 volatile double zero = 0.0;
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)
21 return 0;