3 * mips-opc.c: Add FP_D to s.d instruction flags.
7 * m68k-opc.c (halt, pulse): Enable them on the 68060.
11 * tic80-opc.c (tic80_opcodes): Revert change that put the 32 bit
12 PC relative offset forms before the 15 bit forms. An assembler command
13 line option now chooses the default.
17 * d30v-opc.c (d30v_opcode_table): Set new flags bits
18 FLAG_{2WORD,MUL{16,32},ADDSUBppp}, in appropriate instructions.
22 * configure: Only build libopcodes shared if --enable-shared's value
23 was `yes', or was set to `*opcodes*'.
24 * aclocal.m4: Likewise.
25 * NOTE: this really needs to be fixed in libtool/libtool.m4, the
26 original source of this bit of code. It's not clear what the best fix
31 * tic80-opc.c (OFF_SL_PC, OFF_SL_BR): Minor formatting change.
32 (tic80_opcodes): Reorder table entries to put the 32 bit PC relative
33 offset forms before the 15 bit forms, to default to the long forms.
37 * alpha-opc.c (cvttq/*u*): Remove, as that suffix is invalid.
41 * arm-dis.c (print_insn_little_arm): Prevent examination of stored
42 symbol if none is present.
43 (print_insn_big_arm): Prevent examination of stored symbol if
48 * d10v-opc.c (d10v_opcodes): Correct entry for RTE.
52 * disassemble.c: Remove disasm_symaddr() function.
54 * arm-dis.c: Use info->symbol instead of info->flags to determine
55 if disassmbly should be in Thumb or Arm mode.
59 * arm-dis.c: Add support for disassembling Thumb opcodes.
60 (print_insn_thumb): New function.
62 * disassemble.c (disasm_symaddr): New function.
64 * arm-opc.h: Display nop pseudo ops alongside equivalent disassembly.
65 (thumb_opcodes): Table of Thumb opcodes.
69 * m68k-opc.c (btst): Change Dd@s to Dd;b.
71 * m68k-dis.c (print_insn_arg): Recognize 'm', 'n', 'o', 'p', 'q',
72 and 'v' as operand types.
76 * m68k-opc.c: Add argument for lpstop. From Olivier Carmona
78 * m68k-dis.c (print_insn_m68k): Handle special case of lpstop,
79 which has a two word opcode with a one word argument.
83 * d30v-opc.c (d30v_opcode_table, case cmpu): Immediate field is
85 (d30v_format_table): Add SHORT_CMPU cases for cmpu.
89 * d10v-dis.c (print_operand):
90 Split OPERAND_FLAG into OPERAND_FFLAG and OPERAND_CFLAG.
94 * d10v-opc.c (OPERAND_FLAG): Split into:
95 (OPERAND_FFLAG, OPERAND_CFLAG) .
101 * mips-opc.c: Move the INSN_MACRO ISA value to the membership
102 field for all INSN_MACRO's.
107 * mips-opc.c (sync,cache): These are 3900 insns.
111 sh-opc.h (sh_table): Remove ftst/nan.
115 * mips-opc.c (ffc, ffs): Fix mask.
119 * d30v-opc.c (pre_defined_registers): Add eit_vb, int_s, and int_m
124 * mips-opc.c: Fix bug in mask for "not" pseudo-instruction.
125 (WR_HILO, RD_HILO, MOD_HILO): New macros.
129 * mips-opc.c: Fix bug in mask for "not" pseudo-instruction.
130 (WR_HILO, RD_HILO, MOD_HILO): New macros.
134 * v850-dis.c (disassemble): Replace // with /* ... */
138 * sparc-opc.c: Add wr & rd for v9a asr's.
139 * sparc-dis.c (print_insn_sparc): Recognize '_' and '/' for v9a asr's.
140 (v9a_asr_reg_names): New variable.
145 * sparc-opc.c (v9notv9a): New insn type.
146 (IMPDEP): Move to the end to not conflict with edge8 et al.
151 * mips-opc.c (bnezl,beqzl): Mark these as also tx39.
155 * mips-opc.c: Note that 'jalx' is (probably incorrectly) marked I1.
159 * v850-dis.c (disassemble): Use new symbol_at_address_func() field
160 of disassemble_info structure to determine if an overlay address
161 has a matching symbol in low memory.
163 * dis-buf.c (generic_symbol_at_address): New (dummy) function for
164 new symbol_at_address_func field in disassemble_info structure.
168 * v850-opc.c (extract_d22): Use signed arithmatic.
172 * mips-opc.c: Three op mult is not an ISA insn.
176 * mips-opc.c: Fix formatting.
180 * i386-dis.c (OP_E): Explicitly sign extend 8 bit values, rather
181 than assuming that char is signed. Explicitly sign extend 16 bit
182 values, rather than assuming that short is 16 bits.
183 (OP_sI, OP_J, OP_DIR): Likewise.
187 * v850-dis.c (v850_sreg_names): Use symbolic names for higher
192 * v850-opc.c: Fix typo in comment.
194 * v850-dis.c (disassemble): Add test of processor type when
199 * configure.in: Use a diversion to set enable_shared before the
200 arguments are parsed.
201 * configure: Rebuild.
205 * m68k-opc.c (TBL1): Use ! rather than `.
206 * m68k-dis.c (print_insn_arg): Remove ` operand specifier.
210 * m68k-opc.c: Correct bchg, bclr, bset, and btst on ColdFire.
212 * m68k-opc.c: Accept tst{b,w,l} with immediate operands on cpu32.
214 * m68k-opc.c: Correct movew of an immediate operand to %sr or %ccr
217 * configure.in: Call AC_CHECK_TOOL before AM_PROG_LIBTOOL.
218 * aclocal.m4: Rebuild with new libtool.
219 * configure: Rebuild.
223 * v850-opc.c ("cmov"): Order reg param r1, r2 not r2, r2.
227 * sparc-opc.c (sparclet_cpreg_table): Add %ccsr2, %cccrr, %ccrstr.
231 * v850-opc.c (v850_opcodes): Further rearrangements.
235 * d30v-opc.c (rot2h, sra2h, srl2h insns): Revert last change.
239 * v850-opc.c (v850_opcodes): Fields reordered to allow assembler
244 * mips-opc.c: Added tx39 insns sdbbp, rfe, and deret.
248 * v850-opc.c: Initialise processors field of v850_opcode structure.
252 Merge changes from Martin Hunt:
254 * d30v-opc.c: Change mvfacc to accept 6-bit unsigned values.
256 * d30v-opc.c (pre_defined_registers): Add control registers from 0-63.
257 (d30v_opcode_tabel): Add dbt, rtd, srah, and srlh instructions. Fix
258 rot2h, sra2h, and srl2h to use new SHORT_A5S format.
260 * d30v-dis.c (print_insn): Fix disassembly of SHORT_D2 opcodes.
262 * d30v-dis.c (print_insn): First operand of d*i (delayed
263 branch) instructions is relative.
265 * d30v-opc.c (d30v_opcode_table): Change form for repeati.
266 (d30v_operand_table): Add IMM6S3 type.
267 (d30v_format_table): Change SHORT_D2. Add LONG_Db.
269 * d30v-dis.c: Fix bug with ".s" and ".l" extensions
270 and cmp instructions.
272 * d30v-opc.c: Correct entries for repeat*, and sat*.
273 Make IMM5 unsigned. Create IMM6U and IMM12S3U operand
274 types. Correct several formats.
276 * d30v-opc.c: (pre_defined_registers): Add dpsw and dpc.
278 * d30v-opc.c (pre_defined_registers): Change control registers.
280 * d30v-opc.c (d30v_format_table): Correct SHORT_C1 and
281 SHORT_C2. Manual was incorrect.
283 * d30v-dis.c (lookup_opcode): Return value now indicates
284 if an opcode has a short and a long form. Used for deciding
285 to append a ".s" or ".l".
286 (print_insn): Append a ".s" to an instruction if it is
287 the short form and ".l" if it is a long form. Do not append
288 anything if the instruction has only one possible size.
290 * d30v-opc.c: Change mulx2h to require an even register.
291 New form: SHORT_A2; a SHORT_A form that needs an even
292 register as the first operand.
294 * d30v-dis.c (print_insn_d30v): Fix problem where the last
295 instruction was not being disassembled if there were an odd
296 number of instructions.
298 * d30v-opc.c (SHORT_M2, LONG_M2): Two new forms.
302 * v850-dis.c (disassemble): Improved display of register lists.
306 * sparc-opc.c (sparc_opcodes): Fix assembler args to
307 fzeros, fones, fsrc1, fsrc1s, fsrc2s, fnot1, fnot1s, fnot2s,
308 fors, fnors, fands, fnands, fxors, fxnors, fornot1s, fornot2s,
309 fandnot1s, fandnot2s.
313 * sparc-opc.c (sparc_opcodes): Fix op3 field for fcmpq/fcmpeq.
317 * cgen-asm.c (cgen_parse_address): New argument resultp.
319 * m32r-asm.c (parse_h_hi16): Right shift numbers by 16.
323 * mn10200-dis.c (disassemble): PC relative instructions are
324 relative to the next instruction, not the current instruction.
328 * v850-dis.c (disassemble): Only signed extend values that are not
329 returned by extract functions.
330 Remove use of V850_OPERAND_ADJUST_SHORT_MEMORY flag.
334 * v850-opc.c: Update comments. Remove use of
335 V850_OPERAND_ADJUST_SHORT_MEMORY. Fix several operand patterns.
339 * v850-opc.c (MOVHI): Immediate parameter is unsigned.
343 * configure: Rebuilt with latest devo autoconf for NT support.
347 * v850-dis.c (disassemble): Use curly brace syntax for register
350 * v850-opc.c (v850_opcodes[]): Add NOT_R0 flag to decect cases
351 where r0 is being used as a destination register.
355 * v850-opc.c (v850_opcodes[]): Move divh opcodes next to each other.
359 * alpha-opc.c (alpha_opcodes): Fix hw_rei_stall mungage.
363 * v850-opc.c (v850_opcodes[]): Remove use of flag field.
364 * v850-opc.c (v850_opcodes[]): Add support for reversed short load
369 * configure (cgen_files): Add support for v850e target.
370 * configure.in (cgen_files): Add support for v850e target.
374 * configure (cgen_files): Add support for v850ea target.
375 * configure.in (cgen_files): Add support for v850ea target.
379 * configure.in (bfd_arc_arch): Add.
380 * configure: Rebuild.
381 * Makefile.am (ALL_MACHINES): Add arc-dis.lo, arc-opc.lo.
382 * Makefile.in: Rebuild.
383 * arc-dis.c, arc-opc.c: New files.
384 * disassemble.c (ARCH_all): Define ARCH_arc.
385 (disassembler): Add ARC support.
389 * v850-dis.c (disassemble): Add support for v850EA instructions.
391 * v850-opc.c (insert_i5div, extract_i5div): New Functions.
392 (v850_opcodes): Add v850EA instructions.
394 * v850-dis.c (disassemble): Add support for v850E instructions.
396 * v850-opc.c (insert_d5_4, extract_d5_4, insert_d16_16,
397 extract_d16_16, insert_i9, extract_i9, insert_u9, extract_u9,
398 insert_spe, extract_spe): New Functions.
399 (v850_opcodes): Add v850E instructions.
401 * v850-opc.c: Reorganised and re-layed out to improve readability
406 * configure: Rebuild with autoconf 2.12.1.
410 * aclocal.m4, configure: Rebuild with new automake patches.
414 * configure.in: Set enable_shared before AM_PROG_LIBTOOL.
415 * acinclude.m4: Just include acinclude.m4 from BFD.
416 * aclocal.m4, configure: Rebuild.
420 * Makefile.am: New file, based on old Makefile.in.
421 * acconfig.h: New file.
422 * acinclude.m4: New file.
423 * stamp-h.in: New file.
424 * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL.
425 Removed shared library handling; now handled by libtool. Replace
426 AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AM_MAINTAINER_MODE,
427 AM_CYGWIN32, and AM_EXEEXT. Replace AC_PROG_INSTALL with
428 AM_PROG_INSTALL. Change all .o files to .lo. Remove stamp-h
429 handling in AC_OUTPUT.
430 * dep-in.sed: Change .o to .lo.
431 * Makefile.in: Now built with automake.
432 * aclocal.m4: Now built with aclocal.
433 * config.in, configure: Rebuild.
437 * mips-opc.c: Fix typo/thinko in "eret" instruction.
441 * sparc-opc.c (sparc_opcodes): Fix spelling on fpaddX, fpsubX insns.
443 * sparc-dis.c (sorted_opcodes): New static local.
444 (struct opcode_hash): `opcode' is pointer to const element.
445 (build_hash): First arg is now table of sorted pointers.
446 (print_insn_sparc): Sort opcodes by sorting table of pointers.
447 (compare_opcodes): Update.
451 * cgen-opc.c: #include <ctype.h>.
452 (hash_keyword_name): New arg `case_sensitive_p'. Callers updated.
453 Handle case insensitive hashing.
454 (hash_keyword_value): Change type of `value' to unsigned int.
458 * mips-opc.c (mips_builtin_opcodes): If an insn uses single
459 precision FP, mark it as such. Likewise for double precision
460 FP. Mark ISA1 insns. Consolidate duplicate opcodes where
465 * ppc-opc.c (extract_nsi): make unsigned expression signed before
467 (UNUSED): remove one level of parens, so MSVC doesn't choke on
468 nesting depth when all the macros are expanded.
472 * sparc-opc.c: The fcmp v9a instructions take an integer register
473 as a destination, not a floating point register. From Christian
478 * m68k-dis.c (print_insn_arg): Print case 7.2 using %pc@()
479 syntax. From Roman Hodek
482 * i386-dis.c (twobyte_has_modrm): Fix pand.
486 * i386-dis.c (dis386_twobyte): Fix pand and pandn.
490 * arm-dis.c: Add prototypes for arm_decode_shift and
495 * mips-opc.c: Add r3900 insns.
499 * sh-dis.c (print_insn_shx): Change relmask to bfd_vma. Don't
500 print delay slot instructions on the same line. When using a PC
501 relative load, add a comment with the value being loaded if it can
506 * i386-dis.c (dis386[], dis386_twobyte[]): change pushl/popl
507 to pushS/popS for segment regs and byte constant so that
508 pushw/popw printed when in 16 bit data mode.
510 * i386-dis.c (dis386[]): change cwtl, cltd to cWtS, cStd to
511 print cbtw, cwtd in 16 bit data mode.
512 * i386-dis.c (putop): extra case W to support above.
514 * i386-dis.c (print_insn_x86): print addr32 prefix when given
515 address size prefix in 16 bit address mode.
519 * sh-dis.c: Reindent. Rename local variable fprintf to
524 * m32r-opc.c (m32r_cgen_insn_table, cmpui): Undo patch of May 2.
528 * mips-opc.c (mips_builtin_opcodes): Moved INSN_ISA field into new
530 * mips16-opc.c (mip16_opcodes): same.
534 * m68k-opc.c (moveb): Change $d to %d.
538 * i386-dis.c: (dis386_twobyte): Add MMX instructions.
539 (twobyte_has_modrm): Likewise.
541 (OP_MMX, OP_EM, OP_MS): New static functions.
543 * i386-dis.c: Revert patch of April 4. The output now matches
548 * m32r-opc.c (m32r_cgen_insn_table, cmpui): Use $uimm16 instead
553 * m32r-opc.h (CGEN_ARCH): Renamed from CGEN_CPU.
557 * Makefile.in (install): Depend upon installdirs.
558 (installdirs): New target.
563 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
564 * configure: Rebuild.
568 * cgen-*.c, m32r-*.c: #include sysdep.h instead of config.h.
569 Delete string{,s}.h support.
573 * cgen-asm.c (cgen_parse_operand_fn): New global.
574 (cgen_parse_{{,un}signed_integer,address}): Update call to
575 cgen_parse_operand_fn.
576 (cgen_init_parse_operand): New function.
577 * m32r-asm.c (parse_insn_normal): cgen_init_parse_operand renamed
578 from cgen_asm_init_parse.
579 (m32r_cgen_assemble_insn): New operand `errmsg'.
580 Delete call to as_bad, return error message to caller.
581 (m32r_cgen_asm_hash_keywords): #if 0 out.
585 * m68k-dis.c (print_insn_arg) [case 'd']: Print as address register,
587 [case 'J']: Fix typo in register name.
591 * configure.in: Substitute SHLIB_LIBS.
592 * configure: Rebuild.
593 * Makefile.in (SHLIB_LIBS): New variable.
594 ($(SHLIB)): Use $(SHLIB_LIBS).
598 * cgen-dis.c (build_dis_hash_table): Fix xmalloc size computation.
600 * cgen-opc.c (hash_keyword_name): Improve algorithm.
602 * disassemble.c (disassembler): Handle m32r.
606 * m32r-asm.c, m32r-dis.c, m32r-opc.c, m32r-opc.h: New files.
607 * cgen-asm.c, cgen-dis.c, cgen-opc.c: New files.
608 * Makefile.in (CFILES): Add them.
609 (ALL_MACHINES): Add them.
610 (dependencies): Regenerate.
611 * configure.in (cgen_files): New variable.
612 (bfd_m32r_arch): Add entry.
613 * configure: Regenerate.
617 * configure.in: Correct file names for bfd_mn10[23]00_arch.
618 * configure: Rebuild.
620 * Makefile.in: Rebuild dependencies.
622 * d10v-dis.c: Include "ansidecl.h" before "opcode/d10v.h".
624 * i386-dis.c (float_reg): Swap fsubrp and fsubp. Swap fdivrp and
629 * Branched binutils 2.8.
633 * m10200-dis.c: Rename from mn10200-dis.c.
634 * m10200-opc.c: Rename from mn10200-opc.c.
635 * m10300-dis.c: Rename from mn10300-dis.c
636 * m10300-opc.c: Rename from mn10300-opc.c.
637 * Makefile.in: Update accordingly.
639 * mips16-opc.c: Add mul and dmul macros.
643 * makefile.vms: Update CFLAGS, add clean target.
647 * mips-opc.c: Add "wait". From Ralf Baechle
650 * configure.in: Add stdlib.h to AC_CHECK_HEADERS list.
651 * configure, config.in: Rebuild.
652 * sysdep.h: Include <stdlib.h> if it exists.
653 * sparc-dis.c: Include <stdio.h> and "sysdep.h". Don't include
655 * Makefile.in: Rebuild dependencies.
659 * ppc-opc.c: Add PPC 403 instructions and extended opcodes. From
662 * mips-opc.c: Add cast when setting mips_opcodes.
666 * v850-dis.c (disassemble): Fix sign extension problem.
667 * v850-opc.c (extract_d*): Fix sign extension problems to make
668 disassembly calculate branch offsets correctly.
672 * sh-opc.h: Add bf/s and bt/s as synonyms for bf.s and bt.s.
674 * mips-opc.c: Add dctr and dctw.
678 * d30v-dis.c (print_insn): Change the way signed constants
683 * Makefile.in (BFD_H): New variable.
684 (HFILES): New variable.
685 (CFILES): Add all C files.
686 (.dep, .dep1, dep.sed, dep, dep-in): New targets.
687 Delete old dependencies, and build new ones.
688 * dep-in.sed: New file.
692 * m68k-opc.c (m68k_opcode_aliases): Added blo and blo{s,b,w,l}.
696 * mn10200-opc.c: Change "trap" to "syscall".
697 * mn10300-opc.c: Add new "syscall" instruction.
701 * m68k-opc.c (m68k_opcodes): Provide correct entries for mulsl and
702 mulul insns on the coldfire.
706 * arm-dis.c (print_insn_arm): Don't print instruction bytes.
707 (print_insn_big_arm): Set bytes_per_chunk and display_endian.
708 (print_insn_little_arm): Likewise.
713 * i386-dis.c (fetch_data): Add prototype.
714 * m68k-dis.c (fetch_data): Add prototype.
715 (dummy_print_address): Add prototype. Make static.
716 * ppc-opc.c (valid_bo): Add prototype.
717 * sparc-dis.c (build_hash_table): Add prototype.
718 (is_delayed_branch, compute_arch_mask): Add prototypes.
719 (print_insn_sparc): Make several local variables const.
720 (compare_opcodes): Change arguments to const PTR. Add prototype.
721 * sparc-opc.c (arg): Change name field to be const.
722 (lookup_name, lookup_value): Add prototypes. Change table and
723 name parameters to be const.
724 (sparc_encode_asi): Change name parameter to be const.
725 (sparc_encode_membar, sparc_encode_prefetch): Likewise.
726 (sparc_encode_sparclet_cpreg): Likewise.
727 (sparc_decode_asi): Change return type to be const.
728 (sparc_decode_membar, sparc_decode_prefetch): Likewise.
729 (sparc_decode_sparclet_cpreg): Likewise.
733 * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since
734 Solaris doesn't like the combined options, and the -f is
736 (stamp-tshlink, install): Likewise.
740 * mn10300-opc.c (IMM16_PCREL, SD8N_PCREL, D16_SHIFT): Mark these
745 * m68k-opc.c (m68k_opcodes): Fix last change for the mc68010.
749 * m68k-opc.c (m68k_opcodes): Added entries for the tst insns on
754 * m68k-opc.c (m68k_opcodes): Added swbegl pseudo-instruction.
758 * tic80-dis.c (print_insn_tic80): Set info->bytes_per_line to 8.
762 * tic80-opc.c (tic80_predefined_symbols): Define r25 properly.
766 * m68k-dis.c (NEXTSINGLE, NEXTDOUBLE, NEXTEXTEND): Use
767 floatformat_to_double to make portable.
768 (print_insn_arg): Use NEXTEXTEND macro when extracting extended
773 * mips-opc.c: Initialize mips_opcodes to mips_builtin_opcodes,
774 and bfd_mips_num_opcodes to bfd_mips_num_builtin_opcodes.
778 * d10v-dis.c, d10v-opc.c: Change pre_defined_registers to
779 d10v_predefined_registers and reg_name_cnt to d10v_reg_name_cnt.
783 * tic80-opc.c (LSI_SCALED): Renamed from this ...
784 (OFF_SL_BR_SCALED): ... to this, and added the flag
785 TIC80_OPERAND_BASEREL to the flags word.
786 (tic80_opcodes): Replace all occurances of LSI_SCALED with
791 * mips-opc.c: Add macros for cop0, cop1 cop2 and cop3.
792 Change mips_opcodes from const array to a pointer,
793 and change bfd_mips_num_opcodes from const int to int,
794 so that we can increase the size of the mips opcodes table
799 * tic80-opc.c (tic80_predefined_symbols): Revert change to
800 store BITNUM values in the table in one's complement form
801 to match behavior when assembler is given a raw numeric
802 value for a BITNUM operand.
803 * tic80-dis.c (print_operand_bitnum): Ditto.
807 * d30v-opc.c: Removed references to FLAG_X.
811 * Makefile.in: Add dependencies on ../bfd/bfd.h as required.
815 * Makefile.in: Added d30v object files.
816 * configure: (bfd_d30v_arch) Rebuilt.
817 * configure.in: (bfd_d30v_arch) Added new case.
818 * d30v-dis.c: New file.
819 * d30v-opc.c: New file.
820 * disassemble.c (disassembler) Add entry for d30v.
824 * tic80-opc.c (tic80_predefined_symbols): Add symbolic
825 representations for the floating point BITNUM values.
829 * tic80-opc.c (tic80_predefined_symbols): Store BITNUM values
830 in the table in one's complement form, as they appear in the
832 (tic80_symbol_to_value): Use macros to access predefined
834 (tic80_value_to_symbol): Ditto.
835 (tic80_next_predefined_symbol): New function.
836 * tic80-dis.c (print_operand_bitnum): Remove code that did
837 one's complement for BITNUM values.
841 * makefile.vms: Remove 8 bit characters. Update to latest
846 * m68k-opc.c (m68k_opcodes): Add swbeg pseudo-instruction.
850 * mn10200-opc.c (IMM16_PCREL): This is a signed operand.
851 (IMM24_PCREL): Likewise.
855 * mips-dis.c (print_mips16_insn_arg): Use memaddr - 2 as the base
856 address for an extended PC relative instruction that is not a
861 * m68k-dis.c (print_insn_m68k): Set bytes_per_chunk and
866 * tic80-opc.c (tic80_operands): Fix typo '+' -> '|'.
867 (tic80_opcodes): Sort entries so that long immediate forms
868 come after short immediate forms, making it easier for
869 assembler to select the right one for a given operand.
873 * mips-dis.c (_print_insn_mips): Set bytes_per_chunk and
875 (print_insn_mips16): Likewise.
879 * tic80-opc.c (tic80_symbol_to_value): Changed to accept
880 a symbol class that restricts translation to just that
881 class (general register, condition code, etc).
885 * tic80-opc.c (tic80_operands): Add REG_0_E, REG_22_E,
886 and REG_DEST_E for register operands that have to be
887 an even numbered register. Add REG_FPA for operands that
888 are one of the floating point accumulator registers.
889 Add TIC80_OPERAND_MASK to flags for ENDMASK operand.
890 (tic80_opcodes): Change entries that need even numbered
891 register operands to use the new operand table entries.
892 Add "or" entries that are identical to "or.tt" entries.
896 * mips16-opc.c: Add new cases of exit instruction for
898 * mips-dis.c (print_mips16_insn_arg): Display floating point
899 registers in operands of exit instruction. Print `$' before
900 register names in operands of entry and exit instructions.
904 * tic80-opc.c (tic80_predefined_symbols): Table of name/value
905 pairs for all predefined symbols recognized by the assembler.
906 Also used by the disassembling routines.
907 (tic80_symbol_to_value): New function.
908 (tic80_value_to_symbol): New function.
909 * tic80-dis.c (print_operand_control_register,
910 print_operand_condition_code, print_operand_bitnum):
911 Remove private tables and use tic80_value_to_symbol function.
915 * d10v-dis.c (print_operand): Change address printing
916 to correctly handle PC wrapping. Fixes PR11490.
920 * mn10200-opc.c (mn10200_operands): Make 8 and 16 bit pc-relative
925 * mips-dis.c (print_insn_mips16): Set insn_info information.
926 (print_mips16_insn_arg): Likewise.
928 * mips-dis.c (print_insn_mips16): Better handling of an extend
929 opcode followed by an instruction which can not be extended.
933 * m68k-opc.c (m68k_opcodes): Changed operand specifier for the
934 coldfire moveb instruction to not allow an address register as
935 destination. Although the documentation does not indicate that
936 this is invalid, experiments uncovered unexpected behavior.
937 Added a comment explaining the situation. Thanks to Andreas
938 Schwab for pointing this out to me.
942 * tic80-opc.c (tic80_opcodes): Expand comment to note that the
943 entries are presorted so that entries with the same mnemonic are
944 adjacent to each other in the table. Sort the entries for each
945 instruction so that this is true.
949 * m68k-dis.c: Include <libiberty.h>.
950 (print_insn_m68k): Sort the opcode table on the most significant
951 nibble of the opcode.
955 * tic80-dis.c (tic80_opcodes): Add "wrcr", "vmpy", "vrnd",
956 "vsub", "vst", "xnor", and "xor" instructions.
957 (V_a1): Renamed from V_a, msb of accumulator reg number.
958 (V_a0): Add macro, lsb of accumulator reg number.
962 * tic80-dis.c (print_insn_tic80): Broke excessively long
963 function up into several smaller ones and arranged for
964 the instruction printing function to be callable recursively
965 to print vector instructions that have both a load and a
966 math instruction packed into a single opcode.
967 * tic80-opc.c (tic80_opcodes): Expand comment for vld opcode
968 to explain why it comes after the other vector opcodes.
972 * m68k-opc.c (m68k_opcodes): add b, w, or l specifier to coldfire
973 move insns to handle immediate operands.
977 * m68k-opc.c (m68k_opcodes): Delete duplicate entry for "cmpil".
978 fix operand mask in the "moveml" entries for the coldfire.
982 * tic80-opc.c (V_a, V_m, V_S, V_Z, V_p, OP_V, MASK_V):
983 New macros for building vector instruction opcodes.
984 (tic80_opcodes): Remove all uses of FMT_SI, FMT_REG, and
985 FMT_LI, which were unused. The field is now a flags field.
986 Remove some opcodes that are possible, but illegal, such
987 as long immediate instructions with doubles for immediate
988 values. Add "vadd" and "vld" instructions.
992 * tic80-opc.c (tic80_operands): Reorder some table entries to make
993 the order more logical. Move the shift alias instructions ("rotl",
994 "shl", "ins", "rotr", "extu", "exts", "srl", and "sra" to be
995 interspersed with the regular sr.x and sl.x instructions. Add
996 and test new instruction opcodes for "sl", "sli", "sr", "sri", "st",
997 "sub", "subu", "swcr", and "trap".
1001 * tic80-opc.c (OFF_SS_PC): Renamed from OFF_SS.
1002 (OFF_SL_PC): Renamed from OFF_SL.
1003 (OFF_SS_BR): New operand type for base relative operand.
1004 (OFF_SL_BR): New operand type for base relative operand.
1005 (REG_BASE): New operand type for base register operand.
1006 (tic80_opcodes): Add and test "fmpy", "frndm", "frndn", "frndp",
1007 "frndz", "fsqrt", "fsub", "illop0", "illopF", "ins", "jsr",
1008 "ld", "ld.u", "lmo", "or", "rdcr", "rmo", "rotl", and "rotr"
1010 * tic80-dis.c (print_insn_tic80): Print opcode name with fixed width
1011 10 char field, padded with spaces on rhs, rather than a string
1012 followed by a tab. Use renamed TIC80_OPERAND_PCREL flag bit rather
1013 than old TIC80_OPERAND_RELATIVE. Add support for new
1014 TIC80_OPERAND_BASEREL flag bit.
1018 * tic80-dis.c (print_insn_tic80): Print floating point operands
1020 * tic80-opc.c (SPFI): Add single precision floating point
1021 immediate operand type.
1022 (ROTATE): Add rotate operand type for shifts.
1023 (ENDMASK): Add for shifts.
1024 (n): Macro for the 'n' bit.
1025 (i): Macro for the 'i' bit.
1026 (PD): Macro for the 'PD' field.
1027 (P2): Macro for the 'P2' field.
1028 (P1): Macro for the 'P1' field.
1029 (tic80_opcodes): Add entries for "exts", "extu", "fadd",
1034 * mn10200-dis.c (disassemble): Mask off unwanted bits after
1035 adding in current address for pc-relative operands.
1039 * tic80-dis.c (R_SCALED): Add macro to test for ":s" modifier bit.
1040 (print_insn_tic80): If R_SCALED then print ":s" modifier for operand.
1041 * tic80-opc.c (REG0, REG22, REG27, SSOFF, LSOFF): Names
1042 changed to REG_0, REG_22, REG_DEST, OFF_SS, OFF_SL respectively.
1043 (SICR, LICR, REGM_SI, REGM_LI): Names changed to CR_SI, CR_LI,
1044 REG_BASE_M_SI, REG_BASE_M_LI respectively.
1045 (REG_SCALED, LSI_SCALED): New operand types.
1046 (E): New macro for 'E' bit at bit 27.
1047 (tic80_opcodes): Add and test dld, dld.u, dst, estop, and etrap
1048 opcodes, including the various size flavors (b,h,w,d) for
1049 the direct load and store instructions.
1053 * tic80-dis.c (M_SI, M_LI): Add macros to test for ":m" modifier bit
1055 * tic80-dis.c (print_insn_tic80): Change comma and paren handling.
1056 Use M_SI and M_LI macros to check for ":m" modifier for GPR operands.
1057 * tic80-opc.c (tic80_operands): Add REGM_SI and REGM_LI operands.
1058 (F, M_REG, M_LI, M_SI, SZ_REG, SZ_LI, SZ_SI, D, S): New bit-twiddlers.
1059 (MASK_LI_M, MASK_SI_M, MASK_REG_M): Remove and replace in opcode
1060 masks with "MASK_* & ~M_*" to get the M bit reset.
1061 (tic80_opcodes): Add bsr, bsr.a, cmnd, cmp, dcachec, and dcachef.
1065 * tic80-dis.c (print_insn_tic80): Print TIC80_OPERAND_RELATIVE
1066 correctly. Add support for printing TIC80_OPERAND_BITNUM and
1067 TIC80_OPERAND_CC, and TIC80_OPERAND_CR operands in symbolic
1069 * tic80-opc.c (tic80_operands): Add SSOFF, LSOFF, BITNUM,
1070 CC, SICR, and LICR table entries.
1071 (tic80_opcodes): Add and test "nop", "br", "bbo", "bbz",
1072 "bcnd", and "brcr" opcodes.
1076 * ppc-opc.c (powerpc_operands): Make comment match the
1077 actual fields (no shift field).
1078 * sparc-opc.c (sparc_opcodes): Document why this cannot be "const".
1079 * tic80-dis.c (print_insn_tic80): Replace abort stub with a
1080 partial implementation, work in progress.
1081 * tic80-opc.c (tic80_operands): Begin construction operands table.
1082 (tic80_opcodes): Continue populating opcodes table and start
1083 filling in the operand indices.
1084 (tic80_num_opcodes): Add this.
1088 * m68k-opc.c: Add #B case for moveq.
1092 * mn10300-dis.c (disassemble): Make sure all variables are initialized
1093 before they are used.
1097 * v850-opc.c (v850_opcodes): Put curly-braces around operands
1098 for "breakpoint" instruction.
1102 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
1103 (dep): Use ALL_CFLAGS rather than CFLAGS.
1107 * v850-opc.c (D8_{6,7}): Set V850_OPERAND_ADJUST_SHORT_MEMORY
1112 * Makefile.in (m68k-opc.o, alpha-opc.o): Remove dis-asm.h dependency.
1113 (tic80-dis.o, tic80-opc.o): Add rules per comment in Makefile.in.
1117 * mips16-opc.c: Add "abs".
1121 * Makefile.in (ALL_MACHINES): Add tic80-dis.o and tic80-opc.o.
1122 * disassemble.c (ARCH_tic80): Define if ARCH_all is defined.
1123 (disassembler): Add bfd_arch_tic80 support to set disassemble
1124 to print_insn_tic80.
1125 * tic80-dis.c (print_insn_tic80): Add stub.
1129 * configure.in (arch in $selarchs): Add bfd_tic80_arch entry.
1130 * configure: Regenerate with autoconf.
1131 * tic80-dis.c: Add file.
1132 * tic80-opc.c: Add file.
1136 * d10v-opc.c (pre_defined_registers): Add cr[0-15], dpc, dpsw, link.
1140 * mn10200-opc.c (mn10200_operands): Add SIMM16N.
1141 (mn10200_opcodes): Use it for some logicals and btst insns.
1142 Add "break" and "trap" instructions.
1144 * mn10300-opc.c (mn10300_opcodes): Add "break" instruction.
1146 * mn10200-opc.c: Add pseudo-ops for "mov (an),am" and "mov an,(am)".
1150 * mips-dis.c (print_mips16_insn_arg): The base address of a PC
1151 relative load or add now depends upon whether the instruction is
1156 * mn10200-dis.c: Finish writing disassembler.
1157 * mn10200-opc.c (mn10200_opcodes): Fix mask for "mov imm8,dn".
1158 Fix mask for "jmp (an)".
1160 * mn10300-dis.c (disassemble, print_insn_mn10300): Corrently
1161 handle endianness issues for mn10300.
1163 * mn10200-opc.c (mn10200_opcodes): Fix operands for "movb dm,(an)".
1167 * mn10200-opc.c (mn10200_opcodes): "mov imm8,d0" is a format 2
1168 instruction. Fix opcode field for "movb (imm24),dn".
1170 * mn10200-opc.c (mn10200_operands): Fix insertion position
1175 * mn10200-opc.c: Create mn10200 opcode table.
1176 * mn10200-dis.c: Flesh out mn10200 disassembler. Not ready,
1177 but moving along nicely.
1181 * Makefile.in (ALL_MACHINES): Add mips16-opc.o.
1185 * m68k-opc.c (m68k_opcodes): Revert change to use < and >
1186 specifiers for fmovem* instructions.
1190 * mn10300-dis.c (disassemble): Remove '$' register prefixing.
1194 * mips16-opc.c: Change opcode for entry/exit to avoid conflicting
1199 * mn10300-opc.c: Add some comments explaining the various
1202 * mn10300-dis.c (disassemble): Fix minor gcc -Wall warnings.
1206 * m68k-dis.c (print_insn_arg): Handle new < and > operand
1209 * m68k-opc.c (m68k_opcodes): Simplify table by using < and >
1210 operand specifiers in fmovm* instructions.
1214 * ppc-opc.c (insert_li): Give an error if the offset has the two
1215 least significant bits set.
1219 * mips-dis.c (print_insn_mips16): Separate the instruction from
1220 the arguments with a tab, not a space.
1224 * mn10300-dis.c (disasemble): Finish conversion to '$' as
1227 * mn10300-opc.c (mn10300_opcodes): Fix mask field for
1232 * configure: Rebuild with autoconf 2.12.
1234 Add support for mips16 (16 bit MIPS implementation):
1235 * mips16-opc.c: New file.
1236 * mips-dis.c: Include "elf-bfd.h" and "elf/mips.h".
1237 (mips16_reg_names): New static array.
1238 (print_insn_big_mips): Use print_insn_mips16 in 16 bit mode or
1239 after seeing a 16 bit symbol.
1240 (print_insn_little_mips): Likewise.
1241 (print_insn_mips16): New static function.
1242 (print_mips16_insn_arg): New static function.
1243 * mips-opc.c: Add jalx instruction.
1244 * Makefile.in (mips16-opc.o): New target.
1245 * configure.in: Use mips16-opc.o for bfd_mips_arch.
1246 * configure: Rebuild.
1250 * m68k-opc.c (m68k_opcodes): Simplify table by using < and >
1251 operand specifiers in *save, *restore and movem* instructions.
1253 * m68k-opc.c (m68k_opcodes): Fix move and movem instructions for
1256 * m68k-opc.c (m68k_opcodes): The coldfire (mcf5200) can only use
1257 register operands for immediate arithmetic, not, neg, negx, and
1258 set according to condition instructions.
1260 * m68k-opc.c (m68k_opcodes): Consistantly Use "s" as the storage
1261 specifier of the effective-address operand in immediate forms of
1262 arithmetic instructions. The specifier for the immediate operand
1263 notes how and where the constant will be stored.
1267 * mn10300-opc.c (mn10300_opcodes): Remove redundant "lcc"
1270 * mn10300-dis.c (disassemble): Use '$' instead of '%' for
1273 * mn10300-dis.c (disassemble): Prefix registers with '%'.
1277 * mn10300-dis.c (disassemble): Handle register lists.
1279 * mn10300-opc.c: Fix handling of register list operand for
1280 "call", "ret", and "rets" instructions.
1282 * mn10300-dis.c (disassemble): Print PC-relative and memory
1283 addresses symbolically if possible.
1284 * mn10300-opc.c: Distinguish between absolute memory addresses,
1285 pc-relative offsets & random immediates.
1287 * mn10300-dis.c (print_insn_mn10300): Fix fetch of last byte
1289 (disassemble): Handle SPLIT and EXTENDED operands.
1293 * mn10300-dis.c: Rough cut at printing some operands.
1295 * mn10300-dis.c: Start working on disassembler support.
1296 * mn10300-opc.c (mn10300_opcodes): Fix masks on several insns.
1298 * mn10300-opc.c (mn10300_operands): Add "REGS" for a register
1300 (mn10300_opcodes): Use REGS for register list in "movm" instructions.
1304 * d10v-opc.c (d10v_opcodes): Add3 sets the carry.
1308 * mn10300-opc.c (mn10300_opcodes): Demand parens around
1309 register argument is calls and jmp instructions.
1313 * mn10300-opc.c (mn10300_opcodes): Use DN01 for putx and
1314 getx operand. Fix opcode for mulqu imm,dn.
1318 * mn10300-opc.c (mn10300_operands): Hijack "bits" field
1319 in MN10300_OPERAND_SPLIT operands for how many bits
1320 appear in the basic insn word. Add IMM32_HIGH24,
1321 IMM32_HIGH24_LOWSHIFT8, IMM8E_SHIFT8.
1322 (mn10300_opcodes): Use new operands as needed.
1324 * mn10300-opc.c (mn10300_operands): Add IMM32_LOWSHIFT8
1325 for bset, bclr, btst instructions.
1326 (mn10300_opcodes): Use new IMM32_LOWSHIFT8 as needed.
1328 * mn10300-opc.c (mn10300_operands): Remove many redundant
1329 operands. Update opcode table as appropriate.
1330 (IMM32): Add MN10300_OPERAND_SPLIT flag.
1331 (mn10300_opcodes): Fix single bit error in mov imm32,dn insn.
1335 * mn10300-opc.c (mn10300_operands): Add DN2, DM2, AN2, AM2
1336 operands (for indexed load/stores). Fix bitpos for DI
1337 operand. Add SN8N_SHIFT8, IMM8_SHIFT8, and D16_SHIFT for the
1338 few instructions that insert immediates/displacements in the
1339 middle of the instruction. Add IMM8E for 8 bit immediate in
1340 the extended part of an instruction.
1341 (mn10300_operands): Use new opcodes as appropriate.
1345 * d10v-opc.c (d10v_opcodes): Declare the trap instruction
1346 sequential so the assembler never parallelizes it with
1351 * mn10300-opc.c (mn10300_operands): Add DN01 and AN01 for
1352 a data/address register that appears in register field 0
1353 and register field 1.
1354 (mn10300_opcodes): Use DN01 and AN01 for mov/cmp imm8,DN/AN
1358 * alpha-dis.c (print_insn_alpha): Use new NOPAL mask for
1359 standard disassembly.
1361 * alpha-opc.c (alpha_operands): Rearrange flags slot.
1362 (alpha_opcodes): Add new BWX, CIX, and MAX instructions.
1363 Recategorize PALcode instructions.
1367 * v850-opc.c (v850_opcodes): Add relaxing "jbr".
1371 * mips-dis.c (_print_insn_mips): Don't print a trailing tab if
1372 there are no operand types.
1376 * v850-opc.c (D9_RELAX): Renamed from D9, all references
1378 (v850_operands): Make sure D22 immediately follows D9_RELAX.
1382 * i386-dis.c (print_insn_x86): Set info->bytes_per_line to 5.
1386 * v850-opc.c (insert_d8_6): Fix operand insertion for sld.w
1387 and sst.w instructions.
1389 * v850-opc.c (v850_opcodes): Add "jCC" instructions (aliases for
1394 * mips-dis.c (_print_insn_mips): Use a tab between the instruction
1399 * ppc-opc.c (PPCPWR2): Define.
1400 (powerpc_opcodes): Use PPCPWR2 for fsqrt, rather than duplicating
1405 * mn10300-opc.c (mn10300_opcodes): Fix typo in opcode
1406 field for movhu instruction.
1408 * v850-dis.c (disassemble): For V850_OPERAND_SIGNED operands,
1409 cast value to "long" not "signed long" to keep hpux10
1414 * mn10300-opc.c (mn10300_opcodes): Fix typo in opcode field
1417 * mn10300-opc.c (FMT*): Remove definitions.
1419 * mn10300-opc.c (mn10300_opcodes): Fix destination register
1420 for shift-by-register opcodes.
1422 * mn10300-opc.c (mn10300_operands): Break DN, DM, AN, AM
1423 into [AD][MN][01] for encoding the position of the register
1428 * mn10300-opc.c (mn10300_opcodes): Add "extended" instructions,
1429 "putx", "getx", "mulq", "mulqu", "sat16", "sat24", "bsch".
1433 * mn10300-opc.c (mn10300_operands): Remove "REGS" operand.
1434 Fix various typos. Add "PAREN" operand.
1435 (MEM, MEM2): Define.
1436 (mn10300_opcodes): Surround all memory addresses with "PAREN"
1437 operands. Fix several typos.
1439 * mn10300-opc.c (mn10300_opcodes): Fix typos in yesterday's
1444 * mn10300-opc.c (FMT_XX): Renumber starting at one.
1445 (mn10300_operands): Rough cut. Enough to parse "mov" instructions
1447 (mn10300_opcodes): Break opcode format out into its own field.
1448 Update many operand fields to deal with signed vs unsigned
1449 issues. Fix one or two typos in the "mov" instruction
1450 opcode, mask and/or operand fields.
1454 * m68k-opc.c (plusha): Prefer encoding for m68040up, in case
1455 m68851 wasn't reset.
1459 * mn10300-opc.c (mn10300_opcodes): Add opcode & masks for
1460 all opcodes. Very rough cut at operands for all opcodes.
1462 * mn10300-opc.c (mn10300_opcodes): Start fleshing out the
1467 * mn10200-opc.c, mn10300-opc.c: New files.
1468 * mn10200-dis.c, mn10300-dis.c: New files.
1469 * mn10x00-opc.c, mn10x00-dis.c: Deleted.
1470 * disassemble.c: Break mn10x00 support into 10200 and 10300
1472 * configure.in: Likewise.
1473 * configure: Rebuilt.
1477 * Makefile.in (MOSTLYCLEAN): Move config.log to distclean.
1481 * mn10x00-opc.c, mn10x00-dis.c: New files for Matsushita
1483 * disassemble.c (ARCH_mn10x00): Define.
1484 (disassembler): Handle bfd_arch_mn10x00.
1485 * configure.in: Recognize bfd_mn10x00_arch.
1486 * configure: Rebuilt.
1490 * i386-dis.c (op_rtn): Change to be a pointer. Adjust uses
1491 accordingly. Don't declare functions using op_rtn.
1495 * v850-dis.c (disassemble): Add memaddr argument. Re-arrange
1496 params to be more standard.
1497 * (disassemble): Print absolute addresses and symbolic names for
1498 branch and jump targets.
1499 * v850-opc.c (v850_operand): Add displacement flag to 9 and 22
1501 * (v850_opcodes): Add breakpoint insn.
1505 * m68k-opc.c: Move the fmovemx data register cases before the
1506 other cases, so that they get recognized before the data register
1507 does gets treated as a degenerate register list.
1511 * mips-opc.c: Add a case for "div" and "divu" with two registers
1512 and a destination of $0.
1516 * mips-dis.c (print_insn_arg): Add prototype.
1517 (_print_insn_mips): Ditto.
1521 * mips-dis.c (print_insn_arg): Print condition code registers as
1526 * sparc-opc.c (sparc_opcodes): Add setuw, setsw, setx.
1530 * v850-dis.c (disassemble): Make static. Provide prototype.
1534 * v850-opc.c (insert_d9, insert_d22): Fix boundary case
1539 * v850-dis.c (disassemble): Handle insertion of ',', '[' and
1540 ']' characters into the output stream.
1541 * v850-opc.c (v850_opcodes: Remove size field from all opcodes.
1542 Add "memop" field to all opcodes (for the disassembler).
1543 Reorder opcodes so that "nop" comes before "mov" and "jr"
1544 comes before "jarl".
1546 * v850-dis.c (print_insn_v850): Fix typo in last change.
1548 * v850-dis.c (print_insn_v850): Properly handle disassembling
1549 a two byte insn at the end of a memory region when the memory
1550 region's size is only two byte aligned.
1552 * v850-dis.c (v850_cc_names): Fix stupid thinkos.
1554 * v850-dis.c (v850_reg_names): Define.
1555 (v850_sreg_names, v850_cc_names): Likewise.
1556 (disassemble): Very rough cut at printing operands (unformatted).
1558 * v850-opc.c (BOP_MASK): Fix.
1559 (v850_opcodes): Fix mask for jarl and jr.
1561 * v850-dis.c: New file. Skeleton for disassembler support.
1562 * Makefile.in Remove v850 references, they're not needed here.
1563 * configure.in: Add v850-dis.o when building v850 toolchains.
1564 * configure: Rebuilt.
1565 * disassemble.c (disassembler): Call v850 disassembler.
1567 * v850-opc.c (insert_d8_7, extract_d8_7): New functions.
1568 (insert_d8_6, extract_d8_6): New functions.
1569 (v850_operands): Rename D7S to D7; operand for D7 is unsigned.
1570 Rename D8 to D8_7, use {insert,extract}_d8_7 routines.
1572 (IF4A, IF4B): Use "D7" instead of "D7S".
1573 (IF4C, IF4D): Use "D8_7" instead of "D8".
1574 (IF4E, IF4F): New. Use "D8_6".
1575 (v850_opcodes): Use IF4A/IF4B for sld.b/sst.b. Use IF4C/IF4D for
1576 sld.h/sst.h. Use IF4E/IF4F for sld.w/sst.w.
1578 * v850-opc.c (insert_d16_15, extract_d16_15): New functions.
1579 (v850_operands): Change D16 to D16_15, use special insert/extract
1580 routines. New new D16 that uses the generic insert/extract code.
1581 (IF7A, IF7B): Use D16_15.
1582 (IF7C, IF7D): New. Use D16.
1583 (v850_opcodes): Use IF7C and IF7D for ld.b and st.b.
1585 * v850-opc.c (insert_d9, insert_d22): Slightly improve error
1586 message. Issue an error if the branch offset is odd.
1588 * v850-opc.c: Add notes about needing special insert/extract
1589 for all the load/store insns, except "ld.b" and "st.b".
1591 * v850-opc.c (insert_d22, extract_d22): New functions.
1592 (v850_operands): Use insert_d22 and extract_d22 for
1594 (insert_d9): Fix range check.
1598 * v850-opc.c (v850_operands): Add V850_OPERAND_SIGNED flag
1599 and set bits field to D9 and D22 operands.
1603 * v850-opc.c (v850_operands): Define SR2 operand.
1604 (v850_opcodes): "ldsr" uses R1,SR2.
1606 * v850-opc.c (v850_opcodes): Fix opcode specs for
1607 sld.w, sst.b, sst.h, sst.w, and nop.
1611 * v850-opc.c (v850_opcodes): Add null opcode to mark the
1612 end of the opcode table.
1616 * d10v-opc.c (pre_defined_registers): Added register pairs,
1617 "r0-r1", "r2-r3", etc.
1621 * v850-opc.c (v850_operands): Make I16 be a signed operand.
1622 Create I16U for an unsigned 16bit mmediate operand.
1623 (v850_opcodes): Use I16U for "ori", "andi" and "xori".
1625 * v850-opc.c (v850_operands): Define EP operand.
1626 (IF4A, IF4B, IF4C, IF4D): Use EP.
1628 * v850-opc.c (v850_opcodes): Fix opcode numbers for "mov"
1629 with immediate operand, "movhi". Tweak "ldsr".
1631 * v850-opc.c (v850_opcodes): Get ld.[bhw] and st.[bhw]
1632 correct. Get sld.[bhw] and sst.[bhw] closer.
1634 * v850-opc.c (v850_operands): "not" is a two byte insn
1636 * v850-opc.c (v850_opcodes): Correct bit pattern for setf.
1638 * v850-opc.c (v850_operands): D16 inserts at offset 16!
1640 * v850-opc.c (two): Get order of words correct.
1642 * v850-opc.c (v850_operands): I16 inserts at offset 16!
1644 * v850-opc.c (v850_operands): Add "SR1" and "SR2" for system
1645 register source and destination operands.
1646 (v850_opcodes): Use SR1 and SR2 for "ldsr" and "stsr".
1648 * v850-opc.c (v850_opcodes): Fix thinko in "jmp" opcode. Fix
1649 same thinko in "trap" opcode.
1651 * v850-opc.c (v850_opcodes): Add initializer for size field
1654 * v850-opc.c (v850_operands): D6 -> DS7. References changed.
1655 Add D8 for 8-bit unsigned field in short load/store insns.
1656 (IF4A, IF4D): These both need two registers.
1657 (IF4C, IF4D): Define. Use 8-bit unsigned field.
1658 (v850_opcodes): For "sld.h", "sld.w", "sst.h", "sst.w", use
1659 IF4C & IF4D. For "trap" use I5U, not I5. Add IF1 operand
1660 for "ldsr" and "stsr".
1661 * v850-opc.c (v850_operands): 3-bit immediate for bit insns
1664 * v850-opc.c (v850_opcodes): Correct short store half (sst.h) and
1665 short store word (sst.w).
1669 * v850-opc.c (v850_operands): Added insert and extract fields,
1670 pointers to functions that handle unusual operand encodings.
1674 * v850-opc.c (v850_opcodes): Enable "trap".
1676 * v850-opc.c (v850_opcodes): Fix order of displacement
1677 and register for "set1", "clr1", "not1", and "tst1".
1681 * v850-opc.c (v850_operands): Add "B3" support.
1682 (v850_opcodes): Fix and enable "set1", "clr1", "not1"
1685 * v850-opc.c (v850_opcodes): "jmp" has only an R1 operand.
1687 * v850-opc.c: Close unterminated comment.
1691 * v850-opc.c (v850_operands): Add flags field.
1692 (v850_opcodes): add move opcodes.
1696 * Makefile.in (ALL_MACHINES): Add v850-opc.o.
1697 * configure: (bfd_v850v_arch) Add new case.
1698 * configure.in: (bfd_v850_arch) Add new case.
1699 * v850-opc.c: New file.
1703 * sparc-dis.c (print_insn_sparc): Handle little endian sparcs.
1707 * d10v-opc.c: Add additional information to the opcode
1708 table to help determinine which instructions can be done
1713 * mpw-make.sed: Update editing of include pathnames to be
1718 * arm-opc.h: Added "bx" instruction definition.
1722 * alpha-opc.c (EV4EXTHWINDEX): Field width should be 8 not 5.
1726 * d10v-opc.c (d10v_opcodes): Minor fixes to addi and bl.l.
1730 * d10v-opc.c (d10v_opcodes): Correct 'mv' unit entry to EITHER.
1734 * makefile.vms: Update for alpha-opc changes.
1738 * i386-dis.c (print_insn_i386): Actually return the correct value.
1739 (ONE, OP_ONE): #ifdef out; not used.
1743 * d10v-opc.c (d10v_opcodes): Added 2 accumulator sub instructions.
1744 Changed subi operand type to treat 0 as 16.
1748 * m68k-opc.c: Add cpushl for the mcf5200. From Ken Rose
1753 * arm-opc.h: (arm_opcodes): Added halfword and sign-extension
1754 memory transfer instructions. Add new format string entries %h and %s.
1755 * arm-dis.c: (print_insn_arm): Provide decoding of the new
1760 * d10v-opc.c (d10v_operands): Added UNUM4S; a 4-bit accumulator shift.
1761 (d10v_opcodes): Modified accumulator shift instructions to use UNUM4S.
1765 * alpha-dis.c (print_insn_alpha_osf): Remove.
1766 (print_insn_alpha_vms): Remove.
1767 (print_insn_alpha): Make globally visible. Chose the register
1768 names based on info->flavour.
1769 * disassemble.c: Always return print_insn_alpha for the alpha.
1773 * d10v-dis.c (dis_long): Handle unknown opcodes.
1777 * d10v-opc.c: Changes to support signed and unsigned numbers.
1778 All instructions with the same name that have long and short forms
1779 now end in ".l" or ".s". Divs added.
1780 * d10v-dis.c: Changes to support signed and unsigned numbers.
1784 * d10v-dis.c: Change all functions to use info->print_address_func.
1788 * m68k-opc.c (m68k_opcodes): Make opcode masks for the ColdFire
1789 move ccr/sr insns more strict so that the disassembler only
1790 selects them when the addressing mode is data register.
1793 * d10v-opc.c (pre_defined_registers): Declare.
1794 * d10v-dis.c (print_operand): Now uses pre_defined_registers
1795 to pick a better name for the registers.
1799 * sparc-opc.c: Fix opcode values for fpack16, and fpackfix. Fix
1800 operands for fexpand and fpmerge. From Christian Kuehnke
1805 * alpha-dis.c (print_insn_alpha): No longer the user-visible
1806 print routine. Take new regnames and cpumask arguments.
1807 Kill the environment variable nonsense.
1808 (print_insn_alpha_osf): New function. Do OSF/1 style regnames.
1809 (print_insn_alpha_vms): New function. Do VMS style regnames.
1810 * disassemble.c (disassembler): Test bfd flavour to pick
1811 between OSF and VMS routines. Default to OSF.
1815 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
1816 * configure: Rebuild.
1817 * Makefile.in (install): Use @INSTALL_SHLIB@.
1821 * configure: (bfd_d10v_arch) Add new case.
1822 * configure.in: (bfd_d10v_arch) Add new case.
1823 * d10v-dis.c: New file.
1824 * d10v-opc.c: New file.
1825 * disassemble.c (disassembler) Add entry for d10v.
1829 * m68k-opc.c (m68k_opcodes): Fix bugs in coldfire insns relating
1830 to bcc, trapfl, subxl, and wddata discovered by Andreas Schwab.
1834 * i386-dis.c: Get rid of print_insn_i8086. Use info.mach to
1835 distinguish between variants of the instruction set.
1836 * sparc-dis.c: Get rid of print_insn_sparclite. Use info.mach to
1837 distinguish between variants of the instruction set.
1841 * i386-dis.c (print_insn_i8086): New routine to disassemble using
1842 the 8086 instruction set.
1843 * i386-dis.c: General cleanups. Make most things static. Add
1844 prototypes. Get rid of static variables aflags and dflags. Pass
1845 them as args (to almost everything).
1849 * h8300-dis.c (bfd_h8_disassemble): Handle macregs in ldmac insns.
1851 * h8300-dis.c (bfd_h8_disassemble): Handle "ldm.l" and "stm.l".
1853 * h8300-dis.c (bfd_h8_disassemble): "abs" is implicitly two
1854 if the next arg is marked with SRC_IN_DST. Gross.
1856 * h8300-dis.c (bfd_h8_disassemble): Print "exr" when
1857 we're looking for and find EXR.
1859 * h8300-dis.c (bfd_h8_disassemble): We don't have a match
1860 if we're looking for KBIT and we don't find it.
1862 * h8300-dis.c (bfd_h8_disassemble): Mask off unwanted bits
1865 * h8300-dis.c (bfd_h8_disassemble): Don't set plen for
1866 3bit immediate operands.
1870 * Released binutils 2.7.
1872 * alpha-opc.c: Add new case of "mov". From Klaus Kaempf
1877 * alpha-opc.c: Correct second case of "mov" to use OPRL.
1881 * sparc-dis.c (print_insn_sparclite): New routine to print
1882 sparclite instructions.
1886 * m68k-opc.c (m68k_opcodes): Add coldfire support.
1890 * sparc-opc.c (asi_table): Add #ASI_N, #ASI_N_L, #ASI_NUCLEUS,
1891 #ASI_NUCLEUS_LITTLE. Rename #ASI_AS_IF_USER_{PRIMARY,SECONDARY}_L
1892 to #ASI_AS_IF_USER_{PRIMARY,SECONDARY}_LITTLE.
1896 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
1897 Use autoconf-set values.
1898 (docdir, oldincludedir): Removed.
1899 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1903 * alpha-opc.c: New file.
1904 * alpha-opc.h: Remove.
1905 * alpha-dis.c: Complete rewrite to use new opcode table.
1906 * configure.in: For bfd_alpha_arch, use alpha-opc.o.
1907 * configure: Rebuild with autoconf 2.10.
1908 * Makefile.in (ALL_MACHINES): Add alpha-opc.o.
1909 (alpha-dis.o): Depend upon $(INCDIR)/opcode/alpha.h, not
1911 (alpha-opc.o): New target.
1915 * sparc-dis.c (print_insn_sparc): Remove unused local variable i.
1916 Set imm_added_to_rs1 even if the source and destination register
1919 * sparc-opc.c: Add some two operand forms of the wr instruction.
1923 * h8300-dis.c (bfd_h8_disassemble): Rename "hmode" argument
1926 * disassemble.c (disassembler): Handle H8/S.
1927 * h8300-dis.c (print_insn_h8300s): New function for H8/S.
1931 * sparc-opc.c: Add beq/teq as aliases for be/te.
1933 * ppc-opc.c: Fix fcmpo opcode. From Sergei Steshenko
1938 * makefile.vms: New file.
1940 * alpha-dis.c (print_insn_alpha): Print lda ra,lit(rz) as mov.
1944 * h8300-dis.c (bfd_h8_disassemble): Always print ABS8MEM with :8,
1949 * i386-dis.c (OP_OFF): Call append_prefix.
1953 * ppc-opc.c (instruction encoding macros): Add explicit casts to
1954 unsigned long to silence a warning from the Solaris PowerPC
1959 * sparc-opc.c (sparc_opcodes): Add ultrasparc vis extensions.
1963 * sparc-dis.c (X_IMM,X_SIMM): New macros.
1965 (print_insn_sparc): Merge cases i,I,j together. New cases X,Y.
1966 * sparc-opc.c (sparc_opcodes): Use X for 5 bit shift constants,
1967 Y for 6 bit shift constants. Rewrite entries for crdcxt, cwrcxt,
1968 cpush, cpusha, cpull sparclet insns.
1972 * sparc-dis.c (compute_arch_mask): Replace ANSI style def with K&R.
1976 * sparc-opc.c: Set F_FBR on floating point branch instructions.
1977 Set F_FLOAT on other floating point instructions.
1981 * ppc-opc.c (PPC860): Macro for 860/821 specific instructions and
1983 (powerpc_opcodes): Add 860/821 specific SPRs.
1987 * configure.in: Permit --enable-shared to specify a list of
1988 directories. Set and substitute BFD_PICLIST.
1989 * configure: Rebuild.
1990 * Makefile.in (BFD_PICLIST): Rename from BFD_LIST. Change all
1991 uses. Set to @BFD_PICLIST@.
1995 * h8300-dis.c (bfd_h8_disassemble): Use "bit" for L_3 immediates,
1996 not "abs", which may be needed for the absolute in something
1997 like btst #0,@10:8. Print L_3 immediates separately from other
1998 immediates. Change ABSMOV reference to ABS8MEM.
2002 * sparc-dis.c (opcodes_initialized): Move inside print_insn_sparc.
2003 (current_arch_mask): New static global.
2004 (compute_arch_mask): New static function.
2005 (print_insn_sparc): Delete sparc_v9_p. New static local
2006 current_mach. Resort opcode table if current_mach changes.
2007 Generalize "insn not supported" test.
2008 (compare_opcodes): Prefer supported opcodes to nonsupported ones.
2009 Delete test for v9/!v9.
2010 * sparc-opc.c (MASK_*): Use SPARC_OPCODE_ARCH_MASK.
2012 (brfc): Split into CBR and FBR for coprocessor/fp branches.
2013 (brfcx): Renamed to FBRX.
2014 (condfc): Renamed to CONDFC. Pass v6notlet to CBR (standard
2015 coprocessor mnemonics are not supported on the sparclet).
2016 (condf): Renamed to CONDF.
2017 (SLCBCC2): Delete F_ALIAS flag.
2021 * sparc-opc.c (sparc_opcodes): rd must be 0 for
2022 mov foo,{%y,%psr,%wim,%tbr}. Support mov foo,%asrX.
2026 * Makefile.in (config.status): Depend upon BFD VERSION file, so
2027 that the shared library version number is set correctly.
2031 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
2033 * configure: Rebuild.
2037 * z8kgen.c (internal, gas): Call xmalloc rather than unchecked
2042 * configure: Rebuild with autoconf 2.8.
2046 * sparc-dis.c (print_insn_sparc): Handle 'O' operand char like 'r'.
2047 * sparc-opc.c (sparc_opcodes): Use 'O' operand char for `neg reg'.
2051 * configure.in: Don't set SHLIB or SHLINK to an empty string,
2052 since they appear as targets in Makefile.in.
2053 * configure: Rebuild.
2057 * mpw-make.sed: Edit out shared library support bits.
2061 * sparc-opc.c (v8,v6notv9): Add MASK_SPARCLET.
2062 (sparc_opcode_archs): Add MASK_V8 to sparclet entry.
2063 (sparc_opcodes): Add sparclet insns.
2064 (sparclet_cpreg_table): New static local.
2065 (sparc_{encode,decode}_sparclet_cpreg): New functions.
2066 * sparc-dis.c (print_insn_sparc): Handle sparclet cpregs.
2070 * i386-dis.c (index16): New static variable.
2071 (putop): Print jecxz for 32 bit case, jcxz for 16 bit, not the
2073 (OP_indirE): Return result of OP_E.
2074 (OP_E): Check for 16 bit addressing mode, and disassemble
2075 correctly. Optimised 32 bit case a little. Don't print
2076 "(base,index,scale)" when sib specifies only an offset.
2080 * configure.in: Set and substitute SHLIB_DEP.
2081 * configure: Rebuild.
2082 * Makefile.in (SHLIB_DEP): New variable.
2083 (LIBIBERTY_LISTS, BFD_LIST): New variables.
2084 (stamp-piclist): Depend upon LIBIBERTY_LISTS and BFD_LIST. If
2085 COMMON_SHLIB, add them to piclist with appropriate modifications.
2086 ($(SHLIB)): Depend upon $(SHLIB_DEP). Don't check COMMON_SHLIB
2087 here: just use piclist.
2091 * sparc-dis.c (MASK_V9,V9_ONLY_P,V9_P): Define.
2092 (print_insn_sparc): Rewrite v9/not-v9 tests.
2093 (compare_opcodes): Likewise.
2094 * sparc-opc.c (MASK_<ARCH>): Define.
2095 (v6,v7,v8,sparclite,v9,v9a): Redefine.
2096 (sparclet,v6notv9): Define.
2097 (sparc_opcode_archs): Delete member `conflicts'. Add `supported'.
2098 (sparc_opcodes): Delete F_NOTV9, use v6notv9 instead.
2102 * configure.in: Call AC_PROG_CC before configure.host.
2103 * configure: Rebuild.
2105 * Makefile.in (SONAME): Remove leading ../bfd/ from $(SHLIB).
2109 * i386-dis.c (onebyte_has_modrm): New static array.
2110 (twobyte_has_modrm): New static array.
2111 (print_insn_i386): Only fetch the mod/reg/rm byte if it is needed.
2115 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
2120 * ppc-opc.c (PPC): Undef, so default defination on Windows NT
2125 * m68k-opc.c (m68k_opcodes): The bkpt instruction is supported on
2126 m68010up, not just m68020up | cpu32.
2128 * Makefile.in (SONAME): New variable.
2129 ($(SHLINK)): Make a link to the transformed name, as well.
2130 (stamp-tshlink): New target.
2131 (install): Skip stamp-tshlink during install.
2135 * configure.in: Call AC_ARG_PROGRAM.
2136 * configure: Rebuild.
2137 * Makefile.in (program_transform_name): New variable.
2138 (install): Transform library name before installing it.
2142 * i960-dis.c (mem): Add HX dcinva instruction.
2144 Support for building as a shared library, based on patches from
2146 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
2147 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
2148 SHLIB_CFLAGS, COMMON_SHLIB, SHLINK.
2149 * configure: Rebuild.
2150 * Makefile.in (ALLLIBS): New variable.
2151 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
2152 (COMMON_SHLIB, SHLINK): New variables.
2153 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
2154 (STAGESTUFF): Remove variable.
2155 (all): Depend upon $(ALLLIBS) rather than $(TARGETLIB).
2156 (stamp-piclist, piclist): New targets.
2157 ($(SHLIB), $(SHLINK)): New targets.
2158 ($(OFILES)): Depend upon stamp-picdir.
2159 (disassemble.o): Build twice if PICFLAG is set.
2160 (MOSTLYCLEAN): Add pic/*.o.
2161 (clean): Remove $(SHLIB), $(SHLINK), piclist, and stamp-piclist.
2162 (distclean): Remove pic and stamp-picdir.
2163 (install): Install shared libraries.
2164 (stamp-picdir): New target.
2168 * sparc-dis.c (print_insn_sparc): Delete DISASM_RAW_INSN support.
2169 Print unknown instruction as "unknown", rather than in hex.
2173 * dis-buf.c: Include "sysdep.h" before "dis-asm.h".
2177 * sparc-opc.c (sparc_opcode_archs): Mark v8/sparclite as conflicting.
2181 * i386-dis.c (print_insn_i386): Only fetch the mod/reg/rm byte
2182 when necessary. From Ulrich Drepper
2187 * sparc-dis.c (print_insn_sparc): NUMOPCODES replaced with
2188 sparc_num_opcodes. Update architecture enum values.
2189 * sparc-opc.c (sparc_opcode_archs): Replaces architecture_pname.
2190 (sparc_opcode_lookup_arch): New function.
2191 (sparc_num_opcodes): Renamed from bfd_sparc_num_opcodes.
2192 (sparc_opcodes): Add v9a shutdown insn.
2196 * sparc-dis.c (print_insn_sparc): Renamed from print_insn.
2197 If DISASM_RAW_INSN, print insn in hex. Handle v9a as opcode
2199 (print_insn_sparc64): Deleted.
2200 * disassemble.c (disassembler, case bfd_arch_sparc): Always use
2203 * sparc-opc.c (architecture_pname): Add v9a.
2207 * alpha-opc.h (alpha_insn_set): VAX floating point opcode was
2208 incorrectly defined as 0x16 when it should be 0x15.
2209 (FLOAT_FORMAT_MASK): function code is 11 bits, not just 7 bits!
2210 (alpha_insn_set): added cvtst and cvttq float ops. Also added
2211 excb (exception barrier) which is defined in the Alpha
2212 Architecture Handbook version 2.
2213 * alpha-dis.c (print_insn_alpha): Fixed special-case decoding for
2214 OPERATE_FORMAT_CODE type instructions. The bug caused mulq to be
2215 disassembled as or, for example.
2219 * mips-dis.c (print_insn_arg): Print cases 'i' and 'u' in hex.
2220 (_print_insn_mips): Change i from int to unsigned int.
2224 * ppc-opc.c (powerpc_opcodes): tlbi POWER opcode form different
2225 from tlbie PowerPC opcode. Add PPC603 tlbld and tlbli.
2229 * i386-dis.c: Added Pentium Pro instructions.
2233 * ppc-opc.c (fsqrt{,.}): Duplicate for PowerPC in addition to
2238 * sh-opc.h (sh_nibble_type): Added REG_B.
2239 (sh_arg_type): Added A_REG_B.
2240 (sh_table): Added pref and bank reg versions of ldc, ldc.l, stc
2242 * sh-dis.c (print_insn_shx): Added cases for REG_B and A_REG_B.
2246 * disassemble.c (disassembler): Use new bfd_big_endian macro.
2250 * Makefile.in (distclean): Remove stamp-h. From Ronald
2256 * alpha-dis.c (print_insn_alpha): fixed decoding of cpys
2261 * sh-opc.h (sh_arg_type): Added A_SSR and A_SPC.
2262 (sh_table): Added many SH3 opcodes.
2263 * sh-dis.c (print_insn_shx): Added cases for A_SSR and A_SPC.
2267 * ppc-opc.c (subfc., subfco): Mark this PPCCOM, not PPC.
2268 (subco,subco.): Mark this PPC, not PPCCOM.
2272 * configure: Rebuild with autoconf 2.7.
2276 * configure: Rebuild with autoconf 2.6.
2280 * configure.in: Sort list of architectures. Accept but do nothing
2281 for alliant, convex, pyramid, romp, and tahoe.
2285 * a29k-dis.c (print_special): Change num to unsigned int.
2289 * a29k-dis.c (print_insn): Cast insn24 to unsigned long when
2294 * configure.in: Call AC_CHECK_PROG to find and cache AR.
2295 * configure: Rebuilt.
2299 * configure.in: Add case for bfd_i860_arch.
2300 * configure: Rebuild.
2304 * m68k-opc.c (m68k_opcodes): Correct fmoveml operands.
2305 * m68k-dis.c (NEXTSINGLE): Change i to unsigned int.
2306 (NEXTDOUBLE): Likewise.
2307 (print_insn_m68k): Don't match fmoveml if there is more than one
2308 register in the list.
2309 (print_insn_arg): Handle a place of '8' for a type of 'L'.
2313 * m68k-opc.c: Use #W rather than #w.
2314 * m68k-dis.c (print_insn_arg): Handle new 'W' place.
2318 * m68k-opc.c (m68k_opcode_aliases): Add dbfw as an alias for dbf,
2319 and likewise for all the dbxx opcodes.
2323 * arc-dis.c: Include elf-bfd.h rather than libelf.h.
2327 * mips-opc.c: Added shorthand (V1) for INSN_4100 manifest. Added
2328 the VR4100 specific instructions to the mips_opcodes structure.
2332 * mpw-config.in, mpw-make.sed: Remove ugly workaround for
2333 ugly Metrowerks bug in CW6, is fixed in CW7.
2337 * ppc-opc.c (whole file): Add flags for common/any support.
2341 * Makefile.in (BISON): Remove macro.
2342 (FLAGS_TO_PASS): Remove BISON.
2348 * m68k-dis.c (print_insn_m68k): Recognize all two-word
2349 instructions that take no args by looking at the match mask.
2350 (print_insn_arg): Always print "%" before register names.
2351 [case 'c']: Use "nc" for the no-cache case, as recognized by gas.
2352 [case '_']: Don't print "@#" before address.
2353 [case 'J']: Use "%s" as format string, not register name.
2354 [case 'B']: Treat place == 'C' like 'l' and 'L'.
2358 * i386-dis.c: Describe cmpxchg8b operand, and spell the opcode
2365 * alpha-opc.h (MEMORY_FUNCTION_FORMAT_MASK): added.
2366 (alpha_insn_set): added definitions for VAX floating point
2367 instructions (Unix compilers don't generate these, but handcoded
2368 assembly might still use them).
2370 * alpha-dis.c (print_insn_alpha): added support for disassembling
2371 the miscellaneous instructions in the Alpha instruction set.
2375 * mpw-config.in: Add m68k-opc.c.o to BFD_MACHINES for m68k,
2376 no longer create sysdep.h, sed ppc-opc.c to work around a
2377 serious Metrowerks C bug.
2378 * mpw-make.in: Remove.
2379 * mpw-make.sed: New file, used by mpw-configure to edit
2380 Makefile.in into an MPW makefile.
2384 * Makefile.in (maintainer-clean): New synonym for realclean.
2388 * m68k-opc.c: Split pmove patterns which use 'P' into patterns
2389 which use '0', '1', and '2' instead. Specify the proper size for
2390 a pmove immediate operand. Correct the pmovefd patterns to be
2391 moves to a register, not from a register.
2392 * m68k-dis.c (print_insn_arg): Replace 'P' with '0', '1', '2'.
2396 * sparc-opc.c (sparc_opcodes): Mark all insns that reference
2397 %psr, %wim, %tbr as F_NOTV9.
2401 * Makefile.in (Makefile): Just rebuild Makefile when running
2403 (config.h, stamp-h): New targets.
2404 * configure.in: Call AC_CONFIG_HEADER and AC_CANONICAL_SYSTEM
2405 earlier. Don't bother to call AC_ARG_PROGRAM. Touch stamp-h when
2406 rebuilding config.h.
2407 * configure: Rebuild.
2409 * mips-opc.c: Change unaligned loads and stores with "t,A"
2410 operands to use "t,A(b)".
2414 * sh-dis.c (print_insn_shx): Add F_FR0 support.
2418 * sh-dis.c (print_insn_shx): Change loop over op->arg[n] to iterate
2419 until 3 instead of until 2.
2423 * Makefile.in (ALL_CFLAGS): Define.
2424 (.c.o, disassemble.o): Use $(ALL_CFLAGS).
2425 (MOSTLYCLEAN): Add config.log.
2426 (distclean): Don't remove config.log.
2427 * configure.in: Substitute HDEFINES.
2428 * configure: Rebuild.
2432 * sh-opc.h (sh_arg_type): Add F_FR0.
2433 (sh_table, case fmac): Add F_FR0 as first argument.
2437 * sh-opc.h (sh_opcode_info): Increase arg array size to 4.
2441 * sparc-dis.c: Remove all references to NO_V9.
2445 * aclocal.m4: Just include ../bfd/aclocal.m4.
2446 * configure: Rebuild.
2450 * sparc-dis.c (X_DISP19): Define.
2451 (print_insn, case 'G'): Use it.
2452 (print_insn, case 'L'): Sign extend displacement.
2456 * configure.in: Run ../bfd/configure.host before AC_PROG_CC.
2457 Subsitute CFLAGS and AR. Call AC_PROG_INSTALL. Don't substitute
2458 host_makefile_frag or frags.
2459 * aclocal.m4: New file.
2460 * configure: Rebuild.
2461 * Makefile.in (INSTALL): Set to @INSTALL@.
2462 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
2463 (INSTALL_DATA): Set to @INSTALL_DATA@.
2465 (AR_FLAGS): Set to rc rather than qc.
2466 (CC): Define as @CC@.
2467 (CFLAGS): Set to @CFLAGS@.
2468 (@host_makefile_frag@): Remove.
2469 (config.status): Remove dependency upon @frags@.
2471 * configure.in: ../bfd/config.bfd now just sets shell variables.
2472 Use them rather than looking through target Makefile fragments.
2473 * configure: Rebuild.
2477 * sh-opc.h (ftrc): Change FPUL_N to FPUL_M.
2481 * sparc-opc.c (sparc_opcodes): Delete duplicate wr %y insn.
2482 Add clrx, iprefetch, signx, clruw, cas, casl, casx, casxl synthetic
2485 * sparc-opc.c (sparc_opcodes): Fix prefetcha insn.
2486 (lookup_{name,value}): New functions.
2487 (prefetch_table): New static local.
2488 (sparc_{encode,decode}_prefetch): New functions.
2489 * sparc-dis.c (print_insn): Handle '*' arg (prefetch function).
2493 * sh-opc.h: Add blank lines to improve readabililty of sh3e
2498 * sh-dis.c: Correct comment on first line of file.
2502 * disassemble.c (disassembler): Handle bfd_mach_sparc64.
2504 * sparc-opc.c (asi, membar): New static locals.
2505 (sparc_{encode,decode}_{asi,membar}): New functions.
2506 (sparc_opcodes, membar insn): Fix.
2507 * sparc-dis.c (print_insn): Call sparc_decode_asi.
2508 Support decoding of membar masks.
2513 * m68k-opc.c (m68k_opcode_aliases): Add br, brs, brb, brw, brl.
2517 * m68k-opc.c (m68k_opcode_aliases): Add bhib as an alias for bhis,
2518 and likewise for the other branches. Add bhs as an alias for bcc,
2519 and likewise for the size variants. Add dbhs as an alias for
2524 * sh-opc.h (FP sts instructions): Update to match reality.
2528 * m68k-dis.c: (fpcr_names): Add % before all register names.
2529 (reg_names): Likewise.
2530 (print_insn_arg): Don't explicitly print % before register names.
2531 Add % before register names in static array names. In case 'r',
2532 print data registers as `@(Dn)', not `Dn@'. When printing a
2533 memory address, don't print @# before it.
2534 (print_indexed): Change base_disp and outer_disp from int to
2535 bfd_vma. Print using MIT syntax, not mutant invalid Motorola
2536 syntax. Sign extend 8 byte displacement correctly.
2537 (print_base): Print using MIT syntax. Print zpc when appropriate.
2538 Change parameter disp from int to bfd_vma.
2540 * m68k-opc.c (m68k_opcode_aliases): Add jsrl and jsrs as aliases
2545 * sh-dis.c (print_insn_shx): Handle new operand types F_REG_N,
2546 F_REG_M, FPSCR_M, FPSCR_N, FPUL_M and FPUL_N.
2547 * sh-opc.h (sh_arg_type): Add new operand types.
2548 (sh_table): Add new opcodes from SH3E Floating Point ISA.
2552 * Makefile.in (distclean): Remove generated file config.h.
2556 * Makefile.in (distclean): Remove generated file config.h.
2560 * m68k-opc.c: New file, holding tables from include/opcode/m68k.h.
2562 * m68k-dis.c: Remove BREAK_UP_BIG_DECL stuff.
2564 (print_insn_m68k): Change d to be const. Use m68k_numopcodes
2565 rather than numopcodes. Use m68k_opcodes rather than removed
2566 opcode function. Don't check F_ALIAS.
2567 (print_insn_arg): Change first parameter to be const char *.
2568 * Makefile.in (ALL_MACHINES): Add m68k-opc.o.
2569 (m68k-opc.o): New target.
2570 * configure.in: Build m68k-opc.o for bfd_m68k_arch.
2571 * configure: Rebuild.
2575 * sparc-dis.c (HASH_SIZE, HASH_INSN): Define.
2576 (opcode_bits, opcode_hash_table): New variables.
2577 (opcodes_initialized): Renamed from opcodes_sorted.
2578 (build_hash_table): New function.
2579 (is_delayed_branch): Use hash table.
2580 (print_insn): Renamed from print_insn_sparc, made static.
2581 Build and use hash table. If !sparc64, ignore sparc64 insns,
2582 and vice-versa if sparc64.
2583 (print_insn_sparc, print_insn_sparc64): New functions.
2584 (compare_opcodes): Move sparc64 opcodes to end.
2585 Print commutative insns with constant second.
2586 * sparc-opc.c (all non-v9 insns): Use flag F_NOTV9 instead of F_ALIAS.
2590 * sh-dis.c (print_insn_shx): Remove unused local dslot. Use
2591 print_address_func for A_BDISP12 and A_BDISP8. Correct test which
2592 avoids printing a delay slot in a delay slot.
2593 * sh-opc.h (sh_table): Fully bracket last entry.
2597 * sparc-opc.c (sllx, srax, srlx): Fix disassembly.
2601 * configure.in: Get host_makefile_frag from ${srcdir}.
2603 * configure.in: Autoconfiscated. Check for string[s].h. Create
2604 config.h from config.in. Don't set up sysdep.h link.
2605 * sysdep.h: New file.
2606 * configure, config.in: New files, generated from configure.in.
2607 * Makefile.in: Updated to be processed autoconf-style.
2608 (distclean): Keep sysdep.h. Remove config.log and config.cache.
2609 (Makefile): Depend on config.status.
2610 (config.status): New rule.
2611 * configure.bat: Update Makefile substitutions.
2615 * mips-opc.c (L1): Define.
2616 (mips_opcodes): Add R4010 instructions: flushi, flushd, flushid,
2617 addciu, madd, maddu, ffc, ffs, msub, msubu, selsi, selsr, waiti,
2622 * mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu
2623 if ISA 3 and addu otherwise, replacing or, since some MIPS chips
2624 have multiple add units but only a single logical unit.
2626 * ppc-opc.c (powerpc_operands): Change CR to use a bitsize of 3,
2627 shifted by 18, without any insertion or extraction function.
2628 (insert_cr, extract_cr): Remove.
2632 * m68k-dis.c (print_insn_arg, print_indexed): Print "%" before
2637 * mpw-config.in: Add sh and i386 configs, remove sparc config.
2638 * sh-opc.h: Add copyright.
2642 * Makefile.in (crunch-m68k): Delete extra target accidentally
2643 checked in a while ago.
2647 * sh-opc.h (sh_table): Add SH3 support.
2651 * sh-opc.h: Added bsrf and braf.
2655 * arm-opc.h (arm_opcodes): Add 64-bit multiply patterns. Delete
2656 bogus [ls]fm{ea,fd} patterns.
2658 * arm-opc.h (arm_opcodes): Correct typos in stm, ldm, std, and ldc.
2659 * arm-dis.c (print_insn_arm): Make GIVEN a parameter, don't try and
2660 initialize it from memory. Make function static.
2661 (print_insn_{big,little}_arm): New functions.
2662 * disassemble.c (disassembler, case bfd_arch_arm): Disassemble for
2663 the correct endianness.
2667 * sh-opc.h (sh_nibble_type, sh_arg_type): remove trailing , from
2672 * m68k-dis.c (opcode): Finish change made by Kung Hsu on April
2673 17th, so that it builds again using GCC as the compiler.
2677 * mips-dis.c (print_insn_little_mips): Cast return value from
2678 bfd_getl32 from bfd_vma to unsigned long, because _print_insn_mips
2679 expects an unsigned long, and that might be fewer words of
2680 argument storage (e.g., if bfd_vma is long long on a 32-bit
2682 (print_insn_big_mips): Likewise with bfd_getb32 value.
2683 (_print_insn_mips): Now static.
2687 * m68k-dis.c: Take out #define BREAK_UP_BIG_DECL kludge, because
2688 gcc memory hog problem with initializer is fixed.
2692 Merge in support for Mac MPW as a host.
2693 (Old change descriptions retained for informational value.)
2695 * mpw-config.in (archname): Compute from the config.
2696 (BFD_MACHINES, ARCHDEFS): Put into mk.tmp.
2698 * mpw-config.in (target_arch): Compute from canonical target.
2699 (m68k, mips, powerpc, sparc): Add architectures.
2700 * mpw-make.in (disassemble.c.o): Add.
2701 (ALL_CFLAGS): Remove special flags (-mc68020 -mc68881 -model far).
2703 * mpw-config.in (BFD_MACHINES): Set to a default value.
2704 * mpw-make.in (BFD_MACHINES): Remove wired-in value.
2706 * mpw-make.in (CSEARCH): Add extra-include to search path.
2708 * mpw-config.in (varargs.h): Don't create.
2709 (sysdep.h): Create using forward-include.
2710 * mpw-make.in (CSEARCH): Add include/mpw to search path.
2712 * mpw-config.in: New file, MPW version of configure.in.
2713 * mpw-make.in: New file, MPW version of Makefile.in.
2717 * alpha-dis.c (print_insn_alpha): Put empty statement after
2722 * hppa-dis.c (sign_extend): Delete, redundant with libhppa.h version.
2723 (low_sign_extend): Likewise.
2724 (get_field): Delete unused function.
2725 (set_field, deposit_14, deposit_21): Likewise.
2729 * i386-dis.c: Support for more pentium opcodes. From Guy Harris
2736 * alpha-opc.h (OSF_ASMCODE): define
2737 print pal-code names as defined in App C of the
2738 Alpha Architecture Reference Manual
2740 * alpha-dis.c: cleaned up output
2741 print stylized code forms as defined in App A.4.3 of the
2742 Alpha Architecture Reference Manual
2746 * mips-opc.c: Add new mips4 instructions. Don't set INSN_RFE for
2748 * mips-dis.c (print_insn_arg): Handle new argument types 'h', 'R',
2753 * m68k-dis.c (opcode): New function. Returns address of opcode
2754 table entry given index, even if the opcode table was split to
2755 work around gcc bugs.
2756 (print_insn_m68k): Call opcode instead of referencing m68k_opcodes
2758 (BREAK_UP_BIG_DECL): Make secondary array static and const.
2759 (reg_names): Now const.
2760 (print_insn_arg): Arrays cacheFieldName and names now const.
2761 (print_indexed): Array scales now const.
2765 * ppc-opc.c: Sort recently added instructions by minor opcode
2766 number within major opcode number.
2770 * hppa-dis.c: Include libhppa.h.
2774 * mips-opc.c: Change dli to use M_DLI, and add dla.
2778 * Makefile.in (ALL_MACHINES): Add w65-dis.o.
2782 * mips-opc.c: Add r4650 mul instruction.
2786 * mips-opc.c: Add uld and usd macros for unaligned double load and
2791 * ppc-opc.c (powerpc_opcodes): Add 403GA opcodes rfci, dccci,
2792 mfdcr, mtdcr, icbt, iccci.
2796 * i960-dis.c (struct tabent, struct sparse_tabent): Change the
2797 signed char fields to shorts, more portable.
2801 * i960-dis.c (struct tabent, struct sparse_tabent): Declare the
2802 char fields as signed chars, since they may have negative values.
2806 * i386-dis.c (dis386_twobyte): Add cpuid, From Charles Hannum
2812 * ppc-opc.c (extract_bdm): Correct parenthezisation.
2813 * ppc-dis.c (print_insn_powerpc): Print .long before unrecognized
2818 * ppc-opc.c: Changes based on patch from David Edelsohn
2820 (powerpc_operands): Add operands SPRBAT and SPRG. Split TBR out of
2823 (insert_tbr): New static function.
2824 (extract_tbr): New static function.
2825 (XFXFXM_MASK, XFXM): Define.
2826 (XSPRBAT_MASK, XSPRG_MASK): Define.
2827 (powerpc_opcodes): Add instructions to access special registers by
2828 name. Add mtcr and mftbu.
2832 * mips-opc.c (P3): Define.
2833 (mips_opcodes): Add mad and madu.
2835 Sun Jan 15 16:32:59 1995 Steve Chamberlain <sac@splat>
2837 * configure.in: Add W65 support.
2838 * disassemble.c: Likewise.
2839 * w65-opc.h, w65-dis.c: New files.
2843 * h8300-dis.c (bfd_h8_disassemble): Add support for 2 bit
2848 * mips-opc.c: Add dli as a synonym for li.
2852 * alpha-dis.c (print_insn_alpha): Handle call_pal instruction, and
2853 print something for reserved opcode values, even if it won't
2856 * mips-dis.c (_print_insn_mips): When initializing, shift right
2857 and mask, to avoid sign extension problems on the Alpha.
2859 * m68k-dis.c (print_insn_arg, case 'J'): Handle buscr and pcr
2864 * sh-opc.h (mov.l gbr): Get direction right.
2865 * sh-dis.c (print_insn_shx): New function.
2866 (print_insn_shl, print_insn_sh): Call print_insn_shx to
2867 print opcodes with right byte order.
2871 * ns32k-dis.c (struct ns32k_option): Renamed from struct option,
2872 to avoid conflicts with getopt.
2876 * hppa-dis.c (print_insn_hppa): Read the instruction using
2877 bfd_getb32, so that it works on a little endian or 64 bit host.
2878 Remove unused local variable op.
2882 * mips-opc.c: Use or instead of addu for pseudo-op move, since
2883 addu does not work correctly if -mips3.
2887 * a29k-dis.c (print_special): Add special register names defined
2888 on 29030, 29040 and 29050.
2889 (print_insn): Handle new operand type 'I'.
2893 * Makefile.in (INSTALL): Use top level install.sh script.
2897 * sparc-dis.c: Rewrite to use bitfields, rather than a union, so
2898 that it works on a little endian host.
2902 * configure.in: Use ${config_shell} when running config.bfd.
2906 * mips-opc.c (mips_opcodes): "dabs" is only available with -mips3.
2910 * a29k-dis.c (print_insn): Print the opcode.
2914 * mips-opc.c (mips_opcodes): Set WR_t for sc and scd.
2918 * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.
2922 * mips-opc.c: Set INSN_STORE_MEMORY flag for all instructions
2923 which store a value into memory.
2927 * configure.in, Makefile.in, disassemble.c: Add support for the ARM.
2928 * arm-dis.c, arm-opc.h: New files.
2932 * Makefile.in (ns32k-dis.o): Add dependency.
2933 * ns32k-dis.c (print_insn_arg): Declare initialized local as
2934 string, not as array of chars.
2938 * sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.
2940 * sparc-opc.c: Added sparclite extended FP operations, and
2941 versions of v9 impdep* instructions permitting specification of
2946 * i960-dis.c (reg_names): Now const.
2947 (struct sparse_tabent): New type, copied from array type in mem
2949 (ctrl): Local static array ctrl_tab now const.
2950 (cobr): Local static array cobr_tab now const.
2951 (mem): Local variables reg1, reg2, reg3 now point to const. Local
2952 static variable mem_tab no longer explicitly initialized. Changed
2953 mem_init to const array of struct sparse_tabent.
2954 (reg): Local static variable reg_tab no longer explicitly
2955 initialized. Changed reg_init to const array of struct
2957 (ea): Local static array scale_tab now const.
2959 * i960-dis.c (reg): Added i960JX instructions to reg_init table.
2964 * configure.bat: the disassember needs to be enabled for
2965 "objdump -d" to work in djgpp.
2969 * ns32k-dis.c: Deleted all code in "#ifdef GDB".
2970 (invalid_float): Enabled general version, doesn't require running
2971 on ns32k host. Changed to take char* argument, and test for
2972 explicitly specified sizes, instead of using sizeof() on host CPU
2974 (INVALID_FLOAT): Cast first argument.
2975 (opt_u, opt_U, opt_O, opt_C, opt_S, list_P532, list_M532,
2976 list_P032, list_M032): Now const.
2977 (optlist, list_search): Made appropriate arguments now point to
2979 (print_insn_arg): Changed static array of one-character-string
2980 pointers into a static const array of characters; fixed sprintf
2981 statement accordingly.
2985 * ns32k-dis.c: Semi-new file. Had apparently been dropped
2986 from distribution. A ns32k-dis.c from a previous distribution has
2987 been brought up to date and supports the new interface.
2989 * disassemble.c: define ARCH_ns32k and add case bfd_arch_ns32k.
2991 * configure.in: add bfd_ns32k_arch target support.
2993 * Makefile.in: add ns32k-dis.o to ALL_MACHINES.
2994 Add ns32k-dis.c to CFILES. Add dependencies for ns32k-dis.o.
2998 * h8300-dis.c (bfd_h8_disassemble): Get 16bit branch
3003 * h8300-dis.c, mips-dis.c: Don't use true and false.
3007 * configure.in: Change --with-targets to --enable-targets.
3011 * mips-dis.c (_print_insn_mips): Build a static hash table mapping
3012 opcodes to the first instruction with that opcode, to speed
3018 * Makefile.in (mostlyclean): Fix typo (was mostyclean).
3022 * configure.bat: update to latest makefile.in
3026 * a29k-dis.c (print_insn): Print 'x' type operand in hex.
3027 * h8300-dis.c (bfd_h8_disassemble): Print 16bit rels correctly.
3028 * sh-dis.c (print_insn_sh): Don't recur endlessly if delay
3029 slot insn is in a delay slot.
3030 * z8k-opc.h: (resflg): Fix patterns.
3031 * h8500-opc.h Fix CR insn patterns.
3035 * ppc-opc.c (powerpc_opcodes): Put PowerPC versions of "cmp" and
3036 "cmpl" before POWER versions, so that gas -many uses them.
3040 * disassemble.c: New file.
3041 * Makefile.in (OFILES): Add disassemble.o.
3042 (disassemble.o): Provide dependencies; compile with $(ARCHDEFS).
3043 * configure.in: Define ARCHDEFS in Makefile. Code taken from
3044 binutils/configure.in.
3046 * m68k-dis.c (print_insn_m68k): If F_ALIAS flag is set, skip the
3047 opcode being examined.
3051 * ppc-opc.c (powerpc_operands): Added RAL, RAM and RAS.
3052 (insert_ral, insert_ram, insert_ras): New functions.
3053 (powerpc_opcodes): Use RAL for load with update, RAM for lmw, and
3054 RAS for store with update.
3058 * ppc-opc.c (powerpc_opcodes): Correct fcir. From David Edelsohn
3063 * mips-opc.c (mips_opcodes): Correct operands of "nor" with an
3068 * sparc-opc.c (sparc_opcodes): Fix "rd %fprs,%l0".
3072 * ppc-opc.c (powerpc_operands): The signedp field has been
3073 removed, so don't initialize it. Set the PPC_OPERAND_SIGNED flag
3074 instead. Add new operand SISIGNOPT.
3075 (powerpc_opcodes): For lis, liu, addis, and cau use SISIGNOPT.
3077 * ppc-dis.c (print_insn_powerpc): Check PPC_OPERAND_SIGNED rather
3082 * i386-dis.c (struct private): Renamed to dis_private. `private'
3083 is a reserved word for dynix cc.
3087 * configure.in: Change error message to refer to bfd/config.bfd
3088 rather than bfd/configure.in.
3092 * ppc-opc.c: Define POWER2 as short alias flag.
3093 (powerpc_opcodes): Add POWER/2 opcodes lfq*, stfq*, fcir[z], and
3098 * i960-dis.c (print_insn_i960): Don't read a second word for
3099 opcodes 0, 1, 2 and 3.
3103 * configure.in: Don't build m68881-ext.o for bfd_m68k_arch.
3107 * m68881-ext.c: Removed; no longer used.
3108 * Makefile.in: Changed accordingly.
3110 * m68k-dis.c (ext_format_68881): Don't declare.
3111 (print_insn_m68k): If an instruction uses place 'i', it uses at
3112 least four fixed bytes.
3113 (print_insn_arg): Don't bump p by 2 for case 'I', place 'i'. For
3114 extended float, convert to double using floatformat_to_double, not
3115 ieee_extended_to_double, and fetch the data before converting it.
3119 * mips-opc.c: It's sqrt.s, not sqrt.w. From
3124 * ppc-opc.c (powerpc_opcodes): The POWER uses bdn[l][a] where the
3125 PowerPC uses bdnz[l][a].
3129 * dis-buf.c, i386-dis.c: Include sysdep.h.
3133 * configure.in (bfd_powerpc_arch): Use ppc-dis.o and ppc-opc.o.
3135 * ppc-opc.c (powerpc_opcodes): Mark POWER instructions supported
3136 by Motorola PowerPC 601 with PPC_OPCODE_601.
3137 * ppc-dis.c (print_insn_big_powerpc, print_insn_little_powerpc):
3138 Disassemble Motorola PowerPC 601 instructions as well as normal
3139 PowerPC instructions.
3143 * i960-dis.c (reg, mem): Just use a static array instead of
3148 * hppa-dis.c (print_insn_hppa): For '?' and '@' only adjust the
3149 condition name index if this is for a negated condition.
3151 * hppa-dis.c (print_insn_hppa): No space before 'H' operand.
3152 Floating point format for 'H' operand is backwards from normal
3153 case (0 == double, 1 == single). For '4', '6', '7', '9', and '8'
3154 operands (fmpyadd and fmpysub), handle bizarre register
3155 translation correctly for single precision format.
3157 * hppa-dis.c (print_insn_hppa): Do not emit a space after 'F'
3158 or 'I' operands if the next format specifier is 'M' (fcmp
3159 condition completer).
3163 * ppc-opc.c (powerpc_operands): New operand type MBE to handle a
3164 single number giving a bitmask for the MB and ME fields of an M
3165 form instruction. Change NB to accept 32, and turn it into 0;
3166 also turn 0 into 32 when disassembling. Seperated SH from NB.
3167 (insert_mbe, extract_mbe): New functions.
3168 (insert_nb, extract_nb): New functions.
3169 (SC_MASK): Mask out SA and LK bits.
3170 (powerpc_opcodes): Change "cal" to use RT, D, RA rather than RT,
3171 RA, SI. Change "liu" and "cau" to use UI rather than SI. Mark
3172 "bctr" and "bctrl" as accepted by POWER. Change "rlwimi",
3173 "rlimi", "rlwimi.", "rlimi.", "rlwinm", "rlinm", "rlwinm.",
3174 "rlinm.", "rlmi", "rlmi.", "rlwnm", "rlnm", "rlwnm.", "rlnm." to
3175 use MBE rather than MB. Add "mfmq" and "mtmq" POWER instructions.
3176 (powerpc_macros): Define table of macro definitions.
3177 (powerpc_num_macros): Define.
3179 * ppc-dis.c (print_insn_powerpc): Don't skip optional operands
3180 if PPC_OPERAND_NEXT is set.
3184 * i960-dis.c (print_insn_i960): Make buffer bfd_byte instead of
3185 char. Retrieve contents using bfd_getl32 instead of shifting.
3189 * ppc-opc.c: New file. Opcode table for PowerPC, including
3190 opcodes for POWER (RS/6000).
3191 * ppc-dis.c: New file. PowerPC and Power (RS/6000) disassembler.
3192 * Makefile.in (ALL_MACHINES): Add ppc-dis.o and ppc-opc.o.
3193 (CFILES): Add ppc-dis.c.
3194 (ppc-dis.o, ppc-opc.o): New targets.
3195 * configure.in: Build ppc-dis.o and ppc-opc.o for bfd_rs6000_arch.
3199 * hppa-dis.c (print_insn_hppa): Handle 'N' in assembler template.
3200 No space before 'u', 'f', or 'N'.
3204 * i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
3205 farther than we should.
3207 * i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.
3211 * sparc-dis.c m68k-dis.c alpha-dis.c a29k-dis.c: Fix comments.
3215 * i960-dis.c (print_insn_i960): Only read word2 if the instruction
3216 needs it, to prevent reading past the end of a section.
3220 * mips-opc.c: Use macro for j instruction, to support SVR4 PIC.
3221 Removed t,A case for la; always use t,A(b) case.
3226 * mips-dis.c (print_insn_arg): Handle 'k'.
3227 * mips-opc.c: Make cache use k, not t.
3231 * alpha-opc.h, alpha-dis.c (print_insn_alpha): Add
3232 FLOAT_MEMORY_FORMAT_CODE, FLOAT_BRANCH_FORMAT_CODE, correct
3233 FLOAT_FORMAT_CODE to put out floating point register names.
3237 * mips-opc.c: Use macros for jal variants, to support SVR4 PIC.
3241 * a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.
3245 * mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
3246 larger than 32. Moved dsxx32 variants first for disassembler.
3250 * z8kgen.c, z8k-opc.h: Add full lda information.
3254 * hppa-dis.c (print_insn_hppa): Do not emit a space after
3255 movb instructions. Any necessary space will be emitted by
3256 the code to handle nullification completers.
3260 * mips-opc.c: Moved l.d down so that it disassembles as ldc1.
3264 * alpha-opc.h: Add ldl_l, fix typo for ldq_u.
3265 * alpha-dis.c (print_insn_alpha): Add code for PAL_FORMAT_CODE.
3269 * mips-opc.c: Correct lwu opcode value (book had it wrong).
3273 * z8k-dis.c (FETCH_DATA): get just the right amount of data.
3274 (unpack_instr): Cope with ARG_IMM4M1 type instructions.
3278 * m88k-dis.c (m88kdis): comment change. Remove space after
3280 (printop): handle new arg types DEC and XREG for m88110.
3284 * hppa-dis.c (print_insn_hppa): Handle 'z' operand
3285 type for absolute branch addresses. Delete special
3286 "ble" and "be" code in 'W' operand code.
3290 * mips-opc.c: Set hazard information correctly for branch
3291 likely instructions.
3295 * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
3296 info->fprintf_func for printing and info->print_address_func for
3301 * mips-opc.c: Set INSN_TRAP for tXX instructions.
3306 Corrected second case of "b" for disassembler.
3310 * mips-dis.c, m88k-dis.c: Don't include libbfd.h. Changed calls
3311 to BFD swapping routines to correspond to BFD name changes.
3315 * mips-opc.c: Change div machine instruction to be z,s,t rather
3316 than s,t. Change div macro to be d,v,t rather than d,s,t.
3317 Likewise for divu, ddiv, ddivu. Added z,s,t case for drem, dremu,
3318 rem and remu which generates only the corresponding div
3319 instruction. This is for compatibility with the MIPS assembler,
3320 which only generates the simple machine instruction when an
3321 explicit destination of $0 is used.
3322 * mips-dis.c (print_insn_arg): Handle 'z' (always register zero).
3327 WR_31 hazard for bal, bgezal, bltzal.
3331 * hppa-dis.c (print_insn_hppa): Use print function
3332 from within the disassemble_info, not fprintf_filtered.
3336 * hppa-dis.c (print_insn_hppa): Handle '|' like '>'. (From Jeff
3341 * mips-opc.c ("absu"): Removed.
3346 * mips-opc.c: Added r6000 and r4000 instructions and macros.
3347 Changed hazard information to distinguish between memory load
3348 delays and coprocessor load delays.
3352 * mips-opc.c: li.d uses "T,L", not "S,F". Added li.s.
3356 * configure.in: Don't pass cpu to config.bfd.
3360 * m88k-dis.c (m88kdis): Make class unsigned.
3364 * alpha-dis.c (print_insn_alpha): One branch format case was
3365 missing the instruction name.
3369 * Makefile.in (ALL_MACHINES): Renamed from DIS_LIBS.
3370 Add the arch-specific auxiliary files.
3371 (OFILES): Remove the arch-specific auxiliary files
3372 and use BFD_MACHINES instead of DIS_LIBS.
3373 * configure.in: Set BFD_MACHINES based on --with-targets option.
3377 * mips-opc.c: Added lwc1 E,A(b) to go with lwc1 T,A(b). Similarly
3382 * sparc-opc.c: Change CONST to const to deal with gcc
3383 -Dconst=__const -traditional.
3388 coprocessor instructions out of #if 0, and made them use new
3393 * sparc-dis.c: Include ansidecl.h before opcodes/sparc.h.
3397 * sparc-opc.c: Add F_JSR, F_UNBR, or F_CONDBR flags to each branch
3398 instruction, for use by the disassembler.
3400 * sparc-dis.c (SEX): Add sign extension macro. Replace many
3401 hand-coded sign extensions that depended on 32-bit host ints.
3402 FIXME, we still depend on big-endian host bitfield ordering.
3403 (sparc_print_insn): Set the insn_info_valid field, and the
3404 other fields that describe the instruction being printed.
3408 * sparc-opc.c (call): Accept all 6 addressing modes valid for
3409 `jmp' instead of just one of them.
3413 * hppa-dis.c: Move floating registers from reg_names to fp_reg_names.
3414 (fput_fp_reg_r): Renamed from fput_reg_r.
3415 (fput_fp_reg): New function.
3416 (print_insn_hppa): Use fput_fp_reg{,_r} where appropriate.
3418 * hppa-dis.c (print_insn_hppa, cases 'a', 'd'): Print space afterwards.
3420 * hppa-dis.c (print_insn_hppa, case 'd'): Use GET_COND not GET_FIELD.
3424 * hppa-dis.c (print_insn_hppa): Use extract_5r_store for 'r'.
3426 * hppa-dis.c (print_insn_hppa, case '>'): If next character is 'n',
3427 don't output a space.
3429 * hppa-dis.c (float_format_names): 10 is undefined, and 11 is quad.
3433 * mips-opc.c: New file, containing opcode table from
3434 ../include/opcode/mips.h.
3435 * Makefile.in: Add it.
3439 * m88k-dis.c: New file, moved in from gdb and changed to use the
3440 new dis-asm.h disassembler interface.
3441 * Makefile.in (DIS_LIBS): Added m88k-dis.o.
3442 (m88k-dis.o): New target.
3446 * mips-dis.c (print_insn_arg, _print_insn_mips): Made pointer to
3447 argument string const char * to correspond to opcode/mips.h.
3451 * mips-dis.c: Updated to account for name changes in new version
3453 * Makefile.in: Added header file dependencies.
3457 * h8300-dis.c (bfd_h8_disassemble): Correct fetching of instruction.
3461 * m68k-dis.c (NEXTWORD, NEXTLONG): Use ((x) ^ 0x8000) - 0x8000 to sign
3462 extend, rather than shifts.
3466 * Makefile.in: Undo 15 June change.
3470 * m68k-dis.c (print_insn_arg): Change return value to byte count
3472 * m68k-dis.c: Re-write to detect invalid operands before
3473 printing anything, so we can handle this the same way we
3474 handle invalid opcodes.
3478 * sh-dis.c, sh-opc.h: Understand some more opcodes.
3482 * hppa-dis.c: Include <ansidecl.h> and sysdep.h before other
3487 * sparc-dis.c: Don't declare qsort, since sysdep.h might.
3489 * configure.in: Do make sysdep.h link.
3490 * Makefile.in: Search ../include. Don't search ../bfd.
3495 * hppa-dis.c: Fix typo. 'a' and 'd' were reversed.
3496 Do not print a space before the completers specified by
3501 * mips-dis.c: No longer need to bomb out if HOST_64_BIT is
3502 defined, since gdb has been fixed.
3505 * hppa-dis.c (print_insn_hppa): Last argument to fput_reg,
3506 fput_reg_r, fput_creg, fput_const, and fputs_filtered should
3507 be a *disassemble_info, not a *FILE.
3508 * hppa-dis.c: Support 'd', '!', and 'a'.
3509 * hppa-dis.c: Support 's' to extract a 2 bit space register.
3510 * hppa-dis.c: Delete cases which are no longer needed.
3514 * m68k-dis.c (print_insn_{m68k,arg}): Add MMU codes.
3518 * h8300-dis.c: New file, removed from bfd/cpu-h8300.c, with
3523 * Makefile.in (CSEARCH): Add -I../bfd for sysdep.h and bfd.h.
3524 * configure.in: No longer need to configure to get sysdep.h.
3529 * hppa-dis.c: Support 'I', 'J', and 'K' in output
3530 templates for 1.1 FP computational instructions.
3534 * h8500-dis.c (print_insn_h8500): Address argument is type
3536 * z8k-dis.c (print_insn_z8k, print_insn_z8001, print_insn_z8002):
3539 * h8500-opc.h (addr_class_type): No comma at end of enumerator.
3540 * sh-opc.h (sh_nibble_type, sh_arg_type): Ditto.
3542 * sparc-dis.c (compare_opcodes): Move static declaration to
3547 * sparc-dis.c (print_insn_sparc): Implement 'n' argument for unimp
3548 instruction, remove unimp hack from 'l' argument.
3552 * z8k-dis.c (fetch_data): Use unsigned char to make ancient gcc's
3558 * mips-dis.c (print_insn_arg): Handle 'C' for general coprocessor
3563 * hppa-dis.c: Include dis-asm.h before sysdep.h. Changed some
3564 arrays of string pointers to 2-d arrays of chars, to save
3569 * a29k-dis.c, alpha-dis.c, i960-dis.c, sparc-dis.c, z8k-dis.c:
3570 Cast second arg to read_memory_func to "bfd_byte *", as necessary.
3574 * hppa-dis.c: New file from Utah, adapted to new disassembler
3576 * Makefile.in: Include it.
3580 * sh-dis.c, sh-opc.h: New files.
3584 * alpha-dis.c, alpha-opc.h: New files.
3588 * mips-dis.c: Sign extend 'j' and 'b' arguments, delta is a signed
3593 * sparc-dis.c: Make "ta" the default trap instruction, "t" the alias.
3597 * a29k-dis.c, sparc-dis.c, sparc-opc.c: Use CONST rather than
3602 * sparc-dis.c: Use fprintf_func a few places where I forgot,
3603 and double percent signs a few places.
3605 * a29k-dis.c, i960-dis.c: New, merged from gdb and binutils.
3607 * i386-dis.c, m68k-dis.c, mips-dis.c, sparc-dis.c:
3608 Use info->print_address_func not print_address.
3610 * dis-buf.c (generic_print_address): New function.
3614 * Makefile.in: Add sparc-dis.c.
3615 sparc-dis.c: New file, merges binutils and gdb versions as follows:
3617 Add `add' instruction to the set that get checked
3618 for a preceding `sethi' in order to print an absolute address.
3619 * (print_insn): Disassembly prefers real instructions.
3620 (is_delayed_branch): Speed up.
3621 * sparc-opc.c: Add ALIAS bit to aliases. Fix up opcode tables.
3622 Still missing some float ops, and needs testing.
3623 * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
3624 F_ALIAS. Use printf, not fprintf, when not passing a file
3626 (compare_opcodes): Check that identical instructions have
3627 identical opcodes, complain otherwise.
3630 * Include reg_names.
3632 Use dis-asm.h/read_memory_func interface.
3636 * h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
3637 deliberately return non-zero to setjmp from longjmp. Otherwise
3638 this code fails to compile.
3642 * m68k-dis.c: Fix prototype for fetch_arg().
3646 * dis-buf.c: New file, for new read_memory_func interface.
3647 Makefile.in (OFILES): Include it.
3648 m68k-dis.c, i386-dis.c, h8500-dis.c, mips-dis.c, z8k-dis.c:
3649 Use new read_memory_func interface.
3653 * h8500-dis.c (print_insn_h8500): Get sign of fp offsets right.
3654 * h8500-opc.h: Fix couple of opcodes.
3656 Wed Mar 24 02:03:36 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
3658 * Makefile.in: add dvi & installcheck targets
3662 * Makefile.in: Update for h8500-dis.c.
3666 * h8500-dis.c, h8500-opc.h: New files
3670 * mips-dis.c, z8k-dis.c: Converted to use interface defined in
3671 ../include/dis-asm.h.
3672 * m68k-dis.c: New file (merge of ../binutils/m68k-pinsn.c
3673 and ../gdb/m68k-pinsn.c).
3674 * i386-dis.c: New file (merge of ../binutils/i386-pinsn.c
3675 and ../gdb/i386-pinsn.c).
3676 * m68881-ext.c: New file. Moved definition of
3677 ext_format ext_format_68881 from ../gdb/m68k-tdep.c.
3678 * Makefile.in: Adjust for new files.
3680 * m68k-dis.c: Recognize '9' placement code, so (say) pflush
3681 can be dis-assembled.
3685 * mips-dis.c (print_insn_arg): Now returns void.
3689 * mips-dis.c (ansidecl.h): Include for benefit of sysdep.h
3690 files that use the macros.
3694 * mips-dis.c: New file, from gdb/mips-pinsn.c.
3695 * Makefile.in (DIS_LIBS): Added mips-dis.o.
3696 (CFILES): Added mips-dis.c.
3700 * z8k-dis.c (print_insn_z8001, print_insn_z8002): new routines
3701 * z8kgen.c, z8k-opc.h: fix sizes of some shifts.
3705 * Makefile.in: Improve *clean rules.
3706 * configure.in: Allow a default host.
3708 Tue Nov 17 19:53:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3710 * Makefile.in: also use -I$(srcdir)/../bfd, since some sysdep
3711 files include other sysdep files
3715 * z8k-dis.c z8k-opc.h z8kgen.c: checkpoint
3719 * configure.in: For host support, use ../bfd/configure.host
3720 so it stays in sync with the ../bfd/hosts database.
3722 Thu Oct 1 23:38:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3724 * configure.in: use cpu-vendor-os triple instead of nested cases
3728 * z8k-dis.c (unparse_instr): fix bug where opcode returned was
3729 *always* the wrong one.
3733 * z8kgen.c: added copyright info
3737 * z8k-dis.c (unparse_instr): prettier tabs
3738 * z8kgen.c z8k-opc.h: bug fixes in tables
3740 Fri Sep 25 12:50:32 1992 Stu Grossman (grossman at cygnus.com)
3742 * configure.in: Add ncr* configuration.
3743 * z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make
3744 picayune ANSI compilers happy.
3748 * configure.in (i386): Make i386 and i486 synonymous for now.
3749 * configure.in (i[34]86-*-sysv4): Add my_host definition.
3753 * Makefile.in (install): Fix typo.
3757 * Makefile.in (make): Remove obsolete crud.
3758 (sparc-opc.o): Avoid Sun Make VPATH bug.
3762 * Makefile.in: since there are no SUBDIRS, remove rule and
3763 references of subdir_do.
3767 * Makefile.in (install): Get the library name right here too.
3768 Don't install bfd.h, since it's unrelated to this library. No
3769 subdirs to recurse into, either.
3770 (CFILES): The source file has a .c suffix, not .o.
3772 * sparc-opc.c: New file, moved from BFD.
3773 * Makefile.in (OFILES): Build it.
3777 * z8k-dis.c: fixed forward refferences of some declarations.
3781 * Makefile.in: get the name of the library right
3785 * z8k-dis.c: knows how to disassemble z8k stuff
3786 * z8k-opc.h: new file full of z8000 opcodes
3790 * Renamed opc-sparc.c to sparc-opc.c for systems with short
3791 filename constraints.
3792 * Makefile.in: Updated to reflect change.
3796 version-control: never