pa.c (pa_print_operand): New 'o' output modifier.
authorJeff Law <law@redhat.com>
Thu, 21 May 2015 12:44:35 +0000 (06:44 -0600)
committerJeff Law <law@gcc.gnu.org>
Thu, 21 May 2015 12:44:35 +0000 (06:44 -0600)
commitb47fbc5307fe0f03ff302627d8977c402e34feff
tree33e14240d1aea93da7c0d3d7c5748f572def94a0
parent0daff5e0c87a619093f4718c0ec212b1b461bfde
pa.c (pa_print_operand): New 'o' output modifier.

2015-05-20  Jeff Law  <law@redhat.com>

* config/pa/pa.c (pa_print_operand): New 'o' output modifier.
(pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
(pa_shadd_constant_p): Allow constants for shadd insns rather
than valid scaling constants for memory addresses.
* config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
* config/pa/predicates.md (mem_shadd_operand): New predicate.
* config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
(shift-add insns using ASHIFT): New patterns.

* gcc.target/hppa/hppa.exp: New target test driver.
* gcc.target/hppa/shadd-1.c: New test.

From-SVN: r223480
gcc/ChangeLog
gcc/config/pa/pa-protos.h
gcc/config/pa/pa.c
gcc/config/pa/pa.md
gcc/config/pa/predicates.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/hppa/hppa.exp [new file with mode: 0644]
gcc/testsuite/gcc.target/hppa/shadd-1.c [new file with mode: 0644]