From aa0cd7a228206eeee74db0f0744621ed1504065a Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 2 Mar 1993 07:18:06 +0000 Subject: [PATCH] (gen_move_insn): Big `if' applies only for MODE_CC class. From-SVN: r3592 --- gcc/optabs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/optabs.c b/gcc/optabs.c index 6387f19c5ad..cc192be2e39 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -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 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; 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) tmode = CCmode; - else if (GET_MODE_CLASS (mode) == MODE_CC) + else for (tmode = QImode; tmode != VOIDmode; tmode = GET_MODE_WIDER_MODE (tmode)) if (GET_MODE_SIZE (tmode) == GET_MODE_SIZE (mode)) -- 2.30.2