From: Richard Henderson Date: Tue, 9 Jun 2020 23:32:09 +0000 (-0700) Subject: tcg: Save/restore vecop_list around minmax fallback X-Git-Tag: v5.1.0-rc1~12^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=69c918d2ef319ac63cd759c527debc2a2bdf3a0c;p=thirdparty%2Fqemu.git tcg: Save/restore vecop_list around minmax fallback Forgetting this asserts when tcg_gen_cmp_vec is called from within tcg_gen_cmpsel_vec. Fixes: 72b4c792c7a Signed-off-by: Richard Henderson --- diff --git a/tcg/tcg-op-vec.c b/tcg/tcg-op-vec.c index f784517d843..ed6fb55fe14 100644 --- a/tcg/tcg-op-vec.c +++ b/tcg/tcg-op-vec.c @@ -657,7 +657,9 @@ static void do_minmax(unsigned vece, TCGv_vec r, TCGv_vec a, TCGv_vec b, TCGOpcode opc, TCGCond cond) { if (!do_op3(vece, r, a, b, opc)) { + const TCGOpcode *hold_list = tcg_swap_vecop_list(NULL); tcg_gen_cmpsel_vec(cond, vece, r, a, b, a, b); + tcg_swap_vecop_list(hold_list); } }