Oleg Endo <[email protected]> wrote:
> I'd like to fix this ancient PR.
> The attached patch picks up the suggested changes mentioned in comment
> #3 to avoid changing the FPSCR.FR bit in the sdivsi3_i4 and udivsi3_i4
> library functions. As mentioned in the PR, this makes integer division
> a bit slower when using -mdiv=call-fp, but it allows better utilization
> of the SH4 matrix multiplication feature.
> I've also added SH4A versions of the library functions which utilize the
> fpchg instruction.
>
>
> Tested on rev 199102 with
> make -k check RUNTESTFLAGS="--target_board=sh-sim
> \{-m4/-mb/-mdiv=call-fp,-m4-single/-mb/-mdiv=call-fp,-m4a/-mb/-mdiv=call-fp,
> -m4a-single/-mb/-mdiv=call-fp,-m4/-ml/-mdiv=call-fp,
> -m4-single/-ml/-mdiv=call-fp,-m4a/-ml/-mdiv=call-fp,
> -m4a-single/-ml/-mdiv=call-fp}"
>
> and no new failures.
>
> OK for trunk?
OK.
Regards,
kaz