Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / sinhatanh-3.c
blobad0353ae8282ab4c72f51840d4ea2d0205382f64
1 /* { dg-do compile } */
2 /* { dg-options "-Ofast -fmath-errno -fdump-tree-optimized" } */
4 extern float sinhf (float);
5 extern float coshf (float);
6 extern float atanhf (float);
7 extern float sqrtf (float);
8 extern double sinh (double);
9 extern double cosh (double);
10 extern double atanh (double);
11 extern double sqrt (double);
12 extern long double sinhl (long double);
13 extern long double coshl (long double);
14 extern long double atanhl (long double);
15 extern long double sqrtl (long double);
17 double __attribute__ ((noinline))
18 sinhatanh_ (double x)
20 return sinh (atanh (x));
23 double __attribute__ ((noinline))
24 coshatanh_ (double x)
26 return cosh (atanh (x));
29 float __attribute__ ((noinline))
30 sinhatanhf_(float x)
32 return sinhf (atanhf (x));
35 float __attribute__ ((noinline))
36 coshatanhf_(float x)
38 return coshf (atanhf (x));
41 long double __attribute__ ((noinline))
42 sinhatanhl_ (long double x)
44 return sinhl (atanhl (x));
47 long double __attribute__ ((noinline))
48 coshatanhl_ (long double x)
50 return coshl (atanhl (x));
53 /* There should be calls to sinh, cosh and atanh */
54 /* { dg-final { scan-tree-dump-times "cosh " "1" "optimized" } } */
55 /* { dg-final { scan-tree-dump-times "sinh " "1" "optimized" } } */
56 /* { dg-final { scan-tree-dump-times "atanh " "2" "optimized" } } */
57 /* { dg-final { scan-tree-dump-times "coshf " "1" "optimized" } } */
58 /* { dg-final { scan-tree-dump-times "sinhf " "1" "optimized" } } */
59 /* { dg-final { scan-tree-dump-times "atanhf " "2" "optimized" } } */
60 /* { dg-final { scan-tree-dump-times "coshl " "1" "optimized" } } */
61 /* { dg-final { scan-tree-dump-times "sinhl " "1" "optimized" } } */
62 /* { dg-final { scan-tree-dump-times "atanhl " "2" "optimized" } } */