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/function.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/function.c')
-rw-r--r-- | gcc/function.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/gcc/function.c b/gcc/function.c index a5f8f05..c75648d 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -1975,11 +1975,19 @@ fixup_var_refs_1 (var, promoted_mode, loc, insn, replacements) #ifdef HAVE_extzv if (GET_CODE (x) == 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 (GET_CODE (x) == 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. */ if (wanted_mode != VOIDmode @@ -2168,11 +2176,14 @@ fixup_var_refs_1 (var, promoted_mode, loc, insn, replacements) && ! mode_dependent_address_p (XEXP (tem, 0)) && ! MEM_VOLATILE_P (tem)) { - enum machine_mode wanted_mode - = insn_operand_mode[(int) CODE_FOR_insv][0]; + enum machine_mode wanted_mode; enum machine_mode is_mode = GET_MODE (tem); HOST_WIDE_INT pos = INTVAL (XEXP (outerdest, 2)); + wanted_mode = insn_operand_mode[(int) CODE_FOR_insv][0]; + if (wanted_mode == VOIDmode) + wanted_mode = word_mode; + /* If we have a narrower mode, we can do something. */ if (GET_MODE_SIZE (wanted_mode) < GET_MODE_SIZE (is_mode)) { |