mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
target/riscv: rvv-1.0: find-first-set mask bit instruction
Signed-off-by: Frank Chang <frank.chang@sifive.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20211210075704.23951-31-frank.chang@sifive.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
0014aa741d
commit
d71a24fc82
4 changed files with 7 additions and 7 deletions
|
@ -2696,7 +2696,7 @@ static bool trans_vcpop_m(DisasContext *s, arg_rmr *a)
|
|||
}
|
||||
|
||||
/* vmfirst find-first-set mask bit */
|
||||
static bool trans_vmfirst_m(DisasContext *s, arg_rmr *a)
|
||||
static bool trans_vfirst_m(DisasContext *s, arg_rmr *a)
|
||||
{
|
||||
if (require_rvv(s) &&
|
||||
vext_check_isa_ill(s)) {
|
||||
|
@ -2715,7 +2715,7 @@ static bool trans_vmfirst_m(DisasContext *s, arg_rmr *a)
|
|||
tcg_gen_addi_ptr(src2, cpu_env, vreg_ofs(s, a->rs2));
|
||||
tcg_gen_addi_ptr(mask, cpu_env, vreg_ofs(s, 0));
|
||||
|
||||
gen_helper_vmfirst_m(dst, mask, src2, cpu_env, desc);
|
||||
gen_helper_vfirst_m(dst, mask, src2, cpu_env, desc);
|
||||
gen_set_gpr(s, a->rd, dst);
|
||||
|
||||
tcg_temp_free_ptr(mask);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue