From 89b7c471e2ddf10bd5a00cc084d46f8bfac91f68 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 28 Jun 1996 15:05:55 -0400 Subject: [PATCH] (alpha_emit_conditional_move): Emit correct code when incoming comparison code is NE. From-SVN: r12364 --- gcc/config/alpha/alpha.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index 71989decc93..b3befe14333 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -1035,6 +1035,7 @@ alpha_emit_conditional_move (cmp, mode) enum machine_mode mode; { enum rtx_code code = GET_CODE (cmp); + enum rtx_code cmov_code = NE; rtx op0 = alpha_compare_op0; rtx op1 = alpha_compare_op1; enum machine_mode cmp_mode @@ -1065,6 +1066,7 @@ alpha_emit_conditional_move (cmp, mode) case NE: /* This must be reversed. */ code = reverse_condition (code); + cmov_code = EQ; break; case GE: case GT: case GEU: case GTU: @@ -1081,8 +1083,7 @@ alpha_emit_conditional_move (cmp, mode) tem = gen_reg_rtx (cmp_op_mode); emit_move_insn (tem, gen_rtx (code, cmp_op_mode, op0, op1)); - return gen_rtx (code == NE ? EQ : NE, VOIDmode, tem, - CONST0_RTX (cmp_op_mode)); + return gen_rtx (cmov_code, VOIDmode, tem, CONST0_RTX (cmp_op_mode)); } /* Adjust the cost of a scheduling dependency. Return the new cost of