Skip to content

Commit 69c918d

Browse files
committed
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: 72b4c79 Signed-off-by: Richard Henderson <[email protected]>
1 parent 95d1fba commit 69c918d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tcg/tcg-op-vec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,9 @@ static void do_minmax(unsigned vece, TCGv_vec r, TCGv_vec a,
657657
TCGv_vec b, TCGOpcode opc, TCGCond cond)
658658
{
659659
if (!do_op3(vece, r, a, b, opc)) {
660+
const TCGOpcode *hold_list = tcg_swap_vecop_list(NULL);
660661
tcg_gen_cmpsel_vec(cond, vece, r, a, b, a, b);
662+
tcg_swap_vecop_list(hold_list);
661663
}
662664
}
663665

0 commit comments

Comments
 (0)