continue;
}
- if (dest_mode == DImode && !TARGET_64BIT)
- dest_mode = SImode;
-
- if (dest_mode != QImode)
- {
- rtx destqi = gen_reg_rtx (QImode);
- emit_insn (gen_rtx_SET (destqi, x));
-
- if (TARGET_ZERO_EXTEND_WITH_AND
- && optimize_function_for_speed_p (cfun))
- {
- x = force_reg (dest_mode, const0_rtx);
-
- emit_insn (gen_movstrictqi (gen_lowpart (QImode, x), destqi));
- }
- else
- {
- x = gen_rtx_ZERO_EXTEND (dest_mode, destqi);
- if (dest_mode == GET_MODE (dest)
- && !register_operand (dest, GET_MODE (dest)))
- x = force_reg (dest_mode, x);
- }
- }
-
- if (dest_mode != GET_MODE (dest))
+ if (dest_mode == QImode)
+ emit_insn (gen_rtx_SET (dest, x));
+ else
{
- rtx tmp = gen_reg_rtx (SImode);
+ rtx reg = gen_reg_rtx (QImode);
+ emit_insn (gen_rtx_SET (reg, x));
- emit_insn (gen_rtx_SET (tmp, x));
- emit_insn (gen_zero_extendsidi2 (dest, tmp));
+ reg = convert_to_mode (dest_mode, reg, 1);
+ emit_move_insn (dest, reg);
}
- else
- emit_insn (gen_rtx_SET (dest, x));
}
+
rtx_insn *seq = get_insns ();
end_sequence ();