Skip to content

Commit 10f17dd

Browse files
committed
fixup! RISC-V: Add instruction patterns for 32-bit multiply-add and bit-extraxt fusion.
Signed-off-by: Luis Silva <[email protected]>
1 parent a33ab39 commit 10f17dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gcc/config/riscv/riscv.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4612,7 +4612,8 @@
46124612
if (REGNO (operands[0]) == REGNO (operands[3]))
46134613
{
46144614
emit_insn (gen_mulsi3 (operands[4], operands[1], operands[2]));
4615-
emit_insn (gen_addsi3 (operands[0], operands[3], operands[4]));
4615+
emit_insn (gen_addsi3 (operands[4], operands[3], operands[4]));
4616+
emit_move_insn (operands[0], operands[4]);
46164617
}
46174618
else
46184619
{

0 commit comments

Comments
 (0)