mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-22 09:51:05 +00:00
tcg: Use tcg_gen_gvec_dup_imm in logical simplifications
Replace the outgoing interface. Backports commit 03ddb6f315ca6d02dfdba0aecc43aa97c728c428 from qemu
This commit is contained in:
parent
b0f6374149
commit
43a72b0540
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue