aboutsummaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-09-12 12:51:14 +0000
committerRichard Stallman <rms@gnu.org>1993-09-12 12:51:14 +0000
commitc2ec26b8afb76691aeb476e829053e4a5bda64d3 (patch)
tree42fc66ac988d4e17c88549c941db531fc52b02b3 /gcc/expmed.c
parent3fad11c9213905de742d28b451d2f870952c91d5 (diff)
downloadgcc-c2ec26b8afb76691aeb476e829053e4a5bda64d3.zip
gcc-c2ec26b8afb76691aeb476e829053e4a5bda64d3.tar.gz
gcc-c2ec26b8afb76691aeb476e829053e4a5bda64d3.tar.bz2
(expand_shift): Use convert_modes.
(emit_store_flag): Likewise. From-SVN: r5309
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r--gcc/expmed.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index 21c771c..bb22a05 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -1699,9 +1699,9 @@ expand_shift (code, mode, shifted, amount, target, unsignedp)
|| (methods == OPTAB_WIDEN
&& GET_MODE_SIZE (mode) < GET_MODE_SIZE (output_mode)))
{
- rtx shifted1 = convert_to_mode (output_mode,
- protect_from_queue (shifted, 0),
- 1);
+ rtx shifted1 = convert_modes (output_mode, mode,
+ protect_from_queue (shifted, 0),
+ 1);
enum machine_mode length_mode
= insn_operand_mode[(int) CODE_FOR_extzv][2];
enum machine_mode pos_mode
@@ -1730,8 +1730,8 @@ expand_shift (code, mode, shifted, amount, target, unsignedp)
target1 = gen_reg_rtx (output_mode);
xop1 = protect_from_queue (xop1, 0);
- xop1 = convert_to_mode (pos_mode, xop1,
- TREE_UNSIGNED (TREE_TYPE (amount)));
+ xop1 = convert_modes (pos_mode, TYPE_MODE (TREE_TYPE (amount)),
+ xop1, TREE_UNSIGNED (TREE_TYPE (amount)));
/* If this machine's extzv insists on a register for
operand 3 (position), arrange for that. */
@@ -2906,7 +2906,7 @@ emit_store_flag (target, code, op0, op1, mode, unsignedp, normalizep)
subtarget, normalizep != -1);
if (mode != target_mode)
- op0 = convert_to_mode (target_mode, op0, 0);
+ op0 = convert_modes (target_mode, mode, op0, 0);
return op0;
}
@@ -3128,7 +3128,7 @@ emit_store_flag (target, code, op0, op1, mode, unsignedp, normalizep)
else if (GET_MODE_SIZE (mode) < UNITS_PER_WORD)
{
op0 = protect_from_queue (op0, 0);
- tem = convert_to_mode (word_mode, mode, op0, 1);
+ tem = convert_modes (word_mode, mode, op0, 1);
mode = word_mode;
}