re PR middle-end/91623 (-msse4.1 -O3 segfault in /usr/lib/gcc/x86_64-pc-linux-gnu...
authorJakub Jelinek <jakub@redhat.com>
Sun, 1 Sep 2019 11:57:10 +0000 (13:57 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 1 Sep 2019 11:57:10 +0000 (13:57 +0200)
commit9151048d854e352a9b83b771c6711b8221c73f7e
treea1001271e1322a0404e480ee7deeeb91ae45159d
parentd1e2e50a5f4d077eab6d3c93047203d15f16b324
re PR middle-end/91623 (-msse4.1 -O3 segfault in /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/smmintrin.h:270:10)

PR middle-end/91623
* optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
zeros or negative elements and use NE_EXPR instead of LT_EXPR against
zero vector.

* gcc.target/i386/pr91623.c: New test.

From-SVN: r275267
gcc/ChangeLog
gcc/optabs.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr91623.c [new file with mode: 0644]