fold-const.c (fold_unary_loc): Fold VEC_UNPACK_LO_EXPR...
authorJakub Jelinek <jakub@redhat.com>
Sat, 3 Dec 2011 16:41:23 +0000 (17:41 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 3 Dec 2011 16:41:23 +0000 (17:41 +0100)
commited74d6972b1370588186762f7a787623d53d3140
tree101d7dce72755d652f7a8bd031b61275b10c84d4
parentf8cca67b9c954eca6540832ad88c6ddeb30cbaeb
fold-const.c (fold_unary_loc): Fold VEC_UNPACK_LO_EXPR...

* fold-const.c (fold_unary_loc): Fold VEC_UNPACK_LO_EXPR,
VEC_UNPACK_HI_EXPR, VEC_UNPACK_FLOAT_LO_EXPR and
VEC_UNPACK_FLOAT_HI_EXPR with VECTOR_CST argument.
(fold_binary_loc): Fold VEC_PACK_TRUNC_EXPR,
VEC_PACK_FIX_TRUNC_EXPR, VEC_WIDEN_MULT_LO_EXPR
and VEC_WIDEN_MULT_HI_EXPR with VECTOR_CST arguments.

* gcc.dg/vect/vect-122.c: New test.

From-SVN: r181972
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/vect-122.c [new file with mode: 0644]