mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 21:40:49 +00:00
target/arm: Use gvec for NEON_2RM_VMN, NEON_2RM_VNEG
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20181011205206.3552-11-richard.henderson@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
e4717ae02d
commit
4bf940beba
@ -7501,6 +7501,14 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn)
|
||||
tcg_temp_free_ptr(ptr1);
|
||||
tcg_temp_free_ptr(ptr2);
|
||||
break;
|
||||
|
||||
case NEON_2RM_VMVN:
|
||||
tcg_gen_gvec_not(0, rd_ofs, rm_ofs, vec_size, vec_size);
|
||||
break;
|
||||
case NEON_2RM_VNEG:
|
||||
tcg_gen_gvec_neg(size, rd_ofs, rm_ofs, vec_size, vec_size);
|
||||
break;
|
||||
|
||||
default:
|
||||
elementwise:
|
||||
for (pass = 0; pass < (q ? 4 : 2); pass++) {
|
||||
@ -7541,9 +7549,6 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn)
|
||||
case NEON_2RM_VCNT:
|
||||
gen_helper_neon_cnt_u8(tmp, tmp);
|
||||
break;
|
||||
case NEON_2RM_VMVN:
|
||||
tcg_gen_not_i32(tmp, tmp);
|
||||
break;
|
||||
case NEON_2RM_VQABS:
|
||||
switch (size) {
|
||||
case 0:
|
||||
@ -7616,11 +7621,6 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn)
|
||||
default: abort();
|
||||
}
|
||||
break;
|
||||
case NEON_2RM_VNEG:
|
||||
tmp2 = tcg_const_i32(0);
|
||||
gen_neon_rsb(size, tmp, tmp2);
|
||||
tcg_temp_free_i32(tmp2);
|
||||
break;
|
||||
case NEON_2RM_VCGT0_F:
|
||||
{
|
||||
TCGv_ptr fpstatus = get_fpstatus_ptr(1);
|
||||
|
Loading…
Reference in New Issue
Block a user