This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Committed: Use ARC_{FIRST,LAST}_SIMD_VR_REG instead of decimal literals in arc_conditional_register_usage; fix reg_alloc_order for DMA config regs



2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>

	* config/arc/arc.c (arc_conditional_register_usage):
	Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
	Also set reg_alloc_order for DMA config regs.

diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c
index 51ad7d7..796c768 100644
--- a/gcc/config/arc/arc.c
+++ b/gcc/config/arc/arc.c
@@ -1196,7 +1196,10 @@ arc_conditional_register_usage (void)
   if (TARGET_SIMD_SET)
     {
       int i;
-      for (i=64; i<88; i++)
+      for (i = ARC_FIRST_SIMD_VR_REG; i <= ARC_LAST_SIMD_VR_REG; i++)
+	reg_alloc_order [i] = i;
+      for (i = ARC_FIRST_SIMD_DMA_CONFIG_REG;
+	   i <= ARC_LAST_SIMD_DMA_CONFIG_REG; i++)
 	reg_alloc_order [i] = i;
     }
   /* For Arctangent-A5 / ARC600, lp_count may not be read in an instruction

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]