From bbdb5552f3ff822bd573d7261a9a4c5ccead1ef3 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Tue, 28 Apr 1992 20:33:51 +0000 Subject: *** empty log message *** From-SVN: r849 --- gcc/config/mips/mips.c | 16 +++++---- gcc/config/mips/mips.h | 2 +- gcc/config/mips/mips.md | 85 ++++++++++++++++++++++++++++------------------- gcc/config/mips/osfrose.h | 21 +++++++++++- gcc/mips-tfile.c | 34 +++++++++++++++++-- 5 files changed, 111 insertions(+), 47 deletions(-) (limited to 'gcc') diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index f47d88f..86f35e4 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 284219e..0e89ad6 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