target/arm: Remove helper_sqrt_f16
This function is identical with helper_vfp_sqrth. Replace all uses. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20241211163036.2297116-27-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
cf866d81b8
commit
62b85fd044
@ -915,17 +915,6 @@ illegal_return:
|
|||||||
"resuming execution at 0x%" PRIx64 "\n", cur_el, env->pc);
|
"resuming execution at 0x%" PRIx64 "\n", cur_el, env->pc);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Square Root and Reciprocal square root
|
|
||||||
*/
|
|
||||||
|
|
||||||
uint32_t HELPER(sqrt_f16)(uint32_t a, void *fpstp)
|
|
||||||
{
|
|
||||||
float_status *s = fpstp;
|
|
||||||
|
|
||||||
return float16_sqrt(a, s);
|
|
||||||
}
|
|
||||||
|
|
||||||
void HELPER(dc_zva)(CPUARMState *env, uint64_t vaddr_in)
|
void HELPER(dc_zva)(CPUARMState *env, uint64_t vaddr_in)
|
||||||
{
|
{
|
||||||
uintptr_t ra = GETPC();
|
uintptr_t ra = GETPC();
|
||||||
|
@ -80,7 +80,6 @@ DEF_HELPER_2(advsimd_rinth_exact, f16, f16, ptr)
|
|||||||
DEF_HELPER_2(advsimd_rinth, f16, f16, ptr)
|
DEF_HELPER_2(advsimd_rinth, f16, f16, ptr)
|
||||||
DEF_HELPER_2(advsimd_f16tosinth, i32, f16, ptr)
|
DEF_HELPER_2(advsimd_f16tosinth, i32, f16, ptr)
|
||||||
DEF_HELPER_2(advsimd_f16touinth, i32, f16, ptr)
|
DEF_HELPER_2(advsimd_f16touinth, i32, f16, ptr)
|
||||||
DEF_HELPER_2(sqrt_f16, f16, f16, ptr)
|
|
||||||
|
|
||||||
DEF_HELPER_2(exception_return, void, env, i64)
|
DEF_HELPER_2(exception_return, void, env, i64)
|
||||||
DEF_HELPER_FLAGS_2(dc_zva, TCG_CALL_NO_WG, void, env, i64)
|
DEF_HELPER_FLAGS_2(dc_zva, TCG_CALL_NO_WG, void, env, i64)
|
||||||
|
@ -8354,7 +8354,7 @@ static void handle_fp_1src_half(DisasContext *s, int opcode, int rd, int rn)
|
|||||||
switch (opcode) {
|
switch (opcode) {
|
||||||
case 0x3: /* FSQRT */
|
case 0x3: /* FSQRT */
|
||||||
fpst = fpstatus_ptr(FPST_FPCR_F16);
|
fpst = fpstatus_ptr(FPST_FPCR_F16);
|
||||||
gen_helper_sqrt_f16(tcg_res, tcg_op, fpst);
|
gen_helper_vfp_sqrth(tcg_res, tcg_op, fpst);
|
||||||
break;
|
break;
|
||||||
case 0x8: /* FRINTN */
|
case 0x8: /* FRINTN */
|
||||||
case 0x9: /* FRINTP */
|
case 0x9: /* FRINTP */
|
||||||
@ -10978,7 +10978,7 @@ static void disas_simd_two_reg_misc_fp16(DisasContext *s, uint32_t insn)
|
|||||||
gen_helper_rsqrte_f16(tcg_res, tcg_op, tcg_fpstatus);
|
gen_helper_rsqrte_f16(tcg_res, tcg_op, tcg_fpstatus);
|
||||||
break;
|
break;
|
||||||
case 0x7f: /* FSQRT */
|
case 0x7f: /* FSQRT */
|
||||||
gen_helper_sqrt_f16(tcg_res, tcg_op, tcg_fpstatus);
|
gen_helper_vfp_sqrth(tcg_res, tcg_op, tcg_fpstatus);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached();
|
g_assert_not_reached();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user