Force the creation of a CONST_VECTOR for expand_vec_perm.
authorRichard Henderson <rth@redhat.com>
Sat, 10 Dec 2011 20:43:03 +0000 (12:43 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Sat, 10 Dec 2011 20:43:03 +0000 (12:43 -0800)
commitccdfb0e2c6ad7c93ca7657a79a773f0af8f40be7
tree64952c5ea5b975ebfc52549bce82d112fa6ee2eb
parenta7de2c2a71940a25408c1320498c1c1ca2472313
Force the creation of a CONST_VECTOR for expand_vec_perm.

        * expr.c (expand_expr_real_2) [VEC_PERM_EXPR]: Avoid passing a
        CONST_INT to expand_vec_perm as the selector.
        * optabs.c (expand_vec_perm): Assert the selector is of a proper mode.

From-SVN: r182192
gcc/ChangeLog
gcc/expr.c
gcc/optabs.c