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] MIPS: Add prefetchx insn to mips32r2


David Ung <davidu@mips.com> writes:
> This patch simply extends the list of ISAs which has the prefectx insn, by 
> adding MIPS32R2.
>
> Bootstrapped, ok for mainline?
>
> David.
>
>
>      * config/mips/mips.h (ISA_HAS_PREFETCHX): Add ISA_MIPS32R2 to the list.
>
> Index: gcc/gcc/gcc/config/mips/mips.h
> ===================================================================
> --- gcc.orig/gcc/gcc/config/mips/mips.h 2006-11-01 15:41:41.000000000 +0000
> +++ gcc/gcc/gcc/config/mips/mips.h      2006-11-06 17:20:29.000000000 +0000
> @@ -703,6 +703,7 @@
>      (prefx is a cop1x instruction, so can only be used if FP is
>      enabled.)  */
>   #define ISA_HAS_PREFETCHX       ((ISA_MIPS4                            \
> +                                 || ISA_MIPS32R2                       \
>                                    || ISA_MIPS64)                        \
>                                   && !TARGET_MIPS16)

It looks like you applied the wrong patch.  I've committed the fix
below to get things building again.

Richard


gcc/
	* config/mips/mips.h (ISA_HAS_PREFETCHX): Fix typo.

Index: gcc/config/mips/mips.h
===================================================================
--- gcc/config/mips/mips.h	(revision 118553)
+++ gcc/config/mips/mips.h	(working copy)
@@ -686,7 +686,7 @@ #define ISA_HAS_PREFETCH	((ISA_MIPS4				
    (prefx is a cop1x instruction, so can only be used if FP is
    enabled.)  */
 #define ISA_HAS_PREFETCHX	((ISA_MIPS4				\
-				  || ISA_MIPS32R2)			\
+				  || ISA_MIPS32R2			\
 				  || ISA_MIPS64)			\
 				 && !TARGET_MIPS16)
 


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