From 9e8c8a617b4326982d139abb65a7e470a0c442f7 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 9 Aug 2018 00:52:53 -0400 Subject: [PATCH] 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 --- qemu/tcg/optimize.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qemu/tcg/optimize.c b/qemu/tcg/optimize.c index c9f8b920..35371fb0 100644 --- a/qemu/tcg/optimize.c +++ b/qemu/tcg/optimize.c @@ -1093,9 +1093,9 @@ void tcg_optimize(TCGContext *s) tmp = arg_info(op->args[1])->val; tmp = dup_const(TCGOP_VECE(op), 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(neg):