[ARC] Make mulsi for A700 pattern commutative.
authorClaudiu Zissulescu <claziss@synopsys.com>
Thu, 1 Jun 2017 09:41:13 +0000 (11:41 +0200)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Thu, 1 Jun 2017 09:41:13 +0000 (11:41 +0200)
gcc/
2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>

* config/arc/arc.md (mulsi3_700): Make it commutative.

From-SVN: r248776

gcc/ChangeLog
gcc/config/arc/arc.md

index b145573cd657a04008f8faa0100815de646eabff..2af5953aaee4fc967687b4d824dcc8610a60e835 100644 (file)
@@ -1,3 +1,7 @@
+2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
+
+       * config/arc/arc.md (mulsi3_700): Make it commutative.
+
 2017-06-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
 
        * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
index ec783a047f22001f951d0ef698e45b1dd5654623..cce5973ce6c5eae76b9e9660eb1c86243e985132 100644 (file)
 ; like MPY or MPYU.
 (define_insn "mulsi3_700"
  [(set (match_operand:SI 0 "mpy_dest_reg_operand"        "=Rcr,r,r,Rcr,r")
-       (mult:SI (match_operand:SI 1 "register_operand"  " 0,c,0,0,c")
+       (mult:SI (match_operand:SI 1 "register_operand"  "%0,c,0,0,c")
                 (match_operand:SI 2 "nonmemory_operand" "cL,cL,I,Cal,Cal")))]
  "TARGET_ARC700_MPY"
   "mpyu%? %0,%1,%2"