@@ -1443,6 +1443,21 @@ void HELPER(asin_FP0)(CPUState *env)
floatx80_to_FP0(env, res);
}
+void HELPER(atanh_FP0)(CPUState *env)
+{
+ floatx80 res;
+ long double val;
+
+ res = FP0_to_floatx80(env);
+ val = floatx80_to_ldouble(res);
+
+ DBG_FPUH("atanh_FP0 %Lg", val);
+ val = atanhl(val);
+ DBG_FPU(" = %Lg", val);
+ res = ldouble_to_floatx80(val);
+ floatx80_to_FP0(env, res);
+}
+
void HELPER(sin_FP0)(CPUState *env)
{
floatx80 res;
@@ -69,6 +69,7 @@ DEF_HELPER_1(sqrt_FP0, void, env)
DEF_HELPER_1(lognp1_FP0, void, env)
DEF_HELPER_1(atan_FP0, void, env)
DEF_HELPER_1(asin_FP0, void, env)
+DEF_HELPER_1(atanh_FP0, void, env)
DEF_HELPER_1(sin_FP0, void, env)
DEF_HELPER_1(tanh_FP0, void, env)
DEF_HELPER_1(tan_FP0, void, env)
@@ -3746,9 +3746,12 @@ DISAS_INSN(fpu)
case 0x0a: /* fatan */
gen_helper_atan_FP0(cpu_env);
break;
- case 0x0c:
+ case 0x0c: /* fasin */
gen_helper_asin_FP0(cpu_env);
break;
+ case 0x0d: /* fatanh */
+ gen_helper_atanh_FP0(cpu_env);
+ break;
case 0x0e: /* fsin */
gen_helper_sin_FP0(cpu_env);
break;