+Sun Jun 29 23:06:32 CEST 2003 Jan Hubicka <jh@suse.cz>
+
+ * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
+ busy work when builtin is not supported by the backend.
+
2003-06-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* loop.c (count_one_set): Fix detection of registers set in more
/* Make a suitable register to place result in. */
mode = TYPE_MODE (TREE_TYPE (exp));
+
+ /* Before working hard, check whether the instruction is available. */
+ if (builtin_optab->handlers[(int) mode].insn_code == CODE_FOR_nothing)
+ return 0;
target = gen_reg_rtx (mode);
if (! flag_errno_math || ! HONOR_NANS (mode))
/* Make a suitable register to place result in. */
mode = TYPE_MODE (TREE_TYPE (exp));
+
+ /* Before working hard, check whether the instruction is available. */
+ if (builtin_optab->handlers[(int) mode].insn_code == CODE_FOR_nothing)
+ return 0;
+
target = gen_reg_rtx (mode);
if (! flag_errno_math || ! HONOR_NANS (mode))