This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add MIPS64r2 support to <u>mulsidi3_64bit


I only noticed later that a couple of the comments need to be updated:

Adam Nemet <anemet@caviumnetworks.com> writes:
> +   ;; OP0 <- LO, OP4 <- HI
> +   (set (match_dup 0) (match_dup 5))
> +   (set (match_dup 4) (unspec:DI [(match_dup 3)] UNSPEC_MFHI))
>  
>     ;; Zero-extend OP4.
> -   (set (match_dup 4)
> -	(ashift:DI (match_dup 4)
> +   (set (match_dup 0)
> +	(ashift:DI (match_dup 0)
>  		   (const_int 32)))
> -   (set (match_dup 4)
> -	(lshiftrt:DI (match_dup 4)
> +   (set (match_dup 0)
> +	(lshiftrt:DI (match_dup 0)
>  		     (const_int 32)))
>  
>     ;; Shift OP0 into place.
> -   (set (match_dup 0)
> -	(ashift:DI (match_dup 0)
> +   (set (match_dup 4)
> +	(ashift:DI (match_dup 4)
>  		   (const_int 32)))

Here's what I applied.

Richard


gcc/
	* config/mips/mips.md: Fix typos.

Index: gcc/config/mips/mips.md
===================================================================
--- gcc/config/mips/mips.md	2009-11-03 21:28:08.000000000 +0000
+++ gcc/config/mips/mips.md	2009-11-03 21:28:08.000000000 +0000
@@ -1930,7 +1930,7 @@ (define_split
    (set (match_dup 0) (match_dup 5))
    (set (match_dup 4) (unspec:DI [(match_dup 3)] UNSPEC_MFHI))
 
-   ;; Zero-extend OP4.
+   ;; Zero-extend OP0.
    (set (match_dup 0)
 	(ashift:DI (match_dup 0)
 		   (const_int 32)))
@@ -1938,7 +1938,7 @@ (define_split
 	(lshiftrt:DI (match_dup 0)
 		     (const_int 32)))
 
-   ;; Shift OP0 into place.
+   ;; Shift OP4 into place.
    (set (match_dup 4)
 	(ashift:DI (match_dup 4)
 		   (const_int 32)))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]