3
3
THIS FILE IS MACHINE GENERATED WITH CGEN.
5
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
5
Copyright 1996-2010 Free Software Foundation, Inc.
7
7
This file is part of the GNU simulators.
9
This program is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 3 of the License, or
12
(at your option) any later version.
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
19
You should have received a copy of the GNU General Public License
20
along with this program. If not, see <http://www.gnu.org/licenses/>.
9
This file is free software; you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation; either version 3, or (at your option)
14
It is distributed in the hope that it will be useful, but WITHOUT
15
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
17
License for more details.
19
You should have received a copy of the GNU General Public License along
20
with this program; if not, write to the Free Software Foundation, Inc.,
21
51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
273
275
unsigned int val = (((insn >> 1) & (1 << 4)) | ((insn >> 0) & (15 << 0)));
276
case 0 : itype = IQ2000BF_INSN_SLL;goto extract_sfmt_sll;
277
case 1 : itype = IQ2000BF_INSN_SLMV;goto extract_sfmt_slmv;
278
case 2 : itype = IQ2000BF_INSN_SRL;goto extract_sfmt_sll;
279
case 3 : itype = IQ2000BF_INSN_SRA;goto extract_sfmt_sll;
280
case 4 : itype = IQ2000BF_INSN_SLLV;goto extract_sfmt_add;
281
case 5 : itype = IQ2000BF_INSN_SRMV;goto extract_sfmt_slmv;
282
case 6 : itype = IQ2000BF_INSN_SRLV;goto extract_sfmt_add;
283
case 7 : itype = IQ2000BF_INSN_SRAV;goto extract_sfmt_add;
284
case 8 : itype = IQ2000BF_INSN_JR;goto extract_sfmt_jr;
285
case 9 : itype = IQ2000BF_INSN_JALR;goto extract_sfmt_jalr;
286
case 10 : itype = IQ2000BF_INSN_JCR;goto extract_sfmt_bctxt;
287
case 12 : itype = IQ2000BF_INSN_SYSCALL;goto extract_sfmt_syscall;
288
case 13 : itype = IQ2000BF_INSN_BREAK;goto extract_sfmt_break;
289
case 14 : itype = IQ2000BF_INSN_SLEEP;goto extract_sfmt_syscall;
290
case 16 : itype = IQ2000BF_INSN_ADD;goto extract_sfmt_add;
291
case 17 : itype = IQ2000BF_INSN_ADDU;goto extract_sfmt_add;
292
case 18 : itype = IQ2000BF_INSN_SUB;goto extract_sfmt_add;
293
case 19 : itype = IQ2000BF_INSN_SUBU;goto extract_sfmt_add;
294
case 20 : itype = IQ2000BF_INSN_AND;goto extract_sfmt_add;
295
case 21 : itype = IQ2000BF_INSN_OR;goto extract_sfmt_add;
296
case 22 : itype = IQ2000BF_INSN_XOR;goto extract_sfmt_add;
297
case 23 : itype = IQ2000BF_INSN_NOR;goto extract_sfmt_add;
298
case 25 : itype = IQ2000BF_INSN_ADO16;goto extract_sfmt_ado16;
299
case 26 : itype = IQ2000BF_INSN_SLT;goto extract_sfmt_slt;
300
case 27 : itype = IQ2000BF_INSN_SLTU;goto extract_sfmt_slt;
301
case 29 : itype = IQ2000BF_INSN_MRGB;goto extract_sfmt_mrgb;
279
if ((entire_insn & 0xffe0003f) == 0x0)
280
{ itype = IQ2000BF_INSN_SLL; goto extract_sfmt_sll; }
281
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
283
if ((entire_insn & 0xfc00003f) == 0x1)
284
{ itype = IQ2000BF_INSN_SLMV; goto extract_sfmt_slmv; }
285
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
287
if ((entire_insn & 0xffe0003f) == 0x2)
288
{ itype = IQ2000BF_INSN_SRL; goto extract_sfmt_sll; }
289
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
291
if ((entire_insn & 0xffe0003f) == 0x3)
292
{ itype = IQ2000BF_INSN_SRA; goto extract_sfmt_sll; }
293
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
295
if ((entire_insn & 0xfc0007ff) == 0x4)
296
{ itype = IQ2000BF_INSN_SLLV; goto extract_sfmt_add; }
297
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
299
if ((entire_insn & 0xfc00003f) == 0x5)
300
{ itype = IQ2000BF_INSN_SRMV; goto extract_sfmt_slmv; }
301
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
303
if ((entire_insn & 0xfc0007ff) == 0x6)
304
{ itype = IQ2000BF_INSN_SRLV; goto extract_sfmt_add; }
305
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
307
if ((entire_insn & 0xfc0007ff) == 0x7)
308
{ itype = IQ2000BF_INSN_SRAV; goto extract_sfmt_add; }
309
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
311
if ((entire_insn & 0xfc1fffff) == 0x8)
312
{ itype = IQ2000BF_INSN_JR; goto extract_sfmt_jr; }
313
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
315
if ((entire_insn & 0xfc1f07ff) == 0x9)
316
{ itype = IQ2000BF_INSN_JALR; goto extract_sfmt_jalr; }
317
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
319
if ((entire_insn & 0xfc1fffff) == 0xa)
320
{ itype = IQ2000BF_INSN_JCR; goto extract_sfmt_bctxt; }
321
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
323
if ((entire_insn & 0xfc00003f) == 0xc)
324
{ itype = IQ2000BF_INSN_SYSCALL; goto extract_sfmt_syscall; }
325
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
327
if ((entire_insn & 0xffffffff) == 0xd)
328
{ itype = IQ2000BF_INSN_BREAK; goto extract_sfmt_break; }
329
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
331
if ((entire_insn & 0xfc00003f) == 0xe)
332
{ itype = IQ2000BF_INSN_SLEEP; goto extract_sfmt_syscall; }
333
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
335
if ((entire_insn & 0xfc0007ff) == 0x20)
336
{ itype = IQ2000BF_INSN_ADD; goto extract_sfmt_add; }
337
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
339
if ((entire_insn & 0xfc0007ff) == 0x21)
340
{ itype = IQ2000BF_INSN_ADDU; goto extract_sfmt_add; }
341
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
343
if ((entire_insn & 0xfc0007ff) == 0x22)
344
{ itype = IQ2000BF_INSN_SUB; goto extract_sfmt_add; }
345
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
347
if ((entire_insn & 0xfc0007ff) == 0x23)
348
{ itype = IQ2000BF_INSN_SUBU; goto extract_sfmt_add; }
349
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
351
if ((entire_insn & 0xfc0007ff) == 0x24)
352
{ itype = IQ2000BF_INSN_AND; goto extract_sfmt_add; }
353
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
355
if ((entire_insn & 0xfc0007ff) == 0x25)
356
{ itype = IQ2000BF_INSN_OR; goto extract_sfmt_add; }
357
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
359
if ((entire_insn & 0xfc0007ff) == 0x26)
360
{ itype = IQ2000BF_INSN_XOR; goto extract_sfmt_add; }
361
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
363
if ((entire_insn & 0xfc0007ff) == 0x27)
364
{ itype = IQ2000BF_INSN_NOR; goto extract_sfmt_add; }
365
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
367
if ((entire_insn & 0xfc0007ff) == 0x29)
368
{ itype = IQ2000BF_INSN_ADO16; goto extract_sfmt_add; }
369
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
371
if ((entire_insn & 0xfc0007ff) == 0x2a)
372
{ itype = IQ2000BF_INSN_SLT; goto extract_sfmt_slt; }
373
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
375
if ((entire_insn & 0xfc0007ff) == 0x2b)
376
{ itype = IQ2000BF_INSN_SLTU; goto extract_sfmt_slt; }
377
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
379
if ((entire_insn & 0xfc00043f) == 0x2d)
380
{ itype = IQ2000BF_INSN_MRGB; goto extract_sfmt_mrgb; }
381
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
302
382
default : itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
307
387
unsigned int val = (((insn >> 17) & (1 << 3)) | ((insn >> 16) & (7 << 0)));
310
case 0 : itype = IQ2000BF_INSN_BLTZ;goto extract_sfmt_bgez;
311
case 1 : itype = IQ2000BF_INSN_BGEZ;goto extract_sfmt_bgez;
312
case 2 : itype = IQ2000BF_INSN_BLTZL;goto extract_sfmt_bgez;
313
case 3 : itype = IQ2000BF_INSN_BGEZL;goto extract_sfmt_bgez;
314
case 6 : itype = IQ2000BF_INSN_BCTXT;goto extract_sfmt_bctxt;
315
case 8 : itype = IQ2000BF_INSN_BLTZAL;goto extract_sfmt_bgezal;
316
case 9 : itype = IQ2000BF_INSN_BGEZAL;goto extract_sfmt_bgezal;
317
case 10 : itype = IQ2000BF_INSN_BLTZALL;goto extract_sfmt_bgezal;
318
case 11 : itype = IQ2000BF_INSN_BGEZALL;goto extract_sfmt_bgezal;
391
if ((entire_insn & 0xfc1f0000) == 0x4000000)
392
{ itype = IQ2000BF_INSN_BLTZ; goto extract_sfmt_bgez; }
393
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
395
if ((entire_insn & 0xfc1f0000) == 0x4010000)
396
{ itype = IQ2000BF_INSN_BGEZ; goto extract_sfmt_bgez; }
397
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
399
if ((entire_insn & 0xfc1f0000) == 0x4020000)
400
{ itype = IQ2000BF_INSN_BLTZL; goto extract_sfmt_bgez; }
401
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
403
if ((entire_insn & 0xfc1f0000) == 0x4030000)
404
{ itype = IQ2000BF_INSN_BGEZL; goto extract_sfmt_bgez; }
405
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
407
if ((entire_insn & 0xfc1f0000) == 0x4060000)
408
{ itype = IQ2000BF_INSN_BCTXT; goto extract_sfmt_bctxt; }
409
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
411
if ((entire_insn & 0xfc1f0000) == 0x4100000)
412
{ itype = IQ2000BF_INSN_BLTZAL; goto extract_sfmt_bgezal; }
413
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
415
if ((entire_insn & 0xfc1f0000) == 0x4110000)
416
{ itype = IQ2000BF_INSN_BGEZAL; goto extract_sfmt_bgezal; }
417
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
419
if ((entire_insn & 0xfc1f0000) == 0x4120000)
420
{ itype = IQ2000BF_INSN_BLTZALL; goto extract_sfmt_bgezal; }
421
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
423
if ((entire_insn & 0xfc1f0000) == 0x4130000)
424
{ itype = IQ2000BF_INSN_BGEZALL; goto extract_sfmt_bgezal; }
425
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
319
426
default : itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
322
case 2 : itype = IQ2000BF_INSN_J;goto extract_sfmt_j;
323
case 3 : itype = IQ2000BF_INSN_JAL;goto extract_sfmt_jal;
324
case 4 : itype = IQ2000BF_INSN_BEQ;goto extract_sfmt_bbv;
325
case 5 : itype = IQ2000BF_INSN_BNE;goto extract_sfmt_bbv;
326
case 6 : itype = IQ2000BF_INSN_BLEZ;goto extract_sfmt_bgez;
327
case 7 : itype = IQ2000BF_INSN_BGTZ;goto extract_sfmt_bgez;
328
case 8 : itype = IQ2000BF_INSN_ADDI;goto extract_sfmt_addi;
329
case 9 : itype = IQ2000BF_INSN_ADDIU;goto extract_sfmt_addi;
330
case 10 : itype = IQ2000BF_INSN_SLTI;goto extract_sfmt_slti;
331
case 11 : itype = IQ2000BF_INSN_SLTIU;goto extract_sfmt_slti;
332
case 12 : itype = IQ2000BF_INSN_ANDI;goto extract_sfmt_addi;
333
case 13 : itype = IQ2000BF_INSN_ORI;goto extract_sfmt_addi;
334
case 14 : itype = IQ2000BF_INSN_XORI;goto extract_sfmt_addi;
335
case 15 : itype = IQ2000BF_INSN_LUI;goto extract_sfmt_lui;
430
if ((entire_insn & 0xffff0000) == 0x8000000)
431
{ itype = IQ2000BF_INSN_J; goto extract_sfmt_j; }
432
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
434
if ((entire_insn & 0xffff0000) == 0xc000000)
435
{ itype = IQ2000BF_INSN_JAL; goto extract_sfmt_jal; }
436
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
437
case 4 : itype = IQ2000BF_INSN_BEQ; goto extract_sfmt_bbv;
438
case 5 : itype = IQ2000BF_INSN_BNE; goto extract_sfmt_bbv;
440
if ((entire_insn & 0xfc1f0000) == 0x18000000)
441
{ itype = IQ2000BF_INSN_BLEZ; goto extract_sfmt_bgez; }
442
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
444
if ((entire_insn & 0xfc1f0000) == 0x1c000000)
445
{ itype = IQ2000BF_INSN_BGTZ; goto extract_sfmt_bgez; }
446
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
447
case 8 : itype = IQ2000BF_INSN_ADDI; goto extract_sfmt_addi;
448
case 9 : itype = IQ2000BF_INSN_ADDIU; goto extract_sfmt_addi;
449
case 10 : itype = IQ2000BF_INSN_SLTI; goto extract_sfmt_slti;
450
case 11 : itype = IQ2000BF_INSN_SLTIU; goto extract_sfmt_slti;
451
case 12 : itype = IQ2000BF_INSN_ANDI; goto extract_sfmt_addi;
452
case 13 : itype = IQ2000BF_INSN_ORI; goto extract_sfmt_addi;
453
case 14 : itype = IQ2000BF_INSN_XORI; goto extract_sfmt_addi;
455
if ((entire_insn & 0xffe00000) == 0x3c000000)
456
{ itype = IQ2000BF_INSN_LUI; goto extract_sfmt_lui; }
457
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
338
460
unsigned int val = (((insn >> 19) & (15 << 3)) | ((insn >> 15) & (3 << 1)) | ((insn >> 4) & (1 << 0)));
341
463
case 0 : /* fall through */
342
464
case 2 : /* fall through */
343
465
case 4 : /* fall through */
344
case 6 : itype = IQ2000BF_INSN_MFC0;goto extract_sfmt_syscall;
467
if ((entire_insn & 0xffe007ff) == 0x40000000)
468
{ itype = IQ2000BF_INSN_MFC0; goto extract_sfmt_syscall; }
469
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
345
470
case 8 : /* fall through */
346
471
case 10 : /* fall through */
347
472
case 12 : /* fall through */
348
case 14 : itype = IQ2000BF_INSN_CFC0;goto extract_sfmt_syscall;
474
if ((entire_insn & 0xffe007ff) == 0x40400000)
475
{ itype = IQ2000BF_INSN_CFC0; goto extract_sfmt_syscall; }
476
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
349
477
case 16 : /* fall through */
350
478
case 18 : /* fall through */
351
479
case 20 : /* fall through */
352
case 22 : itype = IQ2000BF_INSN_MTC0;goto extract_sfmt_syscall;
481
if ((entire_insn & 0xffe007ff) == 0x40800000)
482
{ itype = IQ2000BF_INSN_MTC0; goto extract_sfmt_syscall; }
483
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
353
484
case 24 : /* fall through */
354
485
case 26 : /* fall through */
355
486
case 28 : /* fall through */
356
case 30 : itype = IQ2000BF_INSN_CTC0;goto extract_sfmt_syscall;
488
if ((entire_insn & 0xffe007ff) == 0x40c00000)
489
{ itype = IQ2000BF_INSN_CTC0; goto extract_sfmt_syscall; }
490
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
357
491
case 32 : /* fall through */
358
case 33 : itype = IQ2000BF_INSN_BC0F;goto extract_sfmt_bctxt;
493
if ((entire_insn & 0xffff0000) == 0x41000000)
494
{ itype = IQ2000BF_INSN_BC0F; goto extract_sfmt_bctxt; }
495
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
359
496
case 34 : /* fall through */
360
case 35 : itype = IQ2000BF_INSN_BC0T;goto extract_sfmt_bctxt;
498
if ((entire_insn & 0xffff0000) == 0x41010000)
499
{ itype = IQ2000BF_INSN_BC0T; goto extract_sfmt_bctxt; }
500
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
361
501
case 36 : /* fall through */
362
case 37 : itype = IQ2000BF_INSN_BC0FL;goto extract_sfmt_bctxt;
503
if ((entire_insn & 0xffff0000) == 0x41020000)
504
{ itype = IQ2000BF_INSN_BC0FL; goto extract_sfmt_bctxt; }
505
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
363
506
case 38 : /* fall through */
364
case 39 : itype = IQ2000BF_INSN_BC0TL;goto extract_sfmt_bctxt;
365
case 65 : itype = IQ2000BF_INSN_RFE;goto extract_sfmt_syscall;
508
if ((entire_insn & 0xffff0000) == 0x41030000)
509
{ itype = IQ2000BF_INSN_BC0TL; goto extract_sfmt_bctxt; }
510
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
512
if ((entire_insn & 0xffffffff) == 0x42000010)
513
{ itype = IQ2000BF_INSN_RFE; goto extract_sfmt_syscall; }
514
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
366
515
default : itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
388
549
unsigned int val = (((insn >> 23) & (1 << 0)));
391
case 0 : itype = IQ2000BF_INSN_MFC2;goto extract_sfmt_syscall;
392
case 1 : itype = IQ2000BF_INSN_MTC2;goto extract_sfmt_syscall;
553
if ((entire_insn & 0xffe007ff) == 0x48000000)
554
{ itype = IQ2000BF_INSN_MFC2; goto extract_sfmt_syscall; }
555
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
557
if ((entire_insn & 0xffe007ff) == 0x48800000)
558
{ itype = IQ2000BF_INSN_MTC2; goto extract_sfmt_syscall; }
559
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
393
560
default : itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
396
case 32 : itype = IQ2000BF_INSN_LUULCK;goto extract_sfmt_syscall;
397
case 33 : itype = IQ2000BF_INSN_LUR;goto extract_sfmt_syscall;
398
case 34 : itype = IQ2000BF_INSN_LUM32;goto extract_sfmt_syscall;
399
case 35 : itype = IQ2000BF_INSN_LUC32;goto extract_sfmt_syscall;
400
case 36 : itype = IQ2000BF_INSN_LULCK;goto extract_sfmt_syscall;
401
case 37 : itype = IQ2000BF_INSN_LURL;goto extract_sfmt_syscall;
402
case 38 : itype = IQ2000BF_INSN_LUM32L;goto extract_sfmt_syscall;
403
case 39 : itype = IQ2000BF_INSN_LUC32L;goto extract_sfmt_syscall;
404
case 40 : itype = IQ2000BF_INSN_LUK;goto extract_sfmt_syscall;
405
case 42 : itype = IQ2000BF_INSN_LUM64;goto extract_sfmt_syscall;
406
case 43 : itype = IQ2000BF_INSN_LUC64;goto extract_sfmt_syscall;
407
case 46 : itype = IQ2000BF_INSN_LUM64L;goto extract_sfmt_syscall;
408
case 47 : itype = IQ2000BF_INSN_LUC64L;goto extract_sfmt_syscall;
409
case 48 : itype = IQ2000BF_INSN_SRRD;goto extract_sfmt_syscall;
410
case 49 : itype = IQ2000BF_INSN_SRWR;goto extract_sfmt_syscall;
411
case 52 : itype = IQ2000BF_INSN_SRRDL;goto extract_sfmt_syscall;
412
case 53 : itype = IQ2000BF_INSN_SRWRU;goto extract_sfmt_syscall;
413
case 54 : itype = IQ2000BF_INSN_SRULCK;goto extract_sfmt_syscall;
564
if ((entire_insn & 0xffe0ffff) == 0x48200000)
565
{ itype = IQ2000BF_INSN_LUULCK; goto extract_sfmt_syscall; }
566
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
568
if ((entire_insn & 0xffe007ff) == 0x48200001)
569
{ itype = IQ2000BF_INSN_LUR; goto extract_sfmt_syscall; }
570
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
572
if ((entire_insn & 0xffe007ff) == 0x48200002)
573
{ itype = IQ2000BF_INSN_LUM32; goto extract_sfmt_syscall; }
574
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
576
if ((entire_insn & 0xffe007ff) == 0x48200003)
577
{ itype = IQ2000BF_INSN_LUC32; goto extract_sfmt_syscall; }
578
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
580
if ((entire_insn & 0xffe0ffff) == 0x48200004)
581
{ itype = IQ2000BF_INSN_LULCK; goto extract_sfmt_syscall; }
582
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
584
if ((entire_insn & 0xffe007ff) == 0x48200005)
585
{ itype = IQ2000BF_INSN_LURL; goto extract_sfmt_syscall; }
586
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
588
if ((entire_insn & 0xffe007ff) == 0x48200006)
589
{ itype = IQ2000BF_INSN_LUM32L; goto extract_sfmt_syscall; }
590
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
592
if ((entire_insn & 0xffe007ff) == 0x48200007)
593
{ itype = IQ2000BF_INSN_LUC32L; goto extract_sfmt_syscall; }
594
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
596
if ((entire_insn & 0xffe007ff) == 0x48200008)
597
{ itype = IQ2000BF_INSN_LUK; goto extract_sfmt_syscall; }
598
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
600
if ((entire_insn & 0xffe007ff) == 0x4820000a)
601
{ itype = IQ2000BF_INSN_LUM64; goto extract_sfmt_syscall; }
602
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
604
if ((entire_insn & 0xffe007ff) == 0x4820000b)
605
{ itype = IQ2000BF_INSN_LUC64; goto extract_sfmt_syscall; }
606
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
608
if ((entire_insn & 0xffe007ff) == 0x4820000e)
609
{ itype = IQ2000BF_INSN_LUM64L; goto extract_sfmt_syscall; }
610
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
612
if ((entire_insn & 0xffe007ff) == 0x4820000f)
613
{ itype = IQ2000BF_INSN_LUC64L; goto extract_sfmt_syscall; }
614
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
616
if ((entire_insn & 0xffe0ffff) == 0x48200010)
617
{ itype = IQ2000BF_INSN_SRRD; goto extract_sfmt_syscall; }
618
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
620
if ((entire_insn & 0xffe007ff) == 0x48200011)
621
{ itype = IQ2000BF_INSN_SRWR; goto extract_sfmt_syscall; }
622
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
624
if ((entire_insn & 0xffe0ffff) == 0x48200014)
625
{ itype = IQ2000BF_INSN_SRRDL; goto extract_sfmt_syscall; }
626
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
628
if ((entire_insn & 0xffe007ff) == 0x48200015)
629
{ itype = IQ2000BF_INSN_SRWRU; goto extract_sfmt_syscall; }
630
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
632
if ((entire_insn & 0xffe0ffff) == 0x48200016)
633
{ itype = IQ2000BF_INSN_SRULCK; goto extract_sfmt_syscall; }
634
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
416
637
unsigned int val = (((insn >> 23) & (1 << 0)));
419
case 0 : itype = IQ2000BF_INSN_CFC2;goto extract_sfmt_syscall;
420
case 1 : itype = IQ2000BF_INSN_CTC2;goto extract_sfmt_syscall;
641
if ((entire_insn & 0xffe007ff) == 0x48400000)
642
{ itype = IQ2000BF_INSN_CFC2; goto extract_sfmt_syscall; }
643
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
645
if ((entire_insn & 0xffe007ff) == 0x48c00000)
646
{ itype = IQ2000BF_INSN_CTC2; goto extract_sfmt_syscall; }
647
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
421
648
default : itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
483
752
unsigned int val = (((insn >> 16) & (3 << 0)));
486
case 0 : itype = IQ2000BF_INSN_BC3F;goto extract_sfmt_bctxt;
487
case 1 : itype = IQ2000BF_INSN_BC3T;goto extract_sfmt_bctxt;
488
case 2 : itype = IQ2000BF_INSN_BC3FL;goto extract_sfmt_bctxt;
489
case 3 : itype = IQ2000BF_INSN_BC3TL;goto extract_sfmt_bctxt;
756
if ((entire_insn & 0xffff0000) == 0x4d000000)
757
{ itype = IQ2000BF_INSN_BC3F; goto extract_sfmt_bctxt; }
758
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
760
if ((entire_insn & 0xffff0000) == 0x4d010000)
761
{ itype = IQ2000BF_INSN_BC3T; goto extract_sfmt_bctxt; }
762
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
764
if ((entire_insn & 0xffff0000) == 0x4d020000)
765
{ itype = IQ2000BF_INSN_BC3FL; goto extract_sfmt_bctxt; }
766
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
768
if ((entire_insn & 0xffff0000) == 0x4d030000)
769
{ itype = IQ2000BF_INSN_BC3TL; goto extract_sfmt_bctxt; }
770
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
490
771
default : itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
493
case 36 : itype = IQ2000BF_INSN_CHKHDR;goto extract_sfmt_syscall;
775
if ((entire_insn & 0xffe007ff) == 0x4d200000)
776
{ itype = IQ2000BF_INSN_CHKHDR; goto extract_sfmt_syscall; }
777
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
494
778
case 64 : /* fall through */
495
779
case 65 : /* fall through */
496
780
case 66 : /* fall through */
497
case 67 : itype = IQ2000BF_INSN_WBR1;goto extract_sfmt_syscall;
781
case 67 : itype = IQ2000BF_INSN_WBR1; goto extract_sfmt_syscall;
498
782
case 68 : /* fall through */
499
783
case 69 : /* fall through */
500
784
case 70 : /* fall through */
501
case 71 : itype = IQ2000BF_INSN_WBR1U;goto extract_sfmt_syscall;
785
case 71 : itype = IQ2000BF_INSN_WBR1U; goto extract_sfmt_syscall;
502
786
case 72 : /* fall through */
503
787
case 73 : /* fall through */
504
788
case 74 : /* fall through */
505
case 75 : itype = IQ2000BF_INSN_WBR30;goto extract_sfmt_syscall;
789
case 75 : itype = IQ2000BF_INSN_WBR30; goto extract_sfmt_syscall;
506
790
case 76 : /* fall through */
507
791
case 77 : /* fall through */
508
792
case 78 : /* fall through */
509
case 79 : itype = IQ2000BF_INSN_WBR30U;goto extract_sfmt_syscall;
793
case 79 : itype = IQ2000BF_INSN_WBR30U; goto extract_sfmt_syscall;
510
794
case 80 : /* fall through */
511
795
case 81 : /* fall through */
512
796
case 82 : /* fall through */
513
case 83 : itype = IQ2000BF_INSN_WXR1;goto extract_sfmt_syscall;
797
case 83 : itype = IQ2000BF_INSN_WXR1; goto extract_sfmt_syscall;
514
798
case 84 : /* fall through */
515
799
case 85 : /* fall through */
516
800
case 86 : /* fall through */
517
case 87 : itype = IQ2000BF_INSN_WXR1U;goto extract_sfmt_syscall;
801
case 87 : itype = IQ2000BF_INSN_WXR1U; goto extract_sfmt_syscall;
518
802
case 88 : /* fall through */
519
803
case 89 : /* fall through */
520
804
case 90 : /* fall through */
521
case 91 : itype = IQ2000BF_INSN_WXR30;goto extract_sfmt_syscall;
805
case 91 : itype = IQ2000BF_INSN_WXR30; goto extract_sfmt_syscall;
522
806
case 92 : /* fall through */
523
807
case 93 : /* fall through */
524
808
case 94 : /* fall through */
525
case 95 : itype = IQ2000BF_INSN_WXR30U;goto extract_sfmt_syscall;
809
case 95 : itype = IQ2000BF_INSN_WXR30U; goto extract_sfmt_syscall;
526
810
case 96 : /* fall through */
527
811
case 97 : /* fall through */
528
812
case 98 : /* fall through */
529
case 99 : itype = IQ2000BF_INSN_RBR1;goto extract_sfmt_syscall;
813
case 99 : itype = IQ2000BF_INSN_RBR1; goto extract_sfmt_syscall;
530
814
case 104 : /* fall through */
531
815
case 105 : /* fall through */
532
816
case 106 : /* fall through */
533
case 107 : itype = IQ2000BF_INSN_RBR30;goto extract_sfmt_syscall;
817
case 107 : itype = IQ2000BF_INSN_RBR30; goto extract_sfmt_syscall;
534
818
case 112 : /* fall through */
535
819
case 113 : /* fall through */
536
820
case 114 : /* fall through */
537
case 115 : itype = IQ2000BF_INSN_RXR1;goto extract_sfmt_syscall;
821
case 115 : itype = IQ2000BF_INSN_RXR1; goto extract_sfmt_syscall;
538
822
case 116 : /* fall through */
539
823
case 117 : /* fall through */
540
824
case 118 : /* fall through */
541
case 119 : itype = IQ2000BF_INSN_PKRLR1;goto extract_sfmt_syscall;
825
case 119 : itype = IQ2000BF_INSN_PKRLR1; goto extract_sfmt_syscall;
542
826
case 120 : /* fall through */
543
827
case 121 : /* fall through */
544
828
case 122 : /* fall through */
545
case 123 : itype = IQ2000BF_INSN_RXR30;goto extract_sfmt_syscall;
829
case 123 : itype = IQ2000BF_INSN_RXR30; goto extract_sfmt_syscall;
546
830
case 124 : /* fall through */
547
831
case 125 : /* fall through */
548
832
case 126 : /* fall through */
549
case 127 : itype = IQ2000BF_INSN_PKRLR30;goto extract_sfmt_syscall;
833
case 127 : itype = IQ2000BF_INSN_PKRLR30; goto extract_sfmt_syscall;
550
834
default : itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
553
case 20 : itype = IQ2000BF_INSN_BEQL;goto extract_sfmt_bbv;
554
case 21 : itype = IQ2000BF_INSN_BNEL;goto extract_sfmt_bbv;
555
case 22 : itype = IQ2000BF_INSN_BLEZL;goto extract_sfmt_bgez;
556
case 23 : itype = IQ2000BF_INSN_BGTZL;goto extract_sfmt_bgez;
557
case 24 : itype = IQ2000BF_INSN_BMB0;goto extract_sfmt_bbv;
558
case 25 : itype = IQ2000BF_INSN_BMB1;goto extract_sfmt_bbv;
559
case 26 : itype = IQ2000BF_INSN_BMB2;goto extract_sfmt_bbv;
560
case 27 : itype = IQ2000BF_INSN_BMB3;goto extract_sfmt_bbv;
561
case 28 : itype = IQ2000BF_INSN_BBI;goto extract_sfmt_bbi;
562
case 29 : itype = IQ2000BF_INSN_BBV;goto extract_sfmt_bbv;
563
case 30 : itype = IQ2000BF_INSN_BBIN;goto extract_sfmt_bbi;
564
case 31 : itype = IQ2000BF_INSN_BBVN;goto extract_sfmt_bbv;
565
case 32 : itype = IQ2000BF_INSN_LB;goto extract_sfmt_lb;
566
case 33 : itype = IQ2000BF_INSN_LH;goto extract_sfmt_lh;
567
case 35 : itype = IQ2000BF_INSN_LW;goto extract_sfmt_lw;
568
case 36 : itype = IQ2000BF_INSN_LBU;goto extract_sfmt_lb;
569
case 37 : itype = IQ2000BF_INSN_LHU;goto extract_sfmt_lh;
570
case 39 : itype = IQ2000BF_INSN_RAM;goto extract_sfmt_ram;
571
case 40 : itype = IQ2000BF_INSN_SB;goto extract_sfmt_sb;
572
case 41 : itype = IQ2000BF_INSN_SH;goto extract_sfmt_sh;
573
case 43 : itype = IQ2000BF_INSN_SW;goto extract_sfmt_sw;
574
case 44 : itype = IQ2000BF_INSN_ANDOI;goto extract_sfmt_addi;
575
case 45 : itype = IQ2000BF_INSN_BMB;goto extract_sfmt_bbv;
576
case 47 : itype = IQ2000BF_INSN_ORUI;goto extract_sfmt_andoui;
577
case 48 : itype = IQ2000BF_INSN_LDW;goto extract_sfmt_ldw;
578
case 56 : itype = IQ2000BF_INSN_SDW;goto extract_sfmt_sdw;
579
case 63 : itype = IQ2000BF_INSN_ANDOUI;goto extract_sfmt_andoui;
837
case 20 : itype = IQ2000BF_INSN_BEQL; goto extract_sfmt_bbv;
838
case 21 : itype = IQ2000BF_INSN_BNEL; goto extract_sfmt_bbv;
840
if ((entire_insn & 0xfc1f0000) == 0x58000000)
841
{ itype = IQ2000BF_INSN_BLEZL; goto extract_sfmt_bgez; }
842
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
844
if ((entire_insn & 0xfc1f0000) == 0x5c000000)
845
{ itype = IQ2000BF_INSN_BGTZL; goto extract_sfmt_bgez; }
846
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
847
case 24 : itype = IQ2000BF_INSN_BMB0; goto extract_sfmt_bbv;
848
case 25 : itype = IQ2000BF_INSN_BMB1; goto extract_sfmt_bbv;
849
case 26 : itype = IQ2000BF_INSN_BMB2; goto extract_sfmt_bbv;
850
case 27 : itype = IQ2000BF_INSN_BMB3; goto extract_sfmt_bbv;
851
case 28 : itype = IQ2000BF_INSN_BBI; goto extract_sfmt_bbi;
852
case 29 : itype = IQ2000BF_INSN_BBV; goto extract_sfmt_bbv;
853
case 30 : itype = IQ2000BF_INSN_BBIN; goto extract_sfmt_bbi;
854
case 31 : itype = IQ2000BF_INSN_BBVN; goto extract_sfmt_bbv;
855
case 32 : itype = IQ2000BF_INSN_LB; goto extract_sfmt_lb;
856
case 33 : itype = IQ2000BF_INSN_LH; goto extract_sfmt_lh;
857
case 35 : itype = IQ2000BF_INSN_LW; goto extract_sfmt_lw;
858
case 36 : itype = IQ2000BF_INSN_LBU; goto extract_sfmt_lb;
859
case 37 : itype = IQ2000BF_INSN_LHU; goto extract_sfmt_lh;
861
if ((entire_insn & 0xfc000020) == 0x9c000000)
862
{ itype = IQ2000BF_INSN_RAM; goto extract_sfmt_ram; }
863
itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;
864
case 40 : itype = IQ2000BF_INSN_SB; goto extract_sfmt_sb;
865
case 41 : itype = IQ2000BF_INSN_SH; goto extract_sfmt_sh;
866
case 43 : itype = IQ2000BF_INSN_SW; goto extract_sfmt_sw;
867
case 44 : itype = IQ2000BF_INSN_ANDOI; goto extract_sfmt_addi;
868
case 45 : itype = IQ2000BF_INSN_BMB; goto extract_sfmt_bbv;
869
case 47 : itype = IQ2000BF_INSN_ORUI; goto extract_sfmt_andoui;
870
case 48 : itype = IQ2000BF_INSN_LDW; goto extract_sfmt_ldw;
871
case 56 : itype = IQ2000BF_INSN_SDW; goto extract_sfmt_sdw;
872
case 63 : itype = IQ2000BF_INSN_ANDOUI; goto extract_sfmt_andoui;
580
873
default : itype = IQ2000BF_INSN_X_INVALID; goto extract_sfmt_empty;