This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/50751] SH Target: Displacement addressing does not work for QImode and HImode
- From: "olegendo at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Apr 2012 18:43:50 +0000
- Subject: [Bug target/50751] SH Target: Displacement addressing does not work for QImode and HImode
- Auto-submitted: auto-generated
- References: <bug-50751-4@http.gcc.gnu.org/bugzilla/>
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