From: Michael Meissner Date: Tue, 28 Apr 1992 20:33:51 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: misc/cutover-egcs-0~13082 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbdb5552f3ff822bd573d7261a9a4c5ccead1ef3;p=thirdparty%2Fgcc.git *** empty log message *** From-SVN: r849 --- diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index f47d88f35edb..86f35e4195a8 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -1662,16 +1662,21 @@ gen_int_relational (test_code, result, cmp0, cmp1, p_invert) cmp1 = temp; } - reg = (invert || eqne_p) ? gen_reg_rtx (SImode) : result; - emit_move_insn (reg, gen_rtx (p_info->test_code, SImode, cmp0, cmp1)); - if (test == ITEST_NE && GET_CODE (cmp1) == CONST_INT && INTVAL (cmp1) == 0) + reg = cmp0; + else + { + reg = (invert || eqne_p) ? gen_reg_rtx (SImode) : result; + emit_move_insn (reg, gen_rtx (p_info->test_code, SImode, cmp0, cmp1)); + } + + if (test == ITEST_NE) { emit_move_insn (result, gen_rtx (GTU, SImode, reg, const0_rtx)); invert = FALSE; } - else if (eqne_p) + else if (test == ITEST_EQ) { reg2 = (invert) ? gen_reg_rtx (SImode) : result; emit_move_insn (reg2, gen_rtx (LTU, SImode, reg, const1_rtx)); @@ -3568,9 +3573,6 @@ mips_asm_file_start (stream) if (TARGET_ABICALLS) fprintf (stream, "\t.abicalls\n"); - /* put gcc_compiled. in data, not text */ - data_section (); - if (TARGET_GP_OPT) { asm_out_data_file = stream; diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 284219ee5003..0e89ad630948 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -650,7 +650,7 @@ do { \ #define MASK_DEBUG 0x40000000 /* Eliminate version # in .s file */ #define MASK_DEBUG_A 0x20000000 /* don't allow