[SH] PR 51244 - Improve T bit to reg store
Oleg Endo
oleg.endo@t-online.de
Sun Jul 29 22:53:00 GMT 2012
Hello,
This improves some cases where the T bit is stored as all ones or all
zeros to a GP reg.
Tested on rev 189916 with
make -k check RUNTESTFLAGS="--target_board=sh-sim
\{-m2/-ml,-m2/-mb,-m2a/-mb,-m2a-single/-mb,-m4/-ml,-m4/-mb,
-m4-single/-ml,-m4-single/-mb,-m4a-single/-ml,-m4a-single/-mb}"
and no new failures.
OK?
Cheers,
Oleg
ChangeLog:
PR target/51244
* config/sh/sh.md (mov_neg_si_t): Move to Scc instructions
section.
Use t_reg_operand predicate. Add split for negated case.
(ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t.
* config/sh/sh.c (expand_ashiftrt): Likewise.
testsuite/ChangeLog:
PR target/51244
* gcc.target/sh/pr51244-4.c: New.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sh_pr51244-8.patch
Type: text/x-patch
Size: 3121 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120729/84b99d40/attachment.bin>
More information about the Gcc-patches
mailing list