On Wed, 2025-01-01 at 14:43 +0000, 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_sh_set_fpscr

.. can you please use that instead of the inline asm?

Best regards,
Oleg Endo

Reply via email to