Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Haley <aph@redhat.com>2000-02-22 17:39:20 +0300
committerAndrew Haley <aph@redhat.com>2000-02-22 17:39:20 +0300
commit95d64ccd4e4fd31d850f027fdc1030548e7a2d1e (patch)
treea994aec3532e4a30eabd1f7c79d0d984108e7672 /include/opcode/mips.h
parent9d68ec8b5ce867fc4400ed8f62c4b057fe3c2508 (diff)
1999-12-30 Andrew Haley <aph@cygnus.com>
* mips.h (OPCODE_IS_MEMBER): Add gp32 arg.
Diffstat (limited to 'include/opcode/mips.h')
-rw-r--r--include/opcode/mips.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/opcode/mips.h b/include/opcode/mips.h
index 8c93d1bd7..3f9207ff3 100644
--- a/include/opcode/mips.h
+++ b/include/opcode/mips.h
@@ -320,14 +320,18 @@ struct mips_opcode
/* Toshiba R3900 instruction. */
#define INSN_3900 0x00000080
+/* 32-bit code running on a ISA3+ CPU. */
+#define INSN_GP32 0x00001000
+
/* Test for membership in an ISA including chip specific ISAs.
INSN is pointer to an element of the opcode table; ISA is the
specified ISA to test against; and CPU is the CPU specific ISA
to test, or zero if no CPU specific ISA test is desired. */
-#define OPCODE_IS_MEMBER(insn,isa,cpu) \
+#define OPCODE_IS_MEMBER(insn,isa,cpu,gp32) \
((((insn)->membership & INSN_ISA) != 0 \
- && ((insn)->membership & INSN_ISA) <= isa) \
+ && ((insn)->membership & INSN_ISA) <= isa \
+ && ((insn)->membership & INSN_GP32 ? gp32 : 1)) \
|| (cpu == 4650 \
&& ((insn)->membership & INSN_4650) != 0) \
|| (cpu == 4010 \