(expand_divmod): Create RESULT in proper mode when trying

quotient-and-remainder insn.

From-SVN: r5862
This commit is contained in:
Richard Kenner 1993-10-21 13:48:04 -04:00
parent 939f89e193
commit e10f6dd1a9

View File

@ -2597,7 +2597,7 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp)
{ {
/* No luck there. Try a quotient-and-remainder insn, /* No luck there. Try a quotient-and-remainder insn,
keeping the quotient alone. */ keeping the quotient alone. */
result = gen_reg_rtx (mode); result = gen_reg_rtx (compute_mode);
if (! expand_twoval_binop (unsignedp ? udivmod_optab : sdivmod_optab, if (! expand_twoval_binop (unsignedp ? udivmod_optab : sdivmod_optab,
adjusted_op0, op1, adjusted_op0, op1,
result, NULL_RTX, unsignedp)) result, NULL_RTX, unsignedp))