re PR target/68483 (gcc 5.2: suboptimal code compared to 4.9)
authorJakub Jelinek <jakub@redhat.com>
Tue, 24 Nov 2015 10:45:52 +0000 (11:45 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 24 Nov 2015 10:45:52 +0000 (11:45 +0100)
commit3788cfb513d19a9b36311b1317aff2141a2c6a65
tree64cec4dd60c911068b6646624ee5ba614d073759
parent3de2a40ecdfa37efa403d4b46ef116225acb0dc0
re PR target/68483 (gcc 5.2: suboptimal code compared to 4.9)

PR target/68483
* tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
is valid vec_shr pattern, don't lower it even if can_vec_perm_p
returns false.
* optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
whenever first is nelt or above.  Don't mask expected with
2 * nelt - 1.

* gcc.target/i386/pr68483-1.c: New test.
* gcc.target/i386/pr68483-2.c: New test.

From-SVN: r230797
gcc/ChangeLog
gcc/optabs.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr68483-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr68483-2.c [new file with mode: 0644]
gcc/tree-vect-generic.c