Commit e10f6dd1 by Richard Kenner

(expand_divmod): Create RESULT in proper mode when trying

quotient-and-remainder insn.

From-SVN: r5862
parent 939f89e1
......@@ -2597,7 +2597,7 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp)
{
/* No luck there. Try a quotient-and-remainder insn,
keeping the quotient alone. */
result = gen_reg_rtx (mode);
result = gen_reg_rtx (compute_mode);
if (! expand_twoval_binop (unsignedp ? udivmod_optab : sdivmod_optab,
adjusted_op0, op1,
result, NULL_RTX, unsignedp))
......
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