From: Richard Kenner Date: Mon, 1 Nov 1993 20:44:25 +0000 (-0500) Subject: (mulsi3): Make alternatives be "mq" and "no_mq" instead of "power" and "powerpc". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=68b40e7e3dc5a404237a619b39723838ab954635;p=gcc.git (mulsi3): Make alternatives be "mq" and "no_mq" instead of "power" and "powerpc". (mulsi3): Make alternatives be "mq" and "no_mq" instead of "power" and "powerpc". Only allow one pattern (either with or without the clobber of MQ) to match. From-SVN: r5966 --- diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index e03fa3bf56a..4b57b6c9c5f 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -640,13 +640,13 @@ " { if (TARGET_POWER) - emit_insn (gen_mulsi3_power (operands[0], operands[1], operands[2])); + emit_insn (gen_mulsi3_mq (operands[0], operands[1], operands[2])); else - emit_insn (gen_mulsi3_powerpc (operands[0], operands[1], operands[2])); + emit_insn (gen_mulsi3_no_mq (operands[0], operands[1], operands[2])); DONE; }") -(define_insn "mulsi3_power" +(define_insn "mulsi3_mq" [(set (match_operand:SI 0 "gpc_reg_operand" "=r,r") (mult:SI (match_operand:SI 1 "gpc_reg_operand" "%r,r") (match_operand:SI 2 "reg_or_short_operand" "r,I"))) @@ -657,11 +657,11 @@ {muli|mulli} %0,%1,%2" [(set_attr "type" "imul")]) -(define_insn "mulsi3_powerpc" +(define_insn "mulsi3_no_mq" [(set (match_operand:SI 0 "gpc_reg_operand" "=r,r") (mult:SI (match_operand:SI 1 "gpc_reg_operand" "%r,r") (match_operand:SI 2 "reg_or_short_operand" "r,I")))] - "TARGET_POWERPC" + "! TARGET_POWER" "@ mullw %0,%1,%2 mulli %0,%1,%2"