[Bug middle-end/91623] [7/8/9 Regression] -msse4.1 -O3 segfault in /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/smmintrin.h:270:10

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Oct 21 11:39:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91623

--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Mon Oct 21 11:38:37 2019
New Revision: 277246

URL: https://gcc.gnu.org/viewcvs?rev=277246&root=gcc&view=rev
Log:
        Backported from mainline
        2019-09-01  Jakub Jelinek  <jakub@redhat.com>

        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.

Added:
    branches/gcc-9-branch/gcc/testsuite/gcc.target/i386/pr91623.c
Modified:
    branches/gcc-9-branch/gcc/ChangeLog
    branches/gcc-9-branch/gcc/optabs.c
    branches/gcc-9-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list