PR target/27861
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jun 2006 14:57:17 +0000 (14:57 +0000)
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jun 2006 14:57:17 +0000 (14:57 +0000)
commitb7ba5735b5557bbfdcc5c328d80e2274f63b185a
treec8e8a3185728aab4a7f079fa123272dd2738ec55
parent68826b15f5e926316dafc8fc1528d6c14d401b16
PR target/27861
* expmed.c (expand_shift): On SHIFT_COUNT_TRUNCATED targets, we may
have stripped a SUBREG from the shift count, so we may need to
convert_to_mode back to the type's mode before calling make_tree.
Use new_amount instead of amount to avoid expanding a tree twice.

* gcc.dg/pr27861-1.c: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114773 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/expmed.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr27861-1.c [new file with mode: 0644]