tmp0 = gen_reg_rtx (HImode);
tmp1 = gen_reg_rtx (HImode);
- /* Extend operands[1] to HImode. Generate 8bit divide. Result is
- in AX. */
+ /* Extend operands[1] to HImode. Generate 8bit divide. Result is in AX. */
emit_insn (gen_extendqihi2 (tmp1, operands[1]));
emit_insn (gen_divmodhiqi3 (tmp0, tmp1, operands[2]));
/* Extract remainder from AH. */
tmp1 = gen_rtx_ZERO_EXTRACT (SImode, tmp0, GEN_INT (8), GEN_INT (8));
- tmp1 = gen_rtx_SUBREG (QImode, tmp1, 0);
+ tmp1 = lowpart_subreg (QImode, tmp1, SImode);
rtx_insn *insn = emit_move_insn (operands[3], tmp1);
mod = gen_rtx_MOD (QImode, operands[1], operands[2]);