tcg/optimize: Do not skip default processing of dup_vec

If we do not opimize away dup_vec, we must mark its output as changed.

Backports commit 1fb57da72ae0886eba1234a2d98ddd10e88a9efc from qemu
This commit is contained in:
Richard Henderson 2018-08-09 00:52:53 -04:00 committed by Lioncash
parent e529e3fb6c
commit 9e8c8a617b
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -1093,9 +1093,9 @@ void tcg_optimize(TCGContext *s)
tmp = arg_info(op->args[1])->val; tmp = arg_info(op->args[1])->val;
tmp = dup_const(TCGOP_VECE(op), tmp); tmp = dup_const(TCGOP_VECE(op), tmp);
tcg_opt_gen_movi(s, op, op->args[0], tmp); tcg_opt_gen_movi(s, op, op->args[0], tmp);
continue;
}
break; break;
}
goto do_default;
CASE_OP_32_64(not): CASE_OP_32_64(not):
CASE_OP_32_64(neg): CASE_OP_32_64(neg):