arc.c (arc_conditional_register_usage): Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.

* 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.

From-SVN: r203075
This commit is contained in:
Joern Rennecke 2013-10-01 17:37:41 +00:00 committed by Joern Rennecke
parent 5d5f672027
commit 6462fab0a2
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2013-10-01 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.
2013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
Jeremy Bennett <jeremy.bennett@embecosm.com>

View File

@ -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