h8300.c (h8300_adjust_insn_length): Tighten insn length for memory load/store.

* config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
	insn length for memory load/store.

From-SVN: r50445
This commit is contained in:
Kazu Hirata 2002-03-08 16:51:08 +00:00 committed by Kazu Hirata
parent 5304400d81
commit 054ef90540
2 changed files with 19 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2002-03-08 Kazu Hirata <kazu@hxi.com>
* config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
insn length for memory load/store.
2002-03-08 Craig Rodrigues <rodrigc@gcc.gnu.org>
* doc/install.texi (--with-libiconv-prefix): Document.

View File

@ -3549,9 +3549,20 @@ h8300_adjust_insn_length (insn, length)
&& INTVAL (XEXP (addr, 1)) < 32767)
return -4;
/* @aa:16 is 2 bytes shorter than the longest. */
if (GET_CODE (addr) == SYMBOL_REF
&& TINY_DATA_NAME_P (XSTR (addr, 0)))
/* @aa:8 is 6 bytes shorter than the longest. */
if (GET_MODE (SET_SRC (pat)) == QImode
&& ((GET_CODE (addr) == SYMBOL_REF && SYMBOL_REF_FLAG (addr))
|| EIGHTBIT_CONSTANT_ADDRESS_P (addr)))
return -6;
/* @aa:16 is 4 bytes shorter than the longest. */
if ((GET_CODE (addr) == SYMBOL_REF
&& TINY_DATA_NAME_P (XSTR (addr, 0)))
|| TINY_CONSTANT_ADDRESS_P (addr))
return -4;
/* @aa:24 is 2 bytes shorter than the longest. */
if (GET_CODE (addr) == CONST_INT)
return -2;
}
}