111
|
1 /* Copyright (C) 2004 Free Software Foundation.
|
|
2
|
|
3 Check that asin, asinf, asinl, acos, acosf
|
|
4 and acosl built-in functions compile.
|
|
5
|
|
6 Written by Uros Bizjak, 20th April 2004. */
|
|
7
|
|
8 /* { dg-do compile } */
|
|
9 /* { dg-options "-O2 -ffast-math" } */
|
|
10
|
|
11 extern double asin(double);
|
|
12 extern double acos(double);
|
|
13 extern float asinf(float);
|
|
14 extern float acosf(float);
|
|
15 extern long double asinl(long double);
|
|
16 extern long double acosl(long double);
|
|
17
|
|
18
|
|
19 double test1(double x)
|
|
20 {
|
|
21 return asin(x);
|
|
22 }
|
|
23
|
|
24 double test2(double x)
|
|
25 {
|
|
26 return acos(x);
|
|
27 }
|
|
28
|
|
29 float test1f(float x)
|
|
30 {
|
|
31 return asinf(x);
|
|
32 }
|
|
33
|
|
34 float test2f(float x)
|
|
35 {
|
|
36 return acosf(x);
|
|
37 }
|
|
38
|
|
39 long double test1l(long double x)
|
|
40 {
|
|
41 return asinl(x);
|
|
42 }
|
|
43
|
|
44 long double test2l(long double x)
|
|
45 {
|
|
46 return acosl(x);
|
|
47 }
|
|
48
|