diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2004-03-12 13:33:42 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2004-03-12 13:33:42 +0000 |
commit | fd0c8c8d00232673f01aeab099b9f69ffcfb6e85 (patch) | |
tree | ca3265fcf958eeebc0d0673c077043bbfef84f82 /gcc | |
parent | e36280014222c0e61676da5ca2a3124b5972029c (diff) | |
download | gcc-fd0c8c8d00232673f01aeab099b9f69ffcfb6e85.zip gcc-fd0c8c8d00232673f01aeab099b9f69ffcfb6e85.tar.gz gcc-fd0c8c8d00232673f01aeab099b9f69ffcfb6e85.tar.bz2 |
builtins.c (expand_builtin_mathfn): Add pow10* to the existing exp10* case.
* builtins.c (expand_builtin_mathfn): Add pow10* to the
existing exp10* case.
(expand_builtin): Likewise.
testsuite:
* gcc.dg/builtins-34.c: Also check pow10*.
From-SVN: r79383
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/builtins.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/builtins-34.c | 22 |
4 files changed, 36 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1f04f38..4353cf6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * builtins.c (expand_builtin_mathfn): Add pow10* to the + existing exp10* case. + (expand_builtin): Likewise. + 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr> * doc/tm.texi (registers) <Values in Registers>: Add diff --git a/gcc/builtins.c b/gcc/builtins.c index daf06e8..b6fa872 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -1632,6 +1632,9 @@ expand_builtin_mathfn (tree exp, rtx target, rtx subtarget) case BUILT_IN_EXP10: case BUILT_IN_EXP10F: case BUILT_IN_EXP10L: + case BUILT_IN_POW10: + case BUILT_IN_POW10F: + case BUILT_IN_POW10L: errno_set = true; builtin_optab = exp10_optab; break; case BUILT_IN_EXP2: case BUILT_IN_EXP2F: @@ -5118,6 +5121,9 @@ expand_builtin (tree exp, rtx target, rtx subtarget, enum machine_mode mode, case BUILT_IN_EXP10: case BUILT_IN_EXP10F: case BUILT_IN_EXP10L: + case BUILT_IN_POW10: + case BUILT_IN_POW10F: + case BUILT_IN_POW10L: case BUILT_IN_EXP2: case BUILT_IN_EXP2F: case BUILT_IN_EXP2L: diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fe5bb99..f82ce5f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + + * gcc.dg/builtins-34.c: Also check pow10*. + 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com> PR target/14262 diff --git a/gcc/testsuite/gcc.dg/builtins-34.c b/gcc/testsuite/gcc.dg/builtins-34.c index fb6062b..d2bf4d4 100644 --- a/gcc/testsuite/gcc.dg/builtins-34.c +++ b/gcc/testsuite/gcc.dg/builtins-34.c @@ -1,7 +1,7 @@ /* Copyright (C) 2004 Free Software Foundation. - Check that exp10, exp10f, exp10l, exp2, exp2f and exp2l - built-in functions compile. + Check that exp10, exp10f, exp10l, exp2, exp2f, exp2l, pow10, pow10f + and pow10l built-in functions compile. Written by Uros Bizjak, 13th February 2004. */ @@ -10,10 +10,13 @@ extern double exp10(double); extern double exp2(double); +extern double pow10(double); extern float exp10f(float); extern float exp2f(float); +extern float pow10f(float); extern long double exp10l(long double); extern long double exp2l(long double); +extern long double pow10l(long double); double test1(double x) @@ -26,6 +29,11 @@ double test2(double x) return exp2(x); } +double test3(double x) +{ + return pow10(x); +} + float test1f(float x) { return exp10f(x); @@ -36,6 +44,11 @@ float test2f(float x) return exp2f(x); } +float test3f(float x) +{ + return pow10f(x); +} + long double test1l(long double x) { return exp10l(x); @@ -46,3 +59,8 @@ long double test2l(long double x) return exp2l(x); } +long double test3l(long double x) +{ + return pow10l(x); +} + |