diff options
author | Claudiu Zissulescu <claziss@synopsys.com> | 2017-06-01 11:41:13 +0200 |
---|---|---|
committer | Claudiu Zissulescu <claziss@gcc.gnu.org> | 2017-06-01 11:41:13 +0200 |
commit | f533fdf6cc37bdc5b1dec5c622733da97a09f97e (patch) | |
tree | b608ced2b839f547550118e7d44d522671bca183 /gcc | |
parent | f525e390d5df4aeb6b5a3b55a74d52b6b3438282 (diff) | |
download | gcc-f533fdf6cc37bdc5b1dec5c622733da97a09f97e.zip gcc-f533fdf6cc37bdc5b1dec5c622733da97a09f97e.tar.gz gcc-f533fdf6cc37bdc5b1dec5c622733da97a09f97e.tar.bz2 |
[ARC] Make mulsi for A700 pattern commutative.
gcc/
2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.md (mulsi3_700): Make it commutative.
From-SVN: r248776
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/arc/arc.md | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b145573..2af5953 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md index ec783a0..cce5973 100644 --- a/gcc/config/arc/arc.md +++ b/gcc/config/arc/arc.md @@ -2127,7 +2127,7 @@ ; 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" |