http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50751

--- Comment #25 from Oleg Endo <olegendo at gcc dot gnu.org> 2012-04-05 
18:43:50 UTC ---
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

Reply via email to