Commit d83d092e by Kazu Hirata Committed by Kazu Hirata

c99-math-double-1.c, [...]: Remove trailing ^M.

	* gcc.dg/c99-math-double-1.c, gcc.dg/c99-math-float-1.c,
	gcc.dg/c99-math-long-double-1.c, gcc.dg/c99-math.h: Remove
	trailing ^M.

From-SVN: r100360
parent ec09945c
2005-05-30 Kazu Hirata <kazu@cs.umass.edu>
* gcc.dg/c99-math-double-1.c, gcc.dg/c99-math-float-1.c,
gcc.dg/c99-math-long-double-1.c, gcc.dg/c99-math.h: Remove
trailing ^M.
2005-05-29 Geoffrey Keating <geoffk@apple.com> 2005-05-29 Geoffrey Keating <geoffk@apple.com>
PR target/21761 PR target/21761
......
/* { dg-do run { target *-*-solaris2.1[0-9]* } } */ /* { dg-do run { target *-*-solaris2.1[0-9]* } } */
/* { dg-options "-std=c99 -O" } */ /* { dg-options "-std=c99 -O" } */
#include <math.h> #include <math.h>
#include "c99-math.h" #include "c99-math.h"
int main(void) int main(void)
{ {
double nan = NAN; double nan = NAN;
double inf = INFINITY; double inf = INFINITY;
double huge = HUGE_VAL; double huge = HUGE_VAL;
double norm = __DBL_MIN__; double norm = __DBL_MIN__;
double zero = 0.0; double zero = 0.0;
C99_MATH_TESTS (nan, inf, huge, norm, zero) C99_MATH_TESTS (nan, inf, huge, norm, zero)
return 0; return 0;
} }
/* { dg-do run { target *-*-solaris2.1[0-9]* } } */ /* { dg-do run { target *-*-solaris2.1[0-9]* } } */
/* { dg-options "-std=c99 -O" } */ /* { dg-options "-std=c99 -O" } */
#include <math.h> #include <math.h>
#include "c99-math.h" #include "c99-math.h"
int main(void) int main(void)
{ {
float nan = NAN; float nan = NAN;
float inf = INFINITY; float inf = INFINITY;
float huge = HUGE_VALF; float huge = HUGE_VALF;
float norm = __FLT_MIN__; float norm = __FLT_MIN__;
float zero = 0.0f; float zero = 0.0f;
C99_MATH_TESTS (nan, inf, huge, norm, zero) C99_MATH_TESTS (nan, inf, huge, norm, zero)
return 0; return 0;
} }
/* { dg-do run { target *-*-solaris2.1[0-9]* } } */ /* { dg-do run { target *-*-solaris2.1[0-9]* } } */
/* { dg-options "-std=c99 -O" } */ /* { dg-options "-std=c99 -O" } */
#include <math.h> #include <math.h>
#include "c99-math.h" #include "c99-math.h"
int main(void) int main(void)
{ {
long double nan = NAN; long double nan = NAN;
long double inf = INFINITY; long double inf = INFINITY;
long double huge = HUGE_VALL; long double huge = HUGE_VALL;
long double norm = __LDBL_MIN__; long double norm = __LDBL_MIN__;
long double zero = 0.0l; long double zero = 0.0l;
C99_MATH_TESTS (nan, inf, huge, norm, zero) C99_MATH_TESTS (nan, inf, huge, norm, zero)
return 0; return 0;
} }
#include <math.h> #include <math.h>
extern void abort(void); extern void abort(void);
#define C99_MATH_TESTS(nan, inf, huge, norm, zero) \ #define C99_MATH_TESTS(nan, inf, huge, norm, zero) \
{ \ { \
if (fpclassify (nan) != FP_NAN) \ if (fpclassify (nan) != FP_NAN) \
abort (); \ abort (); \
\ \
if (fpclassify (inf) != FP_INFINITE) \ if (fpclassify (inf) != FP_INFINITE) \
abort (); \ abort (); \
\ \
if (fpclassify (huge) != FP_INFINITE) \ if (fpclassify (huge) != FP_INFINITE) \
abort (); \ abort (); \
\ \
if (fpclassify (norm) != FP_NORMAL) \ if (fpclassify (norm) != FP_NORMAL) \
abort (); \ abort (); \
\ \
if (fpclassify (zero) != FP_ZERO) \ if (fpclassify (zero) != FP_ZERO) \
abort (); \ abort (); \
\ \
\ \
if (!isnan (nan)) \ if (!isnan (nan)) \
abort (); \ abort (); \
\ \
if (isnan (inf)) \ if (isnan (inf)) \
abort (); \ abort (); \
\ \
if (isnan (huge)) \ if (isnan (huge)) \
abort (); \ abort (); \
\ \
if (isnan (norm)) \ if (isnan (norm)) \
abort (); \ abort (); \
\ \
if (isnan (zero)) \ if (isnan (zero)) \
abort (); \ abort (); \
\ \
\ \
if (isinf (nan)) \ if (isinf (nan)) \
abort (); \ abort (); \
\ \
if (!isinf (inf)) \ if (!isinf (inf)) \
abort (); \ abort (); \
\ \
if (!isinf (huge)) \ if (!isinf (huge)) \
abort (); \ abort (); \
\ \
if (isnan (norm)) \ if (isnan (norm)) \
abort (); \ abort (); \
\ \
if (isinf (zero)) \ if (isinf (zero)) \
abort (); \ abort (); \
\ \
\ \
if (isfinite (nan)) \ if (isfinite (nan)) \
abort (); \ abort (); \
\ \
if (isfinite (inf)) \ if (isfinite (inf)) \
abort (); \ abort (); \
\ \
if (isfinite (huge)) \ if (isfinite (huge)) \
abort (); \ abort (); \
\ \
if (!isfinite (norm)) \ if (!isfinite (norm)) \
abort (); \ abort (); \
\ \
if (!isfinite (zero)) \ if (!isfinite (zero)) \
abort (); \ abort (); \
\ \
\ \
if (isnormal (nan)) \ if (isnormal (nan)) \
abort (); \ abort (); \
\ \
if (isnormal (inf)) \ if (isnormal (inf)) \
abort (); \ abort (); \
\ \
if (isnormal (huge)) \ if (isnormal (huge)) \
abort (); \ abort (); \
\ \
if (!isnormal (norm)) \ if (!isnormal (norm)) \
abort (); \ abort (); \
\ \
if (isnormal (zero)) \ if (isnormal (zero)) \
abort (); \ abort (); \
\ \
\ \
if (signbit (norm)) \ if (signbit (norm)) \
abort (); \ abort (); \
\ \
if (!signbit (-(norm))) \ if (!signbit (-(norm))) \
abort (); \ abort (); \
\ \
\ \
if (!isgreater ((inf), (norm))) \ if (!isgreater ((inf), (norm))) \
abort (); \ abort (); \
\ \
if (!isgreaterequal ((inf), (huge))) \ if (!isgreaterequal ((inf), (huge))) \
abort (); \ abort (); \
\ \
if (!isless ((norm), (inf))) \ if (!isless ((norm), (inf))) \
abort (); \ abort (); \
\ \
if (!islessequal ((huge), (inf))) \ if (!islessequal ((huge), (inf))) \
abort (); \ abort (); \
\ \
if (!islessgreater ((inf), (norm))) \ if (!islessgreater ((inf), (norm))) \
abort (); \ abort (); \
\ \
if (!isunordered ((nan), (norm))) \ if (!isunordered ((nan), (norm))) \
abort (); \ abort (); \
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment