Commit | Line | Data |
---|---|---|
a06ea964 | 1 | /* This file is automatically generated by aarch64-gen. Do not edit! */ |
82704155 | 2 | /* Copyright (C) 2012-2019 Free Software Foundation, Inc. |
a06ea964 NC |
3 | Contributed by ARM Ltd. |
4 | ||
5 | This file is part of the GNU opcodes library. | |
6 | ||
7 | This library is free software; you can redistribute it and/or modify | |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 3, or (at your option) | |
10 | any later version. | |
11 | ||
12 | It is distributed in the hope that it will be useful, but WITHOUT | |
13 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
14 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
15 | License for more details. | |
16 | ||
17 | You should have received a copy of the GNU General Public License | |
18 | along with this program; see the file COPYING3. If not, | |
19 | see <http://www.gnu.org/licenses/>. */ | |
20 | ||
21 | #include "sysdep.h" | |
22 | #include "aarch64-asm.h" | |
23 | ||
24 | ||
25 | const aarch64_opcode * | |
26 | aarch64_find_real_opcode (const aarch64_opcode *opcode) | |
27 | { | |
28 | /* Use the index as the key to locate the real opcode. */ | |
29 | int key = opcode - aarch64_opcode_table; | |
30 | int value; | |
31 | switch (key) | |
32 | { | |
33 | case 3: /* ngc */ | |
35822b38 | 34 | case 2: /* sbc */ |
a06ea964 NC |
35 | value = 2; /* --> sbc. */ |
36 | break; | |
37 | case 5: /* ngcs */ | |
35822b38 | 38 | case 4: /* sbcs */ |
a06ea964 NC |
39 | value = 4; /* --> sbcs. */ |
40 | break; | |
41 | case 8: /* cmn */ | |
35822b38 | 42 | case 7: /* adds */ |
a06ea964 NC |
43 | value = 7; /* --> adds. */ |
44 | break; | |
45 | case 11: /* cmp */ | |
35822b38 | 46 | case 10: /* subs */ |
a06ea964 NC |
47 | value = 10; /* --> subs. */ |
48 | break; | |
49 | case 13: /* mov */ | |
35822b38 | 50 | case 12: /* add */ |
a06ea964 NC |
51 | value = 12; /* --> add. */ |
52 | break; | |
53 | case 15: /* cmn */ | |
35822b38 | 54 | case 14: /* adds */ |
a06ea964 NC |
55 | value = 14; /* --> adds. */ |
56 | break; | |
57 | case 18: /* cmp */ | |
35822b38 | 58 | case 17: /* subs */ |
a06ea964 NC |
59 | value = 17; /* --> subs. */ |
60 | break; | |
193614f2 SD |
61 | case 23: /* cmn */ |
62 | case 22: /* adds */ | |
63 | value = 22; /* --> adds. */ | |
a06ea964 | 64 | break; |
193614f2 SD |
65 | case 25: /* neg */ |
66 | case 24: /* sub */ | |
67 | value = 24; /* --> sub. */ | |
a06ea964 | 68 | break; |
193614f2 SD |
69 | case 27: /* cmp */ |
70 | case 28: /* negs */ | |
71 | case 26: /* subs */ | |
72 | value = 26; /* --> subs. */ | |
c2c4ff8d SN |
73 | break; |
74 | case 153: /* mov */ | |
193614f2 SD |
75 | case 152: /* umov */ |
76 | value = 152; /* --> umov. */ | |
c2c4ff8d SN |
77 | break; |
78 | case 155: /* mov */ | |
79 | case 154: /* ins */ | |
80 | value = 154; /* --> ins. */ | |
81 | break; | |
193614f2 SD |
82 | case 157: /* mov */ |
83 | case 156: /* ins */ | |
84 | value = 156; /* --> ins. */ | |
85 | break; | |
86 | case 243: /* mvn */ | |
87 | case 242: /* not */ | |
88 | value = 242; /* --> not. */ | |
89 | break; | |
90 | case 318: /* mov */ | |
91 | case 317: /* orr */ | |
92 | value = 317; /* --> orr. */ | |
93 | break; | |
94 | case 389: /* sxtl */ | |
95 | case 388: /* sshll */ | |
96 | value = 388; /* --> sshll. */ | |
97 | break; | |
98 | case 391: /* sxtl2 */ | |
99 | case 390: /* sshll2 */ | |
100 | value = 390; /* --> sshll2. */ | |
101 | break; | |
102 | case 413: /* uxtl */ | |
103 | case 412: /* ushll */ | |
104 | value = 412; /* --> ushll. */ | |
105 | break; | |
106 | case 415: /* uxtl2 */ | |
107 | case 414: /* ushll2 */ | |
108 | value = 414; /* --> ushll2. */ | |
109 | break; | |
110 | case 536: /* mov */ | |
111 | case 535: /* dup */ | |
112 | value = 535; /* --> dup. */ | |
113 | break; | |
114 | case 623: /* sxtw */ | |
115 | case 622: /* sxth */ | |
116 | case 621: /* sxtb */ | |
117 | case 624: /* asr */ | |
118 | case 620: /* sbfx */ | |
119 | case 619: /* sbfiz */ | |
120 | case 618: /* sbfm */ | |
121 | value = 618; /* --> sbfm. */ | |
122 | break; | |
123 | case 627: /* bfc */ | |
124 | case 628: /* bfxil */ | |
125 | case 626: /* bfi */ | |
126 | case 625: /* bfm */ | |
127 | value = 625; /* --> bfm. */ | |
128 | break; | |
129 | case 633: /* uxth */ | |
130 | case 632: /* uxtb */ | |
131 | case 635: /* lsr */ | |
132 | case 634: /* lsl */ | |
133 | case 631: /* ubfx */ | |
134 | case 630: /* ubfiz */ | |
135 | case 629: /* ubfm */ | |
136 | value = 629; /* --> ubfm. */ | |
137 | break; | |
138 | case 665: /* cset */ | |
139 | case 664: /* cinc */ | |
140 | case 663: /* csinc */ | |
141 | value = 663; /* --> csinc. */ | |
142 | break; | |
143 | case 668: /* csetm */ | |
144 | case 667: /* cinv */ | |
145 | case 666: /* csinv */ | |
146 | value = 666; /* --> csinv. */ | |
147 | break; | |
148 | case 670: /* cneg */ | |
149 | case 669: /* csneg */ | |
150 | value = 669; /* --> csneg. */ | |
151 | break; | |
152 | case 688: /* rev */ | |
153 | case 689: /* rev64 */ | |
154 | value = 688; /* --> rev. */ | |
155 | break; | |
156 | case 714: /* lsl */ | |
157 | case 713: /* lslv */ | |
158 | value = 713; /* --> lslv. */ | |
159 | break; | |
160 | case 716: /* lsr */ | |
161 | case 715: /* lsrv */ | |
162 | value = 715; /* --> lsrv. */ | |
163 | break; | |
164 | case 718: /* asr */ | |
165 | case 717: /* asrv */ | |
166 | value = 717; /* --> asrv. */ | |
167 | break; | |
168 | case 720: /* ror */ | |
169 | case 719: /* rorv */ | |
170 | value = 719; /* --> rorv. */ | |
171 | break; | |
b731bc3b SD |
172 | case 723: /* cmpp */ |
173 | case 722: /* subps */ | |
174 | value = 722; /* --> subps. */ | |
175 | break; | |
176 | case 736: /* mul */ | |
177 | case 735: /* madd */ | |
178 | value = 735; /* --> madd. */ | |
179 | break; | |
180 | case 738: /* mneg */ | |
181 | case 737: /* msub */ | |
182 | value = 737; /* --> msub. */ | |
183 | break; | |
184 | case 740: /* smull */ | |
185 | case 739: /* smaddl */ | |
186 | value = 739; /* --> smaddl. */ | |
187 | break; | |
188 | case 742: /* smnegl */ | |
189 | case 741: /* smsubl */ | |
190 | value = 741; /* --> smsubl. */ | |
191 | break; | |
192 | case 745: /* umull */ | |
193 | case 744: /* umaddl */ | |
194 | value = 744; /* --> umaddl. */ | |
195 | break; | |
196 | case 747: /* umnegl */ | |
197 | case 746: /* umsubl */ | |
198 | value = 746; /* --> umsubl. */ | |
199 | break; | |
200 | case 758: /* ror */ | |
201 | case 757: /* extr */ | |
202 | value = 757; /* --> extr. */ | |
203 | break; | |
e54010f1 SD |
204 | case 991: /* bic */ |
205 | case 990: /* and */ | |
206 | value = 990; /* --> and. */ | |
207 | break; | |
208 | case 993: /* mov */ | |
209 | case 992: /* orr */ | |
210 | value = 992; /* --> orr. */ | |
211 | break; | |
212 | case 996: /* tst */ | |
213 | case 995: /* ands */ | |
214 | value = 995; /* --> ands. */ | |
215 | break; | |
216 | case 1001: /* uxtw */ | |
217 | case 1000: /* mov */ | |
218 | case 999: /* orr */ | |
219 | value = 999; /* --> orr. */ | |
193614f2 | 220 | break; |
e54010f1 SD |
221 | case 1003: /* mvn */ |
222 | case 1002: /* orn */ | |
223 | value = 1002; /* --> orn. */ | |
193614f2 | 224 | break; |
e54010f1 SD |
225 | case 1007: /* tst */ |
226 | case 1006: /* ands */ | |
227 | value = 1006; /* --> ands. */ | |
193614f2 | 228 | break; |
e54010f1 SD |
229 | case 1133: /* staddb */ |
230 | case 1037: /* ldaddb */ | |
231 | value = 1037; /* --> ldaddb. */ | |
193614f2 | 232 | break; |
e54010f1 SD |
233 | case 1134: /* staddh */ |
234 | case 1038: /* ldaddh */ | |
235 | value = 1038; /* --> ldaddh. */ | |
193614f2 | 236 | break; |
e54010f1 SD |
237 | case 1135: /* stadd */ |
238 | case 1039: /* ldadd */ | |
239 | value = 1039; /* --> ldadd. */ | |
a06ea964 | 240 | break; |
e54010f1 SD |
241 | case 1136: /* staddlb */ |
242 | case 1041: /* ldaddlb */ | |
243 | value = 1041; /* --> ldaddlb. */ | |
a06ea964 | 244 | break; |
e54010f1 SD |
245 | case 1137: /* staddlh */ |
246 | case 1044: /* ldaddlh */ | |
247 | value = 1044; /* --> ldaddlh. */ | |
a06ea964 | 248 | break; |
e54010f1 SD |
249 | case 1138: /* staddl */ |
250 | case 1047: /* ldaddl */ | |
251 | value = 1047; /* --> ldaddl. */ | |
a06ea964 | 252 | break; |
e54010f1 SD |
253 | case 1139: /* stclrb */ |
254 | case 1049: /* ldclrb */ | |
255 | value = 1049; /* --> ldclrb. */ | |
a06ea964 | 256 | break; |
e54010f1 SD |
257 | case 1140: /* stclrh */ |
258 | case 1050: /* ldclrh */ | |
259 | value = 1050; /* --> ldclrh. */ | |
a06ea964 | 260 | break; |
e54010f1 SD |
261 | case 1141: /* stclr */ |
262 | case 1051: /* ldclr */ | |
263 | value = 1051; /* --> ldclr. */ | |
a06ea964 | 264 | break; |
e54010f1 SD |
265 | case 1142: /* stclrlb */ |
266 | case 1053: /* ldclrlb */ | |
267 | value = 1053; /* --> ldclrlb. */ | |
a06ea964 | 268 | break; |
e54010f1 SD |
269 | case 1143: /* stclrlh */ |
270 | case 1056: /* ldclrlh */ | |
271 | value = 1056; /* --> ldclrlh. */ | |
e30181a5 | 272 | break; |
e54010f1 SD |
273 | case 1144: /* stclrl */ |
274 | case 1059: /* ldclrl */ | |
275 | value = 1059; /* --> ldclrl. */ | |
ee804238 | 276 | break; |
e54010f1 SD |
277 | case 1145: /* steorb */ |
278 | case 1061: /* ldeorb */ | |
279 | value = 1061; /* --> ldeorb. */ | |
ee804238 | 280 | break; |
e54010f1 SD |
281 | case 1146: /* steorh */ |
282 | case 1062: /* ldeorh */ | |
283 | value = 1062; /* --> ldeorh. */ | |
ee804238 | 284 | break; |
e54010f1 SD |
285 | case 1147: /* steor */ |
286 | case 1063: /* ldeor */ | |
287 | value = 1063; /* --> ldeor. */ | |
ee804238 | 288 | break; |
e54010f1 SD |
289 | case 1148: /* steorlb */ |
290 | case 1065: /* ldeorlb */ | |
291 | value = 1065; /* --> ldeorlb. */ | |
ee804238 | 292 | break; |
e54010f1 SD |
293 | case 1149: /* steorlh */ |
294 | case 1068: /* ldeorlh */ | |
295 | value = 1068; /* --> ldeorlh. */ | |
ee804238 | 296 | break; |
e54010f1 SD |
297 | case 1150: /* steorl */ |
298 | case 1071: /* ldeorl */ | |
299 | value = 1071; /* --> ldeorl. */ | |
ee804238 | 300 | break; |
e54010f1 SD |
301 | case 1151: /* stsetb */ |
302 | case 1073: /* ldsetb */ | |
303 | value = 1073; /* --> ldsetb. */ | |
ee804238 | 304 | break; |
e54010f1 SD |
305 | case 1152: /* stseth */ |
306 | case 1074: /* ldseth */ | |
307 | value = 1074; /* --> ldseth. */ | |
ee804238 | 308 | break; |
e54010f1 SD |
309 | case 1153: /* stset */ |
310 | case 1075: /* ldset */ | |
311 | value = 1075; /* --> ldset. */ | |
ee804238 | 312 | break; |
e54010f1 SD |
313 | case 1154: /* stsetlb */ |
314 | case 1077: /* ldsetlb */ | |
315 | value = 1077; /* --> ldsetlb. */ | |
ee804238 | 316 | break; |
e54010f1 SD |
317 | case 1155: /* stsetlh */ |
318 | case 1080: /* ldsetlh */ | |
319 | value = 1080; /* --> ldsetlh. */ | |
ee804238 | 320 | break; |
e54010f1 SD |
321 | case 1156: /* stsetl */ |
322 | case 1083: /* ldsetl */ | |
323 | value = 1083; /* --> ldsetl. */ | |
ee804238 | 324 | break; |
e54010f1 SD |
325 | case 1157: /* stsmaxb */ |
326 | case 1085: /* ldsmaxb */ | |
327 | value = 1085; /* --> ldsmaxb. */ | |
74f5402d | 328 | break; |
e54010f1 SD |
329 | case 1158: /* stsmaxh */ |
330 | case 1086: /* ldsmaxh */ | |
331 | value = 1086; /* --> ldsmaxh. */ | |
13c60ad7 | 332 | break; |
e54010f1 SD |
333 | case 1159: /* stsmax */ |
334 | case 1087: /* ldsmax */ | |
335 | value = 1087; /* --> ldsmax. */ | |
20a4ca55 | 336 | break; |
e54010f1 SD |
337 | case 1160: /* stsmaxlb */ |
338 | case 1089: /* ldsmaxlb */ | |
339 | value = 1089; /* --> ldsmaxlb. */ | |
20a4ca55 | 340 | break; |
e54010f1 SD |
341 | case 1161: /* stsmaxlh */ |
342 | case 1092: /* ldsmaxlh */ | |
343 | value = 1092; /* --> ldsmaxlh. */ | |
20a4ca55 | 344 | break; |
e54010f1 SD |
345 | case 1162: /* stsmaxl */ |
346 | case 1095: /* ldsmaxl */ | |
347 | value = 1095; /* --> ldsmaxl. */ | |
20a4ca55 | 348 | break; |
e54010f1 SD |
349 | case 1163: /* stsminb */ |
350 | case 1097: /* ldsminb */ | |
351 | value = 1097; /* --> ldsminb. */ | |
20a4ca55 | 352 | break; |
e54010f1 SD |
353 | case 1164: /* stsminh */ |
354 | case 1098: /* ldsminh */ | |
355 | value = 1098; /* --> ldsminh. */ | |
20a4ca55 | 356 | break; |
e54010f1 SD |
357 | case 1165: /* stsmin */ |
358 | case 1099: /* ldsmin */ | |
359 | value = 1099; /* --> ldsmin. */ | |
20a4ca55 | 360 | break; |
e54010f1 SD |
361 | case 1166: /* stsminlb */ |
362 | case 1101: /* ldsminlb */ | |
363 | value = 1101; /* --> ldsminlb. */ | |
20a4ca55 | 364 | break; |
e54010f1 SD |
365 | case 1167: /* stsminlh */ |
366 | case 1104: /* ldsminlh */ | |
367 | value = 1104; /* --> ldsminlh. */ | |
20a4ca55 | 368 | break; |
e54010f1 SD |
369 | case 1168: /* stsminl */ |
370 | case 1107: /* ldsminl */ | |
371 | value = 1107; /* --> ldsminl. */ | |
20a4ca55 | 372 | break; |
e54010f1 SD |
373 | case 1169: /* stumaxb */ |
374 | case 1109: /* ldumaxb */ | |
375 | value = 1109; /* --> ldumaxb. */ | |
20a4ca55 | 376 | break; |
e54010f1 SD |
377 | case 1170: /* stumaxh */ |
378 | case 1110: /* ldumaxh */ | |
379 | value = 1110; /* --> ldumaxh. */ | |
20a4ca55 | 380 | break; |
e54010f1 SD |
381 | case 1171: /* stumax */ |
382 | case 1111: /* ldumax */ | |
383 | value = 1111; /* --> ldumax. */ | |
20a4ca55 | 384 | break; |
e54010f1 SD |
385 | case 1172: /* stumaxlb */ |
386 | case 1113: /* ldumaxlb */ | |
387 | value = 1113; /* --> ldumaxlb. */ | |
20a4ca55 | 388 | break; |
e54010f1 SD |
389 | case 1173: /* stumaxlh */ |
390 | case 1116: /* ldumaxlh */ | |
391 | value = 1116; /* --> ldumaxlh. */ | |
20a4ca55 | 392 | break; |
e54010f1 SD |
393 | case 1174: /* stumaxl */ |
394 | case 1119: /* ldumaxl */ | |
395 | value = 1119; /* --> ldumaxl. */ | |
20a4ca55 | 396 | break; |
e54010f1 SD |
397 | case 1175: /* stuminb */ |
398 | case 1121: /* lduminb */ | |
399 | value = 1121; /* --> lduminb. */ | |
20a4ca55 | 400 | break; |
e54010f1 SD |
401 | case 1176: /* stuminh */ |
402 | case 1122: /* lduminh */ | |
403 | value = 1122; /* --> lduminh. */ | |
20a4ca55 | 404 | break; |
e54010f1 SD |
405 | case 1177: /* stumin */ |
406 | case 1123: /* ldumin */ | |
407 | value = 1123; /* --> ldumin. */ | |
20a4ca55 | 408 | break; |
e54010f1 SD |
409 | case 1178: /* stuminlb */ |
410 | case 1125: /* lduminlb */ | |
411 | value = 1125; /* --> lduminlb. */ | |
20a4ca55 | 412 | break; |
e54010f1 SD |
413 | case 1179: /* stuminlh */ |
414 | case 1128: /* lduminlh */ | |
415 | value = 1128; /* --> lduminlh. */ | |
20a4ca55 | 416 | break; |
e54010f1 SD |
417 | case 1180: /* stuminl */ |
418 | case 1131: /* lduminl */ | |
419 | value = 1131; /* --> lduminl. */ | |
20a4ca55 SD |
420 | break; |
421 | case 1182: /* mov */ | |
e54010f1 SD |
422 | case 1181: /* movn */ |
423 | value = 1181; /* --> movn. */ | |
424 | break; | |
425 | case 1184: /* mov */ | |
426 | case 1183: /* movz */ | |
427 | value = 1183; /* --> movz. */ | |
428 | break; | |
b83b4b13 SD |
429 | case 1234: /* autibsp */ |
430 | case 1233: /* autibz */ | |
431 | case 1232: /* autiasp */ | |
432 | case 1231: /* autiaz */ | |
433 | case 1230: /* pacibsp */ | |
434 | case 1229: /* pacibz */ | |
435 | case 1228: /* paciasp */ | |
436 | case 1227: /* paciaz */ | |
437 | case 1208: /* psb */ | |
438 | case 1207: /* esb */ | |
439 | case 1206: /* autib1716 */ | |
440 | case 1205: /* autia1716 */ | |
441 | case 1204: /* pacib1716 */ | |
442 | case 1203: /* pacia1716 */ | |
443 | case 1202: /* xpaclri */ | |
444 | case 1201: /* sevl */ | |
445 | case 1200: /* sev */ | |
446 | case 1199: /* wfi */ | |
447 | case 1198: /* wfe */ | |
448 | case 1197: /* yield */ | |
449 | case 1196: /* bti */ | |
450 | case 1195: /* csdb */ | |
451 | case 1194: /* nop */ | |
452 | case 1193: /* hint */ | |
453 | value = 1193; /* --> hint. */ | |
454 | break; | |
455 | case 1212: /* pssbb */ | |
456 | case 1211: /* ssbb */ | |
457 | case 1210: /* dsb */ | |
458 | value = 1210; /* --> dsb. */ | |
459 | break; | |
460 | case 1223: /* cpp */ | |
461 | case 1222: /* dvp */ | |
462 | case 1221: /* cfp */ | |
463 | case 1220: /* tlbi */ | |
464 | case 1219: /* ic */ | |
465 | case 1218: /* dc */ | |
466 | case 1217: /* at */ | |
467 | case 1216: /* sys */ | |
468 | value = 1216; /* --> sys. */ | |
469 | break; | |
470 | case 2032: /* bic */ | |
471 | case 1282: /* and */ | |
472 | value = 1282; /* --> and. */ | |
473 | break; | |
474 | case 1265: /* mov */ | |
475 | case 1284: /* and */ | |
476 | value = 1284; /* --> and. */ | |
477 | break; | |
478 | case 1269: /* movs */ | |
479 | case 1285: /* ands */ | |
480 | value = 1285; /* --> ands. */ | |
481 | break; | |
482 | case 2033: /* cmple */ | |
483 | case 1320: /* cmpge */ | |
484 | value = 1320; /* --> cmpge. */ | |
485 | break; | |
486 | case 2036: /* cmplt */ | |
487 | case 1323: /* cmpgt */ | |
488 | value = 1323; /* --> cmpgt. */ | |
489 | break; | |
490 | case 2034: /* cmplo */ | |
491 | case 1325: /* cmphi */ | |
492 | value = 1325; /* --> cmphi. */ | |
493 | break; | |
494 | case 2035: /* cmpls */ | |
495 | case 1328: /* cmphs */ | |
496 | value = 1328; /* --> cmphs. */ | |
fb3265b3 | 497 | break; |
b83b4b13 SD |
498 | case 1262: /* mov */ |
499 | case 1350: /* cpy */ | |
500 | value = 1350; /* --> cpy. */ | |
fb3265b3 | 501 | break; |
b83b4b13 SD |
502 | case 1264: /* mov */ |
503 | case 1351: /* cpy */ | |
504 | value = 1351; /* --> cpy. */ | |
fb3265b3 | 505 | break; |
b83b4b13 SD |
506 | case 2043: /* fmov */ |
507 | case 1267: /* mov */ | |
508 | case 1352: /* cpy */ | |
509 | value = 1352; /* --> cpy. */ | |
fb3265b3 | 510 | break; |
b83b4b13 SD |
511 | case 1257: /* mov */ |
512 | case 1364: /* dup */ | |
513 | value = 1364; /* --> dup. */ | |
fb3265b3 | 514 | break; |
b83b4b13 SD |
515 | case 1259: /* mov */ |
516 | case 1256: /* mov */ | |
517 | case 1365: /* dup */ | |
518 | value = 1365; /* --> dup. */ | |
550fd7bf | 519 | break; |
b83b4b13 SD |
520 | case 2042: /* fmov */ |
521 | case 1261: /* mov */ | |
522 | case 1366: /* dup */ | |
523 | value = 1366; /* --> dup. */ | |
13c60ad7 | 524 | break; |
e54010f1 | 525 | case 1260: /* mov */ |
b83b4b13 SD |
526 | case 1367: /* dupm */ |
527 | value = 1367; /* --> dupm. */ | |
74f5402d | 528 | break; |
b83b4b13 SD |
529 | case 2037: /* eon */ |
530 | case 1369: /* eor */ | |
531 | value = 1369; /* --> eor. */ | |
3f06e550 | 532 | break; |
b83b4b13 SD |
533 | case 1270: /* not */ |
534 | case 1371: /* eor */ | |
535 | value = 1371; /* --> eor. */ | |
28617675 | 536 | break; |
b83b4b13 SD |
537 | case 1271: /* nots */ |
538 | case 1372: /* eors */ | |
539 | value = 1372; /* --> eors. */ | |
c84364ec | 540 | break; |
b83b4b13 SD |
541 | case 2038: /* facle */ |
542 | case 1377: /* facge */ | |
543 | value = 1377; /* --> facge. */ | |
c2c4ff8d | 544 | break; |
b83b4b13 SD |
545 | case 2039: /* faclt */ |
546 | case 1378: /* facgt */ | |
547 | value = 1378; /* --> facgt. */ | |
28617675 | 548 | break; |
b83b4b13 SD |
549 | case 2040: /* fcmle */ |
550 | case 1391: /* fcmge */ | |
551 | value = 1391; /* --> fcmge. */ | |
cde3679e | 552 | break; |
b83b4b13 SD |
553 | case 2041: /* fcmlt */ |
554 | case 1393: /* fcmgt */ | |
555 | value = 1393; /* --> fcmgt. */ | |
2ac435d4 | 556 | break; |
b83b4b13 SD |
557 | case 1254: /* fmov */ |
558 | case 1399: /* fcpy */ | |
559 | value = 1399; /* --> fcpy. */ | |
be2e7d95 | 560 | break; |
b83b4b13 SD |
561 | case 1253: /* fmov */ |
562 | case 1422: /* fdup */ | |
563 | value = 1422; /* --> fdup. */ | |
2ac435d4 | 564 | break; |
b83b4b13 SD |
565 | case 1255: /* mov */ |
566 | case 1753: /* orr */ | |
567 | value = 1753; /* --> orr. */ | |
b731bc3b | 568 | break; |
b83b4b13 SD |
569 | case 2044: /* orn */ |
570 | case 1754: /* orr */ | |
571 | value = 1754; /* --> orr. */ | |
ff605452 | 572 | break; |
b83b4b13 SD |
573 | case 1258: /* mov */ |
574 | case 1756: /* orr */ | |
575 | value = 1756; /* --> orr. */ | |
503ba600 | 576 | break; |
b83b4b13 SD |
577 | case 1268: /* movs */ |
578 | case 1757: /* orrs */ | |
579 | value = 1757; /* --> orrs. */ | |
e6025b54 | 580 | break; |
b83b4b13 SD |
581 | case 1263: /* mov */ |
582 | case 1819: /* sel */ | |
583 | value = 1819; /* --> sel. */ | |
e54010f1 | 584 | break; |
b83b4b13 SD |
585 | case 1266: /* mov */ |
586 | case 1820: /* sel */ | |
587 | value = 1820; /* --> sel. */ | |
20a4ca55 | 588 | break; |
a06ea964 NC |
589 | default: return NULL; |
590 | } | |
591 | ||
592 | return aarch64_opcode_table + value; | |
593 | } | |
594 | ||
561a72d4 | 595 | bfd_boolean |
a06ea964 NC |
596 | aarch64_insert_operand (const aarch64_operand *self, |
597 | const aarch64_opnd_info *info, | |
561a72d4 TC |
598 | aarch64_insn *code, const aarch64_inst *inst, |
599 | aarch64_operand_error *errors) | |
a06ea964 NC |
600 | { |
601 | /* Use the index as the key. */ | |
602 | int key = self - aarch64_operands; | |
603 | switch (key) | |
604 | { | |
605 | case 1: | |
606 | case 2: | |
607 | case 3: | |
608 | case 4: | |
609 | case 5: | |
610 | case 6: | |
611 | case 7: | |
612 | case 8: | |
613 | case 9: | |
614 | case 10: | |
c84364ec | 615 | case 11: |
bd7ceb8d | 616 | case 12: |
a06ea964 | 617 | case 16: |
ee804238 | 618 | case 17: |
c84364ec | 619 | case 18: |
bd7ceb8d | 620 | case 19: |
a06ea964 NC |
621 | case 21: |
622 | case 22: | |
623 | case 23: | |
624 | case 24: | |
625 | case 25: | |
626 | case 26: | |
ee804238 | 627 | case 27: |
c84364ec | 628 | case 28: |
f42f1a1d | 629 | case 29: |
bd7ceb8d | 630 | case 30: |
2ac435d4 | 631 | case 163: |
ff605452 | 632 | case 164: |
193614f2 SD |
633 | case 165: |
634 | case 166: | |
fb3265b3 SD |
635 | case 167: |
636 | case 168: | |
bd7ceb8d | 637 | case 169: |
adccc507 | 638 | case 170: |
c469c864 | 639 | case 171: |
8382113f | 640 | case 172: |
193614f2 | 641 | case 187: |
fb3265b3 SD |
642 | case 188: |
643 | case 189: | |
bd7ceb8d | 644 | case 190: |
adccc507 | 645 | case 191: |
c469c864 | 646 | case 192: |
3c17238b | 647 | case 193: |
28ed815a | 648 | case 194: |
8382113f MM |
649 | case 195: |
650 | case 201: | |
651 | case 204: | |
561a72d4 | 652 | return aarch64_ins_regno (self, info, code, inst, errors); |
c84364ec | 653 | case 14: |
bd7ceb8d SD |
654 | return aarch64_ins_reg_extended (self, info, code, inst, errors); |
655 | case 15: | |
561a72d4 | 656 | return aarch64_ins_reg_shifted (self, info, code, inst, errors); |
bd7ceb8d | 657 | case 20: |
561a72d4 | 658 | return aarch64_ins_ft (self, info, code, inst, errors); |
a06ea964 | 659 | case 31: |
a06ea964 | 660 | case 32: |
a06ea964 | 661 | case 33: |
ee804238 | 662 | case 34: |
8382113f | 663 | case 207: |
bd7ceb8d | 664 | return aarch64_ins_reglane (self, info, code, inst, errors); |
c84364ec | 665 | case 35: |
bd7ceb8d | 666 | return aarch64_ins_reglist (self, info, code, inst, errors); |
a6a51754 | 667 | case 36: |
bd7ceb8d | 668 | return aarch64_ins_ldst_reglist (self, info, code, inst, errors); |
a6a51754 | 669 | case 37: |
bd7ceb8d | 670 | return aarch64_ins_ldst_reglist_r (self, info, code, inst, errors); |
c84364ec | 671 | case 38: |
bd7ceb8d | 672 | return aarch64_ins_ldst_elemlist (self, info, code, inst, errors); |
f42f1a1d TC |
673 | case 39: |
674 | case 40: | |
369c9167 | 675 | case 41: |
bd7ceb8d | 676 | case 42: |
a06ea964 NC |
677 | case 52: |
678 | case 53: | |
679 | case 54: | |
680 | case 55: | |
681 | case 56: | |
682 | case 57: | |
ee804238 | 683 | case 58: |
e950b345 | 684 | case 59: |
c84364ec | 685 | case 60: |
f42f1a1d TC |
686 | case 61: |
687 | case 62: | |
688 | case 63: | |
369c9167 | 689 | case 64: |
193614f2 SD |
690 | case 65: |
691 | case 66: | |
bd7ceb8d | 692 | case 67: |
369c9167 | 693 | case 79: |
193614f2 SD |
694 | case 80: |
695 | case 81: | |
bd7ceb8d | 696 | case 82: |
8382113f MM |
697 | case 160: |
698 | case 162: | |
fb3265b3 SD |
699 | case 179: |
700 | case 180: | |
bd7ceb8d | 701 | case 181: |
adccc507 | 702 | case 182: |
c469c864 | 703 | case 183: |
3c17238b | 704 | case 184: |
28ed815a | 705 | case 185: |
8382113f MM |
706 | case 186: |
707 | case 206: | |
561a72d4 | 708 | return aarch64_ins_imm (self, info, code, inst, errors); |
c84364ec | 709 | case 43: |
f42f1a1d | 710 | case 44: |
bd7ceb8d | 711 | return aarch64_ins_advsimd_imm_shift (self, info, code, inst, errors); |
f42f1a1d | 712 | case 45: |
369c9167 | 713 | case 46: |
bd7ceb8d | 714 | case 47: |
561a72d4 | 715 | return aarch64_ins_advsimd_imm_modified (self, info, code, inst, errors); |
bd7ceb8d | 716 | case 51: |
8382113f | 717 | case 150: |
561a72d4 | 718 | return aarch64_ins_fpimm (self, info, code, inst, errors); |
193614f2 | 719 | case 68: |
8382113f | 720 | case 158: |
bd7ceb8d | 721 | return aarch64_ins_limm (self, info, code, inst, errors); |
193614f2 | 722 | case 69: |
bd7ceb8d | 723 | return aarch64_ins_aimm (self, info, code, inst, errors); |
c2c4ff8d | 724 | case 70: |
bd7ceb8d SD |
725 | return aarch64_ins_imm_half (self, info, code, inst, errors); |
726 | case 71: | |
193614f2 | 727 | return aarch64_ins_fbits (self, info, code, inst, errors); |
f42f1a1d | 728 | case 73: |
369c9167 | 729 | case 74: |
8382113f | 730 | case 155: |
bd7ceb8d | 731 | return aarch64_ins_imm_rotate2 (self, info, code, inst, errors); |
193614f2 | 732 | case 75: |
8382113f MM |
733 | case 154: |
734 | case 156: | |
bd7ceb8d | 735 | return aarch64_ins_imm_rotate1 (self, info, code, inst, errors); |
193614f2 | 736 | case 76: |
bd7ceb8d | 737 | case 77: |
561a72d4 | 738 | return aarch64_ins_cond (self, info, code, inst, errors); |
f42f1a1d | 739 | case 83: |
bd7ceb8d SD |
740 | case 92: |
741 | return aarch64_ins_addr_simple (self, info, code, inst, errors); | |
550fd7bf | 742 | case 84: |
bd7ceb8d | 743 | return aarch64_ins_addr_regoff (self, info, code, inst, errors); |
a06ea964 | 744 | case 85: |
369c9167 | 745 | case 86: |
550fd7bf | 746 | case 87: |
550fd7bf | 747 | case 89: |
bd7ceb8d SD |
748 | case 91: |
749 | return aarch64_ins_addr_simm (self, info, code, inst, errors); | |
750 | case 88: | |
751 | return aarch64_ins_addr_simm10 (self, info, code, inst, errors); | |
752 | case 90: | |
193614f2 | 753 | return aarch64_ins_addr_uimm12 (self, info, code, inst, errors); |
550fd7bf | 754 | case 93: |
bd7ceb8d | 755 | return aarch64_ins_addr_offset (self, info, code, inst, errors); |
550fd7bf | 756 | case 94: |
bd7ceb8d | 757 | return aarch64_ins_simd_addr_post (self, info, code, inst, errors); |
550fd7bf | 758 | case 95: |
bd7ceb8d | 759 | return aarch64_ins_sysreg (self, info, code, inst, errors); |
550fd7bf | 760 | case 96: |
bd7ceb8d | 761 | return aarch64_ins_pstatefield (self, info, code, inst, errors); |
4df068de RS |
762 | case 97: |
763 | case 98: | |
764 | case 99: | |
765 | case 100: | |
550fd7bf | 766 | case 101: |
bd7ceb8d | 767 | return aarch64_ins_sysins_op (self, info, code, inst, errors); |
4df068de | 768 | case 102: |
550fd7bf | 769 | case 103: |
bd7ceb8d | 770 | return aarch64_ins_barrier (self, info, code, inst, errors); |
550fd7bf | 771 | case 104: |
bd7ceb8d | 772 | return aarch64_ins_prfop (self, info, code, inst, errors); |
4df068de | 773 | case 105: |
550fd7bf | 774 | case 106: |
bd7ceb8d | 775 | return aarch64_ins_hint (self, info, code, inst, errors); |
550fd7bf | 776 | case 107: |
4df068de | 777 | case 108: |
8382113f | 778 | return aarch64_ins_sve_addr_ri_s4 (self, info, code, inst, errors); |
2442d846 | 779 | case 109: |
4df068de | 780 | case 110: |
550fd7bf | 781 | case 111: |
550fd7bf | 782 | case 112: |
8382113f | 783 | return aarch64_ins_sve_addr_ri_s4xvl (self, info, code, inst, errors); |
550fd7bf | 784 | case 113: |
8382113f | 785 | return aarch64_ins_sve_addr_ri_s6xvl (self, info, code, inst, errors); |
4df068de | 786 | case 114: |
8382113f | 787 | return aarch64_ins_sve_addr_ri_s9xvl (self, info, code, inst, errors); |
4df068de RS |
788 | case 115: |
789 | case 116: | |
550fd7bf | 790 | case 117: |
4df068de | 791 | case 118: |
8382113f | 792 | return aarch64_ins_sve_addr_ri_u6 (self, info, code, inst, errors); |
4df068de | 793 | case 119: |
98907a70 | 794 | case 120: |
4df068de | 795 | case 121: |
98907a70 | 796 | case 122: |
98907a70 | 797 | case 123: |
98907a70 | 798 | case 124: |
98907a70 | 799 | case 125: |
e950b345 | 800 | case 126: |
98907a70 | 801 | case 127: |
e950b345 | 802 | case 128: |
c84364ec | 803 | case 129: |
550fd7bf | 804 | case 130: |
c2c4ff8d | 805 | case 131: |
165d4950 | 806 | case 132: |
8382113f | 807 | return aarch64_ins_sve_addr_rr_lsl (self, info, code, inst, errors); |
e950b345 | 808 | case 133: |
582e12bf | 809 | case 134: |
f42f1a1d | 810 | case 135: |
c2c4ff8d | 811 | case 136: |
c2c4ff8d | 812 | case 137: |
550fd7bf | 813 | case 138: |
c8d59609 | 814 | case 139: |
369c9167 | 815 | case 140: |
8382113f | 816 | return aarch64_ins_sve_addr_rz_xtw (self, info, code, inst, errors); |
2ac435d4 | 817 | case 141: |
550fd7bf | 818 | case 142: |
550fd7bf | 819 | case 143: |
550fd7bf | 820 | case 144: |
8382113f | 821 | return aarch64_ins_sve_addr_zi_u5 (self, info, code, inst, errors); |
550fd7bf | 822 | case 145: |
8382113f | 823 | return aarch64_ins_sve_addr_zz_lsl (self, info, code, inst, errors); |
550fd7bf | 824 | case 146: |
8382113f | 825 | return aarch64_ins_sve_addr_zz_sxtw (self, info, code, inst, errors); |
bd7ceb8d | 826 | case 147: |
8382113f | 827 | return aarch64_ins_sve_addr_zz_uxtw (self, info, code, inst, errors); |
c469c864 | 828 | case 148: |
8382113f MM |
829 | return aarch64_ins_sve_aimm (self, info, code, inst, errors); |
830 | case 149: | |
fb3265b3 | 831 | return aarch64_ins_sve_asimm (self, info, code, inst, errors); |
bd7ceb8d | 832 | case 151: |
8382113f | 833 | return aarch64_ins_sve_float_half_one (self, info, code, inst, errors); |
c469c864 | 834 | case 152: |
8382113f MM |
835 | return aarch64_ins_sve_float_half_two (self, info, code, inst, errors); |
836 | case 153: | |
561a72d4 | 837 | return aarch64_ins_sve_float_zero_one (self, info, code, inst, errors); |
8382113f | 838 | case 157: |
fb3265b3 | 839 | return aarch64_ins_inv_limm (self, info, code, inst, errors); |
8382113f | 840 | case 159: |
fb3265b3 | 841 | return aarch64_ins_sve_limm_mov (self, info, code, inst, errors); |
8382113f | 842 | case 161: |
561a72d4 | 843 | return aarch64_ins_sve_scale (self, info, code, inst, errors); |
bd7ceb8d | 844 | case 173: |
adccc507 | 845 | case 174: |
c469c864 | 846 | case 175: |
8382113f | 847 | return aarch64_ins_sve_shlimm (self, info, code, inst, errors); |
3c17238b | 848 | case 176: |
28ed815a | 849 | case 177: |
8382113f | 850 | case 178: |
561a72d4 | 851 | return aarch64_ins_sve_shrimm (self, info, code, inst, errors); |
c469c864 | 852 | case 196: |
3c17238b | 853 | case 197: |
31e36ab3 | 854 | case 198: |
28ed815a | 855 | case 199: |
8382113f | 856 | case 200: |
fb3265b3 | 857 | return aarch64_ins_sve_quad_index (self, info, code, inst, errors); |
28ed815a | 858 | case 202: |
8382113f MM |
859 | return aarch64_ins_sve_index (self, info, code, inst, errors); |
860 | case 203: | |
861 | case 205: | |
561a72d4 | 862 | return aarch64_ins_sve_reglist (self, info, code, inst, errors); |
a06ea964 NC |
863 | default: assert (0); abort (); |
864 | } | |
865 | } |