diff options
author | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-23 20:45:40 +0000 |
---|---|---|
committer | sayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-05-23 20:45:40 +0000 |
commit | a2246f842a13f81354a7d4469fc688e8e6bf35d5 (patch) | |
tree | 2d249c1630830eb3302bb11242b3adef2ac554a9 /gcc/testsuite/gcc.dg/builtins-1.c | |
parent | 59fbfc4a2c74134b697a308a92882c5826f1e1e9 (diff) | |
download | gcc-a2246f842a13f81354a7d4469fc688e8e6bf35d5.tar.gz |
* builtins.def: Defome atan, atanf, atanl, tan, tanf and tanl
builtin functions (and their __builtin_* variants).
* builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
(expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
optimizing.
* doc/extend.texi: Document new tan and atan builtins, and
their float and long double variants.
* gcc.dg/builtins-1.c: Add tests for tan and atan.
* gcc.dg/builtins-4.c: Add test for fmod.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67137 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/builtins-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/builtins-1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/builtins-1.c b/gcc/testsuite/gcc.dg/builtins-1.c index 6b4044c5bcc..33160ab32be 100644 --- a/gcc/testsuite/gcc.dg/builtins-1.c +++ b/gcc/testsuite/gcc.dg/builtins-1.c @@ -13,16 +13,22 @@ double test2(double x) { return __builtin_cos(x); } double test3(double x) { return __builtin_sin(x); } double test4(double x) { return __builtin_exp(x); } double test5(double x) { return __builtin_log(x); } +double test6(double x) { return __builtin_tan(x); } +double test7(double x) { return __builtin_atan(x); } float test1f(float x) { return __builtin_sqrtf(x); } float test2f(float x) { return __builtin_cosf(x); } float test3f(float x) { return __builtin_sinf(x); } float test4f(float x) { return __builtin_expf(x); } float test5f(float x) { return __builtin_logf(x); } +float test6f(float x) { return __builtin_tanf(x); } +float test7f(float x) { return __builtin_atanf(x); } long double test1l(long double x) { return __builtin_sqrtl(x); } long double test2l(long double x) { return __builtin_cosl(x); } long double test3l(long double x) { return __builtin_sinl(x); } long double test4l(long double x) { return __builtin_expl(x); } long double test5l(long double x) { return __builtin_logl(x); } +long double test6l(long double x) { return __builtin_tanl(x); } +long double test7l(long double x) { return __builtin_atanl(x); } |