From: Geng Qi Date: Mon, 27 Sep 2021 11:37:45 +0000 (+0800) Subject: RISC-V: Pattern name fix mul*3_highpart -> smul*3_highpart. X-Git-Tag: basepoints/gcc-13~4362 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=68c081bb437d7383481bb75e1f79975f63dc7661;p=thirdparty%2Fgcc.git RISC-V: Pattern name fix mul*3_highpart -> smul*3_highpart. No known code changes, just fixes an inconsistency that was noticed. gcc/ * config/riscv/riscv.md (mulv4): Call gen_smul3_highpart. (mulditi3): Call muldi3_highpart. (muldi3_highpart): Rename to muldi3_highpart. (mulsidi3): Call mulsi3_highpart. (mulsi3_highpart): Rename to mulsi3_highpart. --- diff --git a/gcc/config/riscv/riscv.md b/gcc/config/riscv/riscv.md index f88877fd5966..98364f00f6d2 100644 --- a/gcc/config/riscv/riscv.md +++ b/gcc/config/riscv/riscv.md @@ -802,7 +802,7 @@ rtx hp = gen_reg_rtx (mode); rtx lp = gen_reg_rtx (mode); - emit_insn (gen_mul3_highpart (hp, operands[1], operands[2])); + emit_insn (gen_smul3_highpart (hp, operands[1], operands[2])); emit_insn (gen_mul3 (operands[0], operands[1], operands[2])); emit_insn (gen_ashr3 (lp, operands[0], GEN_INT (BITS_PER_WORD - 1))); @@ -899,14 +899,14 @@ emit_insn (gen_muldi3 (low, operands[1], operands[2])); rtx high = gen_reg_rtx (DImode); - emit_insn (gen_muldi3_highpart (high, operands[1], operands[2])); + emit_insn (gen_muldi3_highpart (high, operands[1], operands[2])); emit_move_insn (gen_lowpart (DImode, operands[0]), low); emit_move_insn (gen_highpart (DImode, operands[0]), high); DONE; }) -(define_insn "muldi3_highpart" +(define_insn "muldi3_highpart" [(set (match_operand:DI 0 "register_operand" "=r") (truncate:DI (lshiftrt:TI @@ -961,13 +961,13 @@ { rtx temp = gen_reg_rtx (SImode); emit_insn (gen_mulsi3 (temp, operands[1], operands[2])); - emit_insn (gen_mulsi3_highpart (riscv_subword (operands[0], true), + emit_insn (gen_mulsi3_highpart (riscv_subword (operands[0], true), operands[1], operands[2])); emit_insn (gen_movsi (riscv_subword (operands[0], false), temp)); DONE; }) -(define_insn "mulsi3_highpart" +(define_insn "mulsi3_highpart" [(set (match_operand:SI 0 "register_operand" "=r") (truncate:SI (lshiftrt:DI