]> gcc.gnu.org Git - gcc.git/commitdiff
fold-const.c (negate_mathfn_p): Fix comment and add support for BUILT_IN_CBRT...
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Fri, 25 Nov 2005 14:50:20 +0000 (14:50 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Fri, 25 Nov 2005 14:50:20 +0000 (14:50 +0000)
* fold-const.c (negate_mathfn_p): Fix comment and add support
for BUILT_IN_CBRT, BUILT_IN_SINH, BUILT_IN_TANH, BUILT_IN_ASINH,
BUILT_IN_ATANH.

From-SVN: r107507

gcc/ChangeLog
gcc/fold-const.c

index 1f679b13dbafe58c7ea45d497fe96c6b88bc17c9..580dd5339234a75f74afd57deebdc957711c7ecf 100644 (file)
@@ -1,3 +1,9 @@
+2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
+       * fold-const.c (negate_mathfn_p): Fix comment and add support
+       for BUILT_IN_CBRT, BUILT_IN_SINH, BUILT_IN_TANH, BUILT_IN_ASINH,
+       BUILT_IN_ATANH.
+
 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
 
        PR middle-end/24998
index 9a6ac70a39c80cba012221daa364865519aa01d6..59037d5975801660eb3d8a03a8b225a2f7d68043 100644 (file)
@@ -857,8 +857,8 @@ div_if_zero_remainder (enum tree_code code, tree arg1, tree arg2)
   return build_int_cst_wide (type, quol, quoh);
 }
 \f
-/* Return true if built-in mathematical function specified by CODE
-   preserves the sign of it argument, i.e. -f(x) == f(-x).  */
+/* Return true if the built-in mathematical function specified by CODE
+   is odd, i.e. -f(x) == f(-x).  */
 
 static bool
 negate_mathfn_p (enum built_in_function code)
@@ -868,15 +868,30 @@ negate_mathfn_p (enum built_in_function code)
     case BUILT_IN_ASIN:
     case BUILT_IN_ASINF:
     case BUILT_IN_ASINL:
+    case BUILT_IN_ASINH:
+    case BUILT_IN_ASINHF:
+    case BUILT_IN_ASINHL:
     case BUILT_IN_ATAN:
     case BUILT_IN_ATANF:
     case BUILT_IN_ATANL:
+    case BUILT_IN_ATANH:
+    case BUILT_IN_ATANHF:
+    case BUILT_IN_ATANHL:
+    case BUILT_IN_CBRT:
+    case BUILT_IN_CBRTF:
+    case BUILT_IN_CBRTL:
     case BUILT_IN_SIN:
     case BUILT_IN_SINF:
     case BUILT_IN_SINL:
+    case BUILT_IN_SINH:
+    case BUILT_IN_SINHF:
+    case BUILT_IN_SINHL:
     case BUILT_IN_TAN:
     case BUILT_IN_TANF:
     case BUILT_IN_TANL:
+    case BUILT_IN_TANH:
+    case BUILT_IN_TANHF:
+    case BUILT_IN_TANHL:
       return true;
 
     default:
This page took 0.083226 seconds and 5 git commands to generate.