pa.c (mem_shadd_or_shadd_rtx_p): New function factored out of hppa_legitimize_address...
authorJeff Law <law@redhat.com>
Fri, 22 May 2015 16:13:07 +0000 (10:13 -0600)
committerJeff Law <law@gcc.gnu.org>
Fri, 22 May 2015 16:13:07 +0000 (10:13 -0600)
commit92d0b05816f5bd8f811177892459727097fe41a2
treea9da7740f72ab1d83c847b331e93174b76926f42
parent9b789cc15c38f6c67de873408e8397fbd7ada75b
pa.c (mem_shadd_or_shadd_rtx_p): New function factored out of hppa_legitimize_address to handle both forms of a...

* pa.c (mem_shadd_or_shadd_rtx_p): New function factored out
of hppa_legitimize_address to handle both forms of a multiply
by 2, 4 or 8.
(hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
Always generate the ASHIFT variant as the result is not directly
used in a MEM.  Update comments and refactor slightly to improve
readability.

From-SVN: r223579
gcc/ChangeLog
gcc/config/pa/pa.c