diff mbox

[1/7,ARC] Make mulsi for A700 pattern commutative.

Message ID 1495189862-20533-2-git-send-email-claziss@synopsys.com
State New
Headers show

Commit Message

Claudiu Zissulescu May 19, 2017, 10:30 a.m. UTC
gcc/
2016-11-10  Claudiu Zissulescu  <claziss@synopsys.com>

	* config/arc/arc.md (mulsi3_700): Make it commutative.
---
 gcc/config/arc/arc.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andrew Burgess May 20, 2017, 7:20 a.m. UTC | #1
* Claudiu Zissulescu <Claudiu.Zissulescu@synopsys.com> [2017-05-19 12:30:56 +0200]:

> gcc/
> 2016-11-10  Claudiu Zissulescu  <claziss@synopsys.com>
> 
> 	* config/arc/arc.md (mulsi3_700): Make it commutative.

Looks good thanks,

Andrew


> ---
>  gcc/config/arc/arc.md | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md
> index 71d076c..db5867c 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"
> -- 
> 1.9.1
>
Claudiu Zissulescu June 1, 2017, 9:49 a.m. UTC | #2
> Looks good thanks,

Committed, thank you,
Claudiu
diff mbox

Patch

diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md
index 71d076c..db5867c 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"