h8300.c (h8300_insn_length_from_table): Consolidate ADDB...
authorJeff Law <law@redhat.com>
Tue, 3 Jul 2018 19:37:41 +0000 (13:37 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 3 Jul 2018 19:37:41 +0000 (13:37 -0600)
commitc3c3ddbbcc8c2830ee76d6ed760f5343c983f916
tree1d354d0a767a047ef9c45b6fb002ac84846548f0
parent15333be70addf4eb750d82d5e298cd3ad33b711a
h8300.c (h8300_insn_length_from_table): Consolidate ADDB...

* config/h8300/h8300.c (h8300_insn_length_from_table): Consolidate
ADDB, ADDW and ADDL into a single ADD attribute which selects the
right table based on the size of the operand.
* config/h8300/h8300.md (length_table): Corresponding changes. All
references to "addb", "addw" and "addl" changed to "add".
(btst patterns): Merge two variants into a single pattern.
(tstqi, tsthi): Likewise.
(addhi3_incdec, addsi3_incdec): Likewise.
(subhi3_h8300hs, subsi3_h8300hs): Likewise.
(mulhi3, mulsi3): Likewise.
(udivhi3, udivsi3): Likewise.
(divhi3, divsi3): Likewise.
(andorqi3, andorhi3, andorsi3): Likewise.

From-SVN: r262357
gcc/ChangeLog
gcc/config/h8300/h8300.c
gcc/config/h8300/h8300.md