tcg: Use tcg_gen_gvec_dup_imm in logical simplifications

Replace the outgoing interface.

Backports commit 03ddb6f315ca6d02dfdba0aecc43aa97c728c428 from qemu
This commit is contained in:
Richard Henderson 2020-05-07 10:09:51 -04:00 committed by Lioncash
parent b0f6374149
commit 43a72b0540

View file

@ -2327,7 +2327,7 @@ void tcg_gen_gvec_xor(TCGContext *s, unsigned vece, uint32_t dofs, uint32_t aofs
};
if (aofs == bofs) {
tcg_gen_gvec_dup8i(s, dofs, oprsz, maxsz, 0);
tcg_gen_gvec_dup_imm(s, MO_64, dofs, oprsz, maxsz, 0);
} else {
tcg_gen_gvec_3(s, dofs, aofs, bofs, oprsz, maxsz, &g);
}
@ -2344,7 +2344,7 @@ void tcg_gen_gvec_andc(TCGContext *s, unsigned vece, uint32_t dofs, uint32_t aof
};
if (aofs == bofs) {
tcg_gen_gvec_dup8i(s, dofs, oprsz, maxsz, 0);
tcg_gen_gvec_dup_imm(s, MO_64, dofs, oprsz, maxsz, 0);
} else {
tcg_gen_gvec_3(s, dofs, aofs, bofs, oprsz, maxsz, &g);
}
@ -2361,7 +2361,7 @@ void tcg_gen_gvec_orc(TCGContext *s, unsigned vece, uint32_t dofs, uint32_t aofs
};
if (aofs == bofs) {
tcg_gen_gvec_dup8i(s, dofs, oprsz, maxsz, -1);
tcg_gen_gvec_dup_imm(s, MO_64, dofs, oprsz, maxsz, -1);
} else {
tcg_gen_gvec_3(s, dofs, aofs, bofs, oprsz, maxsz, &g);
}
@ -2412,7 +2412,7 @@ void tcg_gen_gvec_eqv(TCGContext *s, unsigned vece, uint32_t dofs, uint32_t aofs
};
if (aofs == bofs) {
tcg_gen_gvec_dup8i(s, dofs, oprsz, maxsz, -1);
tcg_gen_gvec_dup_imm(s, MO_64, dofs, oprsz, maxsz, -1);
} else {
tcg_gen_gvec_3(s, dofs, aofs, bofs, oprsz, maxsz, &g);
}