PR optimization/11311
* builtins.c (powi_cost): Fix typo. The number of multiplications
required is the number to reduce the argument, result, plus the
cost of calculating the residual, val [not n, the original value].
* gcc.c-torture/compile/
20030624-1.c: New test case.
From-SVN: r68452
+2003-06-24 Roger Sayle <roger@eyesopen.com>
+
+ PR optimization/11311
+ * builtins.c (powi_cost): Fix typo. The number of multiplications
+ required is the number to reduce the argument, result, plus the
+ cost of calculating the residual, val [not n, the original value].
+
2003-06-24 Roger Sayle <roger@eyesopen.com>
* config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
}
}
- return result + powi_lookup_cost (n, cache);
+ return result + powi_lookup_cost (val, cache);
}
/* Recursive subroutine of expand_powi. This function takes the array,
+2003-06-24 Roger Sayle <roger@eyesopen.com>
+
+ * gcc.c-torture/compile/20030624-1.c: New test case.
+
2003-06-24 Jakub Jelinek <jakub@redhat.com>
* gcc.c-torture/execute/string-opt-17.c: New test.
--- /dev/null
+/* Derived from PR optimization/11311 */
+
+double pow(double, double);
+
+double foo(double x) { return pow(x,261); }
+