aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@synopsys.com>2021-01-05 14:19:27 +0200
committerClaudiu Zissulescu <claziss@synopsys.com>2021-01-05 14:19:27 +0200
commitb679559385fea911d5cfaf67e11d1a274b379d97 (patch)
tree4d8b8dec9f1edff6c1ca503b1990463c244da433
parentbea984814c6fcd056dc80c99805925eb19a591b9 (diff)
downloadgcc-b679559385fea911d5cfaf67e11d1a274b379d97.zip
gcc-b679559385fea911d5cfaf67e11d1a274b379d97.tar.gz
gcc-b679559385fea911d5cfaf67e11d1a274b379d97.tar.bz2
arc: fix accumulator first register.
gcc/ 2021-01-05 Claudiu Zissulescu <claziss@synopsys.com> * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST. (umaddsidi4_split): Likewise. Signed-off-by: Claudiu Zissulescu <claziss@synopsys.com>
-rw-r--r--gcc/config/arc/arc.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md
index 3e54443..7a52551 100644
--- a/gcc/config/arc/arc.md
+++ b/gcc/config/arc/arc.md
@@ -6177,12 +6177,12 @@ core_3, archs4x, archs4xd, archs4xd_slow"
rtx acc_reg = gen_rtx_REG (DImode, ACC_REG_FIRST);
emit_move_insn (acc_reg, operands[3]);
if (TARGET_PLUS_MACD && even_register_operand (operands[0], DImode)
- && REGNO (operands[0]) != ACCL_REGNO)
+ && REGNO (operands[0]) != ACC_REG_FIRST)
emit_insn (gen_macd (operands[0], operands[1], operands[2]));
else
{
emit_insn (gen_mac (operands[1], operands[2]));
- if (REGNO (operands[0]) != ACCL_REGNO)
+ if (REGNO (operands[0]) != ACC_REG_FIRST)
emit_move_insn (operands[0], acc_reg);
}
DONE;
@@ -6279,12 +6279,12 @@ core_3, archs4x, archs4xd, archs4xd_slow"
rtx acc_reg = gen_rtx_REG (DImode, ACC_REG_FIRST);
emit_move_insn (acc_reg, operands[3]);
if (TARGET_PLUS_MACD && even_register_operand (operands[0], DImode)
- && REGNO (operands[0]) != ACCL_REGNO)
+ && REGNO (operands[0]) != ACC_REG_FIRST)
emit_insn (gen_macdu (operands[0], operands[1], operands[2]));
else
{
emit_insn (gen_macu (operands[1], operands[2]));
- if (REGNO (operands[0]) != ACCL_REGNO)
+ if (REGNO (operands[0]) != ACC_REG_FIRST)
emit_move_insn (operands[0], acc_reg);
}
DONE;