Fix minor bug in ft32 widening multiply
authorJeff Law <law@redhat.com>
Mon, 30 Nov 2020 01:03:28 +0000 (18:03 -0700)
committerJeff Law <law@redhat.com>
Mon, 30 Nov 2020 01:03:28 +0000 (18:03 -0700)
gcc/
* config/ft32/ft32.md (umulsidi3): Do not allow constants as
arguments.

gcc/config/ft32/ft32.md

index 8918bb7cd58059e04ff562c08576ee66b768a1fc..1a2380f58fea3466d17f456d8d158e6be650c06b 100644 (file)
@@ -89,9 +89,9 @@
   "mul.l  %0,%1,%2")
 
 (define_insn "umulsidi3"
-  [(set (match_operand:DI 0 "register_operand" "=r,r")
-    (mult:DI (zero_extend:DI (match_operand:SI 1 "register_operand" "r,r"))
-         (zero_extend:DI (match_operand:SI 2 "ft32_rimm_operand" "r,KA"))))
+  [(set (match_operand:DI 0 "register_operand" "=r")
+    (mult:DI (zero_extend:DI (match_operand:SI 1 "register_operand" "r"))
+         (zero_extend:DI (match_operand:SI 2 "register_operand" "r"))))
    (clobber (reg:CC CC_REG))]
   ""
   "mul.l  $cc,%1,%2\;muluh.l %h0,%1,%2\;move.l   %0,$cc")