re PR target/54089 ([SH] Refactor shift patterns)
authorOleg Endo <olegendo@gcc.gnu.org>
Wed, 19 Sep 2012 17:48:25 +0000 (17:48 +0000)
committerOleg Endo <olegendo@gcc.gnu.org>
Wed, 19 Sep 2012 17:48:25 +0000 (17:48 +0000)
commit4eddc42b63d1064dfb0fd4c4820616f672e0ccfa
tree5ed220b6357cc817fb1a12638afc59a543be4f50
parent8b75f5506f72b100a6ac1eff4f0fc1acfdf8566c
re PR target/54089 ([SH] Refactor shift patterns)

PR target/54089
* config/sh/predicates.md (arith_reg_or_t_reg_operand): New predicate.
* config/sh/sh.md (*rotcr): Use arith_reg_or_t_reg_operand predicate.
Handle the case where one of the operands is T_REG.
Add new pattern to handle MSB extraction.

PR target/54089
* gcc.target/sh/pr54089-1.c (test_11, test_12, test_13, test_14): New
functions.

From-SVN: r191490
gcc/ChangeLog
gcc/config/sh/predicates.md
gcc/config/sh/sh.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/pr54089-1.c