Commit aa0cd7a2 by Richard Stallman

(gen_move_insn): Big `if' applies only for MODE_CC class.

From-SVN: r3592
parent dae1d304
...@@ -2577,15 +2577,15 @@ gen_move_insn (x, y) ...@@ -2577,15 +2577,15 @@ gen_move_insn (x, y)
find a mode to do it in. If we have a movcc, use it. Otherwise, find a mode to do it in. If we have a movcc, use it. Otherwise,
find the MODE_INT mode of the same width. */ find the MODE_INT mode of the same width. */
if (insn_code == CODE_FOR_nothing) if (GET_MODE_CLASS (mode) == MODE_CC && insn_code == CODE_FOR_nothing)
{ {
enum machine_mode tmode = VOIDmode; enum machine_mode tmode = VOIDmode;
rtx x1 = x, y1 = y; rtx x1 = x, y1 = y;
if (GET_MODE_CLASS (mode) == MODE_CC && mode != CCmode if (mode != CCmode
&& mov_optab->handlers[(int) CCmode].insn_code != CODE_FOR_nothing) && mov_optab->handlers[(int) CCmode].insn_code != CODE_FOR_nothing)
tmode = CCmode; tmode = CCmode;
else if (GET_MODE_CLASS (mode) == MODE_CC) else
for (tmode = QImode; tmode != VOIDmode; for (tmode = QImode; tmode != VOIDmode;
tmode = GET_MODE_WIDER_MODE (tmode)) tmode = GET_MODE_WIDER_MODE (tmode))
if (GET_MODE_SIZE (tmode) == GET_MODE_SIZE (mode)) if (GET_MODE_SIZE (tmode) == GET_MODE_SIZE (mode))
......
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