re PR target/85323 (SSE/AVX/AVX512 shift by 0 not optimized away)
authorJakub Jelinek <jakub@redhat.com>
Thu, 17 May 2018 10:07:12 +0000 (12:07 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 17 May 2018 10:07:12 +0000 (12:07 +0200)
commit78b9544b333e58b7ceedd8dc42412c199c647e16
tree2cc1922b4bf7e0c37d9a6935a996801a1cf016f5
parent6a03477e85e1b097ed6c0b86c76436de575aef04
re PR target/85323 (SSE/AVX/AVX512 shift by 0 not optimized away)

PR target/85323
* config/i386/i386.c (ix86_fold_builtin): Handle masked shifts
even if the mask is not all ones.

* gcc.target/i386/pr85323-7.c: New test.
* gcc.target/i386/pr85323-8.c: New test.
* gcc.target/i386/pr85323-9.c: New test.

From-SVN: r260313
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr85323-7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr85323-8.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr85323-9.c [new file with mode: 0644]