Fix 0 != CODE_FOR_nothing thinko

* expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
        * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
        dummy != CODE_FOR_nothing value.

From-SVN: r189672
This commit is contained in:
Richard Henderson 2012-07-19 11:53:20 -07:00 committed by Richard Henderson
parent 99091b7039
commit dee54b6eb0
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2012-07-19 Richard Henderson <rth@redhat.com>
* expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
* tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
dummy != CODE_FOR_nothing value.
2012-07-19 Uros Bizjak <ubizjak@gmail.com>
* doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.

View File

@ -6130,7 +6130,7 @@ store_constructor (tree exp, rtx target, int cleared, HOST_WIDE_INT size)
constructor_elt *ce;
int i;
int need_to_clear;
int icode = 0;
int icode = CODE_FOR_nothing;
tree elttype = TREE_TYPE (type);
int elt_size = tree_low_cst (TYPE_SIZE (elttype), 1);
enum machine_mode eltmode = TYPE_MODE (elttype);

View File

@ -3531,7 +3531,7 @@ vectorizable_operation (gimple stmt, gimple_stmt_iterator *gsi,
if (code == MULT_HIGHPART_EXPR)
{
if (can_mult_highpart_p (vec_mode, TYPE_UNSIGNED (vectype)))
icode = 0;
icode = LAST_INSN_CODE;
else
icode = CODE_FOR_nothing;
}