[ARC] Make D0, D1 double regs fix when not used.
authorClaudiu Zissulescu <claziss@synopsys.com>
Tue, 25 Apr 2017 12:04:14 +0000 (14:04 +0200)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Tue, 25 Apr 2017 12:04:14 +0000 (14:04 +0200)
gcc/
2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
double regs fix when not used.

From-SVN: r247198

gcc/ChangeLog
gcc/config/arc/arc.c

index e4b71023b70c7d77354b1232adc953d1ad46c3bb..e55c5df7fd1ef08404a099a178b514462173c3cc 100644 (file)
@@ -1,3 +1,8 @@
+2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
+
+       * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
+       double regs fix when not used.
+
 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
 
        * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
index d6f500c88b00dbe0957dd683a67018901cde5736..dc201ee7450f881ac6007cf13d45d9b1536eddc8 100644 (file)
@@ -1543,6 +1543,11 @@ arc_conditional_register_usage (void)
       arc_regno_reg_class[42] = ALL_REGS;
       arc_regno_reg_class[43] = ALL_REGS;
 
+      fixed_regs[40] = 1;
+      fixed_regs[41] = 1;
+      fixed_regs[42] = 1;
+      fixed_regs[43] = 1;
+
       arc_hard_regno_mode_ok[40] = 0;
       arc_hard_regno_mode_ok[42] = 0;