]> xenbits.xensource.com Git - people/dariof/qemu-xen.git/commitdiff
tcg: Save/restore vecop_list around minmax fallback
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 9 Jun 2020 23:32:09 +0000 (16:32 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 16 Jul 2020 20:09:22 +0000 (13:09 -0700)
Forgetting this asserts when tcg_gen_cmp_vec is called from
within tcg_gen_cmpsel_vec.

Fixes: 72b4c792c7a
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
tcg/tcg-op-vec.c

index f784517d8433b16eb10537b34c1eb641876b9c4c..ed6fb55fe1447bec82a9ca33dcc884046b872d11 100644 (file)
@@ -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);
     }
 }