mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-09-06 01:43:39 +00:00
tcg: Remove vecop_list check from tcg_gen_not_vec
The not pattern is always available via generic expansion.
See debug block in tcg_can_emit_vecop_list.
Fixes: 11978f6f58
("tcg: Fix expansion of INDEX_op_not_vec")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
0d58c66068
commit
77fafcb500
|
@ -391,12 +391,11 @@ static bool do_op2(unsigned vece, TCGv_vec r, TCGv_vec a, TCGOpcode opc)
|
||||||
|
|
||||||
void tcg_gen_not_vec(unsigned vece, TCGv_vec r, TCGv_vec a)
|
void tcg_gen_not_vec(unsigned vece, TCGv_vec r, TCGv_vec a)
|
||||||
{
|
{
|
||||||
const TCGOpcode *hold_list = tcg_swap_vecop_list(NULL);
|
if (TCG_TARGET_HAS_not_vec) {
|
||||||
|
vec_gen_op2(INDEX_op_not_vec, 0, r, a);
|
||||||
if (!TCG_TARGET_HAS_not_vec || !do_op2(vece, r, a, INDEX_op_not_vec)) {
|
} else {
|
||||||
tcg_gen_xor_vec(0, r, a, tcg_constant_vec_matching(r, 0, -1));
|
tcg_gen_xor_vec(0, r, a, tcg_constant_vec_matching(r, 0, -1));
|
||||||
}
|
}
|
||||||
tcg_swap_vecop_list(hold_list);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void tcg_gen_neg_vec(unsigned vece, TCGv_vec r, TCGv_vec a)
|
void tcg_gen_neg_vec(unsigned vece, TCGv_vec r, TCGv_vec a)
|
||||||
|
|
Loading…
Reference in a new issue