* reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.

From-SVN: r34106
This commit is contained in:
J"orn Rennecke 2000-05-23 17:13:36 +00:00 committed by Joern Rennecke
parent ed7fd6c8d9
commit a3afe9205d
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Tue May 23 18:11:42 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
* reload1.c (reload_cse_move2add): Honor TRULY_NOOP_TRUNCATION.
2000-05-23 Jonathan Larmour <jlarmour@redhat.co.uk>
* config/mips/elf64.h (CTOR_LISTS_DEFINED_EXTERNALLY): Define

View File

@ -8905,8 +8905,12 @@ reload_cse_move2add (first)
/* ??? We don't know how zero / sign extension is handled, hence
we can't go from a narrower to a wider mode. */
if (reg_set_luid[regno] > last_label_luid
&& (GET_MODE_SIZE (GET_MODE (reg))
<= GET_MODE_SIZE (reg_mode[regno]))
&& ((GET_MODE_SIZE (GET_MODE (reg))
== GET_MODE_SIZE (reg_mode[regno]))
|| ((GET_MODE_SIZE (GET_MODE (reg))
<= GET_MODE_SIZE (reg_mode[regno]))
&& TRULY_NOOP_TRUNCATION (GET_MODE_BITSIZE (GET_MODE (reg)),
GET_MODE_BITSIZE (reg_mode[regno]))))
&& GET_CODE (reg_offset[regno]) == CONST_INT)
{
/* Try to transform (set (REGX) (CONST_INT A))