Further improvements to constant shifts for the H8
authorJeff Law <jlaw@localhost.localdomain>
Fri, 20 Aug 2021 15:19:05 +0000 (11:19 -0400)
committerJeff Law <jlaw@localhost.localdomain>
Fri, 20 Aug 2021 15:19:05 +0000 (11:19 -0400)
commit5f80c6270de6ac79d819de50048b32351a6b97c3
tree6b9836882bb6119b799c89d2ac2a3d29cd7c988d
parent29b2fd371f18169141e20b90effa7205db68fb11
Further improvements to constant shifts for the H8

gcc/
* config/h8300/h8300.c (shift_alg_hi): Improve arithmetic shift right
by 15 bits for H8/300H and H8/S.  Improve logical shifts by 12
bits for H8/S.
(shift_alg_si): Improve arithmetic right shift by 28-30 bits for
H8/300H.  Improve arithmetic shift right by 15 bits for H8/S.
Improve logical shifts by 27 bits for H8/S.
(get_shift_alg): Corresponding changes.
(h8300_option_override): Revert to loops for -Os when profitable.
gcc/config/h8300/h8300.c