Re: [hatari-devel] FPU update |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
>> Quick test results:
>>
>> FMOVEM does not do anything (as documented), FMOVEM to register
>> and FMOVEM from same register back to memory: same bit pattern.
>>
>> Any arithmetic operation seems to normalize it automatically. I
>> tried FNEG, FABS, FADD (with another register containing zero),
>> register content was normalized even if it was source for FADD.
>>
> Thank you for the quick test! In this case I need to add that
> automatic normalization to fp_arithmetic. I guess 68040/68060 will
> raise unimplemented datatype (pre) exception. That would make sense,
> wouldn't it?
Yeah, which is already supported in get_fp_value() (for source values).
I guess cleanest way is to replace "fault_if_unimplemented_680x0" before
arithmetic call with function that does first unimplemented check and
then normalizations if neeeded.