tree-vect-patterns.c (vect_recog_rotate_pattern): For vect_external_def oprnd1 with...
authorJakub Jelinek <jakub@redhat.com>
Fri, 17 May 2013 09:13:33 +0000 (11:13 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 17 May 2013 09:13:33 +0000 (11:13 +0200)
commit68119618f7a027c1c0205319fc9d315169e6d60f
treea4d3a746419a4a5e8ccd17a8b13d9a8d167337e5
parent0a91f65deba068300da5c8cc30ef3124f758bfbb
tree-vect-patterns.c (vect_recog_rotate_pattern): For vect_external_def oprnd1 with loop_vinfo...

* tree-vect-patterns.c (vect_recog_rotate_pattern): For
vect_external_def oprnd1 with loop_vinfo, try to emit
optional cast, negation and and stmts on the loop preheader
edge instead of into the pattern def seq.

* gcc.target/i386/rotate-4.c: Compile only with -mavx
instead of -mavx2, require only avx instead of avx2.
* gcc.target/i386/rotate-4a.c: Include avx-check.h instead
of avx2-check.h and turn into an avx runtime test instead of
avx2 runtime test.

From-SVN: r199005
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/rotate-4.c
gcc/testsuite/gcc.target/i386/rotate-4a.c
gcc/tree-vect-patterns.c