Commit 2d226eb1 by Richard Kenner

(expand_mult_highpart): Use op1 not wide_op1 in expansion of

mul_highpart.

From-SVN: r12361
parent 9e6c9f59
...@@ -2596,7 +2596,7 @@ expand_mult_highpart (mode, op0, cnst1, target, unsignedp, max_cost) ...@@ -2596,7 +2596,7 @@ expand_mult_highpart (mode, op0, cnst1, target, unsignedp, max_cost)
{ {
mul_highpart_optab = unsignedp ? umul_highpart_optab : smul_highpart_optab; mul_highpart_optab = unsignedp ? umul_highpart_optab : smul_highpart_optab;
target = expand_binop (mode, mul_highpart_optab, target = expand_binop (mode, mul_highpart_optab,
op0, wide_op1, target, unsignedp, OPTAB_DIRECT); op0, op1, target, unsignedp, OPTAB_DIRECT);
if (target) if (target)
return target; return target;
} }
...@@ -2607,7 +2607,7 @@ expand_mult_highpart (mode, op0, cnst1, target, unsignedp, max_cost) ...@@ -2607,7 +2607,7 @@ expand_mult_highpart (mode, op0, cnst1, target, unsignedp, max_cost)
{ {
mul_highpart_optab = unsignedp ? smul_highpart_optab : umul_highpart_optab; mul_highpart_optab = unsignedp ? smul_highpart_optab : umul_highpart_optab;
target = expand_binop (mode, mul_highpart_optab, target = expand_binop (mode, mul_highpart_optab,
op0, wide_op1, target, unsignedp, OPTAB_DIRECT); op0, op1, target, unsignedp, OPTAB_DIRECT);
if (target) if (target)
/* We used the wrong signedness. Adjust the result. */ /* We used the wrong signedness. Adjust the result. */
return expand_mult_highpart_adjust (mode, target, op0, return expand_mult_highpart_adjust (mode, target, op0,
......
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