aboutsummaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2006-03-04 19:44:17 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2006-03-04 19:44:17 +0000
commit2f8dc5bb4c14c4cd524c5f72a814fc46a4c06024 (patch)
tree3427286e5232543b7832ed559ed98f99bcf7ceb1 /gcc/expmed.c
parent936a6fa78adb1daf15cae50649f1413262697dcf (diff)
downloadgcc-2f8dc5bb4c14c4cd524c5f72a814fc46a4c06024.zip
gcc-2f8dc5bb4c14c4cd524c5f72a814fc46a4c06024.tar.gz
gcc-2f8dc5bb4c14c4cd524c5f72a814fc46a4c06024.tar.bz2
expmed.c (expand_mult_add): Remove.
* expmed.c (expand_mult_add): Remove. * expr.h: Remove the prototype for expand_mult_add. From-SVN: r111712
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r--gcc/expmed.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index 7d77587..a4396c2 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -5025,31 +5025,6 @@ make_tree (tree type, rtx x)
return t;
}
}
-
-/* Return an rtx representing the value of X * MULT + ADD.
- TARGET is a suggestion for where to store the result (an rtx).
- MODE is the machine mode for the computation.
- X and MULT must have mode MODE. ADD may have a different mode.
- So can X (defaults to same as MODE).
- UNSIGNEDP is nonzero to do unsigned multiplication.
- This may emit insns. */
-
-rtx
-expand_mult_add (rtx x, rtx target, rtx mult, rtx add, enum machine_mode mode,
- int unsignedp)
-{
- tree type = lang_hooks.types.type_for_mode (mode, unsignedp);
- tree add_type = (GET_MODE (add) == VOIDmode
- ? type: lang_hooks.types.type_for_mode (GET_MODE (add),
- unsignedp));
- tree result = fold_build2 (PLUS_EXPR, type,
- fold_build2 (MULT_EXPR, type,
- make_tree (type, x),
- make_tree (type, mult)),
- make_tree (add_type, add));
-
- return expand_expr (result, target, VOIDmode, 0);
-}
/* Compute the logical-and of OP0 and OP1, storing it in TARGET
and returning TARGET.