re PR tree-optimization/92819 (Worse code generated on avx2 due to simplify_vector_co...
authorRichard Biener <rguenther@suse.de>
Fri, 6 Dec 2019 07:53:15 +0000 (07:53 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 6 Dec 2019 07:53:15 +0000 (07:53 +0000)
commit2ef278569f60a2c1556f1752aeba39c586521371
tree327828c5b3bda519cfed60d710e3a2d0e8e895c5
parent9961856c3acb8e7d9def11b58001db6af9f14253
re PR tree-optimization/92819 (Worse code generated on avx2 due to simplify_vector_constructor)

2019-12-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/92819
* match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
into the last lane.  For two-element vectors try inserting
into the last lane when inserting into the first fails.

* gcc.target/i386/pr92819-1.c: New testcase.
* gcc.target/i386/pr92803.c: Adjust.

From-SVN: r279033
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr92803.c
gcc/testsuite/gcc.target/i386/pr92819-1.c [new file with mode: 0644]