+2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
+
+ * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
+ ACCH registers whenever they are available.
+
2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
SET_HARD_REG_BIT (reg_class_contents[WRITABLE_CORE_REGS], ACCH_REGNO);
SET_HARD_REG_BIT (reg_class_contents[CHEAP_CORE_REGS], ACCL_REGNO);
SET_HARD_REG_BIT (reg_class_contents[CHEAP_CORE_REGS], ACCH_REGNO);
+ SET_HARD_REG_BIT (reg_class_contents[GENERAL_REGS], ACCL_REGNO);
+ SET_HARD_REG_BIT (reg_class_contents[GENERAL_REGS], ACCH_REGNO);
+ SET_HARD_REG_BIT (reg_class_contents[MPY_WRITABLE_CORE_REGS], ACCL_REGNO);
+ SET_HARD_REG_BIT (reg_class_contents[MPY_WRITABLE_CORE_REGS], ACCH_REGNO);
+
+ /* Allow the compiler to freely use them. */
+ fixed_regs[ACCL_REGNO] = 0;
+ fixed_regs[ACCH_REGNO] = 0;
+
arc_hard_regno_mode_ok[ACC_REG_FIRST] = D_MODES;
}
}