From 0d8e55d8cd9fd8b867fb44005a8ee9435f1406ae Mon Sep 17 00:00:00 2001 From: Jeffrey A Law Date: Tue, 15 Sep 1998 22:47:10 +0000 Subject: combine.c (make_extraction): If no mode is specified for an operand of insv... * combine.c (make_extraction): If no mode is specified for an operand of insv, extv, or extzv, default it to word_mode. (simplify_comparison): Similarly. * expmed.c (store_bit_field): Similarly. (extract_bit_field): Similarly. * function.c (fixup_var_regs_1): Similarly. * recog.c (validate_replace_rtx_1): Similarly. * mips.md (extv, extzv, insv expanders): Default modes for most operands. Handle TARGET_64BIT. (movdi_uld, movdi_usd): New patterns. From-SVN: r22439 --- gcc/recog.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'gcc/recog.c') diff --git a/gcc/recog.c b/gcc/recog.c index d472df0..9f6a1ea 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -484,11 +484,19 @@ validate_replace_rtx_1 (loc, from, to, object) #ifdef HAVE_extzv if (code == ZERO_EXTRACT) - wanted_mode = insn_operand_mode[(int) CODE_FOR_extzv][1]; + { + wanted_mode = insn_operand_mode[(int) CODE_FOR_extzv][1]; + if (wanted_mode == VOIDmode) + wanted_mode = word_mode; + } #endif #ifdef HAVE_extv if (code == SIGN_EXTRACT) - wanted_mode = insn_operand_mode[(int) CODE_FOR_extv][1]; + { + wanted_mode = insn_operand_mode[(int) CODE_FOR_extv][1]; + if (wanted_mode == VOIDmode) + wanted_mode = word_mode; + } #endif /* If we have a narrower mode, we can do something. */ -- cgit v1.1