[patch] MIPS: Add prefetchx insn to mips32r2

David Ung davidu@mips.com
Mon Nov 6 17:25:00 GMT 2006


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)



More information about the Gcc-patches mailing list