This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/70354] [6 Regression] Wrong code with -O3 -march=broadwell and -march=skylake-avx512.


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

--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Mar 23 09:52:00 2016
New Revision: 234417

URL: https://gcc.gnu.org/viewcvs?rev=234417&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/gcc.dg/vect/pr70354-1.c
    trunk/gcc/testsuite/gcc.dg/vect/pr70354-2.c
    trunk/gcc/testsuite/gcc.target/i386/avx2-pr70354-1.c
    trunk/gcc/testsuite/gcc.target/i386/avx2-pr70354-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-vect-patterns.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]