[PATCH] tree-scalar-evolution.c: Handle LSHIFT by constant
authorAlan Lawrence <alan.lawrence@arm.com>
Thu, 5 Nov 2015 18:39:38 +0000 (18:39 +0000)
committerAlan Lawrence <alalaw01@gcc.gnu.org>
Thu, 5 Nov 2015 18:39:38 +0000 (18:39 +0000)
commit60f2d2f36d770c7d771ee5c1b3ae5a7b7169f894
tree65aac17b5f145eda4e33e8de39b0b5c8ca339191
parentbfcfbfa0d18abea5f6ced6ec4de409aa3810733e
[PATCH] tree-scalar-evolution.c: Handle LSHIFT by constant

gcc/:

PR tree-optimization/65963
* tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.

gcc/testsuite/:

* gcc.dg/pr68112.c: New.
* gcc.dg/vect/vect-strided-shift-1.c: New.

From-SVN: r229825
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr68112.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/vect-strided-shift-1.c [new file with mode: 0644]
gcc/tree-scalar-evolution.c