PR middle-end/28283
commit99d2e279e9fc2f616f5dc829937723e337ed4e0e
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Jul 2006 05:13:56 +0000 (19 05:13 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 19 Jul 2006 05:13:56 +0000 (19 05:13 +0000)
tree3487eac9da851d55f914f10ff317d63bd8311b83
parent59bfec983fd2836c58b2093bb3f576801744807e
PR middle-end/28283
* expmed.c (expand_shift): Additionally check that the shift_cost
is not MAX_COST and that INTVAL(op1) is less than MAX_BITS_PER_WORD
before implementing a LSHIFT_EXPR as a sequence of additions.
* config/sh/sh.c (shift_costs): Return MAX_COST to inform the
middle-end that DImode shifts need to be synthesized by expand.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115578 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/sh/sh.c
gcc/expmed.c