From b679559385fea911d5cfaf67e11d1a274b379d97 Mon Sep 17 00:00:00 2001 From: Claudiu Zissulescu Date: Tue, 5 Jan 2021 14:19:27 +0200 Subject: [PATCH] arc: fix accumulator first register. gcc/ 2021-01-05 Claudiu Zissulescu * config/arc/arc.md (maddsidi4_split): Use ACC_REG_FIRST. (umaddsidi4_split): Likewise. Signed-off-by: Claudiu Zissulescu --- gcc/config/arc/arc.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md index 3e544430167..7a52551eef5 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; -- 2.30.2