(mulsi3): Make alternatives be "mq" and "no_mq" instead of "power" and "powerpc".
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 1 Nov 1993 20:44:25 +0000 (15:44 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 1 Nov 1993 20:44:25 +0000 (15:44 -0500)
(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

gcc/config/rs6000/rs6000.md

index e03fa3bf56a261cdd245157df6e88309d96f6ee5..4b57b6c9c5f72738a53e6c39dd4d26b5e4b694df 100644 (file)
   "
 {
   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")))
    {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"