2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr56424.c
bloba724c640e993a0e1aabcb3a35426c39d72297ac7
1 /* PR tree-optimization/56424 */
3 /* { dg-do compile } */
4 /* { dg-options "-O2 -fexceptions -fnon-call-exceptions" } */
6 extern long double cosl (long double);
7 extern long double sinl (long double);
8 extern long double reml (long double, long double);
10 long double my_cos (long double arg)
12 return cosl (arg);
15 long double my_sin (long double arg)
17 if (__builtin_fabs (arg) < 1.0)
18 return arg;
20 return sinl (arg);
23 long double my_cot (long double arg, long double cycle)
25 long double t = reml (arg, cycle);
26 return my_cos (t) / my_sin (t);
29 long double my_tan (long double arg, long double cycle)
31 long double t = reml (arg, cycle);
32 return my_sin (t) / my_cos (t);