]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/testsuite/ChangeLog
re PR tree-optimization/70354 (Wrong code with -O3 -march=broadwell and -march=skylak...
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Mar 2016 09:52:00 +0000 (10:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 23 Mar 2016 09:52:00 +0000 (10:52 +0100)
commit0179520a83329a8daefcbb87c2609035694b928a
tree81cdf9580ade688ff98c3006438d128e3cc6f686
parent7da7269a693f7bb2c3728002dd88b51e3ffa2f8b
re PR tree-optimization/70354 (Wrong code with -O3 -march=broadwell and -march=skylake-avx512.)

PR tree-optimization/70354
* tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
oprnd0 is wider than oprnd1 and there is a cast from the wider
type to oprnd1, mask it with the mask of the narrower type.

* gcc.dg/vect/pr70354-1.c: New test.
* gcc.dg/vect/pr70354-2.c: New test.
* gcc.target/i386/avx2-pr70354-1.c: New test.
* gcc.target/i386/avx2-pr70354-2.c: New test.

From-SVN: r234417
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr70354-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/vect/pr70354-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx2-pr70354-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx2-pr70354-2.c [new file with mode: 0644]
gcc/tree-vect-patterns.c