re PR tree-optimization/48616 (-ftree-vectorize -mxop miscompiles right shift)
authorJakub Jelinek <jakub@redhat.com>
Mon, 18 Apr 2011 06:55:13 +0000 (08:55 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 18 Apr 2011 06:55:13 +0000 (08:55 +0200)
commit49eab32e6e79af5ef80832d058539c8d73a74ef9
tree6feeaff5594c0c4711acd5642ea25a480536999c
parent5af0793001c54632a5160a352cfdee6195338314
re PR tree-optimization/48616 (-ftree-vectorize -mxop miscompiles right shift)

PR tree-optimization/48616
* tree-vect-stmts.c (vectorizable_shift): If SLP, determine
whether the shift is by scalar or vector based on whether all SLP
scalar stmts have the same rhs.

* gcc.dg/pr48616.c: New test.

From-SVN: r172638
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr48616.c [new file with mode: 0644]
gcc/tree-vect-stmts.c