[clang] [llvm] [ARM] Save floating point registers and status registers with save_fp function attribute (PR #89654)

Benson Chu via llvm-commits llvm-commits at lists.llvm.org
Tue May 14 07:41:46 PDT 2024


================
@@ -2239,6 +2239,20 @@ The semantics are as follows:
   }];
 }
 
+def ARMInterruptSaveFPDocs : Documentation {
+    let Category = DocCatFunction;
+  let Heading = "interrupt_save_fp (ARM)";
+  let Content = [{
+Clang supports the GNU style ``__attribute__((interrupt_save_fp("TYPE")))``
+on ARM targets. This attribute behaves the same way as the ARM interrupt
+attribute, except the general purpose floating point registers are also saved. 
+If the FPEXC or FPSCR are needed, that state must be saved manually. Note, even 
----------------
pestctrl wrote:

The FPSCR is in fact saved, along with the FPEXC.

https://github.com/llvm/llvm-project/pull/89654


More information about the llvm-commits mailing list