Coverage Report

Created: 2026-03-10 08:46

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/binutils-gdb/opcodes/dlx-dis.c
Line
Count
Source
1
/* Instruction printing code for the DLX Microprocessor
2
   Copyright (C) 2002-2026 Free Software Foundation, Inc.
3
   Contributed by Kuang Hwa Lin.  Written by Kuang Hwa Lin, 03/2002.
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; if not, write to the Free Software
19
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20
   MA 02110-1301, USA.  */
21
22
#include "sysdep.h"
23
#include "disassemble.h"
24
#include "opcode/dlx.h"
25
26
58
#define R_ERROR     0x1
27
926
#define R_TYPE      0x2
28
931
#define ILD_TYPE    0x3
29
1.46k
#define IST_TYPE    0x4
30
8.98k
#define IAL_TYPE    0x5
31
6.40k
#define IBR_TYPE    0x6
32
6.55k
#define IJ_TYPE     0x7
33
7.30k
#define IJR_TYPE    0x8
34
58.4k
#define NIL         0x9
35
36
265k
#define OPC(x)      ((x >> 26) & 0x3F)
37
#define FUNC(x)     (x & 0x7FF)
38
39
unsigned char opc, rs1, rs2, rd;
40
unsigned long imm26, imm16, func, current_insn_addr;
41
42
/* Print one instruction from MEMADDR on INFO->STREAM.
43
   Return the size of the instruction (always 4 on dlx).  */
44
45
static unsigned char
46
dlx_get_opcode (unsigned long opcode)
47
7.90k
{
48
7.90k
  return (unsigned char) ((opcode >> 26) & 0x3F);
49
7.90k
}
50
51
static unsigned char
52
dlx_get_rs1 (unsigned long opcode)
53
7.90k
{
54
7.90k
  return (unsigned char) ((opcode >> 21) & 0x1F);
55
7.90k
}
56
57
static unsigned char
58
dlx_get_rs2 (unsigned long opcode)
59
7.90k
{
60
7.90k
  return (unsigned char) ((opcode >> 16) & 0x1F);
61
7.90k
}
62
63
static unsigned char
64
dlx_get_rdR (unsigned long opcode)
65
7.90k
{
66
7.90k
  return (unsigned char) ((opcode >> 11) & 0x1F);
67
7.90k
}
68
69
static unsigned long
70
dlx_get_func (unsigned long opcode)
71
7.90k
{
72
7.90k
  return (unsigned char) (opcode & 0x7FF);
73
7.90k
}
74
75
static unsigned long
76
dlx_get_imm16 (unsigned long opcode)
77
7.90k
{
78
7.90k
  return (unsigned long) (opcode & 0xFFFF);
79
7.90k
}
80
81
static unsigned long
82
dlx_get_imm26 (unsigned long opcode)
83
7.90k
{
84
7.90k
  return (unsigned long) (opcode & 0x03FFFFFF);
85
7.90k
}
86
87
/* Fill the opcode to the max length.  */
88
89
static void
90
operand_deliminator (struct disassemble_info *info, char *ptr)
91
6.39k
{
92
6.39k
  int difft = 8 - (int) strlen (ptr);
93
94
33.2k
  while (difft > 0)
95
26.8k
    {
96
26.8k
      (*info->fprintf_func) (info->stream, "%c", ' ');
97
26.8k
      difft -= 1;
98
26.8k
    }
99
6.39k
}
100
101
/* Process the R-type opcode.  */
102
103
static unsigned char
104
dlx_r_type (struct disassemble_info *info)
105
7.90k
{
106
7.90k
  unsigned char r_opc[] = { OPC(ALUOP) }; /* Fix ME */
107
7.90k
  int r_opc_num = (sizeof r_opc) / (sizeof (char));
108
7.90k
  struct _r_opcode
109
7.90k
  {
110
7.90k
    unsigned long func;
111
7.90k
    char *name;
112
7.90k
  }
113
7.90k
  dlx_r_opcode[] =
114
7.90k
  {
115
7.90k
    { NOPF,     "nop"    },  /* NOP                          */
116
7.90k
    { ADDF,     "add"    },  /* Add                          */
117
7.90k
    { ADDUF,    "addu"   },  /* Add Unsigned                 */
118
7.90k
    { SUBF,     "sub"    },  /* SUB                          */
119
7.90k
    { SUBUF,    "subu"   },  /* Sub Unsigned                 */
120
7.90k
    { MULTF,    "mult"   },  /* MULTIPLY                     */
121
7.90k
    { MULTUF,   "multu"  },  /* MULTIPLY Unsigned            */
122
7.90k
    { DIVF,     "div"    },  /* DIVIDE                       */
123
7.90k
    { DIVUF,    "divu"   },  /* DIVIDE Unsigned              */
124
7.90k
    { ANDF,     "and"    },  /* AND                          */
125
7.90k
    { ORF,      "or"     },  /* OR                           */
126
7.90k
    { XORF,     "xor"    },  /* Exclusive OR                 */
127
7.90k
    { SLLF,     "sll"    },  /* SHIFT LEFT LOGICAL           */
128
7.90k
    { SRAF,     "sra"    },  /* SHIFT RIGHT ARITHMETIC       */
129
7.90k
    { SRLF,     "srl"    },  /* SHIFT RIGHT LOGICAL          */
130
7.90k
    { SEQF,     "seq"    },  /* Set if equal                 */
131
7.90k
    { SNEF,     "sne"    },  /* Set if not equal             */
132
7.90k
    { SLTF,     "slt"    },  /* Set if less                  */
133
7.90k
    { SGTF,     "sgt"    },  /* Set if greater               */
134
7.90k
    { SLEF,     "sle"    },  /* Set if less or equal         */
135
7.90k
    { SGEF,     "sge"    },  /* Set if greater or equal      */
136
7.90k
    { SEQUF,    "sequ"   },  /* Set if equal                 */
137
7.90k
    { SNEUF,    "sneu"   },  /* Set if not equal             */
138
7.90k
    { SLTUF,    "sltu"   },  /* Set if less                  */
139
7.90k
    { SGTUF,    "sgtu"   },  /* Set if greater               */
140
7.90k
    { SLEUF,    "sleu"   },  /* Set if less or equal         */
141
7.90k
    { SGEUF,    "sgeu"   },  /* Set if greater or equal      */
142
7.90k
    { MVTSF,    "mvts"   },  /* Move to special register     */
143
7.90k
    { MVFSF,    "mvfs"   },  /* Move from special register   */
144
7.90k
    { BSWAPF,   "bswap"  },  /* Byte swap ??                 */
145
7.90k
    { LUTF,     "lut"    }   /* ????????? ??                 */
146
7.90k
  };
147
7.90k
  int dlx_r_opcode_num = (sizeof dlx_r_opcode) / (sizeof dlx_r_opcode[0]);
148
7.90k
  int idx;
149
150
15.3k
  for (idx = 0; idx < r_opc_num; idx++)
151
7.90k
    {
152
7.90k
      if (r_opc[idx] != opc)
153
7.40k
  continue;
154
492
      else
155
492
  break;
156
7.90k
    }
157
158
7.90k
  if (idx == r_opc_num)
159
7.40k
    return NIL;
160
161
4.45k
  for (idx = 0 ; idx < dlx_r_opcode_num; idx++)
162
4.42k
    if (dlx_r_opcode[idx].func == func)
163
463
      {
164
463
  (*info->fprintf_func) (info->stream, "%s", dlx_r_opcode[idx].name);
165
166
463
  if (func != NOPF)
167
143
    {
168
      /* This is not a nop.  */
169
143
      operand_deliminator (info, dlx_r_opcode[idx].name);
170
143
      (*info->fprintf_func) (info->stream, "r%d,", (int)rd);
171
143
      (*info->fprintf_func) (info->stream, "r%d", (int)rs1);
172
143
      if (func != MVTSF && func != MVFSF)
173
96
        (*info->fprintf_func) (info->stream, ",r%d", (int)rs2);
174
143
    }
175
463
  return (unsigned char) R_TYPE;
176
463
      }
177
178
29
  return (unsigned char) R_ERROR;
179
492
}
180
181
/* Process the memory read opcode.  */
182
183
static unsigned char
184
dlx_load_type (struct disassemble_info* info)
185
7.40k
{
186
7.40k
  struct _load_opcode
187
7.40k
  {
188
7.40k
    unsigned long opcode;
189
7.40k
    char *name;
190
7.40k
  }
191
7.40k
  dlx_load_opcode[] =
192
7.40k
  {
193
7.40k
    { OPC(LHIOP),   "lhi" },  /* Load HI to register.           */
194
7.40k
    { OPC(LBOP),     "lb" },  /* load byte sign extended.       */
195
7.40k
    { OPC(LBUOP),   "lbu" },  /* load byte unsigned.            */
196
7.40k
    { OPC(LSBUOP),"ldstbu"},  /* load store byte unsigned.      */
197
7.40k
    { OPC(LHOP),     "lh" },  /* load halfword sign extended.   */
198
7.40k
    { OPC(LHUOP),   "lhu" },  /* load halfword unsigned.        */
199
7.40k
    { OPC(LSHUOP),"ldsthu"},  /* load store halfword unsigned.  */
200
7.40k
    { OPC(LWOP),     "lw" },  /* load word.                     */
201
7.40k
    { OPC(LSWOP), "ldstw" }   /* load store word.               */
202
7.40k
  };
203
7.40k
  int dlx_load_opcode_num =
204
7.40k
    (sizeof dlx_load_opcode) / (sizeof dlx_load_opcode[0]);
205
7.40k
  int idx;
206
207
72.6k
  for (idx = 0 ; idx < dlx_load_opcode_num; idx++)
208
65.4k
    if (dlx_load_opcode[idx].opcode == opc)
209
234
      {
210
234
  if (opc == OPC (LHIOP))
211
76
    {
212
76
      (*info->fprintf_func) (info->stream, "%s", dlx_load_opcode[idx].name);
213
76
      operand_deliminator (info, dlx_load_opcode[idx].name);
214
76
      (*info->fprintf_func) (info->stream, "r%d,", (int)rs2);
215
76
      (*info->fprintf_func) (info->stream, "0x%04x", (int)imm16);
216
76
    }
217
158
  else
218
158
    {
219
158
      (*info->fprintf_func) (info->stream, "%s", dlx_load_opcode[idx].name);
220
158
      operand_deliminator (info, dlx_load_opcode[idx].name);
221
158
      (*info->fprintf_func) (info->stream, "r%d,", (int)rs2);
222
158
      (*info->fprintf_func) (info->stream, "0x%04x[r%d]", (int)imm16, (int)rs1);
223
158
    }
224
225
234
  return (unsigned char) ILD_TYPE;
226
234
    }
227
228
7.17k
  return (unsigned char) NIL;
229
7.40k
}
230
231
/* Process the memory store opcode.  */
232
233
static unsigned char
234
dlx_store_type (struct disassemble_info* info)
235
7.17k
{
236
7.17k
  struct _store_opcode
237
7.17k
  {
238
7.17k
    unsigned long opcode;
239
7.17k
    char *name;
240
7.17k
  }
241
7.17k
  dlx_store_opcode[] =
242
7.17k
  {
243
7.17k
    { OPC(SBOP),     "sb" },  /* Store byte.      */
244
7.17k
    { OPC(SHOP),     "sh" },  /* Store halfword.  */
245
7.17k
    { OPC(SWOP),     "sw" },  /* Store word.      */
246
7.17k
  };
247
7.17k
  int dlx_store_opcode_num =
248
7.17k
    (sizeof dlx_store_opcode) / (sizeof dlx_store_opcode[0]);
249
7.17k
  int idx;
250
251
28.2k
  for (idx = 0 ; idx < dlx_store_opcode_num; idx++)
252
21.4k
    if (dlx_store_opcode[idx].opcode == opc)
253
385
      {
254
385
  (*info->fprintf_func) (info->stream, "%s", dlx_store_opcode[idx].name);
255
385
  operand_deliminator (info, dlx_store_opcode[idx].name);
256
385
  (*info->fprintf_func) (info->stream, "0x%04x[r%d],", (int)imm16, (int)rs1);
257
385
  (*info->fprintf_func) (info->stream, "r%d", (int)rs2);
258
385
  return (unsigned char) IST_TYPE;
259
385
      }
260
261
6.78k
  return (unsigned char) NIL;
262
7.17k
}
263
264
/* Process the Arithmetic and Logical I-TYPE opcode.  */
265
266
static unsigned char
267
dlx_aluI_type (struct disassemble_info* info)
268
6.78k
{
269
6.78k
  struct _aluI_opcode
270
6.78k
  {
271
6.78k
    unsigned long opcode;
272
6.78k
    char *name;
273
6.78k
  }
274
6.78k
  dlx_aluI_opcode[] =
275
6.78k
  {
276
6.78k
    { OPC(ADDIOP),   "addi"  },  /* Store byte.      */
277
6.78k
    { OPC(ADDUIOP),  "addui" },  /* Store halfword.  */
278
6.78k
    { OPC(SUBIOP),   "subi"  },  /* Store word.      */
279
6.78k
    { OPC(SUBUIOP),  "subui" },  /* Store word.      */
280
6.78k
    { OPC(ANDIOP),   "andi"  },  /* Store word.      */
281
6.78k
    { OPC(ORIOP),    "ori"   },  /* Store word.      */
282
6.78k
    { OPC(XORIOP),   "xori"  },  /* Store word.      */
283
6.78k
    { OPC(SLLIOP),   "slli"  },  /* Store word.      */
284
6.78k
    { OPC(SRAIOP),   "srai"  },  /* Store word.      */
285
6.78k
    { OPC(SRLIOP),   "srli"  },  /* Store word.      */
286
6.78k
    { OPC(SEQIOP),   "seqi"  },  /* Store word.      */
287
6.78k
    { OPC(SNEIOP),   "snei"  },  /* Store word.      */
288
6.78k
    { OPC(SLTIOP),   "slti"  },  /* Store word.      */
289
6.78k
    { OPC(SGTIOP),   "sgti"  },  /* Store word.      */
290
6.78k
    { OPC(SLEIOP),   "slei"  },  /* Store word.      */
291
6.78k
    { OPC(SGEIOP),   "sgei"  },  /* Store word.      */
292
6.78k
    { OPC(SEQUIOP),  "sequi" },  /* Store word.      */
293
6.78k
    { OPC(SNEUIOP),  "sneui" },  /* Store word.      */
294
6.78k
    { OPC(SLTUIOP),  "sltui" },  /* Store word.      */
295
6.78k
    { OPC(SGTUIOP),  "sgtui" },  /* Store word.      */
296
6.78k
    { OPC(SLEUIOP),  "sleui" },  /* Store word.      */
297
6.78k
    { OPC(SGEUIOP),  "sgeui" },  /* Store word.      */
298
#if 0
299
    { OPC(MVTSOP),   "mvts"  },  /* Store word.      */
300
    { OPC(MVFSOP),   "mvfs"  },  /* Store word.      */
301
#endif
302
6.78k
  };
303
6.78k
  int dlx_aluI_opcode_num =
304
6.78k
    (sizeof dlx_aluI_opcode) / (sizeof dlx_aluI_opcode[0]);
305
6.78k
  int idx;
306
307
107k
  for (idx = 0 ; idx < dlx_aluI_opcode_num; idx++)
308
104k
    if (dlx_aluI_opcode[idx].opcode == opc)
309
3.95k
      {
310
3.95k
  (*info->fprintf_func) (info->stream, "%s", dlx_aluI_opcode[idx].name);
311
3.95k
  operand_deliminator (info, dlx_aluI_opcode[idx].name);
312
3.95k
  (*info->fprintf_func) (info->stream, "r%d,", (int)rs2);
313
3.95k
  (*info->fprintf_func) (info->stream, "r%d,", (int)rs1);
314
3.95k
  (*info->fprintf_func) (info->stream, "0x%04x", (int)imm16);
315
316
3.95k
  return (unsigned char) IAL_TYPE;
317
3.95k
      }
318
319
2.83k
  return (unsigned char) NIL;
320
6.78k
}
321
322
/* Process the branch instruction.  */
323
324
static unsigned char
325
dlx_br_type (struct disassemble_info* info)
326
2.83k
{
327
2.83k
  struct _br_opcode
328
2.83k
  {
329
2.83k
    unsigned long opcode;
330
2.83k
    char *name;
331
2.83k
  }
332
2.83k
  dlx_br_opcode[] =
333
2.83k
  {
334
2.83k
    { OPC(BEQOP), "beqz" }, /* Store byte.  */
335
2.83k
    { OPC(BNEOP), "bnez" }  /* Store halfword.  */
336
2.83k
  };
337
2.83k
  int dlx_br_opcode_num =
338
2.83k
    (sizeof dlx_br_opcode) / (sizeof dlx_br_opcode[0]);
339
2.83k
  int idx;
340
341
7.74k
  for (idx = 0 ; idx < dlx_br_opcode_num; idx++)
342
5.59k
    if (dlx_br_opcode[idx].opcode == opc)
343
684
      {
344
684
  if (imm16 & 0x00008000)
345
34
    imm16 |= 0xFFFF0000;
346
347
684
  imm16 += (current_insn_addr + 4);
348
684
  (*info->fprintf_func) (info->stream, "%s", dlx_br_opcode[idx].name);
349
684
  operand_deliminator (info, dlx_br_opcode[idx].name);
350
684
  (*info->fprintf_func) (info->stream, "r%d,", (int) rs1);
351
684
  (*info->fprintf_func) (info->stream, "0x%08x", (int) imm16);
352
353
684
  return (unsigned char) IBR_TYPE;
354
684
      }
355
356
2.15k
  return (unsigned char) NIL;
357
2.83k
}
358
359
/* Process the jump instruction.  */
360
361
static unsigned char
362
dlx_jmp_type (struct disassemble_info* info)
363
2.15k
{
364
2.15k
  struct _jmp_opcode
365
2.15k
  {
366
2.15k
    unsigned long opcode;
367
2.15k
    char *name;
368
2.15k
  }
369
2.15k
  dlx_jmp_opcode[] =
370
2.15k
  {
371
2.15k
    { OPC(JOP),         "j" },  /* Store byte.      */
372
2.15k
    { OPC(JALOP),     "jal" },  /* Store halfword.  */
373
2.15k
    { OPC(BREAKOP), "break" },  /* Store halfword.  */
374
2.15k
    { OPC(TRAPOP),   "trap" },  /* Store halfword.  */
375
2.15k
    { OPC(RFEOP),     "rfe" }   /* Store halfword.  */
376
2.15k
  };
377
2.15k
  int dlx_jmp_opcode_num =
378
2.15k
    (sizeof dlx_jmp_opcode) / (sizeof dlx_jmp_opcode[0]);
379
2.15k
  int idx;
380
381
11.1k
  for (idx = 0 ; idx < dlx_jmp_opcode_num; idx++)
382
9.41k
    if (dlx_jmp_opcode[idx].opcode == opc)
383
419
      {
384
419
  if (imm26 & 0x02000000)
385
147
    imm26 |= 0xFC000000;
386
387
419
  imm26 += (current_insn_addr + 4);
388
389
419
  (*info->fprintf_func) (info->stream, "%s", dlx_jmp_opcode[idx].name);
390
419
  operand_deliminator (info, dlx_jmp_opcode[idx].name);
391
419
  (*info->fprintf_func) (info->stream, "0x%08x", (int)imm26);
392
393
419
  return (unsigned char) IJ_TYPE;
394
419
      }
395
396
1.73k
  return (unsigned char) NIL;
397
2.15k
}
398
399
/* Process the jump register instruction.  */
400
401
static unsigned char
402
dlx_jr_type (struct disassemble_info* info)
403
1.73k
{
404
1.73k
  struct _jr_opcode
405
1.73k
  {
406
1.73k
    unsigned long opcode;
407
1.73k
    char *name;
408
1.73k
  }
409
1.73k
  dlx_jr_opcode[] =
410
1.73k
  {
411
1.73k
    { OPC(JROP),   "jr"    },  /* Store byte.  */
412
1.73k
    { OPC(JALROP), "jalr"  }   /* Store halfword.  */
413
1.73k
  };
414
1.73k
  int dlx_jr_opcode_num =
415
1.73k
    (sizeof dlx_jr_opcode) / (sizeof dlx_jr_opcode[0]);
416
1.73k
  int idx;
417
418
4.51k
  for (idx = 0 ; idx < dlx_jr_opcode_num; idx++)
419
3.36k
    if (dlx_jr_opcode[idx].opcode == opc)
420
582
      {
421
582
  (*info->fprintf_func) (info->stream, "%s", dlx_jr_opcode[idx].name);
422
582
  operand_deliminator (info, dlx_jr_opcode[idx].name);
423
582
  (*info->fprintf_func) (info->stream, "r%d", (int)rs1);
424
582
  return (unsigned char) IJR_TYPE;
425
582
      }
426
427
1.15k
  return (unsigned char) NIL;
428
1.73k
}
429
430
typedef unsigned char (* dlx_insn) (struct disassemble_info *);
431
432
/* This is the main DLX insn handling routine.  */
433
434
int
435
print_insn_dlx (bfd_vma memaddr, struct disassemble_info* info)
436
7.93k
{
437
7.93k
  bfd_byte buffer[4];
438
7.93k
  int insn_idx;
439
7.93k
  unsigned long insn_word;
440
7.93k
  dlx_insn dlx_insn_type[] =
441
7.93k
  {
442
7.93k
    dlx_r_type,
443
7.93k
    dlx_load_type,
444
7.93k
    dlx_store_type,
445
7.93k
    dlx_aluI_type,
446
7.93k
    dlx_br_type,
447
7.93k
    dlx_jmp_type,
448
7.93k
    dlx_jr_type,
449
7.93k
    (dlx_insn) NULL
450
7.93k
  };
451
7.93k
  int dlx_insn_type_num = ((sizeof dlx_insn_type) / (sizeof (dlx_insn))) - 1;
452
7.93k
  int status =
453
7.93k
    (*info->read_memory_func) (memaddr, (bfd_byte *) &buffer[0], 4, info);
454
455
7.93k
  if (status != 0)
456
31
    {
457
31
      (*info->memory_error_func) (status, memaddr, info);
458
31
      return -1;
459
31
    }
460
461
  /* Now decode the insn    */
462
7.90k
  insn_word = bfd_getb32 (buffer);
463
7.90k
  opc  = dlx_get_opcode (insn_word);
464
7.90k
  rs1  = dlx_get_rs1 (insn_word);
465
7.90k
  rs2  = dlx_get_rs2 (insn_word);
466
7.90k
  rd   = dlx_get_rdR (insn_word);
467
7.90k
  func = dlx_get_func (insn_word);
468
7.90k
  imm16= dlx_get_imm16 (insn_word);
469
7.90k
  imm26= dlx_get_imm26 (insn_word);
470
471
#if 0
472
  printf ("print_insn_big_dlx: opc = 0x%02x\n"
473
    "                    rs1 = 0x%02x\n"
474
    "                    rs2 = 0x%02x\n"
475
    "                    rd  = 0x%02x\n"
476
    "                  func  = 0x%08x\n"
477
    "                 imm16  = 0x%08x\n"
478
    "                 imm26  = 0x%08x\n",
479
    opc, rs1, rs2, rd, func, imm16, imm26);
480
#endif
481
482
  /* Scan through all the insn type and print the insn out.  */
483
7.90k
  current_insn_addr = (unsigned long) memaddr;
484
485
37.1k
  for (insn_idx = 0; dlx_insn_type[insn_idx] != 0x0; insn_idx++)
486
35.9k
    switch ((dlx_insn_type[insn_idx]) (info))
487
35.9k
      {
488
  /* Found the correct opcode   */
489
463
      case R_TYPE:
490
697
      case ILD_TYPE:
491
1.08k
      case IST_TYPE:
492
5.03k
      case IAL_TYPE:
493
5.71k
      case IBR_TYPE:
494
6.13k
      case IJ_TYPE:
495
6.71k
      case IJR_TYPE:
496
6.71k
  return 4;
497
498
  /* Wrong insn type check next one. */
499
0
      default:
500
29.2k
      case NIL:
501
29.2k
  continue;
502
503
  /* All rest of the return code are not recongnized, treat it as error */
504
  /* we should never get here,  I hope! */
505
29
      case R_ERROR:
506
29
  return -1;
507
35.9k
      }
508
509
1.15k
  if (insn_idx ==  dlx_insn_type_num)
510
    /* Well, does not recoganize this opcode.  */
511
1.15k
    (*info->fprintf_func) (info->stream, "<%s>", "Unrecognized Opcode");
512
513
1.15k
  return 4;
514
7.90k
}