* section.c (_bfd_strip_section_from_output): Add info parameter.
[binutils.git] / opcodes / arm-dis.c
bloba3f44db738bbd9e8ae32bc4cf266a2a5bd763a7d
1 /* Instruction printing code for the ARM
2 Copyright (C) 1994, 95, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
3 Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
4 Modification by James G. Smith (jsmith@cygnus.co.uk)
6 This file is part of libopcodes.
8 This program is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 2 of the License, or (at your option)
11 any later version.
13 This program is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
22 #include "sysdep.h"
23 #include "dis-asm.h"
24 #define DEFINE_TABLE
25 #include "arm-opc.h"
26 #include "coff/internal.h"
27 #include "libcoff.h"
28 #include "opintl.h"
30 /* FIXME: This shouldn't be done here */
31 #include "elf-bfd.h"
32 #include "elf/internal.h"
33 #include "elf/arm.h"
35 #ifndef streq
36 #define streq(a,b) (strcmp ((a), (b)) == 0)
37 #endif
39 #ifndef strneq
40 #define strneq(a,b,n) (strncmp ((a), (b), (n)) == 0)
41 #endif
43 #ifndef NUM_ELEM
44 #define NUM_ELEM(a) (sizeof (a) / sizeof (a)[0])
45 #endif
47 static char * arm_conditional[] =
48 {"eq", "ne", "cs", "cc", "mi", "pl", "vs", "vc",
49 "hi", "ls", "ge", "lt", "gt", "le", "", "nv"};
51 typedef struct
53 const char * name;
54 const char * description;
55 const char * reg_names[16];
57 arm_regname;
59 static arm_regname regnames[] =
61 { "raw" , "Select raw register names",
62 { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"}},
63 { "std", "Select register names used in ARM's ISA documentation",
64 { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "sp", "lr", "pc" }},
65 { "apcs", "Select register names used in the APCS",
66 { "a1", "a2", "a3", "a4", "v1", "v2", "v3", "v4", "v5", "v6", "sl", "fp", "ip", "sp", "lr", "pc" }},
67 { "atpcs", "Select register names used in the ATPCS",
68 { "a1", "a2", "a3", "a4", "v1", "v2", "v3", "v4", "v5", "v6", "v7", "v8", "IP", "SP", "LR", "PC" }},
69 { "atpcs-special", "Select special register names used in the ATPCS",
70 { "a1", "a2", "a3", "a4", "v1", "v2", "v3", "WR", "v5", "SB", "SL", "FP", "IP", "SP", "LR", "PC" }}
73 /* Default to standard register name set. */
74 static unsigned int regname_selected = 1;
76 #define NUM_ARM_REGNAMES NUM_ELEM (regnames)
77 #define arm_regnames regnames[regname_selected].reg_names
79 static boolean force_thumb = false;
81 static char * arm_fp_const[] =
82 {"0.0", "1.0", "2.0", "3.0", "4.0", "5.0", "0.5", "10.0"};
84 static char * arm_shift[] =
85 {"lsl", "lsr", "asr", "ror"};
87 /* Forward declarations. */
88 static void arm_decode_shift PARAMS ((long, fprintf_ftype, void *));
89 static int print_insn_arm PARAMS ((bfd_vma, struct disassemble_info *, long));
90 static int print_insn_thumb PARAMS ((bfd_vma, struct disassemble_info *, long));
91 static void parse_disassembler_options PARAMS ((char *));
92 static int print_insn PARAMS ((bfd_vma, struct disassemble_info *, boolean));
94 /* Functions. */
95 static void
96 arm_decode_shift (given, func, stream)
97 long given;
98 fprintf_ftype func;
99 void * stream;
101 func (stream, "%s", arm_regnames[given & 0xf]);
103 if ((given & 0xff0) != 0)
105 if ((given & 0x10) == 0)
107 int amount = (given & 0xf80) >> 7;
108 int shift = (given & 0x60) >> 5;
110 if (amount == 0)
112 if (shift == 3)
114 func (stream, ", rrx");
115 return;
118 amount = 32;
121 func (stream, ", %s #%d", arm_shift[shift], amount);
123 else
124 func (stream, ", %s %s", arm_shift[(given & 0x60) >> 5],
125 arm_regnames[(given & 0xf00) >> 8]);
129 /* Print one instruction from PC on INFO->STREAM.
130 Return the size of the instruction (always 4 on ARM). */
131 static int
132 print_insn_arm (pc, info, given)
133 bfd_vma pc;
134 struct disassemble_info * info;
135 long given;
137 struct arm_opcode * insn;
138 void * stream = info->stream;
139 fprintf_ftype func = info->fprintf_func;
141 for (insn = arm_opcodes; insn->assembler; insn++)
143 if ((given & insn->mask) == insn->value)
145 char * c;
147 for (c = insn->assembler; *c; c++)
149 if (*c == '%')
151 switch (*++c)
153 case '%':
154 func (stream, "%%");
155 break;
157 case 'a':
158 if (((given & 0x000f0000) == 0x000f0000)
159 && ((given & 0x02000000) == 0))
161 int offset = given & 0xfff;
163 func (stream, "[pc");
165 if (given & 0x01000000)
167 if ((given & 0x00800000) == 0)
168 offset = - offset;
170 /* pre-indexed */
171 func (stream, ", #%x]", offset);
173 offset += pc + 8;
175 /* Cope with the possibility of write-back
176 being used. Probably a very dangerous thing
177 for the programmer to do, but who are we to
178 argue ? */
179 if (given & 0x00200000)
180 func (stream, "!");
182 else
184 /* Post indexed. */
185 func (stream, "], #%x", offset);
187 offset = pc + 8; /* ie ignore the offset. */
190 func (stream, "\t; ");
191 info->print_address_func (offset, info);
193 else
195 func (stream, "[%s",
196 arm_regnames[(given >> 16) & 0xf]);
197 if ((given & 0x01000000) != 0)
199 if ((given & 0x02000000) == 0)
201 int offset = given & 0xfff;
202 if (offset)
203 func (stream, ", %s#%d",
204 (((given & 0x00800000) == 0)
205 ? "-" : ""), offset);
207 else
209 func (stream, ", %s",
210 (((given & 0x00800000) == 0)
211 ? "-" : ""));
212 arm_decode_shift (given, func, stream);
215 func (stream, "]%s",
216 ((given & 0x00200000) != 0) ? "!" : "");
218 else
220 if ((given & 0x02000000) == 0)
222 int offset = given & 0xfff;
223 if (offset)
224 func (stream, "], %s#%d",
225 (((given & 0x00800000) == 0)
226 ? "-" : ""), offset);
227 else
228 func (stream, "]");
230 else
232 func (stream, "], %s",
233 (((given & 0x00800000) == 0)
234 ? "-" : ""));
235 arm_decode_shift (given, func, stream);
239 break;
241 case 's':
242 if ((given & 0x004f0000) == 0x004f0000)
244 /* PC relative with immediate offset. */
245 int offset = ((given & 0xf00) >> 4) | (given & 0xf);
247 if ((given & 0x00800000) == 0)
248 offset = -offset;
250 func (stream, "[pc, #%x]\t; ", offset);
252 (*info->print_address_func)
253 (offset + pc + 8, info);
255 else
257 func (stream, "[%s",
258 arm_regnames[(given >> 16) & 0xf]);
259 if ((given & 0x01000000) != 0)
261 /* Pre-indexed. */
262 if ((given & 0x00400000) == 0x00400000)
264 /* Immediate. */
265 int offset = ((given & 0xf00) >> 4) | (given & 0xf);
266 if (offset)
267 func (stream, ", %s#%d",
268 (((given & 0x00800000) == 0)
269 ? "-" : ""), offset);
271 else
273 /* Register. */
274 func (stream, ", %s%s",
275 (((given & 0x00800000) == 0)
276 ? "-" : ""),
277 arm_regnames[given & 0xf]);
280 func (stream, "]%s",
281 ((given & 0x00200000) != 0) ? "!" : "");
283 else
285 /* Post-indexed. */
286 if ((given & 0x00400000) == 0x00400000)
288 /* Immediate. */
289 int offset = ((given & 0xf00) >> 4) | (given & 0xf);
290 if (offset)
291 func (stream, "], %s#%d",
292 (((given & 0x00800000) == 0)
293 ? "-" : ""), offset);
294 else
295 func (stream, "]");
297 else
299 /* Register. */
300 func (stream, "], %s%s",
301 (((given & 0x00800000) == 0)
302 ? "-" : ""),
303 arm_regnames[given & 0xf]);
307 break;
309 case 'b':
310 (*info->print_address_func)
311 (BDISP (given) * 4 + pc + 8, info);
312 break;
314 case 'c':
315 func (stream, "%s",
316 arm_conditional [(given >> 28) & 0xf]);
317 break;
319 case 'm':
321 int started = 0;
322 int reg;
324 func (stream, "{");
325 for (reg = 0; reg < 16; reg++)
326 if ((given & (1 << reg)) != 0)
328 if (started)
329 func (stream, ", ");
330 started = 1;
331 func (stream, "%s", arm_regnames[reg]);
333 func (stream, "}");
335 break;
337 case 'o':
338 if ((given & 0x02000000) != 0)
340 int rotate = (given & 0xf00) >> 7;
341 int immed = (given & 0xff);
342 immed = (((immed << (32 - rotate))
343 | (immed >> rotate)) & 0xffffffff);
344 func (stream, "#%d\t; 0x%x", immed, immed);
346 else
347 arm_decode_shift (given, func, stream);
348 break;
350 case 'p':
351 if ((given & 0x0000f000) == 0x0000f000)
352 func (stream, "p");
353 break;
355 case 't':
356 if ((given & 0x01200000) == 0x00200000)
357 func (stream, "t");
358 break;
360 case 'h':
361 if ((given & 0x00000020) == 0x00000020)
362 func (stream, "h");
363 else
364 func (stream, "b");
365 break;
367 case 'A':
368 func (stream, "[%s", arm_regnames [(given >> 16) & 0xf]);
369 if ((given & 0x01000000) != 0)
371 int offset = given & 0xff;
372 if (offset)
373 func (stream, ", %s#%d]%s",
374 ((given & 0x00800000) == 0 ? "-" : ""),
375 offset * 4,
376 ((given & 0x00200000) != 0 ? "!" : ""));
377 else
378 func (stream, "]");
380 else
382 int offset = given & 0xff;
383 if (offset)
384 func (stream, "], %s#%d",
385 ((given & 0x00800000) == 0 ? "-" : ""),
386 offset * 4);
387 else
388 func (stream, "]");
390 break;
392 case 'C':
393 switch (given & 0x00090000)
395 default:
396 func (stream, "_???");
397 break;
398 case 0x90000:
399 func (stream, "_all");
400 break;
401 case 0x10000:
402 func (stream, "_ctl");
403 break;
404 case 0x80000:
405 func (stream, "_flg");
406 break;
408 break;
410 case 'F':
411 switch (given & 0x00408000)
413 case 0:
414 func (stream, "4");
415 break;
416 case 0x8000:
417 func (stream, "1");
418 break;
419 case 0x00400000:
420 func (stream, "2");
421 break;
422 default:
423 func (stream, "3");
425 break;
427 case 'P':
428 switch (given & 0x00080080)
430 case 0:
431 func (stream, "s");
432 break;
433 case 0x80:
434 func (stream, "d");
435 break;
436 case 0x00080000:
437 func (stream, "e");
438 break;
439 default:
440 func (stream, _("<illegal precision>"));
441 break;
443 break;
444 case 'Q':
445 switch (given & 0x00408000)
447 case 0:
448 func (stream, "s");
449 break;
450 case 0x8000:
451 func (stream, "d");
452 break;
453 case 0x00400000:
454 func (stream, "e");
455 break;
456 default:
457 func (stream, "p");
458 break;
460 break;
461 case 'R':
462 switch (given & 0x60)
464 case 0:
465 break;
466 case 0x20:
467 func (stream, "p");
468 break;
469 case 0x40:
470 func (stream, "m");
471 break;
472 default:
473 func (stream, "z");
474 break;
476 break;
478 case '0': case '1': case '2': case '3': case '4':
479 case '5': case '6': case '7': case '8': case '9':
481 int bitstart = *c++ - '0';
482 int bitend = 0;
483 while (*c >= '0' && *c <= '9')
484 bitstart = (bitstart * 10) + *c++ - '0';
486 switch (*c)
488 case '-':
489 c++;
491 while (*c >= '0' && *c <= '9')
492 bitend = (bitend * 10) + *c++ - '0';
494 if (!bitend)
495 abort ();
497 switch (*c)
499 case 'r':
501 long reg;
503 reg = given >> bitstart;
504 reg &= (2 << (bitend - bitstart)) - 1;
506 func (stream, "%s", arm_regnames[reg]);
508 break;
509 case 'd':
511 long reg;
513 reg = given >> bitstart;
514 reg &= (2 << (bitend - bitstart)) - 1;
516 func (stream, "%d", reg);
518 break;
519 case 'x':
521 long reg;
523 reg = given >> bitstart;
524 reg &= (2 << (bitend - bitstart)) - 1;
526 func (stream, "0x%08x", reg);
528 /* Some SWI instructions have special
529 meanings. */
530 if ((given & 0x0fffffff) == 0x0FF00000)
531 func (stream, "\t; IMB");
532 else if ((given & 0x0fffffff) == 0x0FF00001)
533 func (stream, "\t; IMBRange");
535 break;
536 case 'X':
538 long reg;
540 reg = given >> bitstart;
541 reg &= (2 << (bitend - bitstart)) - 1;
543 func (stream, "%01x", reg & 0xf);
545 break;
546 case 'f':
548 long reg;
550 reg = given >> bitstart;
551 reg &= (2 << (bitend - bitstart)) - 1;
553 if (reg > 7)
554 func (stream, "#%s",
555 arm_fp_const[reg & 7]);
556 else
557 func (stream, "f%d", reg);
559 break;
560 default:
561 abort ();
563 break;
565 case '`':
566 c++;
567 if ((given & (1 << bitstart)) == 0)
568 func (stream, "%c", *c);
569 break;
570 case '\'':
571 c++;
572 if ((given & (1 << bitstart)) != 0)
573 func (stream, "%c", *c);
574 break;
575 case '?':
576 ++c;
577 if ((given & (1 << bitstart)) != 0)
578 func (stream, "%c", *c++);
579 else
580 func (stream, "%c", *++c);
581 break;
582 default:
583 abort ();
585 break;
587 default:
588 abort ();
592 else
593 func (stream, "%c", *c);
595 return 4;
598 abort ();
601 /* Print one instruction from PC on INFO->STREAM.
602 Return the size of the instruction. */
603 static int
604 print_insn_thumb (pc, info, given)
605 bfd_vma pc;
606 struct disassemble_info * info;
607 long given;
609 struct thumb_opcode * insn;
610 void * stream = info->stream;
611 fprintf_ftype func = info->fprintf_func;
613 for (insn = thumb_opcodes; insn->assembler; insn++)
615 if ((given & insn->mask) == insn->value)
617 char * c = insn->assembler;
619 /* Special processing for Thumb 2 instruction BL sequence: */
620 if (!*c) /* Check for empty (not NULL) assembler string. */
622 info->bytes_per_chunk = 4;
623 info->bytes_per_line = 4;
625 func (stream, "bl\t");
627 info->print_address_func (BDISP23 (given) * 2 + pc + 4, info);
628 return 4;
630 else
632 info->bytes_per_chunk = 2;
633 info->bytes_per_line = 4;
635 given &= 0xffff;
637 for (; *c; c++)
639 if (*c == '%')
641 int domaskpc = 0;
642 int domasklr = 0;
644 switch (*++c)
646 case '%':
647 func (stream, "%%");
648 break;
650 case 'S':
652 long reg;
654 reg = (given >> 3) & 0x7;
655 if (given & (1 << 6))
656 reg += 8;
658 func (stream, "%s", arm_regnames[reg]);
660 break;
662 case 'D':
664 long reg;
666 reg = given & 0x7;
667 if (given & (1 << 7))
668 reg += 8;
670 func (stream, "%s", arm_regnames[reg]);
672 break;
674 case 'T':
675 func (stream, "%s",
676 arm_conditional [(given >> 8) & 0xf]);
677 break;
679 case 'N':
680 if (given & (1 << 8))
681 domasklr = 1;
682 /* Fall through. */
683 case 'O':
684 if (*c == 'O' && (given & (1 << 8)))
685 domaskpc = 1;
686 /* Fall through. */
687 case 'M':
689 int started = 0;
690 int reg;
692 func (stream, "{");
694 /* It would be nice if we could spot
695 ranges, and generate the rS-rE format: */
696 for (reg = 0; (reg < 8); reg++)
697 if ((given & (1 << reg)) != 0)
699 if (started)
700 func (stream, ", ");
701 started = 1;
702 func (stream, "%s", arm_regnames[reg]);
705 if (domasklr)
707 if (started)
708 func (stream, ", ");
709 started = 1;
710 func (stream, "lr");
713 if (domaskpc)
715 if (started)
716 func (stream, ", ");
717 func (stream, "pc");
720 func (stream, "}");
722 break;
725 case '0': case '1': case '2': case '3': case '4':
726 case '5': case '6': case '7': case '8': case '9':
728 int bitstart = *c++ - '0';
729 int bitend = 0;
731 while (*c >= '0' && *c <= '9')
732 bitstart = (bitstart * 10) + *c++ - '0';
734 switch (*c)
736 case '-':
738 long reg;
740 c++;
741 while (*c >= '0' && *c <= '9')
742 bitend = (bitend * 10) + *c++ - '0';
743 if (!bitend)
744 abort ();
745 reg = given >> bitstart;
746 reg &= (2 << (bitend - bitstart)) - 1;
747 switch (*c)
749 case 'r':
750 func (stream, "%s", arm_regnames[reg]);
751 break;
753 case 'd':
754 func (stream, "%d", reg);
755 break;
757 case 'H':
758 func (stream, "%d", reg << 1);
759 break;
761 case 'W':
762 func (stream, "%d", reg << 2);
763 break;
765 case 'a':
766 /* PC-relative address -- the bottom two
767 bits of the address are dropped
768 before the calculation. */
769 info->print_address_func
770 (((pc + 4) & ~3) + (reg << 2), info);
771 break;
773 case 'x':
774 func (stream, "0x%04x", reg);
775 break;
777 case 'I':
778 reg = ((reg ^ (1 << bitend)) - (1 << bitend));
779 func (stream, "%d", reg);
780 break;
782 case 'B':
783 reg = ((reg ^ (1 << bitend)) - (1 << bitend));
784 (*info->print_address_func)
785 (reg * 2 + pc + 4, info);
786 break;
788 default:
789 abort ();
792 break;
794 case '\'':
795 c++;
796 if ((given & (1 << bitstart)) != 0)
797 func (stream, "%c", *c);
798 break;
800 case '?':
801 ++c;
802 if ((given & (1 << bitstart)) != 0)
803 func (stream, "%c", *c++);
804 else
805 func (stream, "%c", *++c);
806 break;
808 default:
809 abort ();
812 break;
814 default:
815 abort ();
818 else
819 func (stream, "%c", *c);
822 return 2;
826 /* No match. */
827 abort ();
830 /* Parse an individual disassembler option. */
831 void
832 parse_arm_disassembler_option (option)
833 char * option;
835 if (option == NULL)
836 return;
838 if (strneq (option, "reg-names-", 10))
840 int i;
842 option += 10;
844 for (i = NUM_ARM_REGNAMES; i--;)
845 if (streq (option, regnames[i].name))
847 regname_selected = i;
848 break;
851 if (i < 0)
852 fprintf (stderr, _("Unrecognised register name set: %s\n"), option);
854 else if (streq (option, "force-thumb"))
855 force_thumb = 1;
856 else if (streq (option, "no-force-thumb"))
857 force_thumb = 0;
858 else
859 fprintf (stderr, _("Unrecognised disassembler option: %s\n"), option);
861 return;
864 /* Parse the string of disassembler options, spliting it at whitespaces. */
865 static void
866 parse_disassembler_options (options)
867 char * options;
869 char * space;
871 if (options == NULL)
872 return;
876 space = strchr (options, ' ');
878 if (space)
880 * space = '\0';
881 parse_arm_disassembler_option (options);
882 * space = ' ';
883 options = space + 1;
885 else
886 parse_arm_disassembler_option (options);
888 while (space);
891 /* NOTE: There are no checks in these routines that
892 the relevant number of data bytes exist. */
893 static int
894 print_insn (pc, info, little)
895 bfd_vma pc;
896 struct disassemble_info * info;
897 boolean little;
899 unsigned char b[4];
900 long given;
901 int status;
902 int is_thumb;
904 if (info->disassembler_options)
906 parse_disassembler_options (info->disassembler_options);
908 /* To avoid repeated parsing of these options, we remove them here. */
909 info->disassembler_options = NULL;
912 is_thumb = force_thumb;
914 if (!is_thumb && info->symbols != NULL)
916 if (bfd_asymbol_flavour (*info->symbols) == bfd_target_coff_flavour)
918 coff_symbol_type * cs;
920 cs = coffsymbol (*info->symbols);
921 is_thumb = ( cs->native->u.syment.n_sclass == C_THUMBEXT
922 || cs->native->u.syment.n_sclass == C_THUMBSTAT
923 || cs->native->u.syment.n_sclass == C_THUMBLABEL
924 || cs->native->u.syment.n_sclass == C_THUMBEXTFUNC
925 || cs->native->u.syment.n_sclass == C_THUMBSTATFUNC);
927 else if (bfd_asymbol_flavour (*info->symbols) == bfd_target_elf_flavour)
929 elf_symbol_type * es;
930 unsigned int type;
932 es = *(elf_symbol_type **)(info->symbols);
933 type = ELF_ST_TYPE (es->internal_elf_sym.st_info);
935 is_thumb = (type == STT_ARM_TFUNC) || (type == STT_ARM_16BIT);
939 info->bytes_per_chunk = 4;
940 info->display_endian = little ? BFD_ENDIAN_LITTLE : BFD_ENDIAN_BIG;
942 if (little)
944 status = info->read_memory_func (pc, (bfd_byte *) &b[0], 4, info);
945 if (status != 0 && is_thumb)
947 info->bytes_per_chunk = 2;
949 status = info->read_memory_func (pc, (bfd_byte *) b, 2, info);
950 b[3] = b[2] = 0;
953 if (status != 0)
955 info->memory_error_func (status, pc, info);
956 return -1;
959 given = (b[0]) | (b[1] << 8) | (b[2] << 16) | (b[3] << 24);
961 else
963 status = info->read_memory_func
964 (pc & ~ 0x3, (bfd_byte *) &b[0], 4, info);
965 if (status != 0)
967 info->memory_error_func (status, pc, info);
968 return -1;
971 if (is_thumb)
973 if (pc & 0x2)
975 given = (b[2] << 8) | b[3];
977 status = info->read_memory_func
978 ((pc + 4) & ~ 0x3, (bfd_byte *) b, 4, info);
979 if (status != 0)
981 info->memory_error_func (status, pc + 4, info);
982 return -1;
985 given |= (b[0] << 24) | (b[1] << 16);
987 else
988 given = (b[0] << 8) | b[1] | (b[2] << 24) | (b[3] << 16);
990 else
991 given = (b[0] << 24) | (b[1] << 16) | (b[2] << 8) | (b[3]);
994 if (is_thumb)
995 status = print_insn_thumb (pc, info, given);
996 else
997 status = print_insn_arm (pc, info, given);
999 return status;
1003 print_insn_big_arm (pc, info)
1004 bfd_vma pc;
1005 struct disassemble_info * info;
1007 return print_insn (pc, info, false);
1011 print_insn_little_arm (pc, info)
1012 bfd_vma pc;
1013 struct disassemble_info * info;
1015 return print_insn (pc, info, true);
1018 void
1019 print_arm_disassembler_options (FILE * stream)
1021 int i;
1023 fprintf (stream, _("\n\
1024 The following ARM specific disassembler options are supported for use with\n\
1025 the -M switch:\n"));
1027 for (i = NUM_ARM_REGNAMES; i--;)
1028 fprintf (stream, " reg-names-%s %*c%s\n",
1029 regnames[i].name,
1030 14 - strlen (regnames[i].name), ' ',
1031 regnames[i].description);
1033 fprintf (stream, " force-thumb Assume all insns are Thumb insns\n");
1034 fprintf (stream, " no-force-thumb Examine preceeding label to determine an insn's type\n\n");