Hi!

On 2025/09/12 14:14, Max Filippov wrote:
Hi Suwa-san,

On Thu, Sep 11, 2025 at 1:48 PM Takayuki 'January June' Suwa
<jjsuwa_sys3...@yahoo.co.jp> wrote:

If the Floating-Point Coprocessor option is configured and there are no
floating-point coprocessor instructions in the function, the unused
floating-point registers (f0 thru f15) can be good targets for spilling
address (integer) registers.

For reference, the ISA manual says that [RW]FR machine instructions have
non-arithmetic behavior and do not raise floating-point exceptions.

They don't raise floating-point exceptions, but they would still raise
the "coprocessor disabled" exception if the FP coprocessor is disabled.
Also all the conditions that you mentioned may be satisfied in the linux
kernel code, yet it shouldn't clobber the FP registers.

Ah, I see.

So instead, let's have a target-specific option that enables this feature,
and it will be disabled by default and not automatically enabled even at
high optimization levels.

=====
jjsuwa_sys3...@yahoo.co.jp

Reply via email to