(expand_binop): Don't use non-REG TARGET in 2-word case.
authorRichard Kenner <kenner@gcc.gnu.org>
Fri, 2 Jun 1995 23:23:32 +0000 (19:23 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 2 Jun 1995 23:23:32 +0000 (19:23 -0400)
From-SVN: r9868

gcc/optabs.c

index 0dd824b0d23b8f6d5ca8cbccc91c779c3bdc2acd..08f4bebc40fe487845a1c19cd2a695a69e9f1e08 100644 (file)
@@ -1047,7 +1047,7 @@ expand_binop (mode, binoptab, op0, op1, target, unsignedp, methods)
 
       /* If the target is the same as one of the inputs, don't use it.  This
         prevents problems with the REG_EQUAL note.  */
-      if (target == op0 || target == op1)
+      if (target == op0 || target == op1 || GET_CODE (target) != REG)
        target = 0;
 
       /* Multiply the two lower words to get a double-word product.