mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-06-21 22:37:48 +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:
parent
63d7f92eba
commit
a62cbc7ac5
|
@ -1429,15 +1429,6 @@ static TCGv_ptr get_fpstatus_ptr(DisasContext *s, int neon)
|
||||||
return statusptr;
|
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) \
|
#define VFP_GEN_ITOF(name) \
|
||||||
static inline void gen_vfp_##name(DisasContext *s, int dp, int neon) \
|
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
|
* what we are asking here is "does the code for this case in
|
||||||
* the Neon for-each-pass loop use cpu_F0s?".
|
* the Neon for-each-pass loop use cpu_F0s?".
|
||||||
*/
|
*/
|
||||||
return (op == NEON_2RM_VNEG_F ||
|
return ((op >= NEON_2RM_VRINTN && op <= NEON_2RM_VRINTZ) ||
|
||||||
(op >= NEON_2RM_VRINTN && op <= NEON_2RM_VRINTZ) ||
|
|
||||||
op == NEON_2RM_VRINTM ||
|
op == NEON_2RM_VRINTM ||
|
||||||
(op >= NEON_2RM_VRINTP && op <= NEON_2RM_VCVTMS) ||
|
(op >= NEON_2RM_VRINTP && op <= NEON_2RM_VCVTMS) ||
|
||||||
op >= NEON_2RM_VRECPE_F);
|
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);
|
gen_helper_vfp_abss(tcg_ctx, tmp, tmp);
|
||||||
break;
|
break;
|
||||||
case NEON_2RM_VNEG_F:
|
case NEON_2RM_VNEG_F:
|
||||||
gen_vfp_neg(s, 0);
|
gen_helper_vfp_negs(tcg_ctx, tmp, tmp);
|
||||||
break;
|
break;
|
||||||
case NEON_2RM_VSWP:
|
case NEON_2RM_VSWP:
|
||||||
tmp2 = neon_load_reg(s, rd, pass);
|
tmp2 = neon_load_reg(s, rd, pass);
|
||||||
|
|
Loading…
Reference in a new issue