]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-vect-stmts.c
tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def in a loop and...
authorJakub Jelinek <jakub@redhat.com>
Mon, 31 Oct 2011 16:52:19 +0000 (17:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 31 Oct 2011 16:52:19 +0000 (17:52 +0100)
commitaa9480274fb3ad710e1afc6558c09e1ab0e7d468
tree021f641e722e04eb77cf47f6a52a9de1f42432ef
parent08810e5257936014e242527cdbb2de6beddf24e8
tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def in a loop and has different type from op0...

* tree-vect-stmts.c (vectorizable_shift): If op1 is vect_external_def
in a loop and has different type from op0, cast it to op0's type
before the loop first.  For slp give up.  Don't crash if op1_vectype
is NULL.

* gcc.dg/vshift-3.c: New test.
* gcc.dg/vshift-4.c: New test.
* gcc.dg/vshift-5.c: New test.

From-SVN: r180704
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vshift-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vshift-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vshift-5.c [new file with mode: 0644]
gcc/tree-vect-stmts.c