re PR middle-end/71693 (ICE: verify_gimple failed (type mismatch in shift expression...
authorJakub Jelinek <jakub@redhat.com>
Thu, 30 Jun 2016 08:52:43 +0000 (10:52 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 30 Jun 2016 08:52:43 +0000 (10:52 +0200)
commit205cccc7c8ed017684b946dbfef48b9b013c5c51
treeb9c50c2ea116fc10568c7c63dc4c245ba9e28da1
parent1bcf319ef895a51ad95db857ff1a457485965689
re PR middle-end/71693 (ICE: verify_gimple failed (type mismatch in shift expression, -O0, -O1, -O2, -O3))

PR middle-end/71693
* fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
first when permuting bitwise operation with rotate.  Cast
TREE_OPERAND (arg0, 0) to type when cancelling two rotations.

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

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