3 * acinclude.m4: Include libtool and gettext macros from the
5 * aclocal.m4, configure: Rebuilt.
9 * ppc-opc.c: Add XTLB macro for a few PPC 4xx extended mnemonics.
10 (powerpc_opcodes): Add table entries for PPC 405 instructions.
11 Changed rfci, icbt, mfdcr, dccci, mtdcr, iccci from PPC to PPC403
12 instructions. Added extended mnemonic mftbl as defined in the
13 405GP manual for all PPCs.
17 * tic80-dis.c: Fix formatting.
21 * w65-dis.c: Fix formatting.
25 * ia64-dis.c (print_insn_ia64): Add failed label after ia64_free_opcode
26 call. Change last goto to use failed instead of done.
30 * cgen-ibld.in (cgen_put_insn_int_value): New function.
31 (insert_normal): Allow for non-zero word_offset with CGEN_INT_INSN_P.
32 (insert_insn_normal): Use cgen_put_insn_int_value with CGEN_INT_INSN_P.
33 (extract_normal): Allow for non-zero word_offset with CGEN_INT_INSN_P.
34 * cgen-dis.in (read_insn): New static function.
35 (print_insn): Use read_insn to read the insn into the buffer and set
37 (print_insn): in CGEN_INT_INSN_P, make sure that the entire insn is
39 * fr30-asm.c: Regenerated.
40 * fr30-desc.c: Regenerated.
41 * fr30-desc.h Regenerated.
42 * fr30-dis.c: Regenerated.
43 * fr30-ibld.c: Regenerated.
44 * fr30-opc.c: Regenerated.
45 * fr30-opc.h Regenerated.
46 * m32r-asm.c: Regenerated.
47 * m32r-desc.c: Regenerated.
48 * m32r-desc.h Regenerated.
49 * m32r-dis.c: Regenerated.
50 * m32r-ibld.c: Regenerated.
51 * m32r-opc.c: Regenerated.
55 * tic30-dis.c: Fix formatting.
59 * sh-dis.c: Fix formatting.
63 * ppc-opc.c (powerpc_opcodes): Add rfid, mtsrd, mtsrdin, mtmsrd.
67 * z8k-dis.c: Fix formatting.
71 * ia64-ic.tbl (pr-readers-nobr-nomovpr): Add addl, adds. Delete
72 break, mov-immediate, nop.
73 * ia64-opc-f.c: Delete fpsub instructions.
74 * ia64-opc-m.c: Add POSTINC to all instructions with postincrement
75 address operand. Rewrite using macros to avoid long lines.
76 * ia64-opc.h (POSTINC): Define.
77 * ia64-asmtab.c: Regenerate.
81 * ia64-ic.tbl: Add missing entries.
85 * i860-dis.c (print_br_address): Change third argument from int
90 * ia64-dis.c (print_insn_ia64): Get byte skip count correct
91 for MLI templates. Handle IA64_OPND_TGT64.
95 * avr-dis.c (avr_operand): Use PARAMS macro in declaration.
96 Change return type from void to int. Check the combination
97 of operands, return 1 if valid. Fix to avoid BUF overflow.
98 Report undefined combinations of operands in COMMENT.
99 Report internal errors to stderr. Output the adiw/sbiw
100 constant operand in both decimal and hex.
101 (print_insn_avr): Disassemble ldd/std with displacement of 0
102 as ld/st. Check avr_operand () return value, handle invalid
103 combinations of operands like unknown opcodes.
107 * cgen-dis.in, cgen-asm.in, cgen-ibld.in: New files.
112 * ia64-dis.c (print_insn_ia64): Call ia64_free_opcode at end.
116 * Makefile.am (CGEN, CGENDEPS, CGENDIR, CGENFLAGS): New.
117 (run-cgen, stamp-m32r, stamp-fr30): New targets.
118 * Makefile.in: Regenerate.
119 * configure.in: Add --enable-cgen-maint option.
120 * configure: Regenerate.
124 * cgen-opc.c (cgen_hw_lookup_by_name): 'i' is now unsigned.
125 (cgen_hw_lookup_by_num): Ditto.
126 (cgen_operand_lookup_by_name): Ditto.
127 (print_address): Ditto.
128 (print_keyword): Ditto.
129 * cgen-dis.c (hash_insn_array): Mark unused parameters with
131 * cgen-asm.c (hash_insn_array): Mark unused parameters with
133 (cgen_parse_keyword): Ditto.
137 * i860-dis.c: New file.
138 (print_insn_i860): New function.
139 (print_br_address): New function.
140 (sign_extend): New function.
141 (BITWISE_OP): New macro.
142 (I860_REG_PREFIX): New macro.
143 (grnames, frnames, crnames): New structures.
145 * disassemble.c (ARCH_i860): Define.
146 (disassembler): Add check for bfd_arch_i860 to set disassemble
147 function to print_insn_i860.
149 * Makefile.in (CFILES): Added i860-dis.c.
150 (ALL_MACHINES): Added i860-dis.lo.
151 (i860-dis.lo): New dependences.
153 * configure.in: New bits for bfd_i860_arch.
155 * configure: Regenerated.
159 * Makefile.am (CFILES): Add cris-dis.c and cris-opc.c.
160 (ALL_MACHINES): Add cris-dis.lo and cris-opc.lo.
161 (cris-dis.lo, cris-opc.lo): New rules.
162 * Makefile.in: Rebuild.
163 * configure.in (bfd_cris_arch): New target.
164 * configure: Rebuild.
165 * disassemble.c (ARCH_cris): Define.
166 (disassembler): Support ARCH_cris.
167 * cris-dis.c, cris-opc.c: New files.
168 * po/POTFILES.in, po/opcodes.pot: Regenerate.
172 * sparc-opc.c (sparc_opcodes): popc has 0 in rs1, not rs2.
177 * ppc-opc.c (powerpc_opcodes): Correct suffix for vslw.
182 * hppa-dis.c (fput_reg, fput_fp_reg, fput_fp_reg_r, fput_creg,
183 fput_const, extract_3, extract_5_load, extract_5_store,
184 extract_5r_store, extract_5R_store, extract_10U_store,
185 extract_5Q_store, extract_11, extract_14, extract_16, extract_21,
186 extract_12, extract_17, extract_22): Prototype.
187 (print_insn_hppa): Rename inner block opcode -> opc to avoid
188 shadowing outer block.
197 * arm-dis.c (print_insn_arm): Output combinations of PSR flags.
201 * avr-dis.c (avr_operand): Change _ () to _() around all strings
202 marked for translation (exception from the usual coding style).
203 (print_insn_avr): Initialize insn2 to avoid warnings.
207 * h8300-dis.c (bfd_h8_disassemble): Improve readability.
208 * h8500-dis.c: Fix formatting.
212 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
213 (CLEANFILES): Add DEPA.
214 * Makefile.in: Regenerate.
218 * arm-dis.c (regnames): Add an additional register set to match
219 the set used by GCC. Make it the default.
223 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
225 * Makefile.in: Regenerate.
229 * Makefile.am: Rebuild dependency.
230 * Makefile.in: Rebuild.
234 * Makefile.in, configure: regenerate
235 * disassemble.c (disassembler): Recognize ARCH_m68hc12,
237 * m68hc11-dis.c (read_memory, print_insn, print_insn_m68hc12):
239 * configure.in: Recognize m68hc12 and m68hc11.
240 * m68hc11-dis.c, m68hc11-opc.c: New files for support of m68hc1x
241 * Makefile.am (CFILES, ALL_MACHINES): New files for disassembly
242 and opcode generation for m68hc11 and m68hc12.
246 * disassemble.c (disassembler): Refer to the PowerPC 620 using
247 bfd_mach_ppc_620 instead of 620.
251 * h8300-dis.c: Fix formatting.
252 (bfd_h8_disassemble): Distinguish adds/subs, inc/dec.[wl]
257 * avr-dis.c (avr_operand): Bugfix for jmp/call address.
261 * avr-dis.c: completely rewritten.
265 * h8300-dis.c: Follow the GNU coding style.
266 (bfd_h8_disassemble) Fix a typo.
270 * h8300-dis.c (bfd_h8_disassemble_init): Fix a typo.
271 (bfd_h8_disassemble): Distinguish the operand size of inc/dev.[wl]
272 correctly. Fix a typo.
276 * opintl.h (_(String)): Explain why dgettext is used instead of
281 * opintl.h (gettext, dgettext, dcgettext, textdomain,
282 bindtextdomain): Replace defines with those from intl/libgettext.h
283 to quieten gcc warnings.
287 * Makefile.am: Update dependencies with "make dep-am"
288 * Makefile.in: Regenerate.
292 * m10300-dis.c (disassemble): Don't assume 32-bit longs when
293 sign-extending operands.
297 * d10v-opc.c (d10v_opcodes): add ALONE tag to all short branches
302 * Makefile.am (LIBIBERTY): Define.
306 * mips-dis.c (REGISTER_NAMES): Rename to STD_REGISTER_NAMES.
307 (STD_REGISTER_NAMES): New name for REGISTER_NAMES.
308 (reg_names): Rename to std_reg_names. Change it to a char **
310 (std_reg_names): New name for reg_names.
311 (set_mips_isa_type): Set reg_names to point to std_reg_names by
316 * fr30-desc.h: Partially regenerated to account for changed
317 CGEN_MAX_* -> CGEN_ACTUAL_MAX_* macros.
318 * m32r-desc.h: Ditto.
322 * arm-opc.h: Use upper case for flasg in MSR and MRS
323 instructions. Allow any bit to be set in the field_mask of
326 * arm-dis.c (print_insn_arm): Decode _x and _s bits of the
327 field_mask of an MSR instruction.
331 * arm-opc.c: Disassembly of thumb ldsb/ldsh
332 instructions changed to ldrsb/ldrsh.
336 * mips-dis.c (print_insn_arg): Don't mask top 32 bits of 64-bit
337 target addresses for 'jal' and 'j'.
341 * ppc-opc.c (powerpc_opcodes): Make the predicted-branch opcodes
342 also available in common mode when powerpc syntax is being used.
346 * m68k-dis.c (dummy_printer): Add ATTRIBUTE_UNUSED to args.
347 (dummy_print_address): Ditto.
353 * disassemble.c (disassembler): Add ARCH_tic54x.
354 * configure.in: Added tic54x target.
356 * Makefile.am: Add tic54x dependencies.
357 * Makefile.in: Ditto.
361 * ppc-opc.c (VA, VB, VC, VD, VS, SIMM, UIMM, SHB): New macros, for
362 vector unit operands.
363 (VX, VX_MASK, VXA, VXA_MASK, VXR, VXR_MASK): New macros, for vector
364 unit instruction formats.
365 (PPCVEC): New macro, mask for vector instructions.
366 (powerpc_operands): Add table entries for above operand types.
367 (powerpc_opcodes): Add table entries for vector instructions.
369 * ppc-dis.c (print_insn_big_powerpc): Add PPC_OPCODE_ALTIVEC to mask.
370 (print_insn_little_powerpc): Likewise.
371 (print_insn_powerpc): Prepend 'v' when printing vector registers.
375 * avr-dis.c (reg_fmul_d): New. Extract destination register from
377 (reg_fmul_r): New. Extract source register from FMUL instruction.
378 (reg_muls_d): New. Extract destination register from MULS instruction.
379 (reg_muls_r): New. Extract source register from MULS instruction.
380 (reg_movw_d): New. Extract destination register from MOVW instruction.
381 (reg_movw_r): New. Extract source register from MOVW instruction.
382 (print_insn_avr): Handle MOVW, MULS, MULSU, FMUL, FMULS, FMULSU,
383 EICALL, EIJMP, LPM r,Z, ELPM r,Z, SPM, ESPM instructions.
387 * configure.in: Add bfd_powerpc_64_arch.
388 * disassemble.c (disassembler): Use print_insn_big_powerpc for
393 * fr30-desc.c (fr30_cgen_cpu_open): Initialise signed_overflow
398 * ia64-gen.c (general): Add an ordered table of primary
399 opcode names, as well as priority fields to disassembly data
400 structures to enforce a preferred disassembly format based on the
401 ordering of the opcode tables.
402 (load_insn_classes): Show a useful message if IC tables are missing.
403 (load_depfile): Ditto.
404 * ia64-asmtab.h (struct ia64_dis_names ): Add priority flag to
405 distinguish preferred disassembly.
406 * ia64-opc-f.c: Reorder some insn for preferred disassembly
407 format. Fix incorrect flag on fma.s/fma.s.s0.
408 * ia64-opc.c: Scan *all* disassembly matches and use the one with
409 the highest priority.
410 * ia64-opc-b.c: Use more abbreviations.
411 * ia64-asmtab.c: Regenerate.
415 * hppa-dis.c (extract_16): New function.
416 (print_insn_hppa): Fix incorrect handling of 'fe'. Added handling of
417 new operand types l,y,&,fe,fE,fx.
425 * Makefile.am (HFILES): Add ia64-asmtab.h, ia64-opc.h.
426 (CFILES): Add ia64-dis.c, ia64-opc-a.c, ia64-opc-b.c, ia64-opc-f.c,
427 ia64-opc-i.c, ia64-opc-m.c, ia64-opc-d.c, ia64-opc.c, ia64-gen.c,
429 (ALL_MACHINES): Add ia64-dis.lo, ia64-opc.lo.
430 (ia64-ic.tbl, ia64-raw.tbl, ia64-waw.tbl, ia64-war.tbl, ia64-gen,
431 ia64-gen.o, ia64-asmtab.c, ia64-dis.lo, ia64-opc.lo): New rules.
432 * Makefile.in: Rebuild.
434 * configure.in (bfd_ia64_arch): New target.
435 * disassemble.c (ARCH_ia64): Define.
436 (disassembler): Support ARCH_ia64.
437 * ia64-asmtab.c, ia64-asmtab.h, ia64-dis.c, ia64-gen.c ia64-ic.tbl,
438 ia64-opc-a.c, ia64-opc-b.c, ia64-opc-d.c ia64-opc-f.c, ia64-opc-i.c,
439 ia64-opc-m.c, ia64-opc-x.c, ia64-opc.c, ia64-opc.h, ia64-raw.tbl,
440 ia64-war.tbl, ia64-waw.tbl): New files.
444 * m10300-dis.c (HAVE_AM30, HAVE_AM33): Define.
445 (disassemble): Use them.
449 * sysdep.h: Include "ansidecl.h" not <ansidecl.h>
450 * Makefile.am: Update dependencies.
451 * Makefile.in: Regenerate.
455 * a29k-dis.c, alpha-dis.c, alpha-opc.c, arc-dis.c, arc-opc.c,
456 avr-dis.c, d10v-dis.c, d10v-opc.c, d30v-dis.c, d30v-opc.c,
457 disassemble.c, h8300-dis.c, h8500-dis.c, hppa-dis.c, i370-dis.c,
458 i370-opc.c, i960-dis.c, m10200-dis.c, m10200-opc.c, m10300-dis.c,
459 m10300-opc.c, m68k-dis.c, m68k-opc.c, m88k-dis.c, mcore-dis.c,
460 mips-dis.c, mips-opc.c, mips16-opc.c, pj-dis.c, pj-opc.c,
461 ppc-dis.c, ppc-opc.c, sh-dis.c, sparc-dis.c, sparc-opc.c,
462 tic80-dis.c, tic80-opc.c, v850-dis.c, v850-opc.c, vax-dis.c,
463 w65-dis.c, z8k-dis.c, z8kgen.c: Include sysdep.h. Remove
464 ansidecl.h as sysdep.h includes it.
468 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
469 --enable-build-warnings option.
470 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
471 * Makefile.in, configure: Re-generate.
475 * sh-opc.c (sh_table): Use A_DISP_PC / PCRELIMM_8BY2 for ldre & ldrs.
476 stc GBR,@-<REG_N> is available for arch_sh1_up.
477 Group parallel processing insn with identical mnemonics together.
478 Make three-operand psha / pshl come first.
482 * sh-opc.h (sh_nibble_type): Remove DISP_8 and DISP_4.
483 Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT.
484 (sh_arg_type): Add A_PC.
485 (sh_table): Update entries using immediates. Add repeat.
486 * sh-dis.c (print_insn_shx): Remove DISP_8 and DISP_4.
487 Split IMM_[48]{,BY[24]} into IMM[01]_[48]{,BY[24]}. Add REPEAT.
491 * po/opcodes.pot: Regenerate.
493 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
494 (DEP): Quote when passing vars to sub-make. Add warning message
496 (DEP1): Rewrite for "gcc -MM".
497 (CLEANFILES): Add DEP2.
499 * Makefile.in: Regenerate.
503 * avr-dis.c: Syntax cleanup.
504 (add0fff): Print the pc relative address as a signed number.
509 * disassemble.c (disassembler_usage): Don't use a prototype. Mark
510 the parameter ATTRIBUTE_UNUSED.
511 * ppc-opc.c: Add ATTRIBUTE_UNUSED as needed.
515 * m10300-opc.c: SP-based offsets are always unsigned.
519 * arm-opc.h (thumb_opcodes): Disassemble 0xde.. to "bal"
520 [branch always] instead of "undefined".
524 * d30v-opc.c (d30v_format_table): Move SHORT_AR to end of list of
525 short instructions, from end of list of long instructions.
529 * Makefile.am (CFILES): Add avr-dis.c.
530 (ALL_MACHINES): Add avr-dis.lo.
534 * avr-dis.c (add0fff, add03f8): Don't use structure bitfields to
536 (print_insn_avr): Call function via pointer in K&R compatible way.
537 (dispLDD, regPP, reg50, reg104, reg40, reg20w, lit404, lit204,
538 add0fff, add03f8): Convert to old style function declaration and
540 (avrdis_opcode): Add prototype.
544 * avr-dis.c: New file. AVR disassembler.
545 * configure.in (bfd_avr_arch): New architecture support.
546 * disassemble.c: Likewise.
547 * configure: Regenerate.
551 * sh-opc.h (sh_table): ldre and ldrs have a *signed* displacement.
555 * d30v-dis.c (print_insn): Remove d*i hacks. Use per-operand
556 flag to determine if operand is pc-relative.
559 (REL6S3): Renamed from IMM6S3.
560 Added flag OPERAND_PCREL.
561 (REL12S3, REL18S3, REL32): Split from IMM12S3, IMM18S3, REL32, with
562 added flag OPERAND_PCREL.
563 (IMM12S3U): Replaced with REL12S3.
564 (SHORT_D2, LONG_D): Delay target is pc-relative.
565 (SHORT_B2r, SHORT_B3r, SHORT_B3br, SHORT_D2r, LONG_Ur, LONG_2r):
566 Split from SHORT_B2, SHORT_D2, SHORT_B3b, SHORT_D2, LONG_U, LONG_2r,
567 using the REL* operands.
568 (LONG_2br, LONG_Dr): Likewise, from LONG_2b, LONG_D.
569 (SHORT_D1r, SHORT_D2Br, LONG_Dbr): Renamed from SHORT_D1, SHORT_D2B,
570 LONG_Db, using REL* operands.
571 (SHORT_U, SHORT_A5S): Removed stray alternatives.
572 (d30v_opcode_table): Use new *r formats.
576 * m32r-desc.c (m32r_cgen_cpu_open): Replace 'flags' with
577 'signed_overflow_ok_p'.
581 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
582 name of the libtool directory.
583 * Makefile.in: Rebuild.
587 * cgen-opc.c (cgen_set_signed_overflow_ok): New function.
588 (cgen_clear_signed_overflow_ok): New function.
589 (cgen_signed_overflow_ok_p): New function.
593 * m32r-asm.c, m32r-desc.c, m32r-desc.h, m32r-dis.c,
594 m32r-ibld.c,m32r-opc.h: Rebuild.
598 * i370-dis.c, i370-opc.c: New.
600 * disassemble.c (ARCH_i370): Define.
601 (disassembler): Handle it.
603 * Makefile.am: Add support for Linux/IBM 370.
604 * configure.in: Likewise.
606 * Makefile.in: Regenerate.
607 * configure: Likewise.
611 * d30v-opc.c (d30v_opcode_tab) : Added FLAG_NOT_WITH_ADDSUBppp to
612 ST2H, STB, STH, STHH, STW and ST2H opcodes to prohibit parallel
617 * mips-dis.c (_print_insn_mips): New arg for OPCODE_IS_MEMBER:
619 * mips-opc.c (G6): New define.
620 (mips_builtin_op): Add "move" definition for -gp32.
625 * ppc-opc.c: Correct dcread--it takes 3 arguments, not 2.
629 * dis-buf.c (buffer_read_memory): Change `length' param and all int
634 * sh-dis.c (print_movxy, print_insn_ddt, print_dsp_reg): New functions.
635 (print_insn_ppi): Likewise.
636 (print_insn_shx): Use info->mach to select appropriate insn set.
637 Add support for sh-dsp. Remove FD_REG_N support.
638 * sh-opc.h (sh_nibble_type): Add new values for sh-dsp support.
639 (sh_arg_type): Likewise. Remove FD_REG_N.
640 (sh_dsp_reg_nums): New enum.
641 (arch_sh1, arch_sh2, arch_sh3, arch_sh3e, arch_sh4): New macros.
642 (arch_sh_dsp, arch_sh3_dsp, arch_sh1_up, arch_sh2_up): Likewise.
643 (arch_sh3_up, arch_sh3e_up, arch_sh4_up, arch_sh_dsp_up): Likewise.
644 (arch_sh3_dsp_up): Likewise.
645 (sh_opcode_info): New field: arch.
646 (sh_table): Split up insn with FD_REG_N into ones with F_REG_N and
647 D_REG_N. Fill in arch field. Add sh-dsp insns.
651 * arm-dis.c: Change flavor name from atpcs-special to
652 special-atpcs to prevent name conflict in gdb.
653 (get_arm_regname_num_options, set_arm_regname_option,
654 get_arm_regnames): New functions. API to access the several
655 flavor of register names. Note: Used by gdb.
656 (print_insn_thumb): Use the register name entry from the currently
657 selected flavor for LR and PC.
661 * mcore-opc.h (enum mcore_opclass): Add MULSH and OPSR
663 (mcore_table): Add "idly4", "psrclr", "psrset", "mulsh" and
664 "mulsh.h" instructions.
665 * mcore-dis.c (imsk array): Add masks for MULSH and OPSR
667 (print_insn_mcore): Add support for little endian targets.
668 Add support for MULSH and OPSR classes.
672 * arm-dis.c (parse_arm_diassembler_option): Rename again.
673 Previous delat did not take.
677 * dis-buf.c (buffer_read_memory): Use octets_per_byte field
678 to adjust target address bounds checking and calculate the
679 appropriate octet offset into data.
683 * arm-dis.c: (parse_disassembler_option): Rename to
684 parse_arm_disassembler_option and allow to be exported.
686 * disassemble.c (disassembler_usage): New function: Print out any
687 target specific disassembler options.
688 Call arm_disassembler_options() if the ARM architecture is being
691 * arm-dis.c (NUM_ELEM): Define this macro if not already
693 (arm_regname): New struct type for ARM register names.
694 (arm_toggle_regnames): Delete.
695 (parse_disassembler_option): Use register name structure.
696 (print_insn): New function: Combines duplicate code found in
697 print_insn_big_arm and print_insn_little_arm.
698 (print_insn_big_arm): Call print_insn.
699 (print_insn_little_arm): Call print_insn.
700 (print_arm_disassembler_options): Display list of supported,
701 ARM specific disassembler options.
705 * arm-dis.c (printf_insn_big_arm): Treat ELF symbols with the
706 ARM_STT_16BIT flag as Thumb code symbols.
708 * arm-dis.c (printf_insn_little_arm): Ditto.
712 * arm-dis.c (printf_insn_thumb): Prevent double dumping
713 of raw thumb instructions.
717 * mcore-opc.h (mcore_table): Add "add" as an alias for "addu".
721 * arm-dis.c (streq): New macro.
723 (force_thumb): ew local variable.
724 (parse_disassembler_option): New function: Parse a single, ARM
725 specific disassembler command line switch.
726 (parse_disassembler_option): Call parse_disassembler_option to
727 parse individual command line switches.
728 (print_insn_big_arm): Check force_thumb.
729 (print_insn_little_arm): Check force_thumb.
733 * i386-dis.c (grps[]): Correct GRP5 FF/3 from "call" to "lcall".
737 * m10300-opc.c, m10300-dis.c: Add am33 support.
741 * hppa-dis.c (unit_cond_names): Add PA2.0 unit condition names.
742 (print_insn_hppa): Handle 'B' operand.
746 * d10v-opc.c: Fix pattern for "cpfg,f{0|1},c" instruction.
750 * mips-opc.c (I5): New.
751 (abs.ps,add.ps,alnv.ps,c.COND.ps,cvt.s.pl,cvt.s.pu,cvt.ps.s
752 madd.ps,movf.ps,movt.ps,mul.ps,net.ps,nmadd.ps,nmsub.ps,
753 pll.ps,plu.ps,pul.ps,puu.ps,sub.ps,suxc1,luxc1): New.
757 * arm-dis.c (print_insn_arm): Added general purpose 'X' format.
758 * arm-opc.h (print_insn_arm): Added comment documenting
759 the 'X' format just added to arm-dis.c.
763 * mips-opc.c (la): Create a version that just uses addiu directly.
764 (dla): Expand to daddiu if possible.
768 * mips-opc.c: Add ssnop pattern.
772 * mips-dis.c (_print_insn_mips): Use OPCODE_IS_MEMBER.
776 * d30v-opc.c (mvtacc): Use format SHORT_AR not SHORT_AA
777 (d30v_format_tab): Define the SHORT_AR format.
781 * mcore-dis.c: Remove spurious code introduced in previous delta.
785 * arm-dis.c: Include sysdep.h to prevent compile time warnings.
789 * alpha-opc.c (alpha_operands): Fill in missing initializer.
790 (alpha_num_operands): Convert to unsigned.
791 (alpha_num_opcodes): Ditto.
792 (insert_rba): Declare unused arguments ATTRIBUTE_UNUSED.
797 (extract_bdisp): Ditto.
798 (extract_jhint): Ditto.
799 (extract_ev6hwjhint): Ditto.
803 * hppa-dis.c (print_insn_hppa): Add new codes 'cc', 'cd', 'cC',
806 * hppa-dis.c (print_insn_hppa): Removed unused args. Fix '?W'.
808 * hppa-dis.c (print_insn_hppa): Implement codes "?N", "?Q".
812 * d10v-opc.c (d10v_operands): Add RESTRICTED_NUM3 flag for
813 rac/rachi instructions.
814 (d10v_opcodes): Added seven new instructions ld, ld2w, sac, sachi,
819 * fr30-asm.c,fr30-desc.h: Rebuild.
820 * m32r-asm.c,m32r-desc.c,m32r-desc.h: Rebuild. Add m32rx support.
821 * m32r-dis.c,m32r-ibld.c,m32r-opc.c,m32r-opc.h,m32r-opinst.c: Ditto.
825 * sh-opc.h: Fix bit patterns for several load and store
830 * hppa-dis.c (print_insn_hppa): Replace 'B', 'M', 'g' and 'l' with
831 cleaner code using completer prefixes. Add 'Y'.
835 * hppa-dis.c: (print_insn_hppa): Correct 'cJ', 'cc'.
837 * hppa-dis.c (extract_22): New function.
839 * hppa-dis.c (print_insn_hppa): Handle 'J', 'K', and 'cc'.
841 * hppa-dis.c (print_insn_hppa): Handle 'fe' and 'cJ'.
843 * hppa-dis.c (print_insn_hppa): Handle '#', 'd', and 'cq'.
845 * hppa-dis.c (print_insn_hppa): Handle 'm', 'h', '='.
847 * hppa-dis.c (print_insn_hppa): Handle 'X' operand.
849 * hppa-dis.c (print_insn_hppa): Handle 'B' operand.
851 * hppa-dis.c (print_insn_hppa): Handle 'M' and 'L' operands.
853 * hppa-dis.c (print_insn_hppa): Handle 'l' operand.
855 * hppa-dis.c (print_insn_hppa): Handle 'g' operand.
859 * hppa-dis.c (print_insn_hppa): Output a space after 'X' completer.
861 * hppa-dis.c: (print_insn_hppa): Do output a space before a 'v'
864 * hppa-dis.c: (print_insn_hppa): Handle 'fX'.
866 * hppa-dis.c: (print_insn_hppa): Add missing break after
869 * hppa-dis.c: Finish constifying various completers, register
874 * configure.in (Canonicalization of target names): Remove adding
875 ${CONFIG_SHELL} in front of $ac_config_sub, since autoconfig 2.14
876 generates $ac_config_sub with a ${CONFIG_SHELL} already.
877 * configure: Regenerate.
881 * hppa-dis.c (print_insn_hppa): Escape '%' in output strings.
883 * hppa-dis.c (print_insn_hppa): Handle 'Z' argument.
887 * sh-opc.h: Add mulu.w and muls.w patterns. These are the correct
888 names for the mulu and muls patterns.
892 * pj-opc.c: New file.
893 * pj-dis.c: New file.
894 * disassemble.c (disassembler): Handle bfd_arch_pj.
895 * configure.in: Handle bfd_pj_arch.
896 * Makefile.am: Rebuild dependencies.
897 (CFILES): Add pj-dis.c and pj-opc.c.
898 (ALL_MACHINES): Add pj-dis.lo and pj-opc.lo.
899 * configure, Makefile.in: Rebuild.
903 * i386-dis.c (print_insn_i386): Set bytes_per_line to 7.
907 * alpha-opc.c (fetch, fetch_m, ecb, wh64): RA must be R31.
911 * fr30-asm.c,fr30-desc.h,fr30-dis.c,fr30-ibld.c,fr30-opc.c: Rebuild.
912 * m32r-asm.c,m32r-desc.h,m32r-dis.c,m32r-ibld.c,m32r-opc.c: Rebuild.
913 * m32r-opinst.c: Rebuild.
917 * hppa-dis.c (print_insn_hppa): Replace 'f' by 'v'. Prefix float
918 register args by 'f'.
920 * hppa-dis.c (print_insn_hppa): Add args q, %, !, and |.
922 * hppa-dis.c (MASK_10, read_write_names, add_compl_names,
923 extract_10U_store): New.
924 (print_insn_hppa): Add new completers.
926 * hppa-dis.c (signed_unsigned_names,mix_half_names,
927 saturation_names): New.
928 (print_insn_hppa): Add completer codes 'a', 'ch', 'cH', 'cS', and 'c*'.
930 * hppa-dis.c (print_insn_hppa): Place completers behind prefix 'c'.
932 * hppa-dis.c (print_insn_hppa): Add cases for '.', '~'. '$'. and '!'
934 * hppa-dis.c (print_insn_hppa): Look at next arg instead of bits
935 to decide to print a space.
939 * i386-dis.c: Add AMD athlon instruction support.
944 * dis-buf.c (buffer_read_memory): Rewrite expression to avoid
945 overflow at end of address space.
946 (generic_print_address): Use sprintf_vma.
950 * Makefile.am: Rename .dep* files to DEP*. Change DEP variable to
951 MKDEP. Rebuild dependencies.
952 * Makefile.in: Rebuild.
956 * hppa-dis.c (compare_cond_64_names, cmpib_cond_64_names,
957 add_cond_64_names, wide_add_cond_names, logical_cond_64_names,
958 unit_cond_64_names, shift_cond_64_names, bb_cond_64_names): New.
959 (print_insn_hppa): Add 64 bit condition completers.
963 * hppa-dis.c (print_insn_hppa): Change condition args to use
968 * hppa-dis.c (print_insn_hppa): Remove unnecessary test in 'E'
974 * configure.bat: Remove; obsolete.
978 * dis-buf.c: Add ATTRIBUTE_UNUSED as appropriate.
979 (generic_strcat_address): Add cast to avoid warning.
980 * i386-dis.c: Initialize all structure fields to avoid warnings.
981 Add ATTRIBUTE_UNUSED as appropriate.
985 * sparc-dis.c (print_insn_sparc): Differentiate between
986 addition and oring when guessing symbol for comment.
990 * arm-dis.c (print_insn_arm): Display hex equivalent of rotated
995 * i386-dis.c: Mention intel mode specials in macro char comment.
999 * alpha-dis.c: Don't include <stdlib.h>.
1000 * arm-dis.c: Include "sysdep.h".
1001 * tic30-dis.c: Don't include <stdlib.h> or <string.h>. Include
1003 * Makefile.am: Rebuild dependencies.
1004 * Makefile.in: Rebuild.
1008 * arm-dis.c (print_insn_arm): Add detection of IMB and IMBRange
1013 * arm-dis.c (arm_regnames): Turn into a pointer to a register
1015 (arm_regnames_standard): New variable: Array of ARM register
1016 names according to ARM instruction set nomenclature.
1017 (arm_regnames_apcs): New variable: Array of ARM register names
1018 according to ARM Procedure Call Standard.
1019 (arm_regnames_raw): New variable: Array of ARM register names
1020 using just 'r' and the register number.
1021 (arm_toggle_regnames): New function: Toggle the chosen register set
1023 (parse_disassembler_options): New function: Parse any target
1024 disassembler command line options.
1025 (print_insn_big_arm): Call parse_disassembler_options if any
1027 (print_insn_little_arm): Call parse_disassembler_options if any
1032 * i386-dis.c (FWAIT_OPCODE): Define.
1033 (used_prefixes): New static variable.
1034 (fetch_data): Don't print an error message if we have already
1035 fetched some bytes successfully.
1036 (ckprefix): Clear used_prefixes. Use FWAIT_OPCODE, not 0x9b.
1037 (prefix_name): New static function.
1038 (print_insn_i386): If setjmp fails, indicating a data error, but
1039 we have managed to fetch some bytes, print the first one as a
1040 prefix or a .byte pseudo-op. If fwait is followed by a non
1041 floating point instruction, print the first prefix. Set
1042 used_prefixes when prefixes are used. If any prefixes were not
1043 used after disassembling the instruction, print the first prefix
1044 instead of printing the instruction.
1045 (putop): Set used_prefixes when prefixes are used.
1046 (append_seg, OP_E, OP_G, OP_REG, OP_I, OP_sI, OP_J): Likewise.
1047 (OP_DIR, OP_SIMD_Suffix): Likewise.
1051 * sparc-opc.c: Fix up set, setsw, setuw operand kinds.
1052 Support signx %reg, clruw %reg.
1056 * sparc-opc.c: Add aliases Solaris as supports.
1060 * Makefile.am (CFILES): Add arc-{dis,opc}.c and v850-{dis,opc}.c.
1061 * Makefile.in: Regenerated.
1065 * arm-dis.c (print_insn_arm): Make LDRH/LDRB consistent with LDR
1066 when target is PC-relative.
1070 * m68k-opc.c: Rename MACL/MSACL to MAC/MSAC. Add MACM/MSACM. Add
1073 * m68k-dis.c (fetch_arg): Add places `n', `o'.
1075 * m68k-opc.c: Add MSAC, MACL, MOVE to/from ACC, MACSR, MASK.
1076 Add mcf5206e to appropriate instructions.
1077 Add alias for MAC, MSAC.
1079 * m68k-dis.c (print_insn_arg): Add formats `E', `G', `H' and place
1082 * m68k-opc.c (m68k_opcodes): Add divsw, divsl, divuw, divul, macl,
1083 macw, remsl, remul for mcf5307. Change mcf5200 --> mcf.
1085 * m68k-dis.c: Add format `u' and places `h', `m', `M'.
1089 * i386-dis.c (Ed): Define.
1090 (dis386_twobyte_att, dis386_twobyte_intel): Use Ed for movd.
1092 (OP_rm): Rename to OP_Rd.
1095 (putop): Add const to template and p.
1096 (print_insn_x86): Delete.
1097 (print_insn_i386): Merge old function print_insn_x86. Add const
1099 (struct dis386): Add const to name.
1100 (dis386_att, dis386_intel): Add const.
1101 (dis386_twobyte_att, dis386_twobyte_intel): Add const.
1102 (names32, names16, names8, names_seg, index16): Add const.
1103 (grps, prefix_user_table, float_reg): Add const.
1104 (float_mem_att, float_mem_intel): Add const.
1105 (oappend): Add const to s.
1106 (OP_REG): Add const to s.
1107 (ptr_reg): Add const to s.
1108 (dofloat): Add const to dp.
1109 (OP_C): Don't skip modrm, it's now done in OP_Rd.
1112 (OP_Rd): Check for valid mod. Call Op_E to print.
1113 (OP_E): Handle d_mode arg. Check for bad sfence,lea,lds etc.
1114 (OP_MS): Check for valid mod. Call Op_EM to print.
1115 (OP_3DNowSuffix): Set obufp and use oappend rather than
1116 strcat. Call BadOp() for errors.
1117 (OP_SIMD_Suffix): Likewise.
1118 (BadOp): New function.
1122 * i386-dis.c (dis386_intel): Remove macro chars, except for
1123 jEcxz. Change cWtR and cRtd to cW and cR.
1124 (dis386_twobyte_intel): Remove macro chars here too.
1125 (putop): Handle R and W macros for intel mode.
1127 * i386-dis.c (SIMD_Fixup): New function.
1128 (dis386_twobyte_att): Use it on movlps and movhps, and change
1129 Ev to EX on these insns. Change movmskps Ev, XM to Gv, EX.
1130 (dis386_twobyte_intel): Same here.
1132 * i386-dis.c (Av): Remove.
1136 (OP_SIMD_Suffix): New function.
1137 (OP_DIR): Remove dead code.
1138 (eAX_reg..eDI_reg): Renumber.
1139 (onebyte_has_modrm): Table numbering comments.
1140 (INTERNAL_DISASSEMBLER_ERROR): Move to before print_insn_x86.
1141 (print_insn_x86): Move all prefix oappends to after uses_f3_prefix
1142 checks. Print error on invalid dp->bytemode2. Remove simd_cmp,
1143 and handle SIMD cmp insns in OP_SIMD_Suffix.
1144 (info->bytes_per_line): Bump from 5 to 6.
1146 (OP_E): Use INTERNAL_DISASSEMBLER_ERROR. Handle sfence.
1147 (OP_3DNowSuffix): Ensure mnemonic index unsigned.
1150 * i386-dis.c (XM, EX, None): Define.
1151 (OP_XMM, OP_EX, OP_None): New functions.
1152 (USE_GROUPS, USE_PREFIX_USER_TABLE): Define.
1153 (GRP14): Rename to GRPAMD.
1154 (GRP*): Add USE_GROUPS flag.
1156 (dis386_twobyte_att, dis386_twobyte_intel): Add SIMD insns.
1157 (twobyte_has_modrm): Add SIMD entries.
1158 (twobyte_uses_f3_prefix, simd_cmp_op, prefix_user_table): New.
1159 (grps): Add SIMD insns.
1160 (print_insn_x86): New vars uses_f3_prefix and simd_cmp. Don't
1161 oappend repz if uses_f3_prefix. Add code to handle new groups for
1165 * i386-dis.c (dis386_att, dis386_intel): Change 0xE8 call insn
1166 operand from Av to Jv.
1170 * mcore-dis.c (print_insn_mcore): Use .short to display
1171 unidentified instructions, not .word.
1175 * aclocal.m4, configure: Updated for new version of libtool.
1179 * fr30-desc.c,fr30-desc.h,fr30-dis.c,fr30-ibld.c,fr30-opc.c: Rebuild.
1180 * m32r-desc.c,m32r-desc.h,m32r-dis.c,m32r-ibld.c,m32r-opc.c: Rebuild.
1184 * hppa-dis.c (print_insn_hppa, case '3'): New case for PA2.0
1189 * fr30-desc.c,fr30-desc.h,fr30-ibld.c: Rebuild.
1190 * m32r-desc.c,m32r-desc.h,m32r-opinst.c: Rebuild.
1194 * opintl.h (LC_MESSAGES): Never define.
1198 * i386-dis.c (intel_syntax, open_char, close_char): Make static.
1199 (separator_char, scale_char): Likewise.
1200 (print_insn_x86): Likewise.
1201 (print_insn_i386): Likewise. Add declaration.
1205 * fr30-dis.c: Rebuild.
1206 * m32r-dis.c: Rebuild.
1210 * m68k-opc.c: Change compare instructions to use "@s" rather than
1211 ";s" when used with an immediate operand.
1215 * cgen-opc.c (cgen_set_cpu): Delete.
1216 (cgen_lookup_insn): max_insn_size renamed to max_insn_bitsize.
1217 * fr30-desc.c,fr30-desc.h,fr30-dis.c,fr30-ibld.c,fr30-opc.c,fr30-opc.h:
1219 * m32r-desc.c,m32r-desc.h,m32r-dis.c,m32r-ibld.c,m32r-opc.c,m32r-opc.h:
1221 * po/opcodes.pot: Rebuild.
1225 * d30v-opc.c (mvtsys): Remove FLAG_LKR.
1229 * cgen-opc.c (cgen_set_cpu): New arg `isa'. All callers updated.
1230 (cgen_operand_lookup_by_name,cgen_operand_lookup_by_num): New fns.
1231 (cgen_get_insn_operands): Rewrite test for hardcoded/operand index.
1232 * fr30-asm.c,fr30-desc.c,fr30-desc.h,fr30-dis.c,fr30-ibld.c: Rebuild.
1233 * m32r-asm.c,m32r-desc.c,m32r-desc.h,m32r-dis.c,m32r-ibld.c: Rebuild.
1234 * m32r-opinst.c: Rebuild.
1238 * cgen-opc.c (cgen_hw_lookup_by_name): Rewrite.
1239 (cgen_hw_lookup_by_num): Rewrite.
1240 * fr30-desc.c,fr30-desc.h,fr30-dis.c,fr30-ibld.c,fr30-opc.c: Rebuild.
1241 * m32r-desc.c,m32r-desc.h,m32r-dis.c,m32r-ibld.c,m32r-opc.c: Rebuild.
1242 * m32r-opinst.c: Rebuild.
1246 * alpha-opc.c: Add sqrt+flags patterns. Add EV6 PALcode insns.
1247 (insert_jhint): Fix insertion mask.
1248 * alpha-dis.c (print_insn_alpha): Disassemble EV6 PALcode insns.
1252 * Makefile.in: Rebuild.
1256 * i960c-asm.c,i960c-dis.c,i960c-opc.c,i960c-opc.h: Delete.
1257 * i960-dis.c (print_insn_i960): Rename from print_insn_i960_orig.
1258 * Makefile.am: Remove references to them.
1259 (HFILES): Add fr30-desc.h,m32r-desc.h.
1260 (CFILES): Add fr30-desc.c,fr30-ibld.c,m32r-desc.c,m32r-ibld.c,
1262 (ALL_MACHINES): Update.
1263 * configure.in: Redo handling of cgen_files.
1264 (bfd_i960_arch): Delete i960c-*.lo files.
1265 * configure: Regenerate.
1266 * cgen-asm.c (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
1267 (hash_insn_array): Rewrite.
1268 * cgen-dis.c (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
1269 (hash_insn_array): Rewrite.
1270 * cgen-opc.c (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
1271 (cgen_lookup_insn,cgen_get_insn_operands): Define here.
1272 (cgen_lookup_get_insn_operands): Ditto.
1273 * fr30-asm.c,fr30-dis.c,fr30-opc.c,fr30-opc.h: Regenerate.
1274 * m32r-asm.c,m32r-dis.c,m32r-opc.c,m32r-opc.h: Regenerate.
1275 * po/POTFILES.in: Rebuild.
1276 * po/opcodes.pot: Rebuild.
1280 * Makefile.am: Rebuild dependencies.
1281 (HFILES): Add fr30-opc.h.
1282 (CFILES): Add fr30-asm.c, fr30-dis.c, fr30-opc.c.
1283 * Makefile.in: Rebuild.
1285 * configure.in: Change AC_PREREQ to 2.13. Remove AM_CYGWIN32.
1286 Change AM_EXEEXT to AC_EXEEXT and AM_PROG_INSTALL to
1288 * acconfig.h: Remove.
1289 * configure: Rebuild with current autoconf/automake.
1290 * aclocal.m4: Likewise.
1291 * config.in: Likewise.
1292 * Makefile.in: Likewise.
1296 * m68k-opc.c: Correct move (not movew) to status word on 5200.
1300 * disassemble.c (disassembler): Handle bfd_mach_i386_i386_intel_syntax.
1301 * i386-dis.c (x_mode): Define.
1304 (dis386_intel): New.
1305 (dis386_twobyte): Remove.
1306 (dis386_twobyte_att): New.
1307 (dis386_twobyte_intel): New.
1308 (print_insn_x86): Use new arrays.
1309 (float_mem): Remove.
1310 (float_mem_intel): New.
1311 (float_mem_att): New.
1312 (dofloat): Use new float_mem arrays.
1313 (print_insn_i386_att): New.
1314 (print_insn_i386_intel): New.
1315 (print_insn_i386): Handle bfd_mach_i386_i386_intel_syntax.
1316 (putop): Handle intel syntax.
1317 (OP_indirE): Handle intel syntax.
1318 (OP_E): Handle intel syntax.
1319 (OP_I): Handle intel syntax.
1320 (OP_sI): Handle intel syntax.
1321 (OP_OFF): Handle intel syntax.
1325 * fr30-opc.h,fr30-opc.c: Rebuild.
1326 * i960c-opc.h,i960c-opc.c: Rebuild.
1327 * m32r-opc.c: Rebuild.
1331 * hppa-dis.c: revert HP merge changes until HP gives us
1336 * arm-dis.c (print_insn_arm): Display ARM syntax for PC relative
1337 offsets as well as symbloic address.
1341 * hppa-dis.c: fix comments and some indentation.
1345 * fr30-opc.c,i960c-opc.c: Regenerate.
1349 * fr30-opc.c: Regenerate.
1353 * m32r-dis.c: Regenerate.
1357 * fr30-asm.c,fr30-dis.c,fr30-opc.h,fr30-opc.c: Regenerate.
1358 * i960c-asm.c,i960c-dis.c,i960c-opc.h,i960c-opc.c: Regenerate.
1359 * m32r-asm.c,m32r-dis.c,m32r-opc.h,m32r-opc.c: Regenerate.
1363 * configure.in: Require autoconf 2.12.1 or higher.
1367 * mips16-opc.c: Mark branch insns with MIPS16_INSN_BRANCH.
1371 * fr30-opc.c: Regenerated.
1375 * mips-dis.c (set_mips_isa_type): Handle bfd_mach_mips4111.
1379 * fr30-opc.c,fr30-opc.h: Regenerated.
1383 * fr30-opc.c,fr30-opc.h: Regenerated.
1387 * fr30-opc.c,fr30-opc.h: Regenerated.
1391 * m32r-opc.c: Regenerate.
1395 * dis-buf.c (generic_strcat_address): reformat to GNU coding
1396 conventions. change sprintf call to an sprintf_vma call.
1400 * fr30-asm.c,fr30-dis.c,fr30-opc.c,fr30-opc.h: Regenerated.
1404 The following changes were made by
1408 merge in changes by HP; HP did not create ChangeLog entries.
1410 * dis-buf.c (generic_strcat_address): new function.
1412 * hppa-dis.c: Changes to improve hppa disassembly.
1413 Changed formatting in : reg_names, fp_reg_names,control_reg,
1414 New variables : sign_extension_names, deposit_names, conversion_names
1415 float_test_names, compare_cond_names_double, add_cond_names_double,
1416 logical_cond_names_double, unit_cond_names_double,
1417 branch_push_pop_names, saturation_names, shift_names, mix_names,
1418 New Macros : GET_COMPL_O, GET_PUSH_POP,MERGED_REG
1419 Move some definitions to libhppa.h: GET_FIELD, GET_BIT
1420 (fput_const): renamed as fput_hex_const
1422 - use the macros fputs_filtered and
1423 fput_decimal_const whenever possible; calls to sign_extend require
1424 2 params -- add a missing second param of 0.
1425 - Some new code ifdefed for LOCAL_ONLY, all related to figuring out
1426 architecture version number of current machine. HP folks are
1427 trying to handle situation where the target program was compiled
1428 for PA 1.x (32-bit), but is running on a PA 2.0 machine and
1430 - added new cases : 'g', 'B', 'm'
1431 - added cases specifically for PA 2.0
1432 - changed the following cases : '"', 'n', 'N', 'p', 'Z',
1433 - calls to fput_const become calls to fput_hex_const
1437 * Makefile.am (CFILES): Add i960c-asm, i960c-dis.c, i960c-opc.c.
1438 (ALL_MACHINES): Add i960c-asm.lo, i960c-dis.lo, i960-opc.lo.
1439 (i960-asm.lo, i960c-dis.lo, i960c-opc.lo): New Makefile rules.
1440 * Makefile.in: Rebuilt.
1441 * configure.in (bfd_i960_arch): Add i960c-opc.lo, i960-asm.o,
1443 * i960-dis.c (print_insn_i960): Rename to print_insn_i960_orig.
1444 * i960c-asm.c, i960c-dis.c, i960c-opc.c, i960c-opc.h: New files.
1448 * fr30-asm.c,fr30-dis.c,fr30-opc.c,fr30-opc.h: Regenerated.
1452 * mips-opc.c (mips_builtin_opcodes): Add dmfc2 and dmtc2.
1454 * ppc-opc.c (powerpc_opcodes): Add PowerPC403 GC[X] instructions.
1459 * fr30-opc.c: Regenerate.
1463 * fr30-asm.c,fr30-dis.c,fr30-opc.c,fr30-opc.h: Regenerated.
1467 * fr30-asm.c,fr30-dis.c,fr30-opc.c,fr30-opc.h: Regenerated.
1471 * fr30-asm.c,fr30-dis.c,fr30-opc.c,fr30-opc.h: Regenerate.
1475 * cgen-dis.c (hash_insn_array): CGEN_INSN_VALUE ->
1476 CGEN_INSN_BASE_VALUE.
1477 * m32r-opc.c,m32r-opc.h,m32r-asm.c,m32r-dis.c: Regenerate.
1478 * fr30-opc.c,fr30-opc.h,fr30-asm.c,fr30-dis.c: Regenerate.
1482 * fr30-asm.c,fr30-dis.c,fr30-opc.c: Regenerated.
1486 * fr30-asm.c,fr30-dis.c: Regenerated.
1490 * fr30-asm.c,fr30-dis.c,fr30-opc.c,fr30-opc.h: Regenerated.
1494 * fr30-opc.c: Regenerated.
1498 * fr30-opc.c: Regenerated.
1499 * fr30-opc.h: Regenerated.
1500 * fr30-dis.c: Regenerated.
1501 * fr30-asm.c: Regenerated.
1505 * mips-opc.c (sync.p,sync.l): Swap insn values.
1509 * fr30-opc.c: Regenerate.
1513 * fr30-opc.c: Regenerated.
1514 * fr30-opc.h: Regenerated.
1518 * m32r-asm.c,m32r-dis.c,m32r-opc.c: Rebuild.
1519 * fr30-asm.c,fr30-dis.c,fr30-opc.c: Rebuild.
1523 * fr30-opc.c: Regenerated.
1527 * fr30-opc.c: Regenerated.
1528 * fr30-opc.h: Regenerated.
1529 * fr30-dis.c: Regenerated.
1530 * fr30-asm.c: Regenerated.
1534 * po/opcodes.pot: Regenerated.
1535 * fr30-opc.c: Regenerated.
1536 * fr30-opc.h: Regenerated.
1537 * fr30-dis.c: Regenerated.
1538 * fr30-asm.c: Regenerated.
1542 * disassemble.c (disassembler): Add support for FR30 target.
1546 * m32r-dis.c,m32r-opc.c,m32r-opc.h: Rebuild.
1547 * fr30-dis.c,fr30-opc.c,fr30-opc.h: Rebuild.
1551 * po/opcodes.pot: Regenerate.
1552 * po/POTFILES.in: Regenerate.
1553 * fr30-opc.c: Regenerate.
1554 * fr30-opc.h: Regenerate.
1558 * m32r-asm.c: Regenerate.
1562 * configure.in: Added case for bfd_fr30_arch.
1563 * Makefile.am (CFILES): Added fr30-asm.c, fr30-dis.c, fr30-opc.c.
1564 (ALL_MACHINES): Added fr30-asm.lo, fr30-dis.lo, fr30-opc.lo.
1565 (CLEANFILES): Added stamp-fr30.
1567 * fr30-asm.c: New file.
1568 * fr30-dis.c: New file.
1569 * fr30-opc.c: New file.
1570 * fr30-opc.h: New file.
1571 * po/POTFILES.in: Regenerated
1572 * po/opcodes.pot: Regenerated
1576 * configure.in: detect cygwin* instead of cygwin32*
1577 * configure: regenerate
1581 * mips-opc.c (IS_M): Added.
1585 * m32r-opc.c,m32r-opc.h,m32r-asm.c,m32r-dis.c: Regenerate.
1589 * m32r-opc.h,m32r-opc.c: Regenerate.
1593 * i386-dis.c (OP_3DNowSuffix): New static function.
1596 (dis386_twobyte): Add GRP14, femms, and 3DNow entries.
1597 (twobyte_has_modrm): Set entries corresponding to GRP14, 3DNow.
1598 (insn_codep): New static variable.
1599 (print_insn_x86): Init insn_codep after prefixes.
1600 (grps): Add GRP14 entries for prefetch, prefetchw.
1604 * i386-dis.c (Suffix3DNow): New table.
1608 * d10v-opc.c: Treat TRAP as if it were a branch type instruction.
1612 * d10v-dis.c (print_operand): If num is nonzero, then
1613 add OPERAND_ACC1, not OPERAND_ACC0.
1617 * d30v-opc.c: Add FLAG_JSR attribute to DBT, REIT, RTD, and TRAP
1622 * d30v-opc.c: Add use of EITHER_BUT_PREFER_MU execution unit
1627 * m32r-opc.h,m32r-opc.c: Add bbpc,bbpsw support.
1631 * ppc-opc.c (powerpc_opcodes): Add support for PowerPC 750 move
1636 * arm-dis.c (print_insn_big_arm): Detect Thumb symbols in elf
1638 (print_insn_little_arm): Detect Thumb symbols in elf object
1643 * alpha-dis.c (print_insn_alpha): Use the machine type to
1644 decide which PALcode set to include.
1648 * sparc-opc.c (FBRX): Fix typo in ",a,pn %fcc3" case.
1652 * d30v-opc.c (d30v_opcode_table): Add FLAG_MUL32 to MAC, MACS,
1653 MSUB and MSUBS instructions.
1657 * ppc-opc.c (powerpc_operands): Omit parens around additions in
1658 operand name macros.
1663 * m68k-opc.c: Correct mulsl and mulul to use q rather than D, a,
1664 +, -, and d for ColdFire.
1667 * ppc-opc.c (insert_mbe): Handle wrapping bitmasks.
1668 (extract_mbe): Likewise.
1672 * m10300-opc.c: Fix typo in udf20 .. udf25 instruction opcodes.
1674 * m10300-opc.c: First cut at UDF instructions.
1678 * m32r-opc.c: Regenerate (remove semantic descriptions).
1682 * arm-dis.c (print_insn_big_arm): Fix indentation.
1683 (print_insn_little_arm): Likewise.
1687 * arm-dis.c (print_insn_big_arm): Check for thumb symbol
1689 (print_insn_little_arm): Likewise.
1693 Move all global state data into opcode table struct, and treat
1694 opcode table as something that is "opened/closed".
1695 * cgen-asm.c (all fns): New first arg of opcode table descriptor.
1696 (cgen_asm_init): Delete.
1697 (cgen_set_parse_operand_fn): New function.
1698 * cgen-dis.c (all fns): New first arg of opcode table descriptor.
1699 (cgen_dis_init): Delete.
1700 * cgen-opc.c (all fns): New first arg of opcode table descriptor.
1701 (cgen_current_{opcode_table_mach,endian}): Delete.
1702 * m32r-asm.c,m32r-dis.c,m32r-opc.c,m32r-opc.h: Regenerate.
1706 * d30v-opc.c (d30v_opcode_table): Add new "LKR" flag to some
1711 * m10300-opc.c: Add entries for "no_match_operands" field in
1716 * m32r-asm.c,m32r-opc.c: Regenerate (-Wall cleanups).
1720 * m32r-opc.h,m32r-opc.c,m32r-asm.c,m32r-dis.c: Regenerate.
1724 * i386-dis.c (ckprefix): Handle fwait specially only when it isn't
1726 (dofloat): Correct test for fnstsw. Print `fnstsw %ax' rather
1728 (OP_J): Remove unnecessary subtraction when 16-bit displacement
1729 will be masked later.
1733 * m32r-opc.h (CGEN_MIN_INSN_SIZE): New #define.
1737 * m32r-asm.c,m32r-dis.c,m32r-opc.c,m32r-opc.h: Regenerate.
1741 * m10300-dis.c: Only recognize instructions from the currently
1743 * m10300-opc.c: Add field indicating the particular variant of
1744 the mn10300 each instruction is available on.
1748 * configure.in: For bfd_vax_arch, build vax-dis.lo.
1749 * Makefile.am: Rebuild dependencies.
1750 (CFILES): Add vax-dis.c.
1751 (ALL_MACHINES): Add vax-dis.lo.
1752 * aclocal.m4: Rebuild with current libtool.
1753 * configure, Makefile.in: Rebuild.
1757 * vax-dis.c: New file, from work by Pauline Middelink
1759 * disassemble.c (ARCH_vax): Define if ARCH_all.
1760 (disassembler): Add case for ARCH_vax.
1761 * makefile.vms: Support compilation on vms/vax.
1765 * m10200-dis.c (print_insn_mn10200): Fix various non-portabilities
1766 related to sign extension and the size of ints.
1770 * m10300-opc.c: Support one operand "asr", "lsr" and "asl"
1771 instructions. Support (sp) addressing mode by expanding it into
1776 * mips-dis.c (_print_insn_mips): Fix argument interchange typo.
1780 * m10200-dis.c (print_insn_mn10200): Recognize 'break' pseudo-op.
1784 * i386-dis.c: Add support for fxsave, fxrstor, sysenter and
1789 * mips-dis.c (print_insn_little_mips): Previously, instruction
1790 printing references the symbol table to determine whether the
1791 instruction resides in a block regular instructions or mips16
1792 instructions. However, when the disassembler gets used in other
1793 environments where the symbol table is not present, we no longer
1794 rely in the symbol table, rather, use the low bit of the
1795 instructions address to guess. There should be no change for usage
1796 of the disassembler in host based programs, gdb, objdump.
1797 (print_insn_big_mips): ditto.
1798 (print_insn_mips): ditto
1802 * m10200-dis.c (print_insn_mn10200): Don't bomb on unknown opcodes.
1806 * m10300-opc.c (mn10300_opcodes): Change opcode for "syscall".
1810 * i386-dis.c (index16): Add '%' to register names. Use ','
1815 * i386-dis.c: Don't print opcode suffix when we can figure out the
1816 size (and gas can!) by register operands, or from the default
1818 (putop): Handle 'A', 'B', 'L', 'P', 'Q', 'R' macros. Rename 'C'
1820 (dis386, dis386_twobyte, grps): Use new suffix macros.
1821 (dis386): Correct imul Ib to imul sIb. Change jnl to jge to be
1822 consistent. Add suffix for call, jmp, lcall, ljmp, iret. Reverse
1823 order of cmps operands to agree with Intel docs. Correct operand
1824 of aad and aam (Ib -> sIb). Change ud2b from 0fb8 to 0fb9 to
1825 agree with Intel docs.
1826 (print_insn_x86): Print orphan fwait before other prefixes.
1827 Return correct byte count for orphan fwait with prefixes. Don't
1828 print `bound' operands in reverse order.
1829 (ckprefix): Stop accumulating prefixes if we get fwait.
1830 (OP_DIR): Print `$' before Ap operands of ljmp, lcall.
1834 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
1835 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
1839 Fix problems when bfd_vma is wider than long.
1840 * i386-dis.c: Make op_address and start_pc unsigned.
1841 (set_op): Make parameter unsigned.
1842 (print_insn_x86): Cast to bfd_vma when passing a value to
1844 * ns32k-dis.c (CORE_ADDR): Don't define.
1845 (print_insn_ns32k): Change type of addr to bfd_vma. Use
1846 bfd_scan_vma to read back address.
1847 (print_insn_arg): Change type of addr to bfd_vma. Use sprintf_vma
1849 * m68k-dis.c (COERCE32): Cast to bfd_signed_vma to avoid overflow.
1850 (NEXTULONG): New definition.
1851 (print_insn_m68k): Avoid overflow when computing third argument of
1853 (print_insn_arg): Use NEXTULONG to fetch 32 bit address values.
1854 Use disp instead of val to store offset values.
1855 (print_indexed): Use base_disp instead of word to store base
1856 displacement, to avoid overflow.
1857 * m10300-dis.c (disassemble): Cast value to long when computing
1858 pc-relative address, to get correct sign extension.
1862 * m32r-opc.c: Regenerate.
1866 * arm-opc.h (thumb_opcodes): Display 'add rx, rY, #0' insns as
1871 * d30v-opc.c: Remove FALG_MUL32 attribyte from MULX2H insn.
1875 * i386-dis.c: Combine aflag and dflag into sizeflag. Change OP_*
1877 (OP_DSreg): Rename from OP_DSSI.
1878 (OP_ESreg): Rename from OP_ESDI.
1879 (Xb, Xv, Yb, Yv): Use index reg code, not b_mode or v_mode.
1881 (append_seg): Rename from append_prefix.
1882 (ptr_reg): New function.
1883 (dis386): Add S suffix to pushf, popf, ret, lret, enter, leave.
1885 (PREFIX_ADDR): Rename from PREFIX_ADR.
1886 (float_reg): Add non-broken opcodes for people who don't want
1891 * m68k-opc.c (tstb, tstw, tstl): Don't allow pcrel on
1896 * i386-dis.c (dis386): Change 0x60 to "pushaS", 0x61 to "popaS".
1900 * ppc-opc.c (powerpc_macros): Support shifts and rotates of size
1901 0; produce error message for shifts of size 32 (or 64 for 64-bit
1902 shifts), because the hardware doesn't support them.
1906 * d30v-opc.c: Add new operand: Ra3. Change SHORT_B3, SHORT_B3b,
1907 LONG_2, LONG_2b formats to use this new operand.
1911 * sparc-dis.c (compute_arch_mask): Added bfd_mach_sparc_sparclite_le.
1915 * sparc-dis.c (print_insn_sparc): big endian instruction / little
1916 endian data support.
1920 * d30v-opc.c (d30v_format_table): Change definition of SHORT_B3
1921 and SHORT_B3b formats to use Rb instead of Ra.
1923 Add FLAG_MUL16 to MUL2XH opcode.
1925 Add FLAG_ADDSUBppp to SRC and SATHp opcodes to implement extension
1926 to existing 1.1.1 parallelisation prohibition procedure.
1930 * m32r-asm.c,m32r-dis.c: Regenerate.
1934 * mips-dis.c (print_mips16_insn_arg): Handle type ']' correctly
1935 with a shift count of 0.
1939 * cgen-opc.c (cgen_hw_lookup_by_name): Renamed from cgen_hw_lookup.
1940 (cgen_hw_lookup_by_num): New function.
1944 * m32r-asm.c: Regenerate (handle uppercase HIGH/SHIGH/LOW/SDA).
1948 * sparc-dis.c (print_insn_sparc): Always fetch instructions
1949 as big-endian on SPARClite.
1953 * d30v-opc.c (pre_defined_register): Remove alias for r0.
1957 * po/Make-in (install-info): New target.
1961 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
1962 * configure: Rebuild.
1966 * mips-opc.c (teq,tge,tgeu,tlt,tltu,tne): Added three-operand
1967 variety of ISA2 instructions to set bottom ten bits of trap code.
1971 * Makefile.am (config.status): Add explicit target so that
1972 config.status depends upon bfd/configure.in.
1973 * Makefile.in: Rebuild.
1977 * mips-opc.c (break, sdbbp): Added two-operand variety of ISA1
1978 instructions to set bottom ten bits of break code.
1979 * mips-dis.c (print_insn_arg): Implement 'q' operand format used
1980 for above optional argument.
1984 * makefile.vms: Run dec c with /nodebug.
1988 * Makefile.in: Rebuilt.
1989 * Makefile.am: Regenerated dependencies with mkdep.
1991 * opintl.h (_): Define as dgettext.
1995 * cgen-asm.c: Internationalised.
1996 * m32r-asm.c: Internationalised.
1997 * m32r-dis.c: Internationalised.
1998 * m32r-opc.c: Internationalised.
2000 * aclocal.m4: Regenerated.
2001 * configure: Regenerated.
2002 * Makefile.am (POTFILES): Remove inclusion of BFD_H.
2003 * Makefile.in: Rebuild.
2004 * po/POTFILES.in: Rebuilt using rule in Makefile.in.
2005 * po/opcodes.pot: Rebuilt after changing POTFILES.in.
2009 * configure.in: Call AC_ISC_POSIX near start. Move CY_GNU_GETTEXT
2011 * aclocal.m4, configure: Rebuild with current tools.
2015 * opintl.h: New file - contains internationalisation macros used
2016 by source files in this directory.
2017 * po/: New subdirectory - contains internationalisation files.
2018 * po/Make-in: New file - Makefile constructor.
2019 * po/POTFILES.in: New file - list of files in opcodes directory
2020 that should be scan for internationalisation macros.
2021 * po/opcodes.pot: New file - list of internationisation strings
2022 found in files mentioned in po/POTFILES.in.
2023 * Makefile.am: Add rule to build po/POTFILES.in. Add SUBDIRS
2024 entry. Add intl directory to include paths.
2025 * acconfig.h: Add ENABLE_NLS, HAVE_CATGETS, HAVE_GETEXT,
2026 HAVE_STRCPY, HAVE_LC_MESSAGES
2027 * configure.in: Add rule to build Makefile in po subdirectory.
2028 * Makefile.in: Rebuilt.
2029 * aclocal.m4: Rebuilt.
2030 * config.in: Rebuilt.
2031 * configure: Rebuilt.
2032 * alpha-opc.c: Internationalised.
2033 * arc-dis.c: Internationalised.
2034 * arc-opc.c: Internationalised.
2035 * arm-dis.c: Internationalised.
2036 * cgen-asm.c: Internationalised.
2037 * d30v-dis.c: Internationalised.
2038 * dis-buf.c: Internationalised.
2039 * h8300-dis.c: Internationalised.
2040 * h8500-dis.c: Internationalised.
2041 * i386-dis.c: Internationalised.
2042 * m10200-dis.c: Internationalised.
2043 * m10300-dis.c: Internationalised.
2044 * m68k-dis.c: Internationalised.
2045 * m88k-dis.c: Internationalised.
2046 * mips-dis.c: Internationalised.
2047 * ns32k-dis.c: Internationalised.
2048 * opintl.h: Internationalised.
2049 * ppc-opc.c: Internationalised.
2050 * sparc-dis.c: Internationalised.
2051 * v850-dis.c: Internationalised.
2052 * v850-opc.c: Internationalised.
2056 * cgen-asm.c (cgen_current_opcode_table): Renamed from ..._data.
2057 (asm_hash_table_entries): New variable.
2058 (cgen_asm_init): Free asm_hash_table_entries.
2059 (hash_insn_array,hash_insn_list): New functions.
2060 (build_asm_hash_table): Use them. Hash macro insns as well.
2061 (cgen_asm_lookup_insn): Update.
2062 * cgen_dis.c (cgen_current_opcode_table): Renamed from ..._data.
2063 (dis_hash_table_entries): New variable.
2064 (cgen_dis_init): Free dis_hash_table_entries.
2065 (hash_insn_array,hash_insn_list): New functions.
2066 (build_dis_hash_table): Use them. Hash macro insns as well.
2067 (cgen_dis_lookup_insn): Update.
2068 * cgen-opc.c (cgen_current_opcode_table): Renamed from ..._data.
2069 (cgen_set_cpu,cgen_hw_lookup,cgen_insn_count): Update.
2070 (cgen_macro_insn_count): New function.
2071 * m32r-opc.h,m32r-opc.c,m32r-asm.c,m32r-dis.c: Regenerate.
2075 * i386-dis.c (OP_DSSI): Print segment override.
2079 * arm-dis.c (print_insn_arm): Add "_all" extension to 'C'
2084 * Makefile.am (libopcodes_la_LIBADD): Add @WIN32LIBADD@.
2085 (libopcodes_la_LDFLAGS): Add @WIN32LDFLAGS@.
2086 * configure.in: Define and substitute WIN32LDFLAGS and
2088 * aclocal.m4: Rebuild with new libtool.
2089 * configure, Makefile.in: Rebuild.
2093 * m32r-opc.c: Regenerate.
2097 * Makefile.am (stamp-lib): Check that .libs/libopcodes.a exists
2098 before trying to copy it.
2099 * Makefile.in: Rebuild.
2103 * m32r-opc.c: Use signed immediate values for CMPUI instruction.
2107 * ns32k-dis.c (bit_extract_simple): New function to extract bits
2108 from an arbitrary valid buffer instead of fetching them on demand
2110 (invalid_float): use bit_extract_simple() instead of bit_extract().
2115 * i386-dis.c (dis386): Change 0x8c and 0x8e to movS, and change Ew
2120 * Branched binutils 2.9.
2124 * d30v-dis.c (print_insn_d30v): Don't use uninitialized "num" when
2125 disassembling last 4 bytes of a section.
2129 Fix some gcc -Wall warnings:
2130 * arc-dis.c (print_insn): Add casts to avoid warnings.
2131 * cgen-opc.c (cgen_keyword_lookup_name): Likewise.
2132 * d10v-dis.c (dis_long, dis_2_short): Likewise.
2133 * m10200-dis.c (disassemble): Likewise.
2134 * m10300-dis.c (disassemble): Likewise.
2135 * ns32k-dis.c (print_insn_ns32k): Likewise.
2136 * ppc-opc.c (insert_ral, insert_ram): Likewise.
2137 * cgen-dis.c (build_dis_hash_table): Remove used local variables.
2138 * cgen-opc.c (cgen_keyword_search_next): Likewise.
2139 * d10v-dis.c (dis_long, dis_2_short): Likewise.
2140 * d30v-dis.c (print_insn_d30v, lookup_opcode): Likewise.
2141 * ns32k-dis.c (bit_extract, print_insn_ns32k): Likewise.
2142 * tic80-dis.c (print_one_instruction): Likewise.
2143 * w65-dis.c (print_operand): Likewise.
2144 * z8k-dis.c (fetch_data): Likewise.
2145 * a29k-dis.c: Add return type for find_byte_func_type.
2146 * arc-opc.c: Include <stdio.h>. Remove declarations of
2147 insert_multshift and extract_multshift.
2148 * d30v-dis.c (lookup_opcode): Parenthesize assignments in
2150 (extract_value): Fully parenthesize expression.
2151 * h8500-dis.c (print_insn_h8500): Initialize local variables.
2152 * h8500-opc.h (h8500_table): Fully bracket initializer.
2153 * w65-opc.h (optable): Likewise.
2154 * i386-dis.c (print_insn_x86): Declare aflag and flag parameters.
2155 * i386-dis.c (OP_E): Initialize local variables.
2156 * m10200-dis.c (print_insn_mn10200): Likewise.
2157 * mips-dis.c (print_insn_mips16): Likewise.
2158 * sh-dis.c (print_insn_shx): Likewise.
2159 * v850-dis.c (print_insn_v850): Likewise.
2160 * ns32k-dis.c (print_insn_arg): Declare.
2161 (get_displacement, invalid_float): Declare.
2162 (list_search, sign_extend, flip_bytes): Declare return type.
2163 (get_displacement): Likewise.
2164 (print_insn_arg): Likewise. Make d int. Fix sprintf format
2166 (print_insn_ns32k): Make i unsigned.
2167 (invalid_float): Make static. Declare type of val.
2168 * tic30-dis.c (print_par_insn): Make i size_t. Don't check strlen
2169 on each for iteration.
2170 * tic30-dis.c (get_indirect_operand): Likewise.
2171 * z8k-dis.c (print_insn_z8001): Declare return type.
2172 (print_insn_z8002): Likewise.
2173 (unparse_instr): Fix sprintf format strings.
2177 * mips-opc.c: Add "sync.l" and "sync.p".
2181 * m68k-dis.c (print_insn_m68k): Use info->mach to select the
2182 default m68k variant to recognize.
2184 * i960-dis.c (pinsn): Change type of first argument to bfd_vma.
2185 (ctrl, cobr, mem, ea): Likewise.
2186 (print_addr): Likewise. Remove cast.
2187 (ea): Cast argument of print_addr to bfd_vma.
2189 * cgen-asm.c (cgen_parse_signed_integer): Fix type of local
2191 (cgen_parse_unsigned_integer): Likewise.
2192 (cgen_parse_address): Likewise.
2196 * i960-dis.c (ctrl): Add full braces to structure initialization.
2197 (cobr, mem, reg): Likewise.
2198 (ea): Correct parenthesization in expression.
2200 * cgen-asm.c: Include <ctype.h>.
2201 (build_asm_hash_table): Remove unused local variable i.
2202 (cgen_parse_keyword): Add casts to avoid warnings.
2204 * arm-dis.c (print_insn_big_arm): Only call coffsymbol for a COFF
2205 symbol. Fix indentation.
2206 (print_insn_little_arm): Likewise.
2210 * configure.in: Use AM_DISABLE_SHARED.
2211 * aclocal.m4, configure: Rebuild with libtool 1.2.
2215 These patches are courtesy of Jonathan Walton and Tony Thompson
2218 * arm-dis.c (print_insn_thumb): Ignore bottom two bits of PC
2221 * arm-opc.h (thumb_opcodes): Annotate PC relative addresses with
2222 both the offset and the label closest to the destination.
2226 * m32r-opc.h: Regenerate.
2230 * m32r-opc.h,m32r-opc.c,m32r-asm.c,m32r-dis.c: Regenerate.
2234 * arm-dis.c (print_insn_big_arm, print_insn_little_arm): Do not
2235 assume that info->symbols is non-empty.
2239 * alpha-opc.c (cvtqs) There is no such thing.
2240 (cvttq): Missing most of the /*d variants.
2244 * d30v-opc.c (d30v_opcode_table): Indicate which instructions are
2245 delayed branches or jumps.
2249 * arm-dis.c (print_insn_{big,little}_arm): info->symbol changed
2251 * mips-dis.c (print_insn_{big,little}_mips): Likewise.
2252 * tic30-dis.c (print_branch): Likewise.
2256 * arm-dis.c (print_insn_big_arm, print_insn_little_arm): Remove
2257 saved_symbol code as it is no longer needed.
2261 * cgen-asm.c: Include symcat.h.
2262 * cgen-dis.c,cgen-opc.c: Ditto.
2263 * m32r-asm.c,m32r-dis.c,m32r-opc.h,m32r-opc.c: Regenerate.
2267 * mips-dis.c (print_insn_arg): Do not prefix 'P' arguments with '$'.
2271 * m32r-opc.[ch]: Regenerate.
2275 * cgen-asm.c (cgen_parse_{signed,unsigned}_integer): Delete min,max
2276 arguments. Don't perform validation here.
2277 * m32r-asm.c,m32r-dis.c,m32r-opc.c: Regenerate.
2281 * m32r-opc.c: Regenerate.
2285 * Makefile.am (AUTOMAKE_OPTIONS): Define.
2286 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
2290 * m10300-dis.c (print_insn_mn10300): Recognize break instruction.
2294 * configure.in: Get the version number from BFD.
2295 * configure: Rebuild.
2298 * Makefile.am (libopcodes_la_LDFLAGS): Define.
2299 * Makefile.in: Rebuild.
2303 * m32r-opc.c: Regenerate.
2304 * m32r-opc.h: Regenerate.
2308 * m32r-opc.c: Regenerate.
2312 Fix rac to accept only a0:
2313 * d10v-opc.c (d10v_predefined_registers, d10v_operands, d10v_opcodes):
2314 Split OPERAND_ACC into OPERAND_ACC0 and OPERAND_ACC1.
2315 Introduce OPERAND_GPR.
2316 * d10v-dis.c (print_operand): Likewise.
2320 * cgen-opc.c (cgen_set_cpu): Delete init of hw list `next' chain.
2321 (cgen_hw_lookup): Make result const.
2322 * m32r-opc.h, m32r-opc.c, m32r-asm.c, m32r-dis.c: Regenerate.
2326 * configure, aclocal.m4: Rebuild with new libtool.
2330 * d30v-opc.c (repeat{,i} instructions): Repeat/repeati
2331 instructions use a PC relative branch, not absolute.
2335 * configure.in: Set libtool_enable_shared rather than
2336 libtool_shared. Remove diversion hack.
2337 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
2341 * cgen-opc.c (cgen_set_cpu): Initialize hardware table.
2342 * m32r-opc.h, m32r-opc.c, m32r-asm.c, m32r-dis.c: Regenerate.
2346 * tic30-dis.c: New file.
2347 * disassemble.c (disassembler): Add bfd_arch_tic30 case.
2348 * configure.in: Handle bfd_tic30_arch.
2349 * Makefile.am: Rebuild dependencies.
2350 (CFILES): Add tic30-dis.c
2351 (ALL_MACHINES): Add tic30-dis.lo.
2352 * configure, Makefile.in: Rebuild.
2356 * m32r-opc.h (HAVE_CPU_M32R): Define.
2360 * v850-opc.c (insertion routines): If both alignment and size is
2361 wrong then report this.
2365 * mips-dis.c (_print_insn_mips): Set target_processor as appropriate.
2366 Only recognize instructions for the current target_processor.
2370 * d10v-dis.c (PC_MASK): Correct value.
2371 (print_operand): If there's a reloc, don't calculate the
2372 address because they could be in different sections.
2376 * mips-opc.c (mips_builtin_opcodes): Move 4010's "addciu"
2377 instruction after the 4650's "mul" instruction; nobody's using the
2378 4010 these days. If object files someday indicate which processor
2379 variant they're intended for, we can do a better job at this.
2383 * cgen-asm.c (build_asm_hash_table): Traverse compiled in table using
2384 table provided entry size. Use CGEN_INSN_MNEMONIC.
2385 (cgen_parse_keyword): Rewrite.
2386 * cgen-dis.c (build_dis_hash_table): Traverse compiled in table using
2387 table provided entry size. Use CGEN_INSN_MASK_BITSIZE.
2388 * cgen-opc.c: Clean up pass over `struct foo' usage.
2389 (cgen_keyword_lookup_value): Handle "" entry.
2390 (cgen_keyword_add): Likewise.
2394 * mips-opc.c: Add FP_D to s.d instruction flags.
2398 * m68k-opc.c (halt, pulse): Enable them on the 68060.
2402 * tic80-opc.c (tic80_opcodes): Revert change that put the 32 bit
2403 PC relative offset forms before the 15 bit forms. An assembler command
2404 line option now chooses the default.
2408 * d30v-opc.c (d30v_opcode_table): Set new flags bits
2409 FLAG_{2WORD,MUL{16,32},ADDSUBppp}, in appropriate instructions.
2413 * configure: Only build libopcodes shared if --enable-shared's value
2414 was `yes', or was set to `*opcodes*'.
2415 * aclocal.m4: Likewise.
2416 * NOTE: this really needs to be fixed in libtool/libtool.m4, the
2417 original source of this bit of code. It's not clear what the best fix
2422 * tic80-opc.c (OFF_SL_PC, OFF_SL_BR): Minor formatting change.
2423 (tic80_opcodes): Reorder table entries to put the 32 bit PC relative
2424 offset forms before the 15 bit forms, to default to the long forms.
2428 * alpha-opc.c (cvttq/*u*): Remove, as that suffix is invalid.
2432 * arm-dis.c (print_insn_little_arm): Prevent examination of stored
2433 symbol if none is present.
2434 (print_insn_big_arm): Prevent examination of stored symbol if
2439 * d10v-opc.c (d10v_opcodes): Correct entry for RTE.
2443 * disassemble.c: Remove disasm_symaddr() function.
2445 * arm-dis.c: Use info->symbol instead of info->flags to determine
2446 if disassmbly should be in Thumb or Arm mode.
2450 * arm-dis.c: Add support for disassembling Thumb opcodes.
2451 (print_insn_thumb): New function.
2453 * disassemble.c (disasm_symaddr): New function.
2455 * arm-opc.h: Display nop pseudo ops alongside equivalent disassembly.
2456 (thumb_opcodes): Table of Thumb opcodes.
2460 * m68k-opc.c (btst): Change Dd@s to Dd;b.
2462 * m68k-dis.c (print_insn_arg): Recognize 'm', 'n', 'o', 'p', 'q',
2463 and 'v' as operand types.
2467 * m68k-opc.c: Add argument for lpstop. From Olivier Carmona
2469 * m68k-dis.c (print_insn_m68k): Handle special case of lpstop,
2470 which has a two word opcode with a one word argument.
2474 * d30v-opc.c (d30v_opcode_table, case cmpu): Immediate field is
2475 unsigned, not signed.
2476 (d30v_format_table): Add SHORT_CMPU cases for cmpu.
2480 * d10v-dis.c (print_operand):
2481 Split OPERAND_FLAG into OPERAND_FFLAG and OPERAND_CFLAG.
2485 * d10v-opc.c (OPERAND_FLAG): Split into:
2486 (OPERAND_FFLAG, OPERAND_CFLAG) .
2492 * mips-opc.c: Move the INSN_MACRO ISA value to the membership
2493 field for all INSN_MACRO's.
2494 * mips16-opc.c: same
2498 * mips-opc.c (sync,cache): These are 3900 insns.
2502 sh-opc.h (sh_table): Remove ftst/nan.
2506 * mips-opc.c (ffc, ffs): Fix mask.
2510 * d30v-opc.c (pre_defined_registers): Add eit_vb, int_s, and int_m
2515 * mips-opc.c: Fix bug in mask for "not" pseudo-instruction.
2516 (WR_HILO, RD_HILO, MOD_HILO): New macros.
2520 * mips-opc.c: Fix bug in mask for "not" pseudo-instruction.
2521 (WR_HILO, RD_HILO, MOD_HILO): New macros.
2525 * v850-dis.c (disassemble): Replace // with /* ... */
2529 * sparc-opc.c: Add wr & rd for v9a asr's.
2530 * sparc-dis.c (print_insn_sparc): Recognize '_' and '/' for v9a asr's.
2531 (v9a_asr_reg_names): New variable.
2536 * sparc-opc.c (v9notv9a): New insn type.
2537 (IMPDEP): Move to the end to not conflict with edge8 et al.
2542 * mips-opc.c (bnezl,beqzl): Mark these as also tx39.
2546 * mips-opc.c: Note that 'jalx' is (probably incorrectly) marked I1.
2550 * v850-dis.c (disassemble): Use new symbol_at_address_func() field
2551 of disassemble_info structure to determine if an overlay address
2552 has a matching symbol in low memory.
2554 * dis-buf.c (generic_symbol_at_address): New (dummy) function for
2555 new symbol_at_address_func field in disassemble_info structure.
2559 * v850-opc.c (extract_d22): Use signed arithmatic.
2563 * mips-opc.c: Three op mult is not an ISA insn.
2567 * mips-opc.c: Fix formatting.
2571 * i386-dis.c (OP_E): Explicitly sign extend 8 bit values, rather
2572 than assuming that char is signed. Explicitly sign extend 16 bit
2573 values, rather than assuming that short is 16 bits.
2574 (OP_sI, OP_J, OP_DIR): Likewise.
2578 * v850-dis.c (v850_sreg_names): Use symbolic names for higher
2583 * v850-opc.c: Fix typo in comment.
2585 * v850-dis.c (disassemble): Add test of processor type when
2586 determining opcodes.
2590 * configure.in: Use a diversion to set enable_shared before the
2591 arguments are parsed.
2592 * configure: Rebuild.
2596 * m68k-opc.c (TBL1): Use ! rather than `.
2597 * m68k-dis.c (print_insn_arg): Remove ` operand specifier.
2601 * m68k-opc.c: Correct bchg, bclr, bset, and btst on ColdFire.
2603 * m68k-opc.c: Accept tst{b,w,l} with immediate operands on cpu32.
2605 * m68k-opc.c: Correct movew of an immediate operand to %sr or %ccr
2608 * configure.in: Call AC_CHECK_TOOL before AM_PROG_LIBTOOL.
2609 * aclocal.m4: Rebuild with new libtool.
2610 * configure: Rebuild.
2614 * v850-opc.c ("cmov"): Order reg param r1, r2 not r2, r2.
2618 * sparc-opc.c (sparclet_cpreg_table): Add %ccsr2, %cccrr, %ccrstr.
2622 * v850-opc.c (v850_opcodes): Further rearrangements.
2626 * d30v-opc.c (rot2h, sra2h, srl2h insns): Revert last change.
2630 * v850-opc.c (v850_opcodes): Fields reordered to allow assembler
2635 * mips-opc.c: Added tx39 insns sdbbp, rfe, and deret.
2639 * v850-opc.c: Initialise processors field of v850_opcode structure.
2643 Merge changes from Martin Hunt:
2645 * d30v-opc.c: Change mvfacc to accept 6-bit unsigned values.
2647 * d30v-opc.c (pre_defined_registers): Add control registers from 0-63.
2648 (d30v_opcode_tabel): Add dbt, rtd, srah, and srlh instructions. Fix
2649 rot2h, sra2h, and srl2h to use new SHORT_A5S format.
2651 * d30v-dis.c (print_insn): Fix disassembly of SHORT_D2 opcodes.
2653 * d30v-dis.c (print_insn): First operand of d*i (delayed
2654 branch) instructions is relative.
2656 * d30v-opc.c (d30v_opcode_table): Change form for repeati.
2657 (d30v_operand_table): Add IMM6S3 type.
2658 (d30v_format_table): Change SHORT_D2. Add LONG_Db.
2660 * d30v-dis.c: Fix bug with ".s" and ".l" extensions
2661 and cmp instructions.
2663 * d30v-opc.c: Correct entries for repeat*, and sat*.
2664 Make IMM5 unsigned. Create IMM6U and IMM12S3U operand
2665 types. Correct several formats.
2667 * d30v-opc.c: (pre_defined_registers): Add dpsw and dpc.
2669 * d30v-opc.c (pre_defined_registers): Change control registers.
2671 * d30v-opc.c (d30v_format_table): Correct SHORT_C1 and
2672 SHORT_C2. Manual was incorrect.
2674 * d30v-dis.c (lookup_opcode): Return value now indicates
2675 if an opcode has a short and a long form. Used for deciding
2676 to append a ".s" or ".l".
2677 (print_insn): Append a ".s" to an instruction if it is
2678 the short form and ".l" if it is a long form. Do not append
2679 anything if the instruction has only one possible size.
2681 * d30v-opc.c: Change mulx2h to require an even register.
2682 New form: SHORT_A2; a SHORT_A form that needs an even
2683 register as the first operand.
2685 * d30v-dis.c (print_insn_d30v): Fix problem where the last
2686 instruction was not being disassembled if there were an odd
2687 number of instructions.
2689 * d30v-opc.c (SHORT_M2, LONG_M2): Two new forms.
2693 * v850-dis.c (disassemble): Improved display of register lists.
2697 * sparc-opc.c (sparc_opcodes): Fix assembler args to
2698 fzeros, fones, fsrc1, fsrc1s, fsrc2s, fnot1, fnot1s, fnot2s,
2699 fors, fnors, fands, fnands, fxors, fxnors, fornot1s, fornot2s,
2700 fandnot1s, fandnot2s.
2704 * sparc-opc.c (sparc_opcodes): Fix op3 field for fcmpq/fcmpeq.
2708 * cgen-asm.c (cgen_parse_address): New argument resultp.
2709 All callers updated.
2710 * m32r-asm.c (parse_h_hi16): Right shift numbers by 16.
2714 * mn10200-dis.c (disassemble): PC relative instructions are
2715 relative to the next instruction, not the current instruction.
2719 * v850-dis.c (disassemble): Only signed extend values that are not
2720 returned by extract functions.
2721 Remove use of V850_OPERAND_ADJUST_SHORT_MEMORY flag.
2725 * v850-opc.c: Update comments. Remove use of
2726 V850_OPERAND_ADJUST_SHORT_MEMORY. Fix several operand patterns.
2730 * v850-opc.c (MOVHI): Immediate parameter is unsigned.
2734 * configure: Rebuilt with latest devo autoconf for NT support.
2738 * v850-dis.c (disassemble): Use curly brace syntax for register
2741 * v850-opc.c (v850_opcodes[]): Add NOT_R0 flag to decect cases
2742 where r0 is being used as a destination register.
2746 * v850-opc.c (v850_opcodes[]): Move divh opcodes next to each other.
2750 * alpha-opc.c (alpha_opcodes): Fix hw_rei_stall mungage.
2754 * v850-opc.c (v850_opcodes[]): Remove use of flag field.
2755 * v850-opc.c (v850_opcodes[]): Add support for reversed short load
2760 * configure (cgen_files): Add support for v850e target.
2761 * configure.in (cgen_files): Add support for v850e target.
2765 * configure (cgen_files): Add support for v850ea target.
2766 * configure.in (cgen_files): Add support for v850ea target.
2770 * configure.in (bfd_arc_arch): Add.
2771 * configure: Rebuild.
2772 * Makefile.am (ALL_MACHINES): Add arc-dis.lo, arc-opc.lo.
2773 * Makefile.in: Rebuild.
2774 * arc-dis.c, arc-opc.c: New files.
2775 * disassemble.c (ARCH_all): Define ARCH_arc.
2776 (disassembler): Add ARC support.
2780 * v850-dis.c (disassemble): Add support for v850EA instructions.
2782 * v850-opc.c (insert_i5div, extract_i5div): New Functions.
2783 (v850_opcodes): Add v850EA instructions.
2785 * v850-dis.c (disassemble): Add support for v850E instructions.
2787 * v850-opc.c (insert_d5_4, extract_d5_4, insert_d16_16,
2788 extract_d16_16, insert_i9, extract_i9, insert_u9, extract_u9,
2789 insert_spe, extract_spe): New Functions.
2790 (v850_opcodes): Add v850E instructions.
2792 * v850-opc.c: Reorganised and re-layed out to improve readability
2797 * configure: Rebuild with autoconf 2.12.1.
2801 * aclocal.m4, configure: Rebuild with new automake patches.
2805 * configure.in: Set enable_shared before AM_PROG_LIBTOOL.
2806 * acinclude.m4: Just include acinclude.m4 from BFD.
2807 * aclocal.m4, configure: Rebuild.
2811 * Makefile.am: New file, based on old Makefile.in.
2812 * acconfig.h: New file.
2813 * acinclude.m4: New file.
2814 * stamp-h.in: New file.
2815 * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL.
2816 Removed shared library handling; now handled by libtool. Replace
2817 AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AM_MAINTAINER_MODE,
2818 AM_CYGWIN32, and AM_EXEEXT. Replace AC_PROG_INSTALL with
2819 AM_PROG_INSTALL. Change all .o files to .lo. Remove stamp-h
2820 handling in AC_OUTPUT.
2821 * dep-in.sed: Change .o to .lo.
2822 * Makefile.in: Now built with automake.
2823 * aclocal.m4: Now built with aclocal.
2824 * config.in, configure: Rebuild.
2828 * mips-opc.c: Fix typo/thinko in "eret" instruction.
2832 * sparc-opc.c (sparc_opcodes): Fix spelling on fpaddX, fpsubX insns.
2834 * sparc-dis.c (sorted_opcodes): New static local.
2835 (struct opcode_hash): `opcode' is pointer to const element.
2836 (build_hash): First arg is now table of sorted pointers.
2837 (print_insn_sparc): Sort opcodes by sorting table of pointers.
2838 (compare_opcodes): Update.
2842 * cgen-opc.c: #include <ctype.h>.
2843 (hash_keyword_name): New arg `case_sensitive_p'. Callers updated.
2844 Handle case insensitive hashing.
2845 (hash_keyword_value): Change type of `value' to unsigned int.
2849 * mips-opc.c (mips_builtin_opcodes): If an insn uses single
2850 precision FP, mark it as such. Likewise for double precision
2851 FP. Mark ISA1 insns. Consolidate duplicate opcodes where
2856 * ppc-opc.c (extract_nsi): make unsigned expression signed before
2858 (UNUSED): remove one level of parens, so MSVC doesn't choke on
2859 nesting depth when all the macros are expanded.
2863 * sparc-opc.c: The fcmp v9a instructions take an integer register
2864 as a destination, not a floating point register. From Christian
2869 * m68k-dis.c (print_insn_arg): Print case 7.2 using %pc@()
2870 syntax. From Roman Hodek
2873 * i386-dis.c (twobyte_has_modrm): Fix pand.
2877 * i386-dis.c (dis386_twobyte): Fix pand and pandn.
2881 * arm-dis.c: Add prototypes for arm_decode_shift and
2886 * mips-opc.c: Add r3900 insns.
2890 * sh-dis.c (print_insn_shx): Change relmask to bfd_vma. Don't
2891 print delay slot instructions on the same line. When using a PC
2892 relative load, add a comment with the value being loaded if it can
2897 * i386-dis.c (dis386[], dis386_twobyte[]): change pushl/popl
2898 to pushS/popS for segment regs and byte constant so that
2899 pushw/popw printed when in 16 bit data mode.
2901 * i386-dis.c (dis386[]): change cwtl, cltd to cWtS, cStd to
2902 print cbtw, cwtd in 16 bit data mode.
2903 * i386-dis.c (putop): extra case W to support above.
2905 * i386-dis.c (print_insn_x86): print addr32 prefix when given
2906 address size prefix in 16 bit address mode.
2910 * sh-dis.c: Reindent. Rename local variable fprintf to
2915 * m32r-opc.c (m32r_cgen_insn_table, cmpui): Undo patch of May 2.
2919 * mips-opc.c (mips_builtin_opcodes): Moved INSN_ISA field into new
2921 * mips16-opc.c (mip16_opcodes): same.
2925 * m68k-opc.c (moveb): Change $d to %d.
2929 * i386-dis.c: (dis386_twobyte): Add MMX instructions.
2930 (twobyte_has_modrm): Likewise.
2932 (OP_MMX, OP_EM, OP_MS): New static functions.
2934 * i386-dis.c: Revert patch of April 4. The output now matches
2939 * m32r-opc.c (m32r_cgen_insn_table, cmpui): Use $uimm16 instead
2944 * m32r-opc.h (CGEN_ARCH): Renamed from CGEN_CPU.
2948 * Makefile.in (install): Depend upon installdirs.
2949 (installdirs): New target.
2954 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
2955 * configure: Rebuild.
2959 * cgen-*.c, m32r-*.c: #include sysdep.h instead of config.h.
2960 Delete string{,s}.h support.
2964 * cgen-asm.c (cgen_parse_operand_fn): New global.
2965 (cgen_parse_{{,un}signed_integer,address}): Update call to
2966 cgen_parse_operand_fn.
2967 (cgen_init_parse_operand): New function.
2968 * m32r-asm.c (parse_insn_normal): cgen_init_parse_operand renamed
2969 from cgen_asm_init_parse.
2970 (m32r_cgen_assemble_insn): New operand `errmsg'.
2971 Delete call to as_bad, return error message to caller.
2972 (m32r_cgen_asm_hash_keywords): #if 0 out.
2976 * m68k-dis.c (print_insn_arg) [case 'd']: Print as address register,
2978 [case 'J']: Fix typo in register name.
2982 * configure.in: Substitute SHLIB_LIBS.
2983 * configure: Rebuild.
2984 * Makefile.in (SHLIB_LIBS): New variable.
2985 ($(SHLIB)): Use $(SHLIB_LIBS).
2989 * cgen-dis.c (build_dis_hash_table): Fix xmalloc size computation.
2991 * cgen-opc.c (hash_keyword_name): Improve algorithm.
2993 * disassemble.c (disassembler): Handle m32r.
2997 * m32r-asm.c, m32r-dis.c, m32r-opc.c, m32r-opc.h: New files.
2998 * cgen-asm.c, cgen-dis.c, cgen-opc.c: New files.
2999 * Makefile.in (CFILES): Add them.
3000 (ALL_MACHINES): Add them.
3001 (dependencies): Regenerate.
3002 * configure.in (cgen_files): New variable.
3003 (bfd_m32r_arch): Add entry.
3004 * configure: Regenerate.
3008 * configure.in: Correct file names for bfd_mn10[23]00_arch.
3009 * configure: Rebuild.
3011 * Makefile.in: Rebuild dependencies.
3013 * d10v-dis.c: Include "ansidecl.h" before "opcode/d10v.h".
3015 * i386-dis.c (float_reg): Swap fsubrp and fsubp. Swap fdivrp and
3020 * Branched binutils 2.8.
3024 * m10200-dis.c: Rename from mn10200-dis.c.
3025 * m10200-opc.c: Rename from mn10200-opc.c.
3026 * m10300-dis.c: Rename from mn10300-dis.c
3027 * m10300-opc.c: Rename from mn10300-opc.c.
3028 * Makefile.in: Update accordingly.
3030 * mips16-opc.c: Add mul and dmul macros.
3034 * makefile.vms: Update CFLAGS, add clean target.
3038 * mips-opc.c: Add "wait". From Ralf Baechle
3041 * configure.in: Add stdlib.h to AC_CHECK_HEADERS list.
3042 * configure, config.in: Rebuild.
3043 * sysdep.h: Include <stdlib.h> if it exists.
3044 * sparc-dis.c: Include <stdio.h> and "sysdep.h". Don't include
3046 * Makefile.in: Rebuild dependencies.
3050 * ppc-opc.c: Add PPC 403 instructions and extended opcodes. From
3053 * mips-opc.c: Add cast when setting mips_opcodes.
3057 * v850-dis.c (disassemble): Fix sign extension problem.
3058 * v850-opc.c (extract_d*): Fix sign extension problems to make
3059 disassembly calculate branch offsets correctly.
3063 * sh-opc.h: Add bf/s and bt/s as synonyms for bf.s and bt.s.
3065 * mips-opc.c: Add dctr and dctw.
3069 * d30v-dis.c (print_insn): Change the way signed constants
3074 * Makefile.in (BFD_H): New variable.
3075 (HFILES): New variable.
3076 (CFILES): Add all C files.
3077 (.dep, .dep1, dep.sed, dep, dep-in): New targets.
3078 Delete old dependencies, and build new ones.
3079 * dep-in.sed: New file.
3083 * m68k-opc.c (m68k_opcode_aliases): Added blo and blo{s,b,w,l}.
3087 * mn10200-opc.c: Change "trap" to "syscall".
3088 * mn10300-opc.c: Add new "syscall" instruction.
3092 * m68k-opc.c (m68k_opcodes): Provide correct entries for mulsl and
3093 mulul insns on the coldfire.
3097 * arm-dis.c (print_insn_arm): Don't print instruction bytes.
3098 (print_insn_big_arm): Set bytes_per_chunk and display_endian.
3099 (print_insn_little_arm): Likewise.
3104 * i386-dis.c (fetch_data): Add prototype.
3105 * m68k-dis.c (fetch_data): Add prototype.
3106 (dummy_print_address): Add prototype. Make static.
3107 * ppc-opc.c (valid_bo): Add prototype.
3108 * sparc-dis.c (build_hash_table): Add prototype.
3109 (is_delayed_branch, compute_arch_mask): Add prototypes.
3110 (print_insn_sparc): Make several local variables const.
3111 (compare_opcodes): Change arguments to const PTR. Add prototype.
3112 * sparc-opc.c (arg): Change name field to be const.
3113 (lookup_name, lookup_value): Add prototypes. Change table and
3114 name parameters to be const.
3115 (sparc_encode_asi): Change name parameter to be const.
3116 (sparc_encode_membar, sparc_encode_prefetch): Likewise.
3117 (sparc_encode_sparclet_cpreg): Likewise.
3118 (sparc_decode_asi): Change return type to be const.
3119 (sparc_decode_membar, sparc_decode_prefetch): Likewise.
3120 (sparc_decode_sparclet_cpreg): Likewise.
3124 * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since
3125 Solaris doesn't like the combined options, and the -f is
3127 (stamp-tshlink, install): Likewise.
3131 * mn10300-opc.c (IMM16_PCREL, SD8N_PCREL, D16_SHIFT): Mark these
3136 * m68k-opc.c (m68k_opcodes): Fix last change for the mc68010.
3140 * m68k-opc.c (m68k_opcodes): Added entries for the tst insns on
3145 * m68k-opc.c (m68k_opcodes): Added swbegl pseudo-instruction.
3149 * tic80-dis.c (print_insn_tic80): Set info->bytes_per_line to 8.
3153 * tic80-opc.c (tic80_predefined_symbols): Define r25 properly.
3157 * m68k-dis.c (NEXTSINGLE, NEXTDOUBLE, NEXTEXTEND): Use
3158 floatformat_to_double to make portable.
3159 (print_insn_arg): Use NEXTEXTEND macro when extracting extended
3164 * mips-opc.c: Initialize mips_opcodes to mips_builtin_opcodes,
3165 and bfd_mips_num_opcodes to bfd_mips_num_builtin_opcodes.
3169 * d10v-dis.c, d10v-opc.c: Change pre_defined_registers to
3170 d10v_predefined_registers and reg_name_cnt to d10v_reg_name_cnt.
3174 * tic80-opc.c (LSI_SCALED): Renamed from this ...
3175 (OFF_SL_BR_SCALED): ... to this, and added the flag
3176 TIC80_OPERAND_BASEREL to the flags word.
3177 (tic80_opcodes): Replace all occurances of LSI_SCALED with
3182 * mips-opc.c: Add macros for cop0, cop1 cop2 and cop3.
3183 Change mips_opcodes from const array to a pointer,
3184 and change bfd_mips_num_opcodes from const int to int,
3185 so that we can increase the size of the mips opcodes table
3190 * tic80-opc.c (tic80_predefined_symbols): Revert change to
3191 store BITNUM values in the table in one's complement form
3192 to match behavior when assembler is given a raw numeric
3193 value for a BITNUM operand.
3194 * tic80-dis.c (print_operand_bitnum): Ditto.
3198 * d30v-opc.c: Removed references to FLAG_X.
3202 * Makefile.in: Add dependencies on ../bfd/bfd.h as required.
3206 * Makefile.in: Added d30v object files.
3207 * configure: (bfd_d30v_arch) Rebuilt.
3208 * configure.in: (bfd_d30v_arch) Added new case.
3209 * d30v-dis.c: New file.
3210 * d30v-opc.c: New file.
3211 * disassemble.c (disassembler) Add entry for d30v.
3215 * tic80-opc.c (tic80_predefined_symbols): Add symbolic
3216 representations for the floating point BITNUM values.
3220 * tic80-opc.c (tic80_predefined_symbols): Store BITNUM values
3221 in the table in one's complement form, as they appear in the
3223 (tic80_symbol_to_value): Use macros to access predefined
3225 (tic80_value_to_symbol): Ditto.
3226 (tic80_next_predefined_symbol): New function.
3227 * tic80-dis.c (print_operand_bitnum): Remove code that did
3228 one's complement for BITNUM values.
3232 * makefile.vms: Remove 8 bit characters. Update to latest
3237 * m68k-opc.c (m68k_opcodes): Add swbeg pseudo-instruction.
3241 * mn10200-opc.c (IMM16_PCREL): This is a signed operand.
3242 (IMM24_PCREL): Likewise.
3246 * mips-dis.c (print_mips16_insn_arg): Use memaddr - 2 as the base
3247 address for an extended PC relative instruction that is not a
3252 * m68k-dis.c (print_insn_m68k): Set bytes_per_chunk and
3257 * tic80-opc.c (tic80_operands): Fix typo '+' -> '|'.
3258 (tic80_opcodes): Sort entries so that long immediate forms
3259 come after short immediate forms, making it easier for
3260 assembler to select the right one for a given operand.
3264 * mips-dis.c (_print_insn_mips): Set bytes_per_chunk and
3266 (print_insn_mips16): Likewise.
3270 * tic80-opc.c (tic80_symbol_to_value): Changed to accept
3271 a symbol class that restricts translation to just that
3272 class (general register, condition code, etc).
3276 * tic80-opc.c (tic80_operands): Add REG_0_E, REG_22_E,
3277 and REG_DEST_E for register operands that have to be
3278 an even numbered register. Add REG_FPA for operands that
3279 are one of the floating point accumulator registers.
3280 Add TIC80_OPERAND_MASK to flags for ENDMASK operand.
3281 (tic80_opcodes): Change entries that need even numbered
3282 register operands to use the new operand table entries.
3283 Add "or" entries that are identical to "or.tt" entries.
3287 * mips16-opc.c: Add new cases of exit instruction for
3289 * mips-dis.c (print_mips16_insn_arg): Display floating point
3290 registers in operands of exit instruction. Print `$' before
3291 register names in operands of entry and exit instructions.
3295 * tic80-opc.c (tic80_predefined_symbols): Table of name/value
3296 pairs for all predefined symbols recognized by the assembler.
3297 Also used by the disassembling routines.
3298 (tic80_symbol_to_value): New function.
3299 (tic80_value_to_symbol): New function.
3300 * tic80-dis.c (print_operand_control_register,
3301 print_operand_condition_code, print_operand_bitnum):
3302 Remove private tables and use tic80_value_to_symbol function.
3306 * d10v-dis.c (print_operand): Change address printing
3307 to correctly handle PC wrapping. Fixes PR11490.
3311 * mn10200-opc.c (mn10200_operands): Make 8 and 16 bit pc-relative
3316 * mips-dis.c (print_insn_mips16): Set insn_info information.
3317 (print_mips16_insn_arg): Likewise.
3319 * mips-dis.c (print_insn_mips16): Better handling of an extend
3320 opcode followed by an instruction which can not be extended.
3324 * m68k-opc.c (m68k_opcodes): Changed operand specifier for the
3325 coldfire moveb instruction to not allow an address register as
3326 destination. Although the documentation does not indicate that
3327 this is invalid, experiments uncovered unexpected behavior.
3328 Added a comment explaining the situation. Thanks to Andreas
3329 Schwab for pointing this out to me.
3333 * tic80-opc.c (tic80_opcodes): Expand comment to note that the
3334 entries are presorted so that entries with the same mnemonic are
3335 adjacent to each other in the table. Sort the entries for each
3336 instruction so that this is true.
3340 * m68k-dis.c: Include <libiberty.h>.
3341 (print_insn_m68k): Sort the opcode table on the most significant
3342 nibble of the opcode.
3346 * tic80-dis.c (tic80_opcodes): Add "wrcr", "vmpy", "vrnd",
3347 "vsub", "vst", "xnor", and "xor" instructions.
3348 (V_a1): Renamed from V_a, msb of accumulator reg number.
3349 (V_a0): Add macro, lsb of accumulator reg number.
3353 * tic80-dis.c (print_insn_tic80): Broke excessively long
3354 function up into several smaller ones and arranged for
3355 the instruction printing function to be callable recursively
3356 to print vector instructions that have both a load and a
3357 math instruction packed into a single opcode.
3358 * tic80-opc.c (tic80_opcodes): Expand comment for vld opcode
3359 to explain why it comes after the other vector opcodes.
3363 * m68k-opc.c (m68k_opcodes): add b, w, or l specifier to coldfire
3364 move insns to handle immediate operands.
3368 * m68k-opc.c (m68k_opcodes): Delete duplicate entry for "cmpil".
3369 fix operand mask in the "moveml" entries for the coldfire.
3373 * tic80-opc.c (V_a, V_m, V_S, V_Z, V_p, OP_V, MASK_V):
3374 New macros for building vector instruction opcodes.
3375 (tic80_opcodes): Remove all uses of FMT_SI, FMT_REG, and
3376 FMT_LI, which were unused. The field is now a flags field.
3377 Remove some opcodes that are possible, but illegal, such
3378 as long immediate instructions with doubles for immediate
3379 values. Add "vadd" and "vld" instructions.
3383 * tic80-opc.c (tic80_operands): Reorder some table entries to make
3384 the order more logical. Move the shift alias instructions ("rotl",
3385 "shl", "ins", "rotr", "extu", "exts", "srl", and "sra" to be
3386 interspersed with the regular sr.x and sl.x instructions. Add
3387 and test new instruction opcodes for "sl", "sli", "sr", "sri", "st",
3388 "sub", "subu", "swcr", and "trap".
3392 * tic80-opc.c (OFF_SS_PC): Renamed from OFF_SS.
3393 (OFF_SL_PC): Renamed from OFF_SL.
3394 (OFF_SS_BR): New operand type for base relative operand.
3395 (OFF_SL_BR): New operand type for base relative operand.
3396 (REG_BASE): New operand type for base register operand.
3397 (tic80_opcodes): Add and test "fmpy", "frndm", "frndn", "frndp",
3398 "frndz", "fsqrt", "fsub", "illop0", "illopF", "ins", "jsr",
3399 "ld", "ld.u", "lmo", "or", "rdcr", "rmo", "rotl", and "rotr"
3401 * tic80-dis.c (print_insn_tic80): Print opcode name with fixed width
3402 10 char field, padded with spaces on rhs, rather than a string
3403 followed by a tab. Use renamed TIC80_OPERAND_PCREL flag bit rather
3404 than old TIC80_OPERAND_RELATIVE. Add support for new
3405 TIC80_OPERAND_BASEREL flag bit.
3409 * tic80-dis.c (print_insn_tic80): Print floating point operands
3411 * tic80-opc.c (SPFI): Add single precision floating point
3412 immediate operand type.
3413 (ROTATE): Add rotate operand type for shifts.
3414 (ENDMASK): Add for shifts.
3415 (n): Macro for the 'n' bit.
3416 (i): Macro for the 'i' bit.
3417 (PD): Macro for the 'PD' field.
3418 (P2): Macro for the 'P2' field.
3419 (P1): Macro for the 'P1' field.
3420 (tic80_opcodes): Add entries for "exts", "extu", "fadd",
3425 * mn10200-dis.c (disassemble): Mask off unwanted bits after
3426 adding in current address for pc-relative operands.
3430 * tic80-dis.c (R_SCALED): Add macro to test for ":s" modifier bit.
3431 (print_insn_tic80): If R_SCALED then print ":s" modifier for operand.
3432 * tic80-opc.c (REG0, REG22, REG27, SSOFF, LSOFF): Names
3433 changed to REG_0, REG_22, REG_DEST, OFF_SS, OFF_SL respectively.
3434 (SICR, LICR, REGM_SI, REGM_LI): Names changed to CR_SI, CR_LI,
3435 REG_BASE_M_SI, REG_BASE_M_LI respectively.
3436 (REG_SCALED, LSI_SCALED): New operand types.
3437 (E): New macro for 'E' bit at bit 27.
3438 (tic80_opcodes): Add and test dld, dld.u, dst, estop, and etrap
3439 opcodes, including the various size flavors (b,h,w,d) for
3440 the direct load and store instructions.
3444 * tic80-dis.c (M_SI, M_LI): Add macros to test for ":m" modifier bit
3446 * tic80-dis.c (print_insn_tic80): Change comma and paren handling.
3447 Use M_SI and M_LI macros to check for ":m" modifier for GPR operands.
3448 * tic80-opc.c (tic80_operands): Add REGM_SI and REGM_LI operands.
3449 (F, M_REG, M_LI, M_SI, SZ_REG, SZ_LI, SZ_SI, D, S): New bit-twiddlers.
3450 (MASK_LI_M, MASK_SI_M, MASK_REG_M): Remove and replace in opcode
3451 masks with "MASK_* & ~M_*" to get the M bit reset.
3452 (tic80_opcodes): Add bsr, bsr.a, cmnd, cmp, dcachec, and dcachef.
3456 * tic80-dis.c (print_insn_tic80): Print TIC80_OPERAND_RELATIVE
3457 correctly. Add support for printing TIC80_OPERAND_BITNUM and
3458 TIC80_OPERAND_CC, and TIC80_OPERAND_CR operands in symbolic
3460 * tic80-opc.c (tic80_operands): Add SSOFF, LSOFF, BITNUM,
3461 CC, SICR, and LICR table entries.
3462 (tic80_opcodes): Add and test "nop", "br", "bbo", "bbz",
3463 "bcnd", and "brcr" opcodes.
3467 * ppc-opc.c (powerpc_operands): Make comment match the
3468 actual fields (no shift field).
3469 * sparc-opc.c (sparc_opcodes): Document why this cannot be "const".
3470 * tic80-dis.c (print_insn_tic80): Replace abort stub with a
3471 partial implementation, work in progress.
3472 * tic80-opc.c (tic80_operands): Begin construction operands table.
3473 (tic80_opcodes): Continue populating opcodes table and start
3474 filling in the operand indices.
3475 (tic80_num_opcodes): Add this.
3479 * m68k-opc.c: Add #B case for moveq.
3483 * mn10300-dis.c (disassemble): Make sure all variables are initialized
3484 before they are used.
3488 * v850-opc.c (v850_opcodes): Put curly-braces around operands
3489 for "breakpoint" instruction.
3493 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
3494 (dep): Use ALL_CFLAGS rather than CFLAGS.
3498 * v850-opc.c (D8_{6,7}): Set V850_OPERAND_ADJUST_SHORT_MEMORY
3503 * Makefile.in (m68k-opc.o, alpha-opc.o): Remove dis-asm.h dependency.
3504 (tic80-dis.o, tic80-opc.o): Add rules per comment in Makefile.in.
3508 * mips16-opc.c: Add "abs".
3512 * Makefile.in (ALL_MACHINES): Add tic80-dis.o and tic80-opc.o.
3513 * disassemble.c (ARCH_tic80): Define if ARCH_all is defined.
3514 (disassembler): Add bfd_arch_tic80 support to set disassemble
3515 to print_insn_tic80.
3516 * tic80-dis.c (print_insn_tic80): Add stub.
3520 * configure.in (arch in $selarchs): Add bfd_tic80_arch entry.
3521 * configure: Regenerate with autoconf.
3522 * tic80-dis.c: Add file.
3523 * tic80-opc.c: Add file.
3527 * d10v-opc.c (pre_defined_registers): Add cr[0-15], dpc, dpsw, link.
3531 * mn10200-opc.c (mn10200_operands): Add SIMM16N.
3532 (mn10200_opcodes): Use it for some logicals and btst insns.
3533 Add "break" and "trap" instructions.
3535 * mn10300-opc.c (mn10300_opcodes): Add "break" instruction.
3537 * mn10200-opc.c: Add pseudo-ops for "mov (an),am" and "mov an,(am)".
3541 * mips-dis.c (print_mips16_insn_arg): The base address of a PC
3542 relative load or add now depends upon whether the instruction is
3547 * mn10200-dis.c: Finish writing disassembler.
3548 * mn10200-opc.c (mn10200_opcodes): Fix mask for "mov imm8,dn".
3549 Fix mask for "jmp (an)".
3551 * mn10300-dis.c (disassemble, print_insn_mn10300): Corrently
3552 handle endianness issues for mn10300.
3554 * mn10200-opc.c (mn10200_opcodes): Fix operands for "movb dm,(an)".
3558 * mn10200-opc.c (mn10200_opcodes): "mov imm8,d0" is a format 2
3559 instruction. Fix opcode field for "movb (imm24),dn".
3561 * mn10200-opc.c (mn10200_operands): Fix insertion position
3566 * mn10200-opc.c: Create mn10200 opcode table.
3567 * mn10200-dis.c: Flesh out mn10200 disassembler. Not ready,
3568 but moving along nicely.
3572 * Makefile.in (ALL_MACHINES): Add mips16-opc.o.
3576 * m68k-opc.c (m68k_opcodes): Revert change to use < and >
3577 specifiers for fmovem* instructions.
3581 * mn10300-dis.c (disassemble): Remove '$' register prefixing.
3585 * mips16-opc.c: Change opcode for entry/exit to avoid conflicting
3590 * mn10300-opc.c: Add some comments explaining the various
3593 * mn10300-dis.c (disassemble): Fix minor gcc -Wall warnings.
3597 * m68k-dis.c (print_insn_arg): Handle new < and > operand
3600 * m68k-opc.c (m68k_opcodes): Simplify table by using < and >
3601 operand specifiers in fmovm* instructions.
3605 * ppc-opc.c (insert_li): Give an error if the offset has the two
3606 least significant bits set.
3610 * mips-dis.c (print_insn_mips16): Separate the instruction from
3611 the arguments with a tab, not a space.
3615 * mn10300-dis.c (disasemble): Finish conversion to '$' as
3618 * mn10300-opc.c (mn10300_opcodes): Fix mask field for
3623 * configure: Rebuild with autoconf 2.12.
3625 Add support for mips16 (16 bit MIPS implementation):
3626 * mips16-opc.c: New file.
3627 * mips-dis.c: Include "elf-bfd.h" and "elf/mips.h".
3628 (mips16_reg_names): New static array.
3629 (print_insn_big_mips): Use print_insn_mips16 in 16 bit mode or
3630 after seeing a 16 bit symbol.
3631 (print_insn_little_mips): Likewise.
3632 (print_insn_mips16): New static function.
3633 (print_mips16_insn_arg): New static function.
3634 * mips-opc.c: Add jalx instruction.
3635 * Makefile.in (mips16-opc.o): New target.
3636 * configure.in: Use mips16-opc.o for bfd_mips_arch.
3637 * configure: Rebuild.
3641 * m68k-opc.c (m68k_opcodes): Simplify table by using < and >
3642 operand specifiers in *save, *restore and movem* instructions.
3644 * m68k-opc.c (m68k_opcodes): Fix move and movem instructions for
3647 * m68k-opc.c (m68k_opcodes): The coldfire (mcf5200) can only use
3648 register operands for immediate arithmetic, not, neg, negx, and
3649 set according to condition instructions.
3651 * m68k-opc.c (m68k_opcodes): Consistantly Use "s" as the storage
3652 specifier of the effective-address operand in immediate forms of
3653 arithmetic instructions. The specifier for the immediate operand
3654 notes how and where the constant will be stored.
3658 * mn10300-opc.c (mn10300_opcodes): Remove redundant "lcc"
3661 * mn10300-dis.c (disassemble): Use '$' instead of '%' for
3664 * mn10300-dis.c (disassemble): Prefix registers with '%'.
3668 * mn10300-dis.c (disassemble): Handle register lists.
3670 * mn10300-opc.c: Fix handling of register list operand for
3671 "call", "ret", and "rets" instructions.
3673 * mn10300-dis.c (disassemble): Print PC-relative and memory
3674 addresses symbolically if possible.
3675 * mn10300-opc.c: Distinguish between absolute memory addresses,
3676 pc-relative offsets & random immediates.
3678 * mn10300-dis.c (print_insn_mn10300): Fix fetch of last byte
3680 (disassemble): Handle SPLIT and EXTENDED operands.
3684 * mn10300-dis.c: Rough cut at printing some operands.
3686 * mn10300-dis.c: Start working on disassembler support.
3687 * mn10300-opc.c (mn10300_opcodes): Fix masks on several insns.
3689 * mn10300-opc.c (mn10300_operands): Add "REGS" for a register
3691 (mn10300_opcodes): Use REGS for register list in "movm" instructions.
3695 * d10v-opc.c (d10v_opcodes): Add3 sets the carry.
3699 * mn10300-opc.c (mn10300_opcodes): Demand parens around
3700 register argument is calls and jmp instructions.
3704 * mn10300-opc.c (mn10300_opcodes): Use DN01 for putx and
3705 getx operand. Fix opcode for mulqu imm,dn.
3709 * mn10300-opc.c (mn10300_operands): Hijack "bits" field
3710 in MN10300_OPERAND_SPLIT operands for how many bits
3711 appear in the basic insn word. Add IMM32_HIGH24,
3712 IMM32_HIGH24_LOWSHIFT8, IMM8E_SHIFT8.
3713 (mn10300_opcodes): Use new operands as needed.
3715 * mn10300-opc.c (mn10300_operands): Add IMM32_LOWSHIFT8
3716 for bset, bclr, btst instructions.
3717 (mn10300_opcodes): Use new IMM32_LOWSHIFT8 as needed.
3719 * mn10300-opc.c (mn10300_operands): Remove many redundant
3720 operands. Update opcode table as appropriate.
3721 (IMM32): Add MN10300_OPERAND_SPLIT flag.
3722 (mn10300_opcodes): Fix single bit error in mov imm32,dn insn.
3726 * mn10300-opc.c (mn10300_operands): Add DN2, DM2, AN2, AM2
3727 operands (for indexed load/stores). Fix bitpos for DI
3728 operand. Add SN8N_SHIFT8, IMM8_SHIFT8, and D16_SHIFT for the
3729 few instructions that insert immediates/displacements in the
3730 middle of the instruction. Add IMM8E for 8 bit immediate in
3731 the extended part of an instruction.
3732 (mn10300_operands): Use new opcodes as appropriate.
3736 * d10v-opc.c (d10v_opcodes): Declare the trap instruction
3737 sequential so the assembler never parallelizes it with
3742 * mn10300-opc.c (mn10300_operands): Add DN01 and AN01 for
3743 a data/address register that appears in register field 0
3744 and register field 1.
3745 (mn10300_opcodes): Use DN01 and AN01 for mov/cmp imm8,DN/AN
3749 * alpha-dis.c (print_insn_alpha): Use new NOPAL mask for
3750 standard disassembly.
3752 * alpha-opc.c (alpha_operands): Rearrange flags slot.
3753 (alpha_opcodes): Add new BWX, CIX, and MAX instructions.
3754 Recategorize PALcode instructions.
3758 * v850-opc.c (v850_opcodes): Add relaxing "jbr".
3762 * mips-dis.c (_print_insn_mips): Don't print a trailing tab if
3763 there are no operand types.
3767 * v850-opc.c (D9_RELAX): Renamed from D9, all references
3769 (v850_operands): Make sure D22 immediately follows D9_RELAX.
3773 * i386-dis.c (print_insn_x86): Set info->bytes_per_line to 5.
3777 * v850-opc.c (insert_d8_6): Fix operand insertion for sld.w
3778 and sst.w instructions.
3780 * v850-opc.c (v850_opcodes): Add "jCC" instructions (aliases for
3785 * mips-dis.c (_print_insn_mips): Use a tab between the instruction
3790 * ppc-opc.c (PPCPWR2): Define.
3791 (powerpc_opcodes): Use PPCPWR2 for fsqrt, rather than duplicating
3796 * mn10300-opc.c (mn10300_opcodes): Fix typo in opcode
3797 field for movhu instruction.
3799 * v850-dis.c (disassemble): For V850_OPERAND_SIGNED operands,
3800 cast value to "long" not "signed long" to keep hpux10
3805 * mn10300-opc.c (mn10300_opcodes): Fix typo in opcode field
3808 * mn10300-opc.c (FMT*): Remove definitions.
3810 * mn10300-opc.c (mn10300_opcodes): Fix destination register
3811 for shift-by-register opcodes.
3813 * mn10300-opc.c (mn10300_operands): Break DN, DM, AN, AM
3814 into [AD][MN][01] for encoding the position of the register
3819 * mn10300-opc.c (mn10300_opcodes): Add "extended" instructions,
3820 "putx", "getx", "mulq", "mulqu", "sat16", "sat24", "bsch".
3824 * mn10300-opc.c (mn10300_operands): Remove "REGS" operand.
3825 Fix various typos. Add "PAREN" operand.
3826 (MEM, MEM2): Define.
3827 (mn10300_opcodes): Surround all memory addresses with "PAREN"
3828 operands. Fix several typos.
3830 * mn10300-opc.c (mn10300_opcodes): Fix typos in yesterday's
3835 * mn10300-opc.c (FMT_XX): Renumber starting at one.
3836 (mn10300_operands): Rough cut. Enough to parse "mov" instructions
3838 (mn10300_opcodes): Break opcode format out into its own field.
3839 Update many operand fields to deal with signed vs unsigned
3840 issues. Fix one or two typos in the "mov" instruction
3841 opcode, mask and/or operand fields.
3845 * m68k-opc.c (plusha): Prefer encoding for m68040up, in case
3846 m68851 wasn't reset.
3850 * mn10300-opc.c (mn10300_opcodes): Add opcode & masks for
3851 all opcodes. Very rough cut at operands for all opcodes.
3853 * mn10300-opc.c (mn10300_opcodes): Start fleshing out the
3858 * mn10200-opc.c, mn10300-opc.c: New files.
3859 * mn10200-dis.c, mn10300-dis.c: New files.
3860 * mn10x00-opc.c, mn10x00-dis.c: Deleted.
3861 * disassemble.c: Break mn10x00 support into 10200 and 10300
3863 * configure.in: Likewise.
3864 * configure: Rebuilt.
3868 * Makefile.in (MOSTLYCLEAN): Move config.log to distclean.
3872 * mn10x00-opc.c, mn10x00-dis.c: New files for Matsushita
3874 * disassemble (ARCH_mn10x00): Define.
3875 (disassembler): Handle bfd_arch_mn10x00.
3876 * configure.in: Recognize bfd_mn10x00_arch.
3877 * configure: Rebuilt.
3881 * i386-dis.c (op_rtn): Change to be a pointer. Adjust uses
3882 accordingly. Don't declare functions using op_rtn.
3886 * v850-dis.c (disassemble): Add memaddr argument. Re-arrange
3887 params to be more standard.
3888 * (disassemble): Print absolute addresses and symbolic names for
3889 branch and jump targets.
3890 * v850-opc.c (v850_operand): Add displacement flag to 9 and 22
3892 * (v850_opcodes): Add breakpoint insn.
3896 * m68k-opc.c: Move the fmovemx data register cases before the
3897 other cases, so that they get recognized before the data register
3898 does gets treated as a degenerate register list.
3902 * mips-opc.c: Add a case for "div" and "divu" with two registers
3903 and a destination of $0.
3907 * mips-dis.c (print_insn_arg): Add prototype.
3908 (_print_insn_mips): Ditto.
3912 * mips-dis.c (print_insn_arg): Print condition code registers as
3917 * sparc-opc.c (sparc_opcodes): Add setuw, setsw, setx.
3921 * v850-dis.c (disassemble): Make static. Provide prototype.
3925 * v850-opc.c (insert_d9, insert_d22): Fix boundary case
3930 * v850-dis.c (disassemble): Handle insertion of ',', '[' and
3931 ']' characters into the output stream.
3932 * v850-opc.c (v850_opcodes: Remove size field from all opcodes.
3933 Add "memop" field to all opcodes (for the disassembler).
3934 Reorder opcodes so that "nop" comes before "mov" and "jr"
3935 comes before "jarl".
3937 * v850-dis.c (print_insn_v850): Fix typo in last change.
3939 * v850-dis.c (print_insn_v850): Properly handle disassembling
3940 a two byte insn at the end of a memory region when the memory
3941 region's size is only two byte aligned.
3943 * v850-dis.c (v850_cc_names): Fix stupid thinkos.
3945 * v850-dis.c (v850_reg_names): Define.
3946 (v850_sreg_names, v850_cc_names): Likewise.
3947 (disassemble): Very rough cut at printing operands (unformatted).
3949 * v850-opc.c (BOP_MASK): Fix.
3950 (v850_opcodes): Fix mask for jarl and jr.
3952 * v850-dis.c: New file. Skeleton for disassembler support.
3953 * Makefile.in Remove v850 references, they're not needed here.
3954 * configure.in: Add v850-dis.o when building v850 toolchains.
3955 * configure: Rebuilt.
3956 * disassemble.c (disassembler): Call v850 disassembler.
3958 * v850-opc.c (insert_d8_7, extract_d8_7): New functions.
3959 (insert_d8_6, extract_d8_6): New functions.
3960 (v850_operands): Rename D7S to D7; operand for D7 is unsigned.
3961 Rename D8 to D8_7, use {insert,extract}_d8_7 routines.
3963 (IF4A, IF4B): Use "D7" instead of "D7S".
3964 (IF4C, IF4D): Use "D8_7" instead of "D8".
3965 (IF4E, IF4F): New. Use "D8_6".
3966 (v850_opcodes): Use IF4A/IF4B for sld.b/sst.b. Use IF4C/IF4D for
3967 sld.h/sst.h. Use IF4E/IF4F for sld.w/sst.w.
3969 * v850-opc.c (insert_d16_15, extract_d16_15): New functions.
3970 (v850_operands): Change D16 to D16_15, use special insert/extract
3971 routines. New new D16 that uses the generic insert/extract code.
3972 (IF7A, IF7B): Use D16_15.
3973 (IF7C, IF7D): New. Use D16.
3974 (v850_opcodes): Use IF7C and IF7D for ld.b and st.b.
3976 * v850-opc.c (insert_d9, insert_d22): Slightly improve error
3977 message. Issue an error if the branch offset is odd.
3979 * v850-opc.c: Add notes about needing special insert/extract
3980 for all the load/store insns, except "ld.b" and "st.b".
3982 * v850-opc.c (insert_d22, extract_d22): New functions.
3983 (v850_operands): Use insert_d22 and extract_d22 for
3985 (insert_d9): Fix range check.
3989 * v850-opc.c (v850_operands): Add V850_OPERAND_SIGNED flag
3990 and set bits field to D9 and D22 operands.
3994 * v850-opc.c (v850_operands): Define SR2 operand.
3995 (v850_opcodes): "ldsr" uses R1,SR2.
3997 * v850-opc.c (v850_opcodes): Fix opcode specs for
3998 sld.w, sst.b, sst.h, sst.w, and nop.
4002 * v850-opc.c (v850_opcodes): Add null opcode to mark the
4003 end of the opcode table.
4007 * d10v-opc.c (pre_defined_registers): Added register pairs,
4008 "r0-r1", "r2-r3", etc.
4012 * v850-opc.c (v850_operands): Make I16 be a signed operand.
4013 Create I16U for an unsigned 16bit mmediate operand.
4014 (v850_opcodes): Use I16U for "ori", "andi" and "xori".
4016 * v850-opc.c (v850_operands): Define EP operand.
4017 (IF4A, IF4B, IF4C, IF4D): Use EP.
4019 * v850-opc.c (v850_opcodes): Fix opcode numbers for "mov"
4020 with immediate operand, "movhi". Tweak "ldsr".
4022 * v850-opc.c (v850_opcodes): Get ld.[bhw] and st.[bhw]
4023 correct. Get sld.[bhw] and sst.[bhw] closer.
4025 * v850-opc.c (v850_operands): "not" is a two byte insn
4027 * v850-opc.c (v850_opcodes): Correct bit pattern for setf.
4029 * v850-opc.c (v850_operands): D16 inserts at offset 16!
4031 * v850-opc.c (two): Get order of words correct.
4033 * v850-opc.c (v850_operands): I16 inserts at offset 16!
4035 * v850-opc.c (v850_operands): Add "SR1" and "SR2" for system
4036 register source and destination operands.
4037 (v850_opcodes): Use SR1 and SR2 for "ldsr" and "stsr".
4039 * v850-opc.c (v850_opcodes): Fix thinko in "jmp" opcode. Fix
4040 same thinko in "trap" opcode.
4042 * v850-opc.c (v850_opcodes): Add initializer for size field
4045 * v850-opc.c (v850_operands): D6 -> DS7. References changed.
4046 Add D8 for 8-bit unsigned field in short load/store insns.
4047 (IF4A, IF4D): These both need two registers.
4048 (IF4C, IF4D): Define. Use 8-bit unsigned field.
4049 (v850_opcodes): For "sld.h", "sld.w", "sst.h", "sst.w", use
4050 IF4C & IF4D. For "trap" use I5U, not I5. Add IF1 operand
4051 for "ldsr" and "stsr".
4052 * v850-opc.c (v850_operands): 3-bit immediate for bit insns
4055 * v850-opc.c (v850_opcodes): Correct short store half (sst.h) and
4056 short store word (sst.w).
4060 * v850-opc.c (v850_operands): Added insert and extract fields,
4061 pointers to functions that handle unusual operand encodings.
4065 * v850-opc.c (v850_opcodes): Enable "trap".
4067 * v850-opc.c (v850_opcodes): Fix order of displacement
4068 and register for "set1", "clr1", "not1", and "tst1".
4072 * v850-opc.c (v850_operands): Add "B3" support.
4073 (v850_opcodes): Fix and enable "set1", "clr1", "not1"
4076 * v850-opc.c (v850_opcodes): "jmp" has only an R1 operand.
4078 * v850-opc.c: Close unterminated comment.
4082 * v850-opc.c (v850_operands): Add flags field.
4083 (v850_opcodes): add move opcodes.
4087 * Makefile.in (ALL_MACHINES): Add v850-opc.o.
4088 * configure: (bfd_v850v_arch) Add new case.
4089 * configure.in: (bfd_v850_arch) Add new case.
4090 * v850-opc.c: New file.
4094 * sparc-dis.c (print_insn_sparc): Handle little endian sparcs.
4098 * d10v-opc.c: Add additional information to the opcode
4099 table to help determinine which instructions can be done
4104 * mpw-make.sed: Update editing of include pathnames to be
4109 * arm-opc.h: Added "bx" instruction definition.
4113 * alpha-opc.c (EV4EXTHWINDEX): Field width should be 8 not 5.
4117 * d10v-opc.c (d10v_opcodes): Minor fixes to addi and bl.l.
4121 * d10v-opc.c (d10v_opcodes): Correct 'mv' unit entry to EITHER.
4125 * makefile.vms: Update for alpha-opc changes.
4129 * i386-dis.c (print_insn_i386): Actually return the correct value.
4130 (ONE, OP_ONE): #ifdef out; not used.
4134 * d10v-opc.c (d10v_opcodes): Added 2 accumulator sub instructions.
4135 Changed subi operand type to treat 0 as 16.
4139 * m68k-opc.c: Add cpushl for the mcf5200. From Ken Rose
4144 * arm-opc.h: (arm_opcodes): Added halfword and sign-extension
4145 memory transfer instructions. Add new format string entries %h and %s.
4146 * arm-dis.c: (print_insn_arm): Provide decoding of the new
4151 * d10v-opc.c (d10v_operands): Added UNUM4S; a 4-bit accumulator shift.
4152 (d10v_opcodes): Modified accumulator shift instructions to use UNUM4S.
4156 * alpha-dis.c (print_insn_alpha_osf): Remove.
4157 (print_insn_alpha_vms): Remove.
4158 (print_insn_alpha): Make globally visible. Chose the register
4159 names based on info->flavour.
4160 * disassemble.c: Always return print_insn_alpha for the alpha.
4164 * d10v-dis.c (dis_long): Handle unknown opcodes.
4168 * d10v-opc.c: Changes to support signed and unsigned numbers.
4169 All instructions with the same name that have long and short forms
4170 now end in ".l" or ".s". Divs added.
4171 * d10v-dis.c: Changes to support signed and unsigned numbers.
4175 * d10v-dis.c: Change all functions to use info->print_address_func.
4179 * m68k-opc.c (m68k_opcodes): Make opcode masks for the ColdFire
4180 move ccr/sr insns more strict so that the disassembler only
4181 selects them when the addressing mode is data register.
4184 * d10v-opc.c (pre_defined_registers): Declare.
4185 * d10v-dis.c (print_operand): Now uses pre_defined_registers
4186 to pick a better name for the registers.
4190 * sparc-opc.c: Fix opcode values for fpack16, and fpackfix. Fix
4191 operands for fexpand and fpmerge. From Christian Kuehnke
4196 * alpha-dis.c (print_insn_alpha): No longer the user-visible
4197 print routine. Take new regnames and cpumask arguments.
4198 Kill the environment variable nonsense.
4199 (print_insn_alpha_osf): New function. Do OSF/1 style regnames.
4200 (print_insn_alpha_vms): New function. Do VMS style regnames.
4201 * disassemble.c (disassembler): Test bfd flavour to pick
4202 between OSF and VMS routines. Default to OSF.
4206 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
4207 * configure: Rebuild.
4208 * Makefile.in (install): Use @INSTALL_SHLIB@.
4212 * configure: (bfd_d10v_arch) Add new case.
4213 * configure.in: (bfd_d10v_arch) Add new case.
4214 * d10v-dis.c: New file.
4215 * d10v-opc.c: New file.
4216 * disassemble.c (disassembler) Add entry for d10v.
4220 * m68k-opc.c (m68k_opcodes): Fix bugs in coldfire insns relating
4221 to bcc, trapfl, subxl, and wddata discovered by Andreas Schwab.
4225 * i386-dis.c: Get rid of print_insn_i8086. Use info.mach to
4226 distinguish between variants of the instruction set.
4227 * sparc-dis.c: Get rid of print_insn_sparclite. Use info.mach to
4228 distinguish between variants of the instruction set.
4232 * i386-dis.c (print_insn_i8086): New routine to disassemble using
4233 the 8086 instruction set.
4234 * i386-dis.c: General cleanups. Make most things static. Add
4235 prototypes. Get rid of static variables aflags and dflags. Pass
4236 them as args (to almost everything).
4240 * h8300-dis.c (bfd_h8_disassemble): Handle macregs in ldmac insns.
4242 * h8300-dis.c (bfd_h8_disassemble): Handle "ldm.l" and "stm.l".
4244 * h8300-dis.c (bfd_h8_disassemble): "abs" is implicitly two
4245 if the next arg is marked with SRC_IN_DST. Gross.
4247 * h8300-dis.c (bfd_h8_disassemble): Print "exr" when
4248 we're looking for and find EXR.
4250 * h8300-dis.c (bfd_h8_disassemble): We don't have a match
4251 if we're looking for KBIT and we don't find it.
4253 * h8300-dis.c (bfd_h8_disassemble): Mask off unwanted bits
4256 * h8300-dis.c (bfd_h8_disassemble): Don't set plen for
4257 3bit immediate operands.
4261 * Released binutils 2.7.
4263 * alpha-opc.c: Add new case of "mov". From Klaus Kaempf
4268 * alpha-opc.c: Correct second case of "mov" to use OPRL.
4272 * sparc-dis.c (print_insn_sparclite): New routine to print
4273 sparclite instructions.
4277 * m68k-opc.c (m68k_opcodes): Add coldfire support.
4281 * sparc-opc.c (asi_table): Add #ASI_N, #ASI_N_L, #ASI_NUCLEUS,
4282 #ASI_NUCLEUS_LITTLE. Rename #ASI_AS_IF_USER_{PRIMARY,SECONDARY}_L
4283 to #ASI_AS_IF_USER_{PRIMARY,SECONDARY}_LITTLE.
4287 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
4288 Use autoconf-set values.
4289 (docdir, oldincludedir): Removed.
4290 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
4294 * alpha-opc.c: New file.
4295 * alpha-opc.h: Remove.
4296 * alpha-dis.c: Complete rewrite to use new opcode table.
4297 * configure.in: For bfd_alpha_arch, use alpha-opc.o.
4298 * configure: Rebuild with autoconf 2.10.
4299 * Makefile.in (ALL_MACHINES): Add alpha-opc.o.
4300 (alpha-dis.o): Depend upon $(INCDIR)/opcode/alpha.h, not
4302 (alpha-opc.o): New target.
4306 * sparc-dis.c (print_insn_sparc): Remove unused local variable i.
4307 Set imm_added_to_rs1 even if the source and destination register
4310 * sparc-opc.c: Add some two operand forms of the wr instruction.
4314 * h8300-dis.c (bfd_h8_disassemble): Rename "hmode" argument
4317 * disassemble.c (disassembler): Handle H8/S.
4318 * h8300-dis.c (print_insn_h8300s): New function for H8/S.
4322 * sparc-opc.c: Add beq/teq as aliases for be/te.
4324 * ppc-opc.c: Fix fcmpo opcode. From Sergei Steshenko
4329 * makefile.vms: New file.
4331 * alpha-dis.c (print_insn_alpha): Print lda ra,lit(rz) as mov.
4335 * h8300-dis.c (bfd_h8_disassemble): Always print ABS8MEM with :8,
4340 * i386-dis.c (OP_OFF): Call append_prefix.
4344 * ppc-opc.c (instruction encoding macros): Add explicit casts to
4345 unsigned long to silence a warning from the Solaris PowerPC
4350 * sparc-opc.c (sparc_opcodes): Add ultrasparc vis extensions.
4354 * sparc-dis.c (X_IMM,X_SIMM): New macros.
4356 (print_insn_sparc): Merge cases i,I,j together. New cases X,Y.
4357 * sparc-opc.c (sparc_opcodes): Use X for 5 bit shift constants,
4358 Y for 6 bit shift constants. Rewrite entries for crdcxt, cwrcxt,
4359 cpush, cpusha, cpull sparclet insns.
4363 * sparc-dis.c (compute_arch_mask): Replace ANSI style def with K&R.
4367 * sparc-opc.c: Set F_FBR on floating point branch instructions.
4368 Set F_FLOAT on other floating point instructions.
4372 * ppc-opc.c (PPC860): Macro for 860/821 specific instructions and
4374 (powerpc_opcodes): Add 860/821 specific SPRs.
4378 * configure.in: Permit --enable-shared to specify a list of
4379 directories. Set and substitute BFD_PICLIST.
4380 * configure: Rebuild.
4381 * Makefile.in (BFD_PICLIST): Rename from BFD_LIST. Change all
4382 uses. Set to @BFD_PICLIST@.
4386 * h8300-dis.c (bfd_h8_disassemble): Use "bit" for L_3 immediates,
4387 not "abs", which may be needed for the absolute in something
4388 like btst #0,@10:8. Print L_3 immediates separately from other
4389 immediates. Change ABSMOV reference to ABS8MEM.
4393 * sparc-dis.c (opcodes_initialized): Move inside print_insn_sparc.
4394 (current_arch_mask): New static global.
4395 (compute_arch_mask): New static function.
4396 (print_insn_sparc): Delete sparc_v9_p. New static local
4397 current_mach. Resort opcode table if current_mach changes.
4398 Generalize "insn not supported" test.
4399 (compare_opcodes): Prefer supported opcodes to nonsupported ones.
4400 Delete test for v9/!v9.
4401 * sparc-opc.c (MASK_*): Use SPARC_OPCODE_ARCH_MASK.
4403 (brfc): Split into CBR and FBR for coprocessor/fp branches.
4404 (brfcx): Renamed to FBRX.
4405 (condfc): Renamed to CONDFC. Pass v6notlet to CBR (standard
4406 coprocessor mnemonics are not supported on the sparclet).
4407 (condf): Renamed to CONDF.
4408 (SLCBCC2): Delete F_ALIAS flag.
4412 * sparc-opc.c (sparc_opcodes): rd must be 0 for
4413 mov foo,{%y,%psr,%wim,%tbr}. Support mov foo,%asrX.
4417 * Makefile.in (config.status): Depend upon BFD VERSION file, so
4418 that the shared library version number is set correctly.
4422 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
4424 * configure: Rebuild.
4428 * z8kgen.c (internal, gas): Call xmalloc rather than unchecked
4433 * configure: Rebuild with autoconf 2.8.
4437 * sparc-dis.c (print_insn_sparc): Handle 'O' operand char like 'r'.
4438 * sparc-opc.c (sparc_opcodes): Use 'O' operand char for `neg reg'.
4442 * configure.in: Don't set SHLIB or SHLINK to an empty string,
4443 since they appear as targets in Makefile.in.
4444 * configure: Rebuild.
4448 * mpw-make.sed: Edit out shared library support bits.
4452 * sparc-opc.c (v8,v6notv9): Add MASK_SPARCLET.
4453 (sparc_opcode_archs): Add MASK_V8 to sparclet entry.
4454 (sparc_opcodes): Add sparclet insns.
4455 (sparclet_cpreg_table): New static local.
4456 (sparc_{encode,decode}_sparclet_cpreg): New functions.
4457 * sparc-dis.c (print_insn_sparc): Handle sparclet cpregs.
4461 * i386-dis.c (index16): New static variable.
4462 (putop): Print jecxz for 32 bit case, jcxz for 16 bit, not the
4464 (OP_indirE): Return result of OP_E.
4465 (OP_E): Check for 16 bit addressing mode, and disassemble
4466 correctly. Optimised 32 bit case a little. Don't print
4467 "(base,index,scale)" when sib specifies only an offset.
4471 * configure.in: Set and substitute SHLIB_DEP.
4472 * configure: Rebuild.
4473 * Makefile.in (SHLIB_DEP): New variable.
4474 (LIBIBERTY_LISTS, BFD_LIST): New variables.
4475 (stamp-piclist): Depend upon LIBIBERTY_LISTS and BFD_LIST. If
4476 COMMON_SHLIB, add them to piclist with appropriate modifications.
4477 ($(SHLIB)): Depend upon $(SHLIB_DEP). Don't check COMMON_SHLIB
4478 here: just use piclist.
4482 * sparc-dis.c (MASK_V9,V9_ONLY_P,V9_P): Define.
4483 (print_insn_sparc): Rewrite v9/not-v9 tests.
4484 (compare_opcodes): Likewise.
4485 * sparc-opc.c (MASK_<ARCH>): Define.
4486 (v6,v7,v8,sparclite,v9,v9a): Redefine.
4487 (sparclet,v6notv9): Define.
4488 (sparc_opcode_archs): Delete member `conflicts'. Add `supported'.
4489 (sparc_opcodes): Delete F_NOTV9, use v6notv9 instead.
4493 * configure.in: Call AC_PROG_CC before configure.host.
4494 * configure: Rebuild.
4496 * Makefile.in (SONAME): Remove leading ../bfd/ from $(SHLIB).
4500 * i386-dis.c (onebyte_has_modrm): New static array.
4501 (twobyte_has_modrm): New static array.
4502 (print_insn_i386): Only fetch the mod/reg/rm byte if it is needed.
4506 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
4511 * ppc-opc.c (PPC): Undef, so default defination on Windows NT
4516 * m68k-opc.c (m68k_opcodes): The bkpt instruction is supported on
4517 m68010up, not just m68020up | cpu32.
4519 * Makefile.in (SONAME): New variable.
4520 ($(SHLINK)): Make a link to the transformed name, as well.
4521 (stamp-tshlink): New target.
4522 (install): Skip stamp-tshlink during install.
4526 * configure.in: Call AC_ARG_PROGRAM.
4527 * configure: Rebuild.
4528 * Makefile.in (program_transform_name): New variable.
4529 (install): Transform library name before installing it.
4533 * i960-dis.c (mem): Add HX dcinva instruction.
4535 Support for building as a shared library, based on patches from
4537 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
4538 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
4539 SHLIB_CFLAGS, COMMON_SHLIB, SHLINK.
4540 * configure: Rebuild.
4541 * Makefile.in (ALLLIBS): New variable.
4542 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
4543 (COMMON_SHLIB, SHLINK): New variables.
4544 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
4545 (STAGESTUFF): Remove variable.
4546 (all): Depend upon $(ALLLIBS) rather than $(TARGETLIB).
4547 (stamp-piclist, piclist): New targets.
4548 ($(SHLIB), $(SHLINK)): New targets.
4549 ($(OFILES)): Depend upon stamp-picdir.
4550 (disassemble.o): Build twice if PICFLAG is set.
4551 (MOSTLYCLEAN): Add pic/*.o.
4552 (clean): Remove $(SHLIB), $(SHLINK), piclist, and stamp-piclist.
4553 (distclean): Remove pic and stamp-picdir.
4554 (install): Install shared libraries.
4555 (stamp-picdir): New target.
4559 * sparc-dis.c (print_insn_sparc): Delete DISASM_RAW_INSN support.
4560 Print unknown instruction as "unknown", rather than in hex.
4564 * dis-buf.c: Include "sysdep.h" before "dis-asm.h".
4568 * sparc-opc.c (sparc_opcode_archs): Mark v8/sparclite as conflicting.
4572 * i386-dis.c (print_insn_i386): Only fetch the mod/reg/rm byte
4573 when necessary. From Ulrich Drepper
4578 * sparc-dis.c (print_insn_sparc): NUMOPCODES replaced with
4579 sparc_num_opcodes. Update architecture enum values.
4580 * sparc-opc.c (sparc_opcode_archs): Replaces architecture_pname.
4581 (sparc_opcode_lookup_arch): New function.
4582 (sparc_num_opcodes): Renamed from bfd_sparc_num_opcodes.
4583 (sparc_opcodes): Add v9a shutdown insn.
4587 * sparc-dis.c (print_insn_sparc): Renamed from print_insn.
4588 If DISASM_RAW_INSN, print insn in hex. Handle v9a as opcode
4590 (print_insn_sparc64): Deleted.
4591 * disassemble.c (disassembler, case bfd_arch_sparc): Always use
4594 * sparc-opc.c (architecture_pname): Add v9a.
4598 * alpha-opc.h (alpha_insn_set): VAX floating point opcode was
4599 incorrectly defined as 0x16 when it should be 0x15.
4600 (FLOAT_FORMAT_MASK): function code is 11 bits, not just 7 bits!
4601 (alpha_insn_set): added cvtst and cvttq float ops. Also added
4602 excb (exception barrier) which is defined in the Alpha
4603 Architecture Handbook version 2.
4604 * alpha-dis.c (print_insn_alpha): Fixed special-case decoding for
4605 OPERATE_FORMAT_CODE type instructions. The bug caused mulq to be
4606 disassembled as or, for example.
4610 * mips-dis.c (print_insn_arg): Print cases 'i' and 'u' in hex.
4611 (_print_insn_mips): Change i from int to unsigned int.
4615 * ppc-opc.c (powerpc_opcodes): tlbi POWER opcode form different
4616 from tlbie PowerPC opcode. Add PPC603 tlbld and tlbli.
4620 * i386-dis.c: Added Pentium Pro instructions.
4624 * ppc-opc.c (fsqrt{,.}): Duplicate for PowerPC in addition to
4629 * sh-opc.h (sh_nibble_type): Added REG_B.
4630 (sh_arg_type): Added A_REG_B.
4631 (sh_table): Added pref and bank reg versions of ldc, ldc.l, stc
4633 * sh-dis.c (print_insn_shx): Added cases for REG_B and A_REG_B.
4637 * disassemble.c (disassembler): Use new bfd_big_endian macro.
4641 * Makefile.in (distclean): Remove stamp-h. From Ronald
4647 * alpha-dis.c (print_insn_alpha): fixed decoding of cpys
4652 * sh-opc.h (sh_arg_type): Added A_SSR and A_SPC.
4653 (sh_table): Added many SH3 opcodes.
4654 * sh-dis.c (print_insn_shx): Added cases for A_SSR and A_SPC.
4658 * ppc-opc.c (subfc., subfco): Mark this PPCCOM, not PPC.
4659 (subco,subco.): Mark this PPC, not PPCCOM.
4663 * configure: Rebuild with autoconf 2.7.
4667 * configure: Rebuild with autoconf 2.6.
4671 * configure.in: Sort list of architectures. Accept but do nothing
4672 for alliant, convex, pyramid, romp, and tahoe.
4676 * a29k-dis.c (print_special): Change num to unsigned int.
4680 * a29k-dis.c (print_insn): Cast insn24 to unsigned long when
4685 * configure.in: Call AC_CHECK_PROG to find and cache AR.
4686 * configure: Rebuilt.
4690 * configure.in: Add case for bfd_i860_arch.
4691 * configure: Rebuild.
4695 * m68k-opc.c (m68k_opcodes): Correct fmoveml operands.
4696 * m68k-dis.c (NEXTSINGLE): Change i to unsigned int.
4697 (NEXTDOUBLE): Likewise.
4698 (print_insn_m68k): Don't match fmoveml if there is more than one
4699 register in the list.
4700 (print_insn_arg): Handle a place of '8' for a type of 'L'.
4704 * m68k-opc.c: Use #W rather than #w.
4705 * m68k-dis.c (print_insn_arg): Handle new 'W' place.
4709 * m68k-opc.c (m68k_opcode_aliases): Add dbfw as an alias for dbf,
4710 and likewise for all the dbxx opcodes.
4714 * arc-dis.c: Include elf-bfd.h rather than libelf.h.
4718 * mips-opc.c: Added shorthand (V1) for INSN_4100 manifest. Added
4719 the VR4100 specific instructions to the mips_opcodes structure.
4723 * mpw-config.in, mpw-make.sed: Remove ugly workaround for
4724 ugly Metrowerks bug in CW6, is fixed in CW7.
4728 * ppc-opc.c (whole file): Add flags for common/any support.
4732 * Makefile.in (BISON): Remove macro.
4733 (FLAGS_TO_PASS): Remove BISON.
4739 * m68k-dis.c (print_insn_m68k): Recognize all two-word
4740 instructions that take no args by looking at the match mask.
4741 (print_insn_arg): Always print "%" before register names.
4742 [case 'c']: Use "nc" for the no-cache case, as recognized by gas.
4743 [case '_']: Don't print "@#" before address.
4744 [case 'J']: Use "%s" as format string, not register name.
4745 [case 'B']: Treat place == 'C' like 'l' and 'L'.
4749 * i386-dis.c: Describe cmpxchg8b operand, and spell the opcode
4756 * alpha-opc.h (MEMORY_FUNCTION_FORMAT_MASK): added.
4757 (alpha_insn_set): added definitions for VAX floating point
4758 instructions (Unix compilers don't generate these, but handcoded
4759 assembly might still use them).
4761 * alpha-dis.c (print_insn_alpha): added support for disassembling
4762 the miscellaneous instructions in the Alpha instruction set.
4766 * mpw-config.in: Add m68k-opc.c.o to BFD_MACHINES for m68k,
4767 no longer create sysdep.h, sed ppc-opc.c to work around a
4768 serious Metrowerks C bug.
4769 * mpw-make.in: Remove.
4770 * mpw-make.sed: New file, used by mpw-configure to edit
4771 Makefile.in into an MPW makefile.
4775 * Makefile.in (maintainer-clean): New synonym for realclean.
4779 * m68k-opc.c: Split pmove patterns which use 'P' into patterns
4780 which use '0', '1', and '2' instead. Specify the proper size for
4781 a pmove immediate operand. Correct the pmovefd patterns to be
4782 moves to a register, not from a register.
4783 * m68k-dis.c (print_insn_arg): Replace 'P' with '0', '1', '2'.
4787 * sparc-opc.c (sparc_opcodes): Mark all insns that reference
4788 %psr, %wim, %tbr as F_NOTV9.
4792 * Makefile.in (Makefile): Just rebuild Makefile when running
4794 (config.h, stamp-h): New targets.
4795 * configure.in: Call AC_CONFIG_HEADER and AC_CANONICAL_SYSTEM
4796 earlier. Don't bother to call AC_ARG_PROGRAM. Touch stamp-h when
4797 rebuilding config.h.
4798 * configure: Rebuild.
4800 * mips-opc.c: Change unaligned loads and stores with "t,A"
4801 operands to use "t,A(b)".
4805 * sh-dis.c (print_insn_shx): Add F_FR0 support.
4809 * sh-dis.c (print_insn_shx): Change loop over op->arg[n] to iterate
4810 until 3 instead of until 2.
4814 * Makefile.in (ALL_CFLAGS): Define.
4815 (.c.o, disassemble.o): Use $(ALL_CFLAGS).
4816 (MOSTLYCLEAN): Add config.log.
4817 (distclean): Don't remove config.log.
4818 * configure.in: Substitute HDEFINES.
4819 * configure: Rebuild.
4823 * sh-opc.h (sh_arg_type): Add F_FR0.
4824 (sh_table, case fmac): Add F_FR0 as first argument.
4828 * sh-opc.h (sh_opcode_info): Increase arg array size to 4.
4832 * sparc-dis.c: Remove all references to NO_V9.
4836 * aclocal.m4: Just include ../bfd/aclocal.m4.
4837 * configure: Rebuild.
4841 * sparc-dis.c (X_DISP19): Define.
4842 (print_insn, case 'G'): Use it.
4843 (print_insn, case 'L'): Sign extend displacement.
4847 * configure.in: Run ../bfd/configure.host before AC_PROG_CC.
4848 Subsitute CFLAGS and AR. Call AC_PROG_INSTALL. Don't substitute
4849 host_makefile_frag or frags.
4850 * aclocal.m4: New file.
4851 * configure: Rebuild.
4852 * Makefile.in (INSTALL): Set to @INSTALL@.
4853 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
4854 (INSTALL_DATA): Set to @INSTALL_DATA@.
4856 (AR_FLAGS): Set to rc rather than qc.
4857 (CC): Define as @CC@.
4858 (CFLAGS): Set to @CFLAGS@.
4859 (@host_makefile_frag@): Remove.
4860 (config.status): Remove dependency upon @frags@.
4862 * configure.in: ../bfd/config.bfd now just sets shell variables.
4863 Use them rather than looking through target Makefile fragments.
4864 * configure: Rebuild.
4868 * sh-opc.h (ftrc): Change FPUL_N to FPUL_M.
4872 * sparc-opc.c (sparc_opcodes): Delete duplicate wr %y insn.
4873 Add clrx, iprefetch, signx, clruw, cas, casl, casx, casxl synthetic
4876 * sparc-opc.c (sparc_opcodes): Fix prefetcha insn.
4877 (lookup_{name,value}): New functions.
4878 (prefetch_table): New static local.
4879 (sparc_{encode,decode}_prefetch): New functions.
4880 * sparc-dis.c (print_insn): Handle '*' arg (prefetch function).
4884 * sh-opc.h: Add blank lines to improve readabililty of sh3e
4889 * sh-dis.c: Correct comment on first line of file.
4893 * disassemble.c (disassembler): Handle bfd_mach_sparc64.
4895 * sparc-opc.c (asi, membar): New static locals.
4896 (sparc_{encode,decode}_{asi,membar}): New functions.
4897 (sparc_opcodes, membar insn): Fix.
4898 * sparc-dis.c (print_insn): Call sparc_decode_asi.
4899 Support decoding of membar masks.
4904 * m68k-opc.c (m68k_opcode_aliases): Add br, brs, brb, brw, brl.
4908 * m68k-opc.c (m68k_opcode_aliases): Add bhib as an alias for bhis,
4909 and likewise for the other branches. Add bhs as an alias for bcc,
4910 and likewise for the size variants. Add dbhs as an alias for
4915 * sh-opc.h (FP sts instructions): Update to match reality.
4919 * m68k-dis.c: (fpcr_names): Add % before all register names.
4920 (reg_names): Likewise.
4921 (print_insn_arg): Don't explicitly print % before register names.
4922 Add % before register names in static array names. In case 'r',
4923 print data registers as `@(Dn)', not `Dn@'. When printing a
4924 memory address, don't print @# before it.
4925 (print_indexed): Change base_disp and outer_disp from int to
4926 bfd_vma. Print using MIT syntax, not mutant invalid Motorola
4927 syntax. Sign extend 8 byte displacement correctly.
4928 (print_base): Print using MIT syntax. Print zpc when appropriate.
4929 Change parameter disp from int to bfd_vma.
4931 * m68k-opc.c (m68k_opcode_aliases): Add jsrl and jsrs as aliases
4936 * sh-dis.c (print_insn_shx): Handle new operand types F_REG_N,
4937 F_REG_M, FPSCR_M, FPSCR_N, FPUL_M and FPUL_N.
4938 * sh-opc.h (sh_arg_type): Add new operand types.
4939 (sh_table): Add new opcodes from SH3E Floating Point ISA.
4943 * Makefile.in (distclean): Remove generated file config.h.
4947 * Makefile.in (distclean): Remove generated file config.h.
4951 * m68k-opc.c: New file, holding tables from include/opcode/m68k.h.
4953 * m68k-dis.c: Remove BREAK_UP_BIG_DECL stuff.
4955 (print_insn_m68k): Change d to be const. Use m68k_numopcodes
4956 rather than numopcodes. Use m68k_opcodes rather than removed
4957 opcode function. Don't check F_ALIAS.
4958 (print_insn_arg): Change first parameter to be const char *.
4959 * Makefile.in (ALL_MACHINES): Add m68k-opc.o.
4960 (m68k-opc.o): New target.
4961 * configure.in: Build m68k-opc.o for bfd_m68k_arch.
4962 * configure: Rebuild.
4966 * sparc-dis.c (HASH_SIZE, HASH_INSN): Define.
4967 (opcode_bits, opcode_hash_table): New variables.
4968 (opcodes_initialized): Renamed from opcodes_sorted.
4969 (build_hash_table): New function.
4970 (is_delayed_branch): Use hash table.
4971 (print_insn): Renamed from print_insn_sparc, made static.
4972 Build and use hash table. If !sparc64, ignore sparc64 insns,
4973 and vice-versa if sparc64.
4974 (print_insn_sparc, print_insn_sparc64): New functions.
4975 (compare_opcodes): Move sparc64 opcodes to end.
4976 Print commutative insns with constant second.
4977 * sparc-opc.c (all non-v9 insns): Use flag F_NOTV9 instead of F_ALIAS.
4981 * sh-dis.c (print_insn_shx): Remove unused local dslot. Use
4982 print_address_func for A_BDISP12 and A_BDISP8. Correct test which
4983 avoids printing a delay slot in a delay slot.
4984 * sh-opc.h (sh_table): Fully bracket last entry.
4988 * sparc-opc.c (sllx, srax, srlx): Fix disassembly.
4992 * configure.in: Get host_makefile_frag from ${srcdir}.
4994 * configure.in: Autoconfiscated. Check for string[s].h. Create
4995 config.h from config.in. Don't set up sysdep.h link.
4996 * sysdep.h: New file.
4997 * configure, config.in: New files, generated from configure.in.
4998 * Makefile.in: Updated to be processed autoconf-style.
4999 (distclean): Keep sysdep.h. Remove config.log and config.cache.
5000 (Makefile): Depend on config.status.
5001 (config.status): New rule.
5002 * configure.bat: Update Makefile substitutions.
5006 * mips-opc.c (L1): Define.
5007 (mips_opcodes): Add R4010 instructions: flushi, flushd, flushid,
5008 addciu, madd, maddu, ffc, ffs, msub, msubu, selsi, selsr, waiti,
5013 * mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu
5014 if ISA 3 and addu otherwise, replacing or, since some MIPS chips
5015 have multiple add units but only a single logical unit.
5017 * ppc-opc.c (powerpc_operands): Change CR to use a bitsize of 3,
5018 shifted by 18, without any insertion or extraction function.
5019 (insert_cr, extract_cr): Remove.
5023 * m68k-dis.c (print_insn_arg, print_indexed): Print "%" before
5028 * mpw-config.in: Add sh and i386 configs, remove sparc config.
5029 * sh-opc.h: Add copyright.
5033 * Makefile.in (crunch-m68k): Delete extra target accidentally
5034 checked in a while ago.
5038 * sh-opc.h (sh_table): Add SH3 support.
5042 * sh-opc.h: Added bsrf and braf.
5046 * arm-opc.h (arm_opcodes): Add 64-bit multiply patterns. Delete
5047 bogus [ls]fm{ea,fd} patterns.
5049 * arm-opc.h (arm_opcodes): Correct typos in stm, ldm, std, and ldc.
5050 * arm-dis.c (print_insn_arm): Make GIVEN a parameter, don't try and
5051 initialize it from memory. Make function static.
5052 (print_insn_{big,little}_arm): New functions.
5053 * disassemble.c (disassembler, case bfd_arch_arm): Disassemble for
5054 the correct endianness.
5058 * sh-opc.h (sh_nibble_type, sh_arg_type): remove trailing , from
5063 * m68k-dis.c (opcode): Finish change made by Kung Hsu on April
5064 17th, so that it builds again using GCC as the compiler.
5068 * mips-dis.c (print_insn_little_mips): Cast return value from
5069 bfd_getl32 from bfd_vma to unsigned long, because _print_insn_mips
5070 expects an unsigned long, and that might be fewer words of
5071 argument storage (e.g., if bfd_vma is long long on a 32-bit
5073 (print_insn_big_mips): Likewise with bfd_getb32 value.
5074 (_print_insn_mips): Now static.
5078 * m68k-dis.c: Take out #define BREAK_UP_BIG_DECL kludge, because
5079 gcc memory hog problem with initializer is fixed.
5083 Merge in support for Mac MPW as a host.
5084 (Old change descriptions retained for informational value.)
5086 * mpw-config.in (archname): Compute from the config.
5087 (BFD_MACHINES, ARCHDEFS): Put into mk.tmp.
5089 * mpw-config.in (target_arch): Compute from canonical target.
5090 (m68k, mips, powerpc, sparc): Add architectures.
5091 * mpw-make.in (disassemble.c.o): Add.
5092 (ALL_CFLAGS): Remove special flags (-mc68020 -mc68881 -model far).
5094 * mpw-config.in (BFD_MACHINES): Set to a default value.
5095 * mpw-make.in (BFD_MACHINES): Remove wired-in value.
5097 * mpw-make.in (CSEARCH): Add extra-include to search path.
5099 * mpw-config.in (varargs.h): Don't create.
5100 (sysdep.h): Create using forward-include.
5101 * mpw-make.in (CSEARCH): Add include/mpw to search path.
5103 * mpw-config.in: New file, MPW version of configure.in.
5104 * mpw-make.in: New file, MPW version of Makefile.in.
5108 * alpha-dis.c (print_insn_alpha): Put empty statement after
5113 * hppa-dis.c (sign_extend): Delete, redundant with libhppa.h version.
5114 (low_sign_extend): Likewise.
5115 (get_field): Delete unused function.
5116 (set_field, deposit_14, deposit_21): Likewise.
5120 * i386-dis.c: Support for more pentium opcodes. From Guy Harris
5127 * alpha-opc.h (OSF_ASMCODE): define
5128 print pal-code names as defined in App C of the
5129 Alpha Architecture Reference Manual
5131 * alpha-dis.c: cleaned up output
5132 print stylized code forms as defined in App A.4.3 of the
5133 Alpha Architecture Reference Manual
5137 * mips-opc.c: Add new mips4 instructions. Don't set INSN_RFE for
5139 * mips-dis.c (print_insn_arg): Handle new argument types 'h', 'R',
5144 * m68k-dis.c (opcode): New function. Returns address of opcode
5145 table entry given index, even if the opcode table was split to
5146 work around gcc bugs.
5147 (print_insn_m68k): Call opcode instead of referencing m68k_opcodes
5149 (BREAK_UP_BIG_DECL): Make secondary array static and const.
5150 (reg_names): Now const.
5151 (print_insn_arg): Arrays cacheFieldName and names now const.
5152 (print_indexed): Array scales now const.
5156 * ppc-opc.c: Sort recently added instructions by minor opcode
5157 number within major opcode number.
5161 * hppa-dis.c: Include libhppa.h.
5165 * mips-opc.c: Change dli to use M_DLI, and add dla.
5169 * Makefile.in (ALL_MACHINES): Add w65-dis.o.
5173 * mips-opc.c: Add r4650 mul instruction.
5177 * mips-opc.c: Add uld and usd macros for unaligned double load and
5182 * ppc-opc.c (powerpc_opcodes): Add 403GA opcodes rfci, dccci,
5183 mfdcr, mtdcr, icbt, iccci.
5187 * i960-dis.c (struct tabent, struct sparse_tabent): Change the
5188 signed char fields to shorts, more portable.
5192 * i960-dis.c (struct tabent, struct sparse_tabent): Declare the
5193 char fields as signed chars, since they may have negative values.
5197 * i386-dis.c (dis386_twobyte): Add cpuid, From Charles Hannum
5203 * ppc-opc.c (extract_bdm): Correct parenthezisation.
5204 * ppc-dis.c (print_insn_powerpc): Print .long before unrecognized
5209 * ppc-opc.c: Changes based on patch from David Edelsohn
5211 (powerpc_operands): Add operands SPRBAT and SPRG. Split TBR out of
5214 (insert_tbr): New static function.
5215 (extract_tbr): New static function.
5216 (XFXFXM_MASK, XFXM): Define.
5217 (XSPRBAT_MASK, XSPRG_MASK): Define.
5218 (powerpc_opcodes): Add instructions to access special registers by
5219 name. Add mtcr and mftbu.
5223 * mips-opc.c (P3): Define.
5224 (mips_opcodes): Add mad and madu.
5226 Sun Jan 15 16:32:59 1995 Steve Chamberlain <sac@splat>
5228 * configure.in: Add W65 support.
5229 * disassemble.c: Likewise.
5230 * w65-opc.h, w65-dis.c: New files.
5234 * h8300-dis.c (bfd_h8_disassemble): Add support for 2 bit
5239 * mips-opc.c: Add dli as a synonym for li.
5243 * alpha-dis.c (print_insn_alpha): Handle call_pal instruction, and
5244 print something for reserved opcode values, even if it won't
5247 * mips-dis.c (_print_insn_mips): When initializing, shift right
5248 and mask, to avoid sign extension problems on the Alpha.
5250 * m68k-dis.c (print_insn_arg, case 'J'): Handle buscr and pcr
5255 * sh-opc.h (mov.l gbr): Get direction right.
5256 * sh-dis.c (print_insn_shx): New function.
5257 (print_insn_shl, print_insn_sh): Call print_insn_shx to
5258 print opcodes with right byte order.
5262 * ns32k-dis.c (struct ns32k_option): Renamed from struct option,
5263 to avoid conflicts with getopt.
5267 * hppa-dis.c (print_insn_hppa): Read the instruction using
5268 bfd_getb32, so that it works on a little endian or 64 bit host.
5269 Remove unused local variable op.
5273 * mips-opc.c: Use or instead of addu for pseudo-op move, since
5274 addu does not work correctly if -mips3.
5278 * a29k-dis.c (print_special): Add special register names defined
5279 on 29030, 29040 and 29050.
5280 (print_insn): Handle new operand type 'I'.
5284 * Makefile.in (INSTALL): Use top level install.sh script.
5288 * sparc-dis.c: Rewrite to use bitfields, rather than a union, so
5289 that it works on a little endian host.
5293 * configure.in: Use ${config_shell} when running config.bfd.
5297 * mips-opc.c (mips_opcodes): "dabs" is only available with -mips3.
5301 * a29k-dis.c (print_insn): Print the opcode.
5305 * mips-opc.c (mips_opcodes): Set WR_t for sc and scd.
5309 * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.
5313 * mips-opc.c: Set INSN_STORE_MEMORY flag for all instructions
5314 which store a value into memory.
5318 * configure.in, Makefile.in, disassemble.c: Add support for the ARM.
5319 * arm-dis.c, arm-opc.h: New files.
5323 * Makefile.in (ns32k-dis.o): Add dependency.
5324 * ns32k-dis.c (print_insn_arg): Declare initialized local as
5325 string, not as array of chars.
5329 * sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.
5331 * sparc-opc.c: Added sparclite extended FP operations, and
5332 versions of v9 impdep* instructions permitting specification of
5337 * i960-dis.c (reg_names): Now const.
5338 (struct sparse_tabent): New type, copied from array type in mem
5340 (ctrl): Local static array ctrl_tab now const.
5341 (cobr): Local static array cobr_tab now const.
5342 (mem): Local variables reg1, reg2, reg3 now point to const. Local
5343 static variable mem_tab no longer explicitly initialized. Changed
5344 mem_init to const array of struct sparse_tabent.
5345 (reg): Local static variable reg_tab no longer explicitly
5346 initialized. Changed reg_init to const array of struct
5348 (ea): Local static array scale_tab now const.
5350 * i960-dis.c (reg): Added i960JX instructions to reg_init table.
5355 * configure.bat: the disassember needs to be enabled for
5356 "objdump -d" to work in djgpp.
5360 * ns32k-dis.c: Deleted all code in "#ifdef GDB".
5361 (invalid_float): Enabled general version, doesn't require running
5362 on ns32k host. Changed to take char* argument, and test for
5363 explicitly specified sizes, instead of using sizeof() on host CPU
5365 (INVALID_FLOAT): Cast first argument.
5366 (opt_u, opt_U, opt_O, opt_C, opt_S, list_P532, list_M532,
5367 list_P032, list_M032): Now const.
5368 (optlist, list_search): Made appropriate arguments now point to
5370 (print_insn_arg): Changed static array of one-character-string
5371 pointers into a static const array of characters; fixed sprintf
5372 statement accordingly.
5376 * opcodes/ns32k-dis.c: Semi-new file. Had apparently been dropped
5377 from distribution. A ns32k-dis.c from a previous distribution has
5378 been brought up to date and supports the new interface.
5380 * disassemble.c: define ARCH_ns32k and add case bfd_arch_ns32k.
5382 * configure.in: add bfd_ns32k_arch target support.
5384 * Makefile.in: add ns32k-dis.o to ALL_MACHINES.
5385 Add ns32k-dis.c to CFILES. Add dependencies for ns32k-dis.o.
5389 * h8300-dis.c (bfd_h8_disassemble): Get 16bit branch
5394 * h8300-dis.c, mips-dis.c: Don't use true and false.
5398 * configure.in: Change --with-targets to --enable-targets.
5402 * mips-dis.c (_print_insn_mips): Build a static hash table mapping
5403 opcodes to the first instruction with that opcode, to speed
5409 * Makefile.in (mostlyclean): Fix typo (was mostyclean).
5413 * configure.bat: update to latest makefile.in
5417 * a29k-dis.c (print_insn): Print 'x' type operand in hex.
5418 * h8300-dis.c (bfd_h8_disassemble): Print 16bit rels correctly.
5419 * sh-dis.c (print_insn_sh): Don't recur endlessly if delay
5420 slot insn is in a delay slot.
5421 * z8k-opc.h: (resflg): Fix patterns.
5422 * h8500-opc.h Fix CR insn patterns.
5426 * ppc-opc.c (powerpc_opcodes): Put PowerPC versions of "cmp" and
5427 "cmpl" before POWER versions, so that gas -many uses them.
5431 * disassemble.c: New file.
5432 * Makefile.in (OFILES): Add disassemble.o.
5433 (disassemble.o): Provide dependencies; compile with $(ARCHDEFS).
5434 * configure.in: Define ARCHDEFS in Makefile. Code taken from
5435 binutils/configure.in.
5437 * m68k-dis.c (print_insn_m68k): If F_ALIAS flag is set, skip the
5438 opcode being examined.
5442 * ppc-opc.c (powerpc_operands): Added RAL, RAM and RAS.
5443 (insert_ral, insert_ram, insert_ras): New functions.
5444 (powerpc_opcodes): Use RAL for load with update, RAM for lmw, and
5445 RAS for store with update.
5449 * ppc-opc.c (powerpc_opcodes): Correct fcir. From David Edelsohn
5454 * mips-opc.c (mips_opcodes): Correct operands of "nor" with an
5459 * sparc-opc.c (sparc_opcodes): Fix "rd %fprs,%l0".
5463 * ppc-opc.c (powerpc_operands): The signedp field has been
5464 removed, so don't initialize it. Set the PPC_OPERAND_SIGNED flag
5465 instead. Add new operand SISIGNOPT.
5466 (powerpc_opcodes): For lis, liu, addis, and cau use SISIGNOPT.
5468 * ppc-dis.c (print_insn_powerpc): Check PPC_OPERAND_SIGNED rather
5473 * i386-dis.c (struct private): Renamed to dis_private. `private'
5474 is a reserved word for dynix cc.
5478 * configure.in: Change error message to refer to bfd/config.bfd
5479 rather than bfd/configure.in.
5483 * ppc-opc.c: Define POWER2 as short alias flag.
5484 (powerpc_opcodes): Add POWER/2 opcodes lfq*, stfq*, fcir[z], and
5489 * i960-dis.c (print_insn_i960): Don't read a second word for
5490 opcodes 0, 1, 2 and 3.
5494 * configure.in: Don't build m68881-ext.o for bfd_m68k_arch.
5498 * m68881-ext.c: Removed; no longer used.
5499 * Makefile.in: Changed accordingly.
5501 * m68k-dis.c (ext_format_68881): Don't declare.
5502 (print_insn_m68k): If an instruction uses place 'i', it uses at
5503 least four fixed bytes.
5504 (print_insn_arg): Don't bump p by 2 for case 'I', place 'i'. For
5505 extended float, convert to double using floatformat_to_double, not
5506 ieee_extended_to_double, and fetch the data before converting it.
5510 * mips-opc.c: It's sqrt.s, not sqrt.w. From
5515 * ppc-opc.c (powerpc_opcodes): The POWER uses bdn[l][a] where the
5516 PowerPC uses bdnz[l][a].
5520 * dis-buf.c, i386-dis.c: Include sysdep.h.
5524 * configure.in (bfd_powerpc_arch): Use ppc-dis.o and ppc-opc.o.
5526 * ppc-opc.c (powerpc_opcodes): Mark POWER instructions supported
5527 by Motorola PowerPC 601 with PPC_OPCODE_601.
5528 * ppc-dis.c (print_insn_big_powerpc, print_insn_little_powerpc):
5529 Disassemble Motorola PowerPC 601 instructions as well as normal
5530 PowerPC instructions.
5534 * i960-dis.c (reg, mem): Just use a static array instead of
5539 * hppa-dis.c (print_insn_hppa): For '?' and '@' only adjust the
5540 condition name index if this is for a negated condition.
5542 * hppa-dis.c (print_insn_hppa): No space before 'H' operand.
5543 Floating point format for 'H' operand is backwards from normal
5544 case (0 == double, 1 == single). For '4', '6', '7', '9', and '8'
5545 operands (fmpyadd and fmpysub), handle bizarre register
5546 translation correctly for single precision format.
5548 * hppa-dis.c (print_insn_hppa): Do not emit a space after 'F'
5549 or 'I' operands if the next format specifier is 'M' (fcmp
5550 condition completer).
5554 * ppc-opc.c (powerpc_operands): New operand type MBE to handle a
5555 single number giving a bitmask for the MB and ME fields of an M
5556 form instruction. Change NB to accept 32, and turn it into 0;
5557 also turn 0 into 32 when disassembling. Seperated SH from NB.
5558 (insert_mbe, extract_mbe): New functions.
5559 (insert_nb, extract_nb): New functions.
5560 (SC_MASK): Mask out SA and LK bits.
5561 (powerpc_opcodes): Change "cal" to use RT, D, RA rather than RT,
5562 RA, SI. Change "liu" and "cau" to use UI rather than SI. Mark
5563 "bctr" and "bctrl" as accepted by POWER. Change "rlwimi",
5564 "rlimi", "rlwimi.", "rlimi.", "rlwinm", "rlinm", "rlwinm.",
5565 "rlinm.", "rlmi", "rlmi.", "rlwnm", "rlnm", "rlwnm.", "rlnm." to
5566 use MBE rather than MB. Add "mfmq" and "mtmq" POWER instructions.
5567 (powerpc_macros): Define table of macro definitions.
5568 (powerpc_num_macros): Define.
5570 * ppc-dis.c (print_insn_powerpc): Don't skip optional operands
5571 if PPC_OPERAND_NEXT is set.
5575 * i960-dis.c (print_insn_i960): Make buffer bfd_byte instead of
5576 char. Retrieve contents using bfd_getl32 instead of shifting.
5580 * ppc-opc.c: New file. Opcode table for PowerPC, including
5581 opcodes for POWER (RS/6000).
5582 * ppc-dis.c: New file. PowerPC and Power (RS/6000) disassembler.
5583 * Makefile.in (ALL_MACHINES): Add ppc-dis.o and ppc-opc.o.
5584 (CFILES): Add ppc-dis.c.
5585 (ppc-dis.o, ppc-opc.o): New targets.
5586 * configure.in: Build ppc-dis.o and ppc-opc.o for bfd_rs6000_arch.
5590 * hppa-dis.c (print_insn_hppa): Handle 'N' in assembler template.
5591 No space before 'u', 'f', or 'N'.
5595 * i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
5596 farther than we should.
5598 * i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.
5602 * sparc-dis.c m68k-dis.c alpha-dis.c a29k-dis.c: Fix comments.
5606 * i960-dis.c (print_insn_i960): Only read word2 if the instruction
5607 needs it, to prevent reading past the end of a section.
5611 * mips-opc.h: Use macro for j instruction, to support SVR4 PIC.
5612 Removed t,A case for la; always use t,A(b) case.
5617 * mips-dis.c (print_insn_arg): Handle 'k'.
5618 * mips-opc.c: Make cache use k, not t.
5622 * alpha-opc.h, alpha-dis.c (print_insn_alpha): Add
5623 FLOAT_MEMORY_FORMAT_CODE, FLOAT_BRANCH_FORMAT_CODE, correct
5624 FLOAT_FORMAT_CODE to put out floating point register names.
5628 * mips-opc.c: Use macros for jal variants, to support SVR4 PIC.
5632 * a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.
5636 * mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
5637 larger than 32. Moved dsxx32 variants first for disassembler.
5641 * z8kgen.c, z8k-opc.h: Add full lda information.
5645 * hppa-dis.c (print_insn_hppa): Do not emit a space after
5646 movb instructions. Any necessary space will be emitted by
5647 the code to handle nullification completers.
5651 * mips-opc.c: Moved l.d down so that it disassembles as ldc1.
5655 * alpha-opc.h: Add ldl_l, fix typo for ldq_u.
5656 * alpha-dis.c (print_insn_alpha): Add code for PAL_FORMAT_CODE.
5660 * mips-opc.c: Correct lwu opcode value (book had it wrong).
5664 * z8k-dis.c (FETCH_DATA): get just the right amount of data.
5665 (unpack_instr): Cope with ARG_IMM4M1 type instructions.
5669 * m88k-dis.c (m88kdis): comment change. Remove space after
5671 (printop): handle new arg types DEC and XREG for m88110.
5675 * hppa-dis.c (print_insn_hppa): Handle 'z' operand
5676 type for absolute branch addresses. Delete special
5677 "ble" and "be" code in 'W' operand code.
5681 * mips-opc.c: Set hazard information correctly for branch
5682 likely instructions.
5686 * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
5687 info->fprintf_func for printing and info->print_address_func for
5692 * mips-opc.c: Set INSN_TRAP for tXX instructions.
5697 Corrected second case of "b" for disassembler.
5701 * mips-dis.c, m88k-dis.c: Don't include libbfd.h. Changed calls
5702 to BFD swapping routines to correspond to BFD name changes.
5706 * mips-opc.c: Change div machine instruction to be z,s,t rather
5707 than s,t. Change div macro to be d,v,t rather than d,s,t.
5708 Likewise for divu, ddiv, ddivu. Added z,s,t case for drem, dremu,
5709 rem and remu which generates only the corresponding div
5710 instruction. This is for compatibility with the MIPS assembler,
5711 which only generates the simple machine instruction when an
5712 explicit destination of $0 is used.
5713 * mips-dis.c (print_insn_arg): Handle 'z' (always register zero).
5718 WR_31 hazard for bal, bgezal, bltzal.
5722 * hppa-dis.c (print_insn_hppa): Use print function
5723 from within the disassemble_info, not fprintf_filtered.
5727 * hppa-dis.c (print_insn_hppa): Handle '|' like '>'. (From Jeff
5732 * mips-opc.c ("absu"): Removed.
5737 * mips-opc.c: Added r6000 and r4000 instructions and macros.
5738 Changed hazard information to distinguish between memory load
5739 delays and coprocessor load delays.
5743 * mips-opc.c: li.d uses "T,L", not "S,F". Added li.s.
5747 * configure.in: Don't pass cpu to config.bfd.
5751 * m88k-dis.c (m88kdis): Make class unsigned.
5755 * alpha-dis.c (print_insn_alpha): One branch format case was
5756 missing the instruction name.
5760 * Makefile.in (ALL_MACHINES): Renamed from DIS_LIBS.
5761 Add the arch-specific auxiliary files.
5762 (OFILES): Remove the arch-specific auxiliary files
5763 and use BFD_MACHINES instead of DIS_LIBS.
5764 * configure.in: Set BFD_MACHINES based on --with-targets option.
5768 * mips-opc.c: Added lwc1 E,A(b) to go with lwc1 T,A(b). Similarly
5773 * sparc-opc.c: Change CONST to const to deal with gcc
5774 -Dconst=__const -traditional.
5779 coprocessor instructions out of #if 0, and made them use new
5784 * sparc-dis.c: Include ansidecl.h before opcodes/sparc.h.
5788 * sparc-opc.c: Add F_JSR, F_UNBR, or F_CONDBR flags to each branch
5789 instruction, for use by the disassembler.
5791 * sparc-dis.c (SEX): Add sign extension macro. Replace many
5792 hand-coded sign extensions that depended on 32-bit host ints.
5793 FIXME, we still depend on big-endian host bitfield ordering.
5794 (sparc_print_insn): Set the insn_info_valid field, and the
5795 other fields that describe the instruction being printed.
5799 * sparc-opc.c (call): Accept all 6 addressing modes valid for
5800 `jmp' instead of just one of them.
5804 * hppa-dis.c: Move floating registers from reg_names to fp_reg_names.
5805 (fput_fp_reg_r): Renamed from fput_reg_r.
5806 (fput_fp_reg): New function.
5807 (print_insn_hppa): Use fput_fp_reg{,_r} where appropriate.
5809 * hppa-dis.c (print_insn_hppa, cases 'a', 'd'): Print space afterwards.
5811 * hppa-dis.c (print_insn_hppa, case 'd'): Use GET_COND not GET_FIELD.
5815 * hppa-dis.c (print_insn_hppa): Use extract_5r_store for 'r'.
5817 * hppa-dis.c (print_insn_hppa, case '>'): If next character is 'n',
5818 don't output a space.
5820 * hppa-dis.c (float_format_names): 10 is undefined, and 11 is quad.
5824 * mips-opc.c: New file, containing opcode table from
5825 ../include/opcode/mips.h.
5826 * Makefile.in: Add it.
5830 * m88k-dis.c: New file, moved in from gdb and changed to use the
5831 new dis-asm.h disassembler interface.
5832 * Makefile.in (DIS_LIBS): Added m88k-dis.o.
5833 (m88k-dis.o): New target.
5837 * mips-dis.c (print_insn_arg, _print_insn_mips): Made pointer to
5838 argument string const char * to correspond to opcode/mips.h.
5842 * mips-dis.c: Updated to account for name changes in new version
5844 * Makefile.in: Added header file dependencies.
5848 * h8300-dis.c (bfd_h8_disassemble): Correct fetching of instruction.
5852 * m68k-dis.c (NEXTWORD, NEXTLONG): Use ((x) ^ 0x8000) - 0x8000 to sign
5853 extend, rather than shifts.
5857 * Makefile.in: Undo 15 June change.
5861 * m68k-dis.c (print_insn_arg): Change return value to byte count
5863 * m68k-dis.c: Re-write to detect invalid operands before
5864 printing anything, so we can handle this the same way we
5865 handle invalid opcodes.
5869 * sh-dis.c, sh-opc.h: Understand some more opcodes.
5873 * hppa-dis.c: Include <ansidecl.h> and sysdep.h before other
5878 * sparc-dis.c: Don't declare qsort, since sysdep.h might.
5880 * configure.in: Do make sysdep.h link.
5881 * Makefile.in: Search ../include. Don't search ../bfd.
5886 * hppa-dis.c: Fix typo. 'a' and 'd' were reversed.
5887 Do not print a space before the completers specified by
5892 * mips-dis.c: No longer need to bomb out if HOST_64_BIT is
5893 defined, since gdb has been fixed.
5896 * hppa-dis.c (print_insn_hppa): Last argument to fput_reg,
5897 fput_reg_r, fput_creg, fput_const, and fputs_filtered should
5898 be a *disassemble_info, not a *FILE.
5899 * hppa-dis.c: Support 'd', '!', and 'a'.
5900 * hppa-dis.c: Support 's' to extract a 2 bit space register.
5901 * hppa-dis.c: Delete cases which are no longer needed.
5905 * m68k-dis.c (print_insn_{m68k,arg}): Add MMU codes.
5909 * h8300-dis.c: New file, removed from bfd/cpu-h8300.c, with
5914 * Makefile.in (CSEARCH): Add -I../bfd for sysdep.h and bfd.h.
5915 * configure.in: No longer need to configure to get sysdep.h.
5920 * hppa-dis.c: Support 'I', 'J', and 'K' in output
5921 templates for 1.1 FP computational instructions.
5925 * h8500-dis.c (print_insn_h8500): Address argument is type
5927 * z8k-dis.c (print_insn_z8k, print_insn_z8001, print_insn_z8002):
5930 * h8500-opc.h (addr_class_type): No comma at end of enumerator.
5931 * sh-opc.h (sh_nibble_type, sh_arg_type): Ditto.
5933 * sparc-dis.c (compare_opcodes): Move static declaration to
5938 * sparc-dis.c (print_insn_sparc): Implement 'n' argument for unimp
5939 instruction, remove unimp hack from 'l' argument.
5943 * z8k-dis.c (fetch_data): Use unsigned char to make ancient gcc's
5949 * mips-dis.c (print_insn_arg): Handle 'C' for general coprocessor
5954 * hppa-dis.c: Include dis-asm.h before sysdep.h. Changed some
5955 arrays of string pointers to 2-d arrays of chars, to save
5960 * a29k-dis.c, alpha-dis.c, i960-dis.c, sparc-dis.c, z8k-dis.c:
5961 Cast second arg to read_memory_func to "bfd_byte *", as necessary.
5965 * hppa-dis.c: New file from Utah, adapted to new disassembler
5967 * Makefile.in: Include it.
5971 * sh-dis.c, sh-opc.h: New files.
5975 * alpha-dis.c, alpha-opc.h: New files.
5979 * mips-dis.c: Sign extend 'j' and 'b' arguments, delta is a signed
5984 * sparc-dis.c: Make "ta" the default trap instruction, "t" the alias.
5988 * a29k-dis.c, sparc-dis.c, sparc-opc.c: Use CONST rather than
5993 * sparc-dis.c: Use fprintf_func a few places where I forgot,
5994 and double percent signs a few places.
5996 * a29k-dis.c, i960-dis.c: New, merged from gdb and binutils.
5998 * i386-dis.c, m68k-dis.c, mips-dis.c, sparc-dis.c:
5999 Use info->print_address_func not print_address.
6001 * dis-buf.c (generic_print_address): New function.
6005 * Makefile.in: Add sparc-dis.c.
6006 sparc-dis.c: New file, merges binutils and gdb versions as follows:
6008 Add `add' instruction to the set that get checked
6009 for a preceding `sethi' in order to print an absolute address.
6010 * (print_insn): Disassembly prefers real instructions.
6011 (is_delayed_branch): Speed up.
6012 * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
6013 Still missing some float ops, and needs testing.
6014 * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
6015 F_ALIAS. Use printf, not fprintf, when not passing a file
6017 (compare_opcodes): Check that identical instructions have
6018 identical opcodes, complain otherwise.
6021 * Include reg_names.
6023 Use dis-asm.h/read_memory_func interface.
6027 * h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
6028 deliberately return non-zero to setjmp from longjmp. Otherwise
6029 this code fails to compile.
6033 * m68k-dis.c: Fix prototype for fetch_arg().
6037 * dis-buf.c: New file, for new read_memory_func interface.
6038 Makefile.in (OFILES): Include it.
6039 m68k-dis.c, i386-dis.c, h8500-dis.c, mips-dis.c, z8k-dis.c:
6040 Use new read_memory_func interface.
6044 * h8500-dis.c (print_insn_h8500): Get sign of fp offsets right.
6045 * h8500-opc.h: Fix couple of opcodes.
6047 Wed Mar 24 02:03:36 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
6049 * Makefile.in: add dvi & installcheck targets
6053 * Makefile.in: Update for h8500-dis.c.
6057 * h8500-dis.c, h8500-opc.h: New files
6061 * mips-dis.c, z8k-dis.c: Converted to use interface defined in
6062 ../include/dis-asm.h.
6063 * m68k-dis.c: New file (merge of ../binutils/m68k-pinsn.c
6064 and ../gdb/m68k-pinsn.c).
6065 * i386-dis.c: New file (merge of ../binutils/i386-pinsn.c
6066 and ../gdb/i386-pinsn.c).
6067 * m68881-ext.c: New file. Moved definition of
6068 ext_format ext_format_68881 from ../gdb/m68k-tdep.c.
6069 * Makefile.in: Adjust for new files.
6071 * m68k-dis.c: Recognize '9' placement code, so (say) pflush
6072 can be dis-assembled.
6076 * mips-dis.c (print_insn_arg): Now returns void.
6080 * mips-dis.c (ansidecl.h): Include for benefit of sysdep.h
6081 files that use the macros.
6085 * mips-dis.c: New file, from gdb/mips-pinsn.c.
6086 * Makefile.in (DIS_LIBS): Added mips-dis.o.
6087 (CFILES): Added mips-dis.c.
6091 * z8k-dis.c (print_insn_z8001, print_insn_z8002): new routines
6092 * z8kgen.c, z8k-opc.h: fix sizes of some shifts.
6096 * Makefile.in: Improve *clean rules.
6097 * configure.in: Allow a default host.
6099 Tue Nov 17 19:53:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6101 * Makefile.in: also use -I$(srcdir)/../bfd, since some sysdep
6102 files include other sysdep files
6106 * z8k-dis.c z8k-opc.h z8kgen.c: checkpoint
6110 * configure.in: For host support, use ../bfd/configure.host
6111 so it stays in sync with the ../bfd/hosts database.
6113 Thu Oct 1 23:38:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
6115 * configure.in: use cpu-vendor-os triple instead of nested cases
6119 * z8k-dis.c (unparse_instr): fix bug where opcode returned was
6120 *always* the wrong one.
6124 * z8kgen.c: added copyright info
6128 * z8k-dis.c (unparse_instr): prettier tabs
6129 * z8kgen.c -> z8k-opc.h: bug fixes in tables
6131 Fri Sep 25 12:50:32 1992 Stu Grossman (grossman at cygnus.com)
6133 * configure.in: Add ncr* configuration.
6134 * z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make
6135 picayune ANSI compilers happy.
6139 * configure.in (i386): Make i386 and i486 synonymous for now.
6140 * configure.in (i[34]86-*-sysv4): Add my_host definition.
6144 * Makefile.in (install): Fix typo.
6148 * Makefile.in (make): Remove obsolete crud.
6149 (sparc-opc.o): Avoid Sun Make VPATH bug.
6153 * Makefile.in: since there are no SUBDIRS, remove rule and
6154 references of subdir_do.
6158 * Makefile.in (install): Get the library name right here too.
6159 Don't install bfd.h, since it's unrelated to this library. No
6160 subdirs to recurse into, either.
6161 (CFILES): The source file has a .c suffix, not .o.
6163 * sparc-opc.c: New file, moved from BFD.
6164 * Makefile.in (OFILES): Build it.
6168 * z8k-dis.c: fixed forward refferences of some declarations.
6172 * Makefile.in: get the name of the library right
6176 * z8k-dis.c: knows how to disassemble z8k stuff
6177 * z8k-opc.h: new file full of z8000 opcodes
6181 version-control: never