]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
rs6000: Add dense math register names in darwin.h master trunk
authorAvinash Jayakar <avinashd@linux.ibm.com>
Wed, 29 Jul 2026 07:10:57 +0000 (12:40 +0530)
committerAvinash Jayakar <avinashd@linux.ibm.com>
Thu, 30 Jul 2026 06:27:01 +0000 (11:57 +0530)
Darwin maintains a separate array of register_names where the Dense Math
Registers were not added. This caused an ICE when building the darwin
cross compiler as reported in PR126438. This patch adds dense math
registers to the REGISTER_NAMES array to fix this issue.

2026-07-29  Avinash Jayakar  <avinashd@linux.ibm.com>

gcc/ChangeLog:
PR target/126438
* config/rs6000/darwin.h (REGISTER_NAMES): Add dmf registers.

gcc/config/rs6000/darwin.h

index 175b6b1c3e088d8e03db171a7524d74e28316249..8614052d8cacb306b148bb563633c567bb09037e 100644 (file)
   /* cr0..cr7 */                                                       \
     "cr0", "cr1", "cr2", "cr3", "cr4", "cr5", "cr6", "cr7",            \
   /* vrsave vscr sfp */                                                        \
-    "vrsave", "vscr", "sfp"                                            \
+    "vrsave", "vscr", "sfp",                                           \
+  /* DMRs */                                                           \
+      "dm0", "dm1", "dm2", "dm3", "dm4", "dm5", "dm6", "dm7"   \
 }
 
 /* This outputs NAME to FILE.  */