re PR tree-optimization/65014 (ice with error: type mismatch in shift expression)
authorJakub Jelinek <jakub@redhat.com>
Thu, 12 Feb 2015 09:45:27 +0000 (10:45 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 12 Feb 2015 09:45:27 +0000 (10:45 +0100)
commit01f834e33c2635b2e1ac7f8bb3bd0007c83a094d
treeea990aac53a7e77d5fea61ca8d0b5a2f67ce684c
parentfaedeff79d9d6d9b0f8bc560ce7b53cf4e2598e7
re PR tree-optimization/65014 (ice with error: type mismatch in shift expression)

PR tree-optimization/65014
* fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
use original second operand of arg0 or arg1 instead of
that adjusted by STRIP_NOPS.

* gcc.c-torture/compile/pr65014.c: New test.

From-SVN: r220640
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr65014.c [new file with mode: 0644]