summaryrefslogtreecommitdiffstats
path: root/tcg
diff options
context:
space:
mode:
authorRichard Henderson2020-06-10 01:32:09 +0200
committerRichard Henderson2020-07-16 22:09:22 +0200
commit69c918d2ef319ac63cd759c527debc2a2bdf3a0c (patch)
tree6425877359008aa5b71e927af5c838545fd54206 /tcg
parentMerge remote-tracking branch 'remotes/kraxel/tags/fixes-20200716-pull-request... (diff)
downloadqemu-69c918d2ef319ac63cd759c527debc2a2bdf3a0c.tar.gz
qemu-69c918d2ef319ac63cd759c527debc2a2bdf3a0c.tar.xz
qemu-69c918d2ef319ac63cd759c527debc2a2bdf3a0c.zip
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 <richard.henderson@linaro.org>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/tcg-op-vec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcg/tcg-op-vec.c b/tcg/tcg-op-vec.c
index f784517d84..ed6fb55fe1 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);
}
}