Re: [Qemu-devel] [PATCH 2/4] target/m68k: add FPU trigonometric instructions

2017-07-03 Thread Richard Henderson
On 07/03/2017 12:11 PM, Richard Henderson wrote: if (floatx80_to_ldouble(, val))) { d = sinl(d); val = ldouble_to_floatx80(d, status); } else { status->float_exception_flags |= float_flag_invalid; val = floatx80_default_nan(status); } Blah. I didn't mean

Re: [Qemu-devel] [PATCH 2/4] target/m68k: add FPU trigonometric instructions

2017-07-03 Thread Richard Henderson
On 07/03/2017 09:23 AM, Laurent Vivier wrote: +long double floatx80_to_ldouble(floatx80 val) +{ +long double mantissa; +int32_t exp; +uint8_t sign; + +if (floatx80_is_infinity(val)) { +if (floatx80_is_neg(val)) { +return -__builtin_infl(); +} +

[Qemu-devel] [PATCH 2/4] target/m68k: add FPU trigonometric instructions

2017-07-03 Thread Laurent Vivier
Add fsinh, flognp1, ftanh, fatan, fasin, fatanh, fsin, ftan, fetox, ftwotox, ftentox, flogn, flog10, facos, fcos, fsincos. As softfloat library does not provide these functions, we use the libm of the host. Signed-off-by: Laurent Vivier --- target/m68k/cpu.h| 1 +