Commit 13b59849 by Roger Sayle Committed by Roger Sayle

builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations isn't set...


	* builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
	isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
	(expand_builtin): Always call expand_builtin_pow.

From-SVN: r77071
parent ef79730c
2004-02-01 Roger Sayle <roger@eyesopen.com> 2004-02-01 Roger Sayle <roger@eyesopen.com>
* builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
(expand_builtin): Always call expand_builtin_pow.
2004-02-01 Roger Sayle <roger@eyesopen.com>
* builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF, * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
BUILT_IN_SIGNBITL): New GCC builtins. BUILT_IN_SIGNBITL): New GCC builtins.
* builtins.c (expand_builtin_signbit): New function to RTL expand * builtins.c (expand_builtin_signbit): New function to RTL expand
......
...@@ -2141,7 +2141,10 @@ expand_builtin_pow (tree exp, rtx target, rtx subtarget) ...@@ -2141,7 +2141,10 @@ expand_builtin_pow (tree exp, rtx target, rtx subtarget)
} }
} }
} }
return expand_builtin_mathfn_2 (exp, target, NULL_RTX);
if (! flag_unsafe_math_optimizations)
return NULL_RTX;
return expand_builtin_mathfn_2 (exp, target, subtarget);
} }
/* Expand expression EXP which is a call to the strlen builtin. Return 0 /* Expand expression EXP which is a call to the strlen builtin. Return 0
...@@ -5162,8 +5165,6 @@ expand_builtin (tree exp, rtx target, rtx subtarget, enum machine_mode mode, ...@@ -5162,8 +5165,6 @@ expand_builtin (tree exp, rtx target, rtx subtarget, enum machine_mode mode,
case BUILT_IN_POW: case BUILT_IN_POW:
case BUILT_IN_POWF: case BUILT_IN_POWF:
case BUILT_IN_POWL: case BUILT_IN_POWL:
if (! flag_unsafe_math_optimizations)
break;
target = expand_builtin_pow (exp, target, subtarget); target = expand_builtin_pow (exp, target, subtarget);
if (target) if (target)
return target; return target;
......
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