re PR tree-optimization/91157 (ICE: verify_gimple failed (error: position plus size...
authorJakub Jelinek <jakub@redhat.com>
Wed, 17 Jul 2019 07:13:17 +0000 (09:13 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 17 Jul 2019 07:13:17 +0000 (09:13 +0200)
commit7eb5baff994b249c0fb5d913e6f7afa7b9fbbc63
tree8845117a55255e65eb8657165e9a84cc94f377a7
parentd6350f82315a6d811c6dd0910ea37f64524ef07b
re PR tree-optimization/91157 (ICE: verify_gimple failed (error: position plus size exceeds size of referenced object in 'bit_field_ref'))

PR tree-optimization/91157
* tree-vect-generic.c (expand_vector_comparison): Handle lhs being
a vector boolean with scalar mode.
(expand_vector_condition): Handle first operand being a vector boolean
with scalar mode.
(expand_vector_operations_1): For comparisons, don't bail out early
if the return type is vector boolean with scalar mode, but comparison
operand type is not.

* gcc.target/i386/avx512f-pr91157.c: New test.
* gcc.target/i386/avx512bw-pr91157.c: New test.

From-SVN: r273543
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx512bw-pr91157.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx512f-pr91157.c [new file with mode: 0644]
gcc/tree-vect-generic.c