Debian Codegraph @

arch/TriCore/TriCoreGenRegisterInfo.inc

raw symbols SCIP
1 /* Capstone Disassembly Engine, http://www.capstone-engine.org */
2 /* By Nguyen Anh Quynh <[email protected]>, 2013-2022, */
3 /* Rot127 <[email protected]> 2022-2023 */
4 /* Automatically generated file by Capstone's LLVM TableGen Disassembler Backend. */
5
6 /* LLVM-commit: <commit> */
7 /* LLVM-tag: <tag> */
8
9 /* Do not edit. */
10
11 /* Capstone's LLVM TableGen Backends: */
12 /* https://github.com/capstone-engine/llvm-capstone */
13
14 #ifdef GET_REGINFO_ENUM
15 #undef GET_REGINFO_ENUM
16
17 enum {
18 TRICORE_NoRegister,
19 TRICORE_FCX = 1,
20 TRICORE_PC = 2,
21 TRICORE_PCXI = 3,
22 TRICORE_PSW = 4,
23 TRICORE_A0 = 5,
24 TRICORE_A1 = 6,
25 TRICORE_A2 = 7,
26 TRICORE_A3 = 8,
27 TRICORE_A4 = 9,
28 TRICORE_A5 = 10,
29 TRICORE_A6 = 11,
30 TRICORE_A7 = 12,
31 TRICORE_A8 = 13,
32 TRICORE_A9 = 14,
33 TRICORE_A10 = 15,
34 TRICORE_A11 = 16,
35 TRICORE_A12 = 17,
36 TRICORE_A13 = 18,
37 TRICORE_A14 = 19,
38 TRICORE_A15 = 20,
39 TRICORE_D0 = 21,
40 TRICORE_D1 = 22,
41 TRICORE_D2 = 23,
42 TRICORE_D3 = 24,
43 TRICORE_D4 = 25,
44 TRICORE_D5 = 26,
45 TRICORE_D6 = 27,
46 TRICORE_D7 = 28,
47 TRICORE_D8 = 29,
48 TRICORE_D9 = 30,
49 TRICORE_D10 = 31,
50 TRICORE_D11 = 32,
51 TRICORE_D12 = 33,
52 TRICORE_D13 = 34,
53 TRICORE_D14 = 35,
54 TRICORE_D15 = 36,
55 TRICORE_E0 = 37,
56 TRICORE_E2 = 38,
57 TRICORE_E4 = 39,
58 TRICORE_E6 = 40,
59 TRICORE_E8 = 41,
60 TRICORE_E10 = 42,
61 TRICORE_E12 = 43,
62 TRICORE_E14 = 44,
63 TRICORE_P0 = 45,
64 TRICORE_P2 = 46,
65 TRICORE_P4 = 47,
66 TRICORE_P6 = 48,
67 TRICORE_P8 = 49,
68 TRICORE_P10 = 50,
69 TRICORE_P12 = 51,
70 TRICORE_P14 = 52,
71 TRICORE_A0_A1 = 53,
72 TRICORE_A2_A3 = 54,
73 TRICORE_A4_A5 = 55,
74 TRICORE_A6_A7 = 56,
75 TRICORE_A8_A9 = 57,
76 TRICORE_A10_A11 = 58,
77 TRICORE_A12_A13 = 59,
78 TRICORE_A14_A15 = 60,
79 NUM_TARGET_REGS // 61
80 };
81
82 // Register classes
83
84 enum {
85 TriCore_RARegClassID = 0,
86 TriCore_RDRegClassID = 1,
87 TriCore_PSRegsRegClassID = 2,
88 TriCore_PairAddrRegsRegClassID = 3,
89 TriCore_RERegClassID = 4,
90 TriCore_RPRegClassID = 5,
91
92 };
93
94 // Subregister indices
95
96 enum {
97 TriCore_NoSubRegister,
98 TriCore_subreg_even, // 1
99 TriCore_subreg_odd, // 2
100 TriCore_NUM_TARGET_SUBREGS
101 };
102 #endif // GET_REGINFO_ENUM
103
104 #ifdef GET_REGINFO_MC_DESC
105 #undef GET_REGINFO_MC_DESC
106
107 static const MCPhysReg TriCoreRegDiffLists[] = {
108 /* 0 */ 65434, 1, 0,
109 /* 3 */ 65450, 1, 0,
110 /* 6 */ 65482, 1, 0,
111 /* 9 */ 65488, 1, 0,
112 /* 12 */ 65489, 1, 0,
113 /* 15 */ 65490, 1, 0,
114 /* 18 */ 65491, 1, 0,
115 /* 21 */ 65492, 1, 0,
116 /* 24 */ 65493, 1, 0,
117 /* 27 */ 65494, 1, 0,
118 /* 30 */ 65495, 1, 0,
119 /* 33 */ 65496, 1, 0,
120 /* 36 */ 65497, 1, 0,
121 /* 39 */ 65498, 1, 0,
122 /* 42 */ 65499, 1, 0,
123 /* 45 */ 65500, 1, 0,
124 /* 48 */ 65501, 1, 0,
125 /* 51 */ 65502, 1, 0,
126 /* 54 */ 65503, 1, 0,
127 /* 57 */ 65520, 1, 0,
128 /* 60 */ 65521, 1, 0,
129 /* 63 */ 65522, 1, 0,
130 /* 66 */ 65523, 1, 0,
131 /* 69 */ 65524, 1, 0,
132 /* 72 */ 65525, 1, 0,
133 /* 75 */ 65526, 1, 0,
134 /* 78 */ 65527, 1, 0,
135 /* 81 */ 32, 8, 0,
136 /* 84 */ 33, 8, 0,
137 /* 87 */ 34, 8, 0,
138 /* 90 */ 35, 8, 0,
139 /* 93 */ 36, 8, 0,
140 /* 96 */ 37, 8, 0,
141 /* 99 */ 38, 8, 0,
142 /* 102 */ 39, 8, 0,
143 /* 105 */ 40, 8, 0,
144 /* 108 */ 9, 0,
145 /* 110 */ 10, 0,
146 /* 112 */ 11, 0,
147 /* 114 */ 12, 0,
148 /* 116 */ 13, 0,
149 /* 118 */ 14, 0,
150 /* 120 */ 15, 0,
151 /* 122 */ 16, 0,
152 /* 124 */ 65535, 0,
153 };
154
155 static const uint16_t TriCoreSubRegIdxLists[] = {
156 /* 0 */ 1, 2, 0,
157 };
158
159 static const MCRegisterDesc TriCoreRegDesc[] = { // Descriptors
160 { 3, 0, 0, 0, 0, 0 },
161 { 201, 2, 2, 2, 1985, 0 },
162 { 189, 2, 2, 2, 1985, 0 },
163 { 192, 2, 2, 2, 1985, 0 },
164 { 197, 2, 2, 2, 1985, 0 },
165 { 16, 2, 105, 2, 1985, 0 },
166 { 43, 2, 102, 2, 1985, 0 },
167 { 65, 2, 102, 2, 1985, 0 },
168 { 92, 2, 99, 2, 1985, 0 },
169 { 114, 2, 99, 2, 1985, 0 },
170 { 141, 2, 96, 2, 1985, 0 },
171 { 147, 2, 96, 2, 1985, 0 },
172 { 162, 2, 93, 2, 1985, 0 },
173 { 168, 2, 93, 2, 1985, 0 },
174 { 183, 2, 90, 2, 1985, 0 },
175 { 0, 2, 90, 2, 1985, 0 },
176 { 32, 2, 87, 2, 1985, 0 },
177 { 49, 2, 87, 2, 1985, 0 },
178 { 81, 2, 84, 2, 1985, 0 },
179 { 98, 2, 84, 2, 1985, 0 },
180 { 130, 2, 81, 2, 1985, 0 },
181 { 19, 2, 122, 2, 1985, 0 },
182 { 46, 2, 120, 2, 1985, 0 },
183 { 68, 2, 120, 2, 1985, 0 },
184 { 95, 2, 118, 2, 1985, 0 },
185 { 117, 2, 118, 2, 1985, 0 },
186 { 144, 2, 116, 2, 1985, 0 },
187 { 150, 2, 116, 2, 1985, 0 },
188 { 165, 2, 114, 2, 1985, 0 },
189 { 171, 2, 114, 2, 1985, 0 },
190 { 186, 2, 112, 2, 1985, 0 },
191 { 4, 2, 112, 2, 1985, 0 },
192 { 36, 2, 110, 2, 1985, 0 },
193 { 53, 2, 110, 2, 1985, 0 },
194 { 85, 2, 108, 2, 1985, 0 },
195 { 102, 2, 108, 2, 1985, 0 },
196 { 134, 2, 82, 2, 1985, 0 },
197 { 22, 57, 2, 0, 98, 2 },
198 { 71, 60, 2, 0, 98, 2 },
199 { 120, 63, 2, 0, 98, 2 },
200 { 153, 66, 2, 0, 98, 2 },
201 { 174, 69, 2, 0, 98, 2 },
202 { 8, 72, 2, 0, 98, 2 },
203 { 57, 75, 2, 0, 98, 2 },
204 { 106, 78, 2, 0, 98, 2 },
205 { 25, 33, 2, 0, 50, 2 },
206 { 74, 36, 2, 0, 50, 2 },
207 { 123, 39, 2, 0, 50, 2 },
208 { 156, 42, 2, 0, 50, 2 },
209 { 177, 45, 2, 0, 50, 2 },
210 { 12, 48, 2, 0, 50, 2 },
211 { 61, 51, 2, 0, 50, 2 },
212 { 110, 54, 2, 0, 50, 2 },
213 { 40, 9, 2, 0, 2, 2 },
214 { 89, 12, 2, 0, 2, 2 },
215 { 138, 15, 2, 0, 2, 2 },
216 { 159, 18, 2, 0, 2, 2 },
217 { 180, 21, 2, 0, 2, 2 },
218 { 28, 24, 2, 0, 2, 2 },
219 { 77, 27, 2, 0, 2, 2 },
220 { 126, 30, 2, 0, 2, 2 },
221 };
222
223 // RA Register Class...
224 static const MCPhysReg RA[] = {
225 TRICORE_A0, TRICORE_A1, TRICORE_A2, TRICORE_A3, TRICORE_A4, TRICORE_A5, TRICORE_A6, TRICORE_A7, TRICORE_A8, TRICORE_A9, TRICORE_A10, TRICORE_A11, TRICORE_A12, TRICORE_A13, TRICORE_A14, TRICORE_A15,
226 };
227
228 // RA Bit set.
229 static const uint8_t RABits[] = {
230 0xe0, 0xff, 0x1f,
231 };
232
233 // RD Register Class...
234 static const MCPhysReg RD[] = {
235 TRICORE_D0, TRICORE_D1, TRICORE_D2, TRICORE_D3, TRICORE_D4, TRICORE_D5, TRICORE_D6, TRICORE_D7, TRICORE_D8, TRICORE_D9, TRICORE_D10, TRICORE_D11, TRICORE_D12, TRICORE_D13, TRICORE_D14, TRICORE_D15,
236 };
237
238 // RD Bit set.
239 static const uint8_t RDBits[] = {
240 0x00, 0x00, 0xe0, 0xff, 0x1f,
241 };
242
243 // PSRegs Register Class...
244 static const MCPhysReg PSRegs[] = {
245 TRICORE_PSW, TRICORE_PCXI, TRICORE_PC, TRICORE_FCX,
246 };
247
248 // PSRegs Bit set.
249 static const uint8_t PSRegsBits[] = {
250 0x1e,
251 };
252
253 // PairAddrRegs Register Class...
254 static const MCPhysReg PairAddrRegs[] = {
255 TRICORE_A0_A1, TRICORE_A2_A3, TRICORE_A4_A5, TRICORE_A6_A7, TRICORE_A8_A9, TRICORE_A10_A11, TRICORE_A12_A13, TRICORE_A14_A15,
256 };
257
258 // PairAddrRegs Bit set.
259 static const uint8_t PairAddrRegsBits[] = {
260 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x1f,
261 };
262
263 // RE Register Class...
264 static const MCPhysReg RE[] = {
265 TRICORE_E0, TRICORE_E2, TRICORE_E4, TRICORE_E6, TRICORE_E8, TRICORE_E10, TRICORE_E12, TRICORE_E14,
266 };
267
268 // RE Bit set.
269 static const uint8_t REBits[] = {
270 0x00, 0x00, 0x00, 0x00, 0xe0, 0x1f,
271 };
272
273 // RP Register Class...
274 static const MCPhysReg RP[] = {
275 TRICORE_P0, TRICORE_P2, TRICORE_P4, TRICORE_P6, TRICORE_P8, TRICORE_P10, TRICORE_P12, TRICORE_P14,
276 };
277
278 // RP Bit set.
279 static const uint8_t RPBits[] = {
280 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x1f,
281 };
282
283 static const MCRegisterClass TriCoreMCRegisterClasses[] = {
284 { RA, RABits, sizeof(RABits) },
285 { RD, RDBits, sizeof(RDBits) },
286 { PSRegs, PSRegsBits, sizeof(PSRegsBits) },
287 { PairAddrRegs, PairAddrRegsBits, sizeof(PairAddrRegsBits) },
288 { RE, REBits, sizeof(REBits) },
289 { RP, RPBits, sizeof(RPBits) },
290 };
291
292 #endif // GET_REGINFO_MC_DESC
293
294
295