https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121208

--- Comment #21 from CHARLES GOEDEFROIT <charles.goedefroit at eviden dot com> 
---
Thanks for your replies. I tried with -mtls-dialect=gnu2, and everything works
as expected.

To preserve the x87 FPU registers (MMX, YMM, ZMM, and MXCSR), I use the
XSAVEC64/XRSTOR64 instructions when saving is needed. This saving can be in the
interrupt handler (ui_handler) or in a separate function with specific
conditions (e.g. only when a specific code needs to be executed).

To save and restore these registers, it would be interesting to have attributes
similar to target(general-regs-only).
For example, an attribute named "preserve-all-fpu-regs" to save all x87 FPU
registers at the beginning of a function and restore them at the end.
Another attribute can be named "preserve-some-fpu-regs" to save only the
registers used in an inline or static function? Is this possible?

Reply via email to