re PR c++/85077 (V[248][SD]F abs not optimized to)
authorJakub Jelinek <jakub@redhat.com>
Tue, 27 Mar 2018 20:00:56 +0000 (22:00 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 27 Mar 2018 20:00:56 +0000 (22:00 +0200)
commit153dba6cbb3b37ad07d23d212890b2bd055ac05f
treeea10fd34e5bb3a747c9941d1ae3cc3fc692e200a
parenta7dea61705009a47b788ecafed0816ab8b54e3ac
re PR c++/85077 (V[248][SD]F abs not optimized to)

PR c++/85077
* cp-gimplify.c (cp_fold) <case CONSTRUCTOR>: For ctors with vector
type call fold to generate VECTOR_CSTs when possible.

* g++.dg/ext/vector35.C: New test.

From-SVN: r258903
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/vector35.C [new file with mode: 0644]