summaryrefslogtreecommitdiffstats
path: root/gcc/config/score/score3.c
diff options
context:
space:
mode:
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-12 09:43:48 +0000
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-12 09:43:48 +0000
commit74f4459c661b0597a1cb1080a1e6c34db40f921d (patch)
tree06c940a96a184a178bfadd53e04213225655a68d /gcc/config/score/score3.c
parent58b52637eb213c90766269829beb56b15f621af8 (diff)
downloadppe42-gcc-74f4459c661b0597a1cb1080a1e6c34db40f921d.tar.gz
ppe42-gcc-74f4459c661b0597a1cb1080a1e6c34db40f921d.zip
Merge cond-optab branch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147425 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/score/score3.c')
-rw-r--r--gcc/config/score/score3.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/gcc/config/score/score3.c b/gcc/config/score/score3.c
index 9e41452c03d..3ddc3b8c798 100644
--- a/gcc/config/score/score3.c
+++ b/gcc/config/score/score3.c
@@ -54,9 +54,6 @@
#define BITSET_P(VALUE, BIT) (((VALUE) & (1L << (BIT))) != 0)
#define INS_BUF_SZ 128
-/* Define the information needed to generate branch insns. This is
- stored from the compare operation. */
-extern rtx cmp_op0, cmp_op1;
extern enum reg_class score_char_to_class[256];
static int score3_sdata_max;
@@ -1647,13 +1644,6 @@ score3_epilogue (int sibcall_p)
emit_jump_insn (gen_return_internal_score3 (gen_rtx_REG (Pmode, RA_REGNUM)));
}
-void
-score3_gen_cmp (enum machine_mode mode)
-{
- emit_insn (gen_rtx_SET (VOIDmode, gen_rtx_REG (mode, CC_REGNUM),
- gen_rtx_COMPARE (mode, cmp_op0, cmp_op1)));
-}
-
/* Return true if X is a symbolic constant that can be calculated in
the same way as a bare symbol. If it is, store the type of the
symbol in *SYMBOL_TYPE. */
@@ -1692,7 +1682,8 @@ score3_movsicc (rtx *ops)
mode = score3_select_cc_mode (GET_CODE (ops[1]), ops[2], ops[3]);
emit_insn (gen_rtx_SET (VOIDmode, gen_rtx_REG (mode, CC_REGNUM),
- gen_rtx_COMPARE (mode, cmp_op0, cmp_op1)));
+ gen_rtx_COMPARE (mode, XEXP (ops[1], 0),
+ XEXP (ops[1], 1))));
}
/* Call and sibcall pattern all need call this function. */
OpenPOWER on IntegriCloud