rl78-real.md (*addqi_real): Allow SADDR types for inc/dec.
authorDJ Delorie <dj@redhat.com>
Tue, 3 Mar 2015 21:57:40 +0000 (16:57 -0500)
committerDJ Delorie <dj@gcc.gnu.org>
Tue, 3 Mar 2015 21:57:40 +0000 (16:57 -0500)
commitf6115d44cc5053b718f77679ef98b0e93e53a78b
treeb65c48df3c7c3220b2fcf01d2911f9bc100b1295
parentbf66b9b45c6cf6bccd2791d7c091759b2ad35437
rl78-real.md (*addqi_real): Allow SADDR types for inc/dec.

* config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
inc/dec.
(*addhi3_real): Likewise.
* config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
pattern to match incrementing memory.
* config/rl78/predicates.md (rl78_1_2_operand): New.
* config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
it's the same and only mem.
(rl78_alloc_physical_registers_op2): If there's effectively only
one MEM, transcode it into HL.
(rl78_far_p): Reject addresses that aren't legitimate.

From-SVN: r221164
gcc/ChangeLog
gcc/config/rl78/predicates.md
gcc/config/rl78/rl78-real.md
gcc/config/rl78/rl78-virt.md
gcc/config/rl78/rl78.c