1 /* Copyright (C) 2004 Free Software Foundation.
3 Check that fmod, fmodf, fmodl, drem, dremf, dreml,
4 remainder, remainderf and remainderl
5 built-in functions compile.
7 Written by Uros Bizjak, 5th May 2004. */
9 /* { dg-do compile } */
10 /* { dg-options "-O2" } */
12 extern double fmod(double, double);
13 extern float fmodf(float, float);
14 extern long double fmodl(long double, long double);
16 extern double remainder(double, double);
17 extern float remainderf(float, float);
18 extern long double remainderl(long double, long double);
20 extern double drem(double, double);
21 extern float dremf(float, float);
22 extern long double dreml(long double, long double);
25 double test1(double x
, double y
)
30 float test1f(float x
, float y
)
35 long double test1l(long double x
, long double y
)
40 double test2(double x
, double y
)
42 return remainder(x
, y
);
45 float test2f(float x
, float y
)
47 return remainderf(x
, y
);
50 long double test2l(long double x
, long double y
)
52 return remainderl(x
, y
);
55 double test3(double x
, double y
)
60 float test3f(float x
, float y
)
65 long double test3l(long double x
, long double y
)