summaryrefslogtreecommitdiff
path: root/gcc/expmed.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1994-12-29 19:06:04 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1994-12-29 19:06:04 +0000
commite8fcc2926de4bab770f78a07f8d5b22c9744234b (patch)
treebc814dcd42418a0c79d03370a0d9e70592c6d1a2 /gcc/expmed.c
parent4d6400d07552e5fe568d04c6340ead2b7ce10f0c (diff)
downloadgcc-e8fcc2926de4bab770f78a07f8d5b22c9744234b.tar.gz
(expand_mult_highpart): Use convert_modes instead of
gen_lowpart to do conversions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8704 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/expmed.c')
-rw-r--r--gcc/expmed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/expmed.c b/gcc/expmed.c
index 2b9a29bf978..b2862b6de25 100644
--- a/gcc/expmed.c
+++ b/gcc/expmed.c
@@ -2487,7 +2487,7 @@ expand_mult_highpart (mode, op0, cnst1, target, unsignedp)
tem = expand_mult (wider_mode, op0, wide_op1, NULL_RTX, unsignedp);
tem = expand_shift (RSHIFT_EXPR, wider_mode, tem,
build_int_2 (size, 0), NULL_RTX, 1);
- return gen_lowpart (mode, tem);
+ return convert_modes (mode, wider_mode, tem, unsignedp);
}
if (target == 0)
@@ -2532,7 +2532,7 @@ expand_mult_highpart (mode, op0, cnst1, target, unsignedp)
/* Extract the high half of the just generated product. */
tem = expand_shift (RSHIFT_EXPR, wider_mode, tem,
build_int_2 (size, 0), NULL_RTX, 1);
- tem = gen_lowpart (mode, tem);
+ tem = convert_modes (mode, wider_mode, tem, unsignedp);
/* We used the wrong signedness. Adjust the result. */
return expand_mult_highpart_adjust (mode, tem, op0, op1,
target, unsignedp);
@@ -2553,7 +2553,7 @@ expand_mult_highpart (mode, op0, cnst1, target, unsignedp)
/* Extract the high half of the just generated product. */
tem = expand_shift (RSHIFT_EXPR, wider_mode, tem,
build_int_2 (size, 0), NULL_RTX, 1);
- return gen_lowpart (mode, tem);
+ return convert_modes (mode, wider_mode, tem, unsignedp);
}
/* Emit the code to divide OP0 by OP1, putting the result in TARGET