[Bug target/54089] [SH] Refactor shift patterns
olegendo at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 19 17:49:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54089
--- Comment #19 from Oleg Endo <olegendo at gcc dot gnu.org> 2012-09-19 17:48:31 UTC ---
Author: olegendo
Date: Wed Sep 19 17:48:25 2012
New Revision: 191490
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191490
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/sh/predicates.md
trunk/gcc/config/sh/sh.md
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.target/sh/pr54089-1.c
More information about the Gcc-bugs
mailing list