re PR tree-optimization/88903 (wrong-code with SLP vectorized shift)
authorRichard Biener <rguenther@suse.de>
Fri, 18 Jan 2019 13:13:21 +0000 (13:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 18 Jan 2019 13:13:21 +0000 (13:13 +0000)
commit649794ff576fb9a033358799eb43a43addff1aa9
treeaf1f4ed29767e1b12eba1441e6669678ffaf5c42
parent420183d996f320dddb3d1094ae340c53719e0de3
re PR tree-optimization/88903 (wrong-code with SLP vectorized shift)

2019-01-18  Richard Biener  <rguenther@suse.de>

PR tree-optimization/88903
* tree-vect-stmts.c (vectorizable_shift): Verify we see all
scalar stmts a SLP shift amount is composed of when detecting
shifts by scalars.

* gcc.dg/vect/pr88903-1.c: New testcase.
* gcc.dg/vect/pr88903-2.c: Likewise.

From-SVN: r268076
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr88903-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr88903-2.c [new file with mode: 0644]
gcc/tree-vect-stmts.c