在2025年1月1日一月 下午2:57,Oleg Endo写道:
> On Wed, 2025-01-01 at 14:43 +, Jiaxun Yang wrote:
>>
>> +#ifdef __SH_FPU_ANY__
>> +#define _FPU_GETCW(fpscr) __asm__ volatile ("sts fpscr,%0" : "=r" (fpscr))
>> +#define _FPU_SETCW(fpscr) __asm__ volatile ("lds %0,fpscr" : : "r" (fpscr))
>>
>
> There's a
On Wed, 2025-01-01 at 14:43 +, Jiaxun Yang wrote:
>
> +#ifdef __SH_FPU_ANY__
> +#define _FPU_GETCW(fpscr) __asm__ volatile ("sts fpscr,%0" : "=r" (fpscr))
> +#define _FPU_SETCW(fpscr) __asm__ volatile ("lds %0,fpscr" : : "r" (fpscr))
>
There's already:
__builtin_sh_get_fpscr
__builtin
Implement fenv rouding and exceptions for soft-fp, as per SuperH
arch specification.
No new tests required, as it's already covered by many torture tests
with fenv_exceptions.
PR target/118257
libgcc/ChangeLog:
* config/sh/sfp-machine.h (_FPU_GETCW): Implement with sts.