This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r186169 - in /trunk/gcc: ChangeLog config/sh/sh.c
- From: olegendo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 05 Apr 2012 18:43:46 -0000
- Subject: r186169 - in /trunk/gcc: ChangeLog config/sh/sh.c
Author: olegendo
Date: Thu Apr 5 18:43:45 2012
New Revision: 186169
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186169
Log:
PR target/50751
* config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
first argument instead of mode size. Move displacement calculations
to ...
(mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
... these new functions.
(disp_adjust): Remove max_mov_disp field.
(sh_legitimate_index_p): Use max_mov_insn_displacement and
mov_insn_alignment_mask.
(sh_address_cost): Use max_mov_insn_displacement.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/sh/sh.c