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 test1(double x)19double test1(double x) 20 { 21 return asin(x); 22 } 23 test2(double x)24double test2(double x) 25 { 26 return acos(x); 27 } 28 test1f(float x)29float test1f(float x) 30 { 31 return asinf(x); 32 } 33 test2f(float x)34float test2f(float x) 35 { 36 return acosf(x); 37 } 38 test1l(long double x)39long double test1l(long double x) 40 { 41 return asinl(x); 42 } 43 test2l(long double x)44long double test2l(long double x) 45 { 46 return acosl(x); 47 } 48 49