aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1993-11-01 15:44:25 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1993-11-01 15:44:25 -0500
commit68b40e7e3dc5a404237a619b39723838ab954635 (patch)
tree650b359a539848fe3e9a449c04b7b2db70074b2d
parentdb4e119fc96c0948789a8f08fe1bde6d3d71b422 (diff)
downloadgcc-68b40e7e3dc5a404237a619b39723838ab954635.zip
gcc-68b40e7e3dc5a404237a619b39723838ab954635.tar.gz
gcc-68b40e7e3dc5a404237a619b39723838ab954635.tar.bz2
(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
-rw-r--r--gcc/config/rs6000/rs6000.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index e03fa3b..4b57b6c 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"