diff options
author | Jeffrey A Law <law@cygnus.com> | 1998-09-15 22:47:10 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-09-15 16:47:10 -0600 |
commit | 0d8e55d8cd9fd8b867fb44005a8ee9435f1406ae (patch) | |
tree | ed903d8c350727df2bf1f53c6551d8a874814869 /gcc/recog.c | |
parent | 54d65918774e3854206d61c82dbb39d2241eb603 (diff) | |
download | gcc-0d8e55d8cd9fd8b867fb44005a8ee9435f1406ae.zip gcc-0d8e55d8cd9fd8b867fb44005a8ee9435f1406ae.tar.gz gcc-0d8e55d8cd9fd8b867fb44005a8ee9435f1406ae.tar.bz2 |
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
Diffstat (limited to 'gcc/recog.c')
-rw-r--r-- | gcc/recog.c | 12 |
1 files changed, 10 insertions, 2 deletions
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. */ |