Rename r16 files to rce, and fix some more .Sanitize typos.
[deliverable/binutils-gdb.git] / opcodes / rce-opc.h
CommitLineData
d94aca1a
MT
1typedef enum {
2 O0, OT, O1, OC, O2, OI, OB, LS, BR, LI, LR, LJ, OM
03c4ce2f 3} rce_opclass;
d94aca1a
MT
4
5typedef struct inst
6{ char *name;
7 unsigned short opclass;
8 unsigned short inst;
03c4ce2f 9} rce_opcode_info;
d94aca1a
MT
10
11#ifdef DEFINE_TABLE
03c4ce2f 12rce_opcode_info rce_table[]={
d94aca1a
MT
13{ "bkpt", O0, 0x0000 },
14{ "sync", O0, 0x0001 },
15{ "rte", O0, 0x0002 },
16{ "rfi", O0, 0x0003 },
17{ "stop", O0, 0x0004 },
18{ "wait", O0, 0x0005 },
19
20{ "trap", OT, 0x0010 },
21{ "mvc", O1, 0x0020 },
22{ "mvcv", O1, 0x0030 },
23{ "jmp", O1, 0x0040 },
24{ "jsr", O1, 0x0050 },
25{ "jmpt", O1, 0x0060 },
26{ "jmpf", O1, 0x0070 },
27{ "tsteq", O1, 0x0080 },
28{ "tstgt", O1, 0x0090 },
29{ "tstlt", O1, 0x00A0 },
30{ "tstbz", O1, 0x00B0 },
31{ "inct", O1, 0x00C0 },
32{ "incf", O1, 0x00D0 },
33{ "dect", O1, 0x00E0 },
34{ "decf", O1, 0x00F0 },
35{ "zextb", O1, 0x0100 },
36{ "sextb", O1, 0x0110 },
37{ "zexth", O1, 0x0120 },
38{ "sexth", O1, 0x0130 },
39{ "xtrb3", O1, 0x0140 },
40{ "xtrb2", O1, 0x0150 },
41{ "xtrb1", O1, 0x0160 },
42{ "xtrb0", O1, 0x0170 },
43
44{ "decgt", O1, 0x01C0 },
45{ "declt", O1, 0x01D0 },
46{ "brev", O1, 0x01E0 },
47{ "not", O1, 0x01F0 },
48{ "mfcr", OC, 0x0200 },
49{ "mtcr", OC, 0x0300 },
50{ "mov", O2, 0x0400 },
51{ "movnc", O2, 0x0600 },
52{ "tst", O2, 0x0700 },
53{ "cmpeq", O2, 0x0800 },
54{ "cmpgt", O2, 0x0900 },
55{ "cmphi", O2, 0x0A00 },
56{ "bgenr", O2, 0x0D00 },
57{ "movt", O2, 0x0E00 },
58{ "movf", O2, 0x0F00 },
59{ "and", O2, 0x1000 },
60{ "andn", O2, 0x1100 },
61{ "xor", O2, 0x1200 },
62{ "xnor", O2, 0x1300 },
63{ "or", O2, 0x1400 },
64{ "rsub", O2, 0x1500 },
65{ "addu", O2, 0x1600 },
66{ "subu", O2, 0x1700 },
67{ "ixh", O2, 0x1800 },
68{ "ixw", O2, 0x1900 },
69{ "addc", O2, 0x1A00 },
70{ "subc", O2, 0x1B00 },
71{ "lsr", O2, 0x1C00 },
72{ "asr", O2, 0x1D00 },
73{ "lsl", O2, 0x1E00 },
74{ "rotl", O2, 0x1F00 },
75{ "movi", OB, 0x2000 },
76
77{ "andi", OB, 0x2200 },
78{ "movit", OB, 0x2400 },
79{ "movif", OB, 0x2600 },
80{ "btsti", OB, 0x2800 },
81{ "bclri", OB, 0x2A00 },
82{ "bseti", OB, 0x2C00 },
83{ "bmaski", OB, 0x2E00 },
84{ "bgeni", OB, 0x3000 },
85{ "rsubi", OB, 0x3200 },
86{ "addi", OI, 0x3400 },
87{ "subi", OI, 0x3600 },
88{ "lsri", OB, 0x3800 },
89{ "lsrc", O1, 0x3800 },
90{ "asri", OB, 0x3A00 },
91{ "asrc", O1, 0x3A00 },
92{ "lsli", OB, 0x3C00 },
93{ "lslc", O1, 0x3C00 },
94{ "rotli", OB, 0x3E00 },
95{ "rotlc", O1, 0x3E00 },
96
97{ "ldm", OM, 0x6000 },
98{ "stm", OM, 0x6010 },
99{ "mult", O2, 0x6100 },
100
101{ "mvir1", LI, 0x6800 },
102{ "lrw", LR, 0x7000 },
103{ "jmpi", LJ, 0x7300 },
104{ "jsri", LJ, 0x7F00 },
105
106{ "ld", LS, 0x8000 },
107{ "st", LS, 0x9000 },
108{ "ld.b", LS, 0xA000 },
109{ "st.b", LS, 0xB000 },
110{ "ld.h", LS, 0xC000 },
111{ "st.h", LS, 0xD000 },
112{ "br", BR, 0xE000 },
113{ "bsr", BR, 0xE800 },
114{ "bt", BR, 0xF000 },
115{ "bf", BR, 0xF800 },
116{ 0, 0, 0 }
117};
118#endif
This page took 0.02769 seconds and 4 git commands to generate.