1
0
Fork 0
mirror of https://github.com/yuzu-emu/unicorn.git synced 2025-01-12 05:55:43 +00:00

target/arm: Stop using cpu_F0s for NEON_2RM_VNEG_F

Switch NEON_2RM_VABS_F away from using cpu_F0s.

Backports commit cedcc96fc7c8e520a190a010ac97dbb53e57d7d2 from qemu
This commit is contained in:
Peter Maydell 2019-06-25 18:23:58 -05:00 committed by Lioncash
parent 63d7f92eba
commit a62cbc7ac5
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -1429,15 +1429,6 @@ static TCGv_ptr get_fpstatus_ptr(DisasContext *s, int neon)
return statusptr;
}
static inline void gen_vfp_neg(DisasContext *s, int dp)
{
TCGContext *tcg_ctx = s->uc->tcg_ctx;
if (dp)
gen_helper_vfp_negd(tcg_ctx, s->F0d, s->F0d);
else
gen_helper_vfp_negs(tcg_ctx, s->F0s, s->F0s);
}
#define VFP_GEN_ITOF(name) \
static inline void gen_vfp_##name(DisasContext *s, int dp, int neon) \
{ \
@ -4324,8 +4315,7 @@ static int neon_2rm_is_float_op(int op)
* what we are asking here is "does the code for this case in
* the Neon for-each-pass loop use cpu_F0s?".
*/
return (op == NEON_2RM_VNEG_F ||
(op >= NEON_2RM_VRINTN && op <= NEON_2RM_VRINTZ) ||
return ((op >= NEON_2RM_VRINTN && op <= NEON_2RM_VRINTZ) ||
op == NEON_2RM_VRINTM ||
(op >= NEON_2RM_VRINTP && op <= NEON_2RM_VCVTMS) ||
op >= NEON_2RM_VRECPE_F);
@ -6899,7 +6889,7 @@ static int disas_neon_data_insn(DisasContext *s, uint32_t insn)
gen_helper_vfp_abss(tcg_ctx, tmp, tmp);
break;
case NEON_2RM_VNEG_F:
gen_vfp_neg(s, 0);
gen_helper_vfp_negs(tcg_ctx, tmp, tmp);
break;
case NEON_2RM_VSWP:
tmp2 = neon_load_reg(s, rd, pass);