From 3feffdfe8e13977741530c96d77ede2ceea83290 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Wed, 5 Nov 1997 01:08:08 +0000 Subject: Bug fix for v850 port. * reload.c (find_reloads, case 'm' and 'o'): Reject HIGH constants. From-SVN: r16329 --- gcc/reload.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gcc/reload.c') diff --git a/gcc/reload.c b/gcc/reload.c index f26cb58..c8a30d3a 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -2915,7 +2915,9 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) && REGNO (operand) >= FIRST_PSEUDO_REGISTER && reg_renumber[REGNO (operand)] < 0)) win = 1; - if (CONSTANT_P (operand)) + if (CONSTANT_P (operand) + /* force_const_mem does not accept HIGH. */ + && GET_CODE (operand) != HIGH) badop = 0; constmemok = 1; break; @@ -2990,7 +2992,9 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) && offsettable_memref_p (reg_equiv_mem[REGNO (operand)])) || (reg_equiv_address[REGNO (operand)] != 0)))) win = 1; - if (CONSTANT_P (operand) || GET_CODE (operand) == MEM) + /* force_const_mem does not accept HIGH. */ + if ((CONSTANT_P (operand) && GET_CODE (operand) != HIGH) + || GET_CODE (operand) == MEM) badop = 0; constmemok = 1; offmemok = 1; -- cgit v1.1