Commit b9ba01a1 by Roger Sayle Committed by Roger Sayle

re PR rtl-optimization/11311 (ICE with pow and large exponent)


	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
parent 46512942
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.
2003-06-24 Richard Henderson <rth@redhat.com>
......
......@@ -2068,7 +2068,7 @@ powi_cost (HOST_WIDE_INT n)
}
}
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.
......
/* Derived from PR optimization/11311 */
double pow(double, double);
double foo(double x) { return pow(x,261); }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment