3 * Branched binutils 2.9.
8 * d30v-dis.c (print_insn_d30v): Don't use uninitialized "num" when
9 disassembling last 4 bytes of a section.
14 Fix some gcc -Wall warnings:
15 * arc-dis.c (print_insn): Add casts to avoid warnings.
16 * cgen-opc.c (cgen_keyword_lookup_name): Likewise.
17 * d10v-dis.c (dis_long, dis_2_short): Likewise.
19 * dvp-opc.c (issymchar, SKIP_BLANKS): Likewise.
20 (parse_dotdest, parse_dotdest1, u_parse_sdest): Likewise.
21 (parse_bc, parse_vfreg, parse_accdest): Likewise.
22 (parse_ffstreg, parse_vif_mode): Likewise.
24 * m10200-dis.c (disassemble): Likewise.
25 * m10300-dis.c (disassemble): Likewise.
26 * ns32k-dis.c (print_insn_ns32k): Likewise.
27 * ppc-opc.c (insert_ral, insert_ram): Likewise.
28 * cgen-dis.c (build_dis_hash_table): Remove used local variables.
29 * cgen-opc.c (cgen_keyword_search_next): Likewise.
30 * d10v-dis.c (dis_long, dis_2_short): Likewise.
32 * d30v-dis.c (print_insn_d30v, lookup_opcode): Likewise.
35 * dvp-dis.c (print_dma, print_vif, print_gif): Likewise.
36 * dvp-opc.c (parse_dest1, print_uflags): Likewise.
37 (parse_gif_nloop, dvp_opcode_init_tables): Likewise.
39 * ns32k-dis.c (bit_extract, print_insn_ns32k): Likewise.
41 * tic80-dis.c (print_one_instruction): Likewise.
43 * w65-dis.c (print_operand): Likewise.
44 * z8k-dis.c (fetch_data): Likewise.
45 * a29k-dis.c: Add return type for find_byte_func_type.
46 * arc-opc.c: Include <stdio.h>. Remove declarations of
47 insert_multshift and extract_multshift.
49 * d30v-dis.c (lookup_opcode): Parenthesize assignments in
51 (extract_value): Fully parenthesize expression.
54 * dvp-opc.c: Include <ctype.h>.
55 (print_sdest): Add default case to switch.
57 * h8500-dis.c (print_insn_h8500): Initialize local variables.
58 * h8500-opc.h (h8500_table): Fully bracket initializer.
59 * w65-opc.h (optable): Likewise.
60 * i386-dis.c (print_insn_x86): Declare aflag and flag parameters.
61 * i386-dis.c (OP_E): Initialize local variables.
62 * m10200-dis.c (print_insn_mn10200): Likewise.
63 * mips-dis.c (print_insn_mips16): Likewise.
64 * sh-dis.c (print_insn_shx): Likewise.
65 * v850-dis.c (print_insn_v850): Likewise.
66 * ns32k-dis.c (print_insn_arg): Declare.
67 (get_displacement, invalid_float): Declare.
68 (list_search, sign_extend, flip_bytes): Declare return type.
69 (get_displacement): Likewise.
70 (print_insn_arg): Likewise. Make d int. Fix sprintf format
72 (print_insn_ns32k): Make i unsigned.
73 (invalid_float): Make static. Declare type of val.
74 * tic30-dis.c (print_par_insn): Make i size_t. Don't check strlen
75 on each for iteration.
76 * tic30-dis.c (get_indirect_operand): Likewise.
77 * z8k-dis.c (print_insn_z8001): Declare return type.
78 (print_insn_z8002): Likewise.
79 (unparse_instr): Fix sprintf format strings.
83 * mips-opc.c: Add "sync.l" and "sync.p".
88 * dvp-opc.c (extract_vif_datalen): Rewrite.
89 (vif_insn_len): Perform 0->max+1 conversion for direct length.
93 * dvp-dis.c (print_insn): Print unpack address in hex.
94 * dvp-opc.c (parse_vif_mpgloc): Renamed from parse_vif_mpgloc_star.
95 Don't skip over '*', just record it.
96 (insert_vif_mpgloc): Don't update state_vif_mpgloc if '*' value.
97 (parse_vif_unpackloc): Renamed from parse_vif_unpackloc_star.
98 Don't skip over '*', just record it.
99 (insert_vif_unpackloc): Don't update state_vif_unpackloc if '*' value.
100 (vif_operands): Delete VIF_MPGLOC_STAR,VIF_UNPACKLOC_STAR entries.
101 (vif_opcodes): Likewise.
102 (state_vif_{mpg,unpack}loc_star_p): New static locals.
103 (vif_macros,vif_macro_count): New globals.
104 (vif_unpack_len_value): New arguments wl,cl. All callers updated.
105 (vif_set_{mpg,unpack}loc): Delete. All callers updated.
106 (vif_get_wl_cl): New function.
107 (dvp_opcode_init_parse): Init mpgloc,unpackloc state.
112 * m68k-dis.c (print_insn_m68k): Use info->mach to select the
113 default m68k variant to recognize.
115 * i960-dis.c (pinsn): Change type of first argument to bfd_vma.
116 (ctrl, cobr, mem, ea): Likewise.
117 (print_addr): Likewise. Remove cast.
118 (ea): Cast argument of print_addr to bfd_vma.
120 * cgen-asm.c (cgen_parse_signed_integer): Fix type of local
122 (cgen_parse_unsigned_integer): Likewise.
123 (cgen_parse_address): Likewise.
127 * i960-dis.c (ctrl): Add full braces to structure initialization.
128 (cobr, mem, reg): Likewise.
129 (ea): Correct parenthesization in expression.
131 * cgen-asm.c: Include <ctype.h>.
132 (build_asm_hash_table): Remove unused local variable i.
133 (cgen_parse_keyword): Add casts to avoid warnings.
135 * arm-dis.c (print_insn_big_arm): Only call coffsymbol for a COFF
136 symbol. Fix indentation.
137 (print_insn_little_arm): Likewise.
142 * vu0.h (cfc2, ctc2): Add variants with ".i" and ".ni"
149 * m32r-opc.c (m32r_cgen_insn_table_entries): Fix SATH bit pattern
156 * dvp-opc.c (vif_operand_datalen_special): New global.
162 * vu0.h (vcallms): Use 'O' for call target operand.
163 * mips-dis.c (print_insn_arg): Handle 'O'.
168 * configure.in: Use AM_DISABLE_SHARED.
169 * aclocal.m4, configure: Rebuild with libtool 1.2.
174 * mips-dis.c: Change '%' to '#' to avoid conflict with vr5400
181 These patches are courtesy of Jonathan Walton and Tony Thompson
184 * arm-dis.c (print_insn_thumb): Ignore bottom two bits of PC
187 * arm-opc.h (thumb_opcodes): Annotate PC relative addresses with
188 both the offset and the label closest to the destination.
193 * vu0.h: New file with cop2/vu0 instructions.
194 * mips-opc.c: Include vu0.h.
195 * mips-dis.c (print_insn_arg): Handle new args 0-9, +, -, %, K, &,
197 (print_insn_mips): Do not emit a tab after an instruction if the
198 first arg is an instruction completer (&). If the next arg is an
199 escape character (%), then print the next arg verbatim.
200 * Makefile.am (mips-opc.lo): Depend on vu0.h
206 * dvp-opc.c (vif_opcodes): Add stcycl.
210 * dvp-dis.c (print_dma): Change length from 16 to 8.
215 * m32r-opc.h: Regenerate.
220 * dvp-opc.c (print_dest1): Print dest spec again.
221 (print_vfreg,print_accdest): Likewise.
222 (vif_unpack_len): Round result up to word boundary.
225 start-sanitize-vr4320
228 * mips-opc.c ("clz","dclz"): Added the 4320 versions.
232 * mips-opc.c ("macc*","mul*"): Added the 4320 versions
239 * dvp-dis.c (print_gif): Fix length calcs for gifimage.
240 (print_insn): Do mask comparison on proper opcode word.
241 Print unsigned values in hex.
242 * dvp-opc.c (u_parse_sdest): Return -1 if dest missing.
243 (parse_bc): Catch missing dest.
244 (parse_vfreg): Replace atoi call with strtol.
245 (parse_{bcftreg,ffstreg,freg,ireg,vi01,gif_prim,gif_nloop}): Likewise.
246 (parse_bcftreg,parse_ffstreg): Handle missing dest.
247 (extract_gif_eop): New function.
248 (gif_operands): Update eop entry.
249 (VGIFOP,VGIFNREGS): Fix calcs.
250 (extract_gif_prim): Set *pinvalid to 1 if prim not used.
251 (gif_regs): Add entry for unused 11 case.
252 (print_gif_regs): Print empty list instead of nothing.
253 (extract_gif_nloop): Fix value calc.
254 (print_gif_nloop): Always print value, even if 0.
255 (insert_vif_wlcl,extract_vif_wlcl): New functions.
256 (vif_operands): Use them for wl,cl fields.
257 (state_vif_wl,state_vif_cl): New static locals.
258 (parse_vif_mode): Handle numeric args.
259 (vif_unpack_len_value,vif_unpack_len): New functions.
260 (vif_insn_len): Call vif_unpack_len.
265 * m32r-opc.h,m32r-opc.c,m32r-asm.c,m32r-dis.c: Regenerate.
269 * cgen-asm.in: Move insertion of generated routines to top of file.
270 (insert_normal): Add prototype. Delete `shift' arg.
271 * cgen-dis.in: Move insertion of generated routines to top of file.
272 (extract_normal): Add prototype. Delete `shift' arg.
273 (print_normal): Add prototype. Call CGEN_PRINT_NORMAL if defined.
274 (print_keyword): Add prototype. Fix type of `attrs' arg.
276 start-sanitize-vr4320
279 * mips-dis.c (_print_insn_mips) : Handle bfd_mach_mips4320.
280 * mips-opc.c ("mac","dmac") : Added 4320 insns.
285 * arm-dis.c (print_insn_big_arm, print_insn_little_arm): Do not
286 assume that info->symbols is non-empty.
290 * alpha-opc.c (cvtqs) There is no such thing.
291 (cvttq): Missing most of the /*d variants.
296 * mips-opc.c (r5900/madd.s): Takes three operands, not four. Fix
298 (r5900/min.s): Incorrect opcode ....,101001 not ...110000.
299 (r5900/msub.s): Takes three operands, not four. Fix opcode.
305 * d30v-opc.c (d30v_opcode_table): Indicate which instructions are
306 delayed branches or jumps.
312 * dvp-opc.c (vif_operands): Add unpack[u] support.
313 (vif_opcodes): Ditto.
314 (*_vif_imrubits): Renamed from *_vif_imrbits.
318 * dvp-dis.c (print_insn): Handle word number.
319 Handle mips address vs vu address.
320 * dvp-opc.c (vif_operands): Use DVP_OPERAND_VU_ADDRESS.
321 (dma_operands): Use DVP_OPERAND_MIPS_ADDRESS.
322 ({insert,extract}_dma_addr): Fix word ofset.
323 ({insert,print}_gif_regs): Fix encode/decode.
328 * arm-dis.c (print_insn_{big,little}_arm): info->symbol changed
330 * mips-dis.c (print_insn_{big,little}_mips): Likewise.
331 * tic30-dis.c (print_branch): Likewise.
333 * mips-dis.c (print_insn_little_mips): Call dvp_info_mach_type.
334 * dvp-dis.c (dvp_info_mach_type): New function.
335 (print_insn_dvp): Call it.
336 (print_vif): Return length of 4 if mpg or direct insn so following
337 insns get properly disabled.
338 (print_gif): Fix word order.
339 * dvp-opc.c (vif_insn_len): New argument `pcpu'. All callers updated.
340 (gif_operands): Fix word order.
341 (gif_opcodes): Likewise.
342 ({insert,extract,print}_gif_regs): Likewise.
343 (gif_regs): Add new register number/name changes.
344 (dma_opcodes): Add dmarefe insn.
349 * arm-dis.c (print_insn_big_arm, print_insn_little_arm): Remove
350 saved_symbol code as it is no longer needed.
354 * cgen-asm.c: Include symcat.h.
355 * cgen-dis.c,cgen-opc.c,cgen-asm.in,cgen-dis.in: Ditto.
357 * m32r-asm.c,m32r-dis.c,m32r-opc.h,m32r-opc.c: Regenerate.
362 * dvp-opc.c (extra_dma_flags): Fix typos.
363 (dma_operands): Fix word numbers.
364 (dma_opcodes): Likewise.
365 ({insert,extract}_dma_flags): Likewise.
370 * mips-dis.c (print_insn_arg): Do not prefix 'P' arguments with '$'.
375 * dvp-dis.c (print_gif): Complete.
376 * dvp-opc.c (gif_operands,gif_opcodes): Complete.
377 (state_gif_{nregs,regs,nloop}): New static locals.
379 (dvp_opcode_init_{parse,print}): Init gif state locals.
380 (extract_vif_datalen,{insert,extract}_vif_imrbits): New functions.
381 (vif_insn_len): Handle `unpack'.
382 ({insert,extract}_dma_flags): Complete.
388 * mips-opc.c (mula.s): Renamed from multa.s.
393 * m32r-opc.[ch]: Regenerate.
398 * dvp-opc.c (dma_operands): Rewrite.
399 (dma_operand_{count,addr}): New globals.
400 (dma_opcodes): Rewrite. Add "dmaend" with no operands.
401 (insert_dma_addr): Insert value into insn.
402 (extract_dma_addr): Extract value from insn.
406 * dvp-dis.c (print_vu): Handle loi insns.
407 (print_insn): Likewise.
408 * dvp-opc.c (vu_lower_opcodes): Add "loi".
409 (vu_operands): Make LDEST1 a FAKE operand.
410 (parse_dest1): Allow elided argument.
411 (print_dest1): Don't print the argument.
415 * dvp-opc.c (parse_vfreg): Dest spec is optional.
416 (print_vfreg): Don't print dest spec.
417 (parse_accdest): Dest spec is optional.
418 (print_accdest): Don't print dest spec.
423 * Makefile.am (CGENFILES): Update.
424 * Makefile.in: Regenerate.
425 * cgen-asm.in (insert_normal): Result is error message now.
426 Validate value to be inserted.
427 (insert_insn_normal): Result is error message now.
428 (@arch@_cgen_assemble_insn): Update.
429 * cgen-asm.c (cgen_parse_{signed,unsigned}_integer): Delete min,max
430 arguments. Don't perform validation here.
431 * m32r-asm.c,m32r-dis.c,m32r-opc.c: Regenerate.
435 * cgen-opc.in (@arch@_cgen_get_insn_operands): Handle empty
436 operand instance list.
437 * m32r-opc.c: Regenerate.
441 * Makefile.am (AUTOMAKE_OPTIONS): Define.
442 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
446 * m10300-dis.c (print_insn_mn10300): Recognize break instruction.
450 * configure.in: Get the version number from BFD.
451 * configure: Rebuild.
454 * Makefile.am (libopcodes_la_LDFLAGS): Define.
455 * Makefile.in: Rebuild.
459 * m32r-opc.c: Regenerate.
460 * m32r-opc.h: Regenerate.
464 * cgen-opc.in (@arch@_cgen_lookup_insn): New argument alias_p.
465 Ignore ALIAS insns if asked to.
466 (@arch@_cgen_get_insn_operands): Pass 0 for alias_p, NULL for insn.
467 * m32r-opc.c: Regenerate.
470 * dvp.opc.c: Nicely format opcode tables.
471 (vu_operands): New element UFLAGS.
472 (parse_uflags,print_uflags): New functions.
473 (vu_upper_opcodes): Add UFLAGS to all insns.
478 Fix rac to accept only a0:
479 * d10v-opc.c (d10v_predefined_registers, d10v_operands, d10v_opcodes):
480 Split OPERAND_ACC into OPERAND_ACC0 and OPERAND_ACC1.
481 Introduce OPERAND_GPR.
482 * d10v-dis.c (print_operand): Likewise.
486 * cgen-opc.in: New file.
488 * Makefile.am (CGENFILES): Add cgen-opc.in.
489 * Makefile.in: Regenerate.
491 * cgen-opc.c (cgen_set_cpu): Delete init of hw list `next' chain.
492 (cgen_hw_lookup): Make result const.
494 * cgen-dis.in (*): Use PTR instead of void *.
495 (print_insn): Delete unused vars `i', `syntax'.
497 * m32r-opc.h, m32r-opc.c, m32r-asm.c, m32r-dis.c: Regenerate.
502 * dvp-opc.c (*): pke,gpuif renamed to vif,gif.
503 (vif_opcodes): Update renamed insns.
504 * dvp-dis.c (*): Likewise.
509 * configure, aclocal.m4: Rebuild with new libtool.
514 * d30v-opc.c (repeat{,i} instructions): Repeat/repeati
515 instructions use a PC relative branch, not absolute.
520 * configure.in: Set libtool_enable_shared rather than
521 libtool_shared. Remove diversion hack.
522 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
526 * cgen-opc.c (cgen_set_cpu): Initialize hardware table.
527 * m32r-opc.h, m32r-opc.c, m32r-asm.c, m32r-dis.c: Regenerate.
531 * tic30-dis.c: New file.
532 * disassemble.c (disassembler): Add bfd_arch_tic30 case.
533 * configure.in: Handle bfd_tic30_arch.
534 * Makefile.am: Rebuild dependencies.
535 (CFILES): Add tic30-dis.c
536 (ALL_MACHINES): Add tic30-dis.lo.
537 * configure, Makefile.in: Rebuild.
542 * m32r-opc.c, m32r-opc.h, m32r-asm.c m32r-dis.c: Newly generated
543 versions after updates to m32r.cpu to remove mulwhi-a, mulwlo-a,
544 macwhi-a and macwlo-a instructions.
550 * dvp-opc.c, fixed encoding of a bunch of instructions to
551 be consistent with the asmvu assembler (and inconsistent
552 with the specification).
556 * dvp-opc.c, fixed order of pkemscal/pkemscalf instructions
557 in the opcode table. The pkemscalf instruction must come first.
561 * dvp-opc.c, MAXIi should be VUOP6(0x1d) instead of 0x2d.
566 * m32r-opc.h (HAVE_CPU_M32R): Define.
571 * dvp-dis.c, dvp-opc.c: New files.
572 * configure.in: Compile them if bfd_dvp_arch, as well as mips.
573 * configure: Regenerate.
574 * Makefile.am (ALL_MACHINES): Add dvp-{dis,opc}.lo.
575 (dvp-dis.lo,dvp-opc.lo): Add rules for.
576 (mips-dis.lo): Compile with @archdefs@.
577 * Makefile.in: Regenerate.
578 * disassemble.c: Define ARCH_mips ifdef ARCH_dvp.
579 * mips-dis.c (print_insn_little_mips): Check for DVP insns.
584 * v850-opc.c (insertion routines): If both alignment and size is
585 wrong then report this.
589 * mips-dis.c (_print_insn_mips): Set target_processor as appropriate.
590 Only recognize instructions for the current target_processor.
594 * d10v-dis.c (PC_MASK): Correct value.
595 (print_operand): If there's a reloc, don't calculate the
596 address because they could be in different sections.
598 start-sanitize-cygnus
601 * cgen.sh: Rewrite to be like simulator's version.
602 * Makefile.am (cgen): Update call to cgen.sh.
603 * Makefile.in: Regenerate
608 * mips-opc.c (mips_builtin_opcodes): Move 4010's "addciu"
609 instruction after the 4650's "mul" instruction; nobody's using the
610 4010 these days. If object files someday indicate which processor
611 variant they're intended for, we can do a better job at this.
616 * mips-opc.c (c.lt.s): Add r5900 variant.
622 * cgen-asm.c (build_asm_hash_table): Traverse compiled in table using
623 table provided entry size. Use CGEN_INSN_MNEMONIC.
624 (cgen_parse_keyword): Rewrite.
625 * cgen-dis.c (build_dis_hash_table): Traverse compiled in table using
626 table provided entry size. Use CGEN_INSN_MASK_BITSIZE.
627 * cgen-opc.c: Clean up pass over `struct foo' usage.
628 (cgen_keyword_lookup_value): Handle "" entry.
629 (cgen_keyword_add): Likewise.
630 start-sanitize-cygnus
631 * Makefile.am: Add cgen support.
632 * Makefile.in: Regenerate.
633 * configure.in: Add cgen support.
634 * configure: Regenerate.
635 * aclocal.m4: Regenerate.
636 * cgen.sh, cgen-asm.in, cgen-dis.in: New files.
641 * mips-opc.c: Add FP_D to s.d instruction flags.
645 * m68k-opc.c (halt, pulse): Enable them on the 68060.
650 * tic80-opc.c (tic80_opcodes): Revert change that put the 32 bit
651 PC relative offset forms before the 15 bit forms. An assembler command
652 line option now chooses the default.
658 * mips-opc.c: Add many missing r5900 instructions.
664 * d30v-opc.c (d30v_opcode_table): Set new flags bits
665 FLAG_{2WORD,MUL{16,32},ADDSUBppp}, in appropriate instructions.
670 * configure: Only build libopcodes shared if --enable-shared's value
671 was `yes', or was set to `*opcodes*'.
672 * aclocal.m4: Likewise.
673 * NOTE: this really needs to be fixed in libtool/libtool.m4, the
674 original source of this bit of code. It's not clear what the best fix
680 * mips-opc.c (mtpc, mfpc, mtps, mfps): Add r5900 variants.
685 * tic80-opc.c (OFF_SL_PC, OFF_SL_BR): Minor formatting change.
686 (tic80_opcodes): Reorder table entries to put the 32 bit PC relative
687 offset forms before the 15 bit forms, to default to the long forms.
692 * alpha-opc.c (cvttq/*u*): Remove, as that suffix is invalid.
696 * arm-dis.c (print_insn_little_arm): Prevent examination of stored
697 symbol if none is present.
698 (print_insn_big_arm): Prevent examination of stored symbol if
703 * d10v-opc.c (d10v_opcodes): Correct entry for RTE.
707 * disassemble.c: Remove disasm_symaddr() function.
709 * arm-dis.c: Use info->symbol instead of info->flags to determine
710 if disassmbly should be in Thumb or Arm mode.
714 * arm-dis.c: Add support for disassembling Thumb opcodes.
715 (print_insn_thumb): New function.
717 * disassemble.c (disasm_symaddr): New function.
719 * arm-opc.h: Display nop pseudo ops alongside equivalent disassembly.
720 (thumb_opcodes): Table of Thumb opcodes.
724 * m68k-opc.c (btst): Change Dd@s to Dd;b.
726 * m68k-dis.c (print_insn_arg): Recognize 'm', 'n', 'o', 'p', 'q',
727 and 'v' as operand types.
731 * m68k-opc.c: Add argument for lpstop. From Olivier Carmona
733 * m68k-dis.c (print_insn_m68k): Handle special case of lpstop,
734 which has a two word opcode with a one word argument.
739 * d30v-opc.c (d30v_opcode_table, case cmpu): Immediate field is
740 unsigned, not signed.
741 (d30v_format_table): Add SHORT_CMPU cases for cmpu.
746 * sh-dis.c (print_insn_shx): Recognize all sh4 additions.
747 * sh-opc.h (fmov): Add @<REG_M>+,<DX_REG_N> variant for sh4.
748 (ftrv): Slay the cut-and-paste monster.
752 * d10v-dis.c (print_operand):
753 Split OPERAND_FLAG into OPERAND_FFLAG and OPERAND_CFLAG.
757 * d10v-opc.c (OPERAND_FLAG): Split into:
758 (OPERAND_FFLAG, OPERAND_CFLAG) .
764 * mips-opc.c: Move the INSN_MACRO ISA value to the membership
765 field for all INSN_MACRO's.
770 * mips-opc.c (sync,cache): These are 3900 insns.
774 sh-opc.h (sh_table): Remove ftst/nan.
776 start-sanitize-vr5400
779 * mips-opc.c (dror32, dror, rzu.ob): Fix bugs in encoding.
780 (c.*.ob, mula.ob, mull.ob, muls.ob, mulsl.ob): Put 'k' version
782 * mips-dis.c (print_insn_arg): Handle VR5400 operand types.
788 * mips-opc.c (deret,dmult,dmultu,madd,maddu,pref,sdbbp):
789 Add tx49 insns and configury.
794 * mips-opc.c (ffc, ffs): Fix mask.
799 * d30v-opc.c (pre_defined_registers): Add eit_vb, int_s, and int_m
805 * mips-opc.c: Fix bug in mask for "not" pseudo-instruction.
806 start-sanitize-vr5400
807 Added VR5400 instructions.
808 (N5): New cpu-id macro.
810 (WR_HILO, RD_HILO, MOD_HILO): New macros.
814 * mips-opc.c: Fix bug in mask for "not" pseudo-instruction.
815 (WR_HILO, RD_HILO, MOD_HILO): New macros.
819 * v850-dis.c (disassemble): Replace // with /* ... */
823 * sparc-opc.c: Add wr & rd for v9a asr's.
824 * sparc-dis.c (print_insn_sparc): Recognize '_' and '/' for v9a asr's.
825 (v9a_asr_reg_names): New variable.
830 * sparc-opc.c (v9notv9a): New insn type.
831 (IMPDEP): Move to the end to not conflict with edge8 et al.
836 * mips-opc.c (bnezl,beqzl): Mark these as also tx39.
840 * mips-opc.c: Note that 'jalx' is (probably incorrectly) marked I1.
844 * v850-dis.c (disassemble): Use new symbol_at_address_func() field
845 of disassemble_info structure to determine if an overlay address
846 has a matching symbol in low memory.
848 * dis-buf.c (generic_symbol_at_address): New (dummy) function for
849 new symbol_at_address_func field in disassemble_info structure.
853 * v850-opc.c (extract_d22): Use signed arithmatic.
857 * mips-opc.c: Three op mult is not an ISA insn.
861 * mips-opc.c: Fix formatting.
865 * i386-dis.c (OP_E): Explicitly sign extend 8 bit values, rather
866 than assuming that char is signed. Explicitly sign extend 16 bit
867 values, rather than assuming that short is 16 bits.
868 (OP_sI, OP_J, OP_DIR): Likewise.
873 * v850-dis.c (v850_sreg_names): Use symbolic names for higher
879 * v850-opc.c: Fix typo in comment.
881 * v850-dis.c (disassemble): Add test of processor type when
886 * configure.in: Use a diversion to set enable_shared before the
887 arguments are parsed.
888 * configure: Rebuild.
892 * m68k-opc.c (TBL1): Use ! rather than `.
893 * m68k-dis.c (print_insn_arg): Remove ` operand specifier.
897 * m68k-opc.c: Correct bchg, bclr, bset, and btst on ColdFire.
899 * m68k-opc.c: Accept tst{b,w,l} with immediate operands on cpu32.
901 * m68k-opc.c: Correct movew of an immediate operand to %sr or %ccr
904 * configure.in: Call AC_CHECK_TOOL before AM_PROG_LIBTOOL.
905 * aclocal.m4: Rebuild with new libtool.
906 * configure: Rebuild.
911 * v850-opc.c ("cmov"): Order reg param r1, r2 not r2, r2.
916 * sparc-opc.c (sparclet_cpreg_table): Add %ccsr2, %cccrr, %ccrstr.
920 * v850-opc.c (v850_opcodes): Further rearrangements.
925 * d30v-opc.c (rot2h, sra2h, srl2h insns): Revert last change.
930 * v850-opc.c (v850_opcodes): Fields reordered to allow assembler
935 * mips-opc.c: Added tx39 insns sdbbp, rfe, and deret.
937 * mips16-opc.c: Added mips16 sdbbp.
942 * v850-opc.c: Initialise processors field of v850_opcode structure.
947 Merge changes from Martin Hunt:
949 * d30v-opc.c: Change mvfacc to accept 6-bit unsigned values.
951 * d30v-opc.c (pre_defined_registers): Add control registers from 0-63.
952 (d30v_opcode_tabel): Add dbt, rtd, srah, and srlh instructions. Fix
953 rot2h, sra2h, and srl2h to use new SHORT_A5S format.
955 * d30v-dis.c (print_insn): Fix disassembly of SHORT_D2 opcodes.
957 * d30v-dis.c (print_insn): First operand of d*i (delayed
958 branch) instructions is relative.
960 * d30v-opc.c (d30v_opcode_table): Change form for repeati.
961 (d30v_operand_table): Add IMM6S3 type.
962 (d30v_format_table): Change SHORT_D2. Add LONG_Db.
964 * d30v-dis.c: Fix bug with ".s" and ".l" extensions
965 and cmp instructions.
967 * d30v-opc.c: Correct entries for repeat*, and sat*.
968 Make IMM5 unsigned. Create IMM6U and IMM12S3U operand
969 types. Correct several formats.
971 * d30v-opc.c: (pre_defined_registers): Add dpsw and dpc.
973 * d30v-opc.c (pre_defined_registers): Change control registers.
975 * d30v-opc.c (d30v_format_table): Correct SHORT_C1 and
976 SHORT_C2. Manual was incorrect.
978 * d30v-dis.c (lookup_opcode): Return value now indicates
979 if an opcode has a short and a long form. Used for deciding
980 to append a ".s" or ".l".
981 (print_insn): Append a ".s" to an instruction if it is
982 the short form and ".l" if it is a long form. Do not append
983 anything if the instruction has only one possible size.
985 * d30v-opc.c: Change mulx2h to require an even register.
986 New form: SHORT_A2; a SHORT_A form that needs an even
987 register as the first operand.
989 * d30v-dis.c (print_insn_d30v): Fix problem where the last
990 instruction was not being disassembled if there were an odd
991 number of instructions.
993 * d30v-opc.c (SHORT_M2, LONG_M2): Two new forms.
999 * v850-dis.c (disassemble): Improved display of register lists.
1004 * sparc-opc.c (sparc_opcodes): Fix assembler args to
1005 fzeros, fones, fsrc1, fsrc1s, fsrc2s, fnot1, fnot1s, fnot2s,
1006 fors, fnors, fands, fnands, fxors, fxnors, fornot1s, fornot2s,
1007 fandnot1s, fandnot2s.
1011 * sparc-opc.c (sparc_opcodes): Fix op3 field for fcmpq/fcmpeq.
1015 * cgen-asm.c (cgen_parse_address): New argument resultp.
1016 All callers updated.
1017 * m32r-asm.c (parse_h_hi16): Right shift numbers by 16.
1021 * mn10200-dis.c (disassemble): PC relative instructions are
1022 relative to the next instruction, not the current instruction.
1026 * v850-dis.c (disassemble): Only signed extend values that are not
1027 returned by extract functions.
1028 Remove use of V850_OPERAND_ADJUST_SHORT_MEMORY flag.
1032 * v850-opc.c: Update comments. Remove use of
1033 V850_OPERAND_ADJUST_SHORT_MEMORY. Fix several operand patterns.
1037 * v850-opc.c (MOVHI): Immediate parameter is unsigned.
1041 * configure: Rebuilt with latest devo autoconf for NT support.
1045 * v850-dis.c (disassemble): Use curly brace syntax for register
1048 * v850-opc.c (v850_opcodes[]): Add NOT_R0 flag to decect cases
1049 where r0 is being used as a destination register.
1051 start-sanitize-v850e
1054 * v850-opc.c (v850_opcodes[]): Move divh opcodes next to each other.
1059 * sh-opc.h (sh_arg_type): Add A_SGR and A_DBR.
1060 (sh_nibble_type, sh_arg_type): Add SH4 floating point extensions.
1061 (sh_table): Likewise. Add movca.l, ocbi, ocbp, ocbwb.
1062 Add insns to access SGR and DBR.
1063 * sh-dis.c (print_insn_shx): Add SH4 floating point extensions.
1067 * alpha-opc.c (alpha_opcodes): Fix hw_rei_stall mungage.
1069 start-sanitize-v850e
1072 * v850-opc.c (v850_opcodes[]): Remove use of flag field.
1073 * v850-opc.c (v850_opcodes[]): Add support for reversed short load
1078 * configure (cgen_files): Add support for v850e target.
1079 * configure.in (cgen_files): Add support for v850e target.
1083 * configure (cgen_files): Add support for v850ea target.
1084 * configure.in (cgen_files): Add support for v850ea target.
1089 * configure.in (bfd_arc_arch): Add.
1090 * configure: Rebuild.
1091 * Makefile.am (ALL_MACHINES): Add arc-dis.lo, arc-opc.lo.
1092 * Makefile.in: Rebuild.
1093 * arc-dis.c, arc-opc.c: New files.
1094 * disassemble.c (ARCH_all): Define ARCH_arc.
1095 (disassembler): Add ARC support.
1099 start-sanitize-v850e
1100 * v850-dis.c (disassemble): Add support for v850EA instructions.
1102 * v850-opc.c (insert_i5div, extract_i5div): New Functions.
1103 (v850_opcodes): Add v850EA instructions.
1105 * v850-dis.c (disassemble): Add support for v850E instructions.
1107 * v850-opc.c (insert_d5_4, extract_d5_4, insert_d16_16,
1108 extract_d16_16, insert_i9, extract_i9, insert_u9, extract_u9,
1109 insert_spe, extract_spe): New Functions.
1110 (v850_opcodes): Add v850E instructions.
1113 * v850-opc.c: Reorganised and re-layed out to improve readability
1118 * configure: Rebuild with autoconf 2.12.1.
1122 * aclocal.m4, configure: Rebuild with new automake patches.
1126 * configure.in: Set enable_shared before AM_PROG_LIBTOOL.
1127 * acinclude.m4: Just include acinclude.m4 from BFD.
1128 * aclocal.m4, configure: Rebuild.
1132 * Makefile.am: New file, based on old Makefile.in.
1133 * acconfig.h: New file.
1134 * acinclude.m4: New file.
1135 * stamp-h.in: New file.
1136 * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL.
1137 Removed shared library handling; now handled by libtool. Replace
1138 AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AM_MAINTAINER_MODE,
1139 AM_CYGWIN32, and AM_EXEEXT. Replace AC_PROG_INSTALL with
1140 AM_PROG_INSTALL. Change all .o files to .lo. Remove stamp-h
1141 handling in AC_OUTPUT.
1142 * dep-in.sed: Change .o to .lo.
1143 * Makefile.in: Now built with automake.
1144 * aclocal.m4: Now built with aclocal.
1145 * config.in, configure: Rebuild.
1149 * mips-opc.c: Fix typo/thinko in "eret" instruction.
1151 start-sanitize-r5900
1154 * mips-opc.c: Fix coding of mtsa.
1159 * sparc-opc.c (sparc_opcodes): Fix spelling on fpaddX, fpsubX insns.
1161 * sparc-dis.c (sorted_opcodes): New static local.
1162 (struct opcode_hash): `opcode' is pointer to const element.
1163 (build_hash): First arg is now table of sorted pointers.
1164 (print_insn_sparc): Sort opcodes by sorting table of pointers.
1165 (compare_opcodes): Update.
1169 * cgen-opc.c: #include <ctype.h>.
1170 (hash_keyword_name): New arg `case_sensitive_p'. Callers updated.
1171 Handle case insensitive hashing.
1172 (hash_keyword_value): Change type of `value' to unsigned int.
1176 * mips-opc.c (mips_builtin_opcodes): If an insn uses single
1177 precision FP, mark it as such. Likewise for double precision
1178 FP. Mark ISA1 insns. Consolidate duplicate opcodes where
1180 start-sanitize-r5900
1181 (mips_builtin_opcodes): Remove non-existant r5900 instructions
1184 start-sanitize-r5900
1187 * mips-opc.c (mips_builtin_opcodes): Add "pinteh", "pexeh" and
1188 "pexew" as synonyms for "pintoh", "pexoh", "pexow".
1193 * ppc-opc.c (extract_nsi): make unsigned expression signed before
1195 (UNUSED): remove one level of parens, so MSVC doesn't choke on
1196 nesting depth when all the macros are expanded.
1200 * sparc-opc.c: The fcmp v9a instructions take an integer register
1201 as a destination, not a floating point register. From Christian
1206 * m68k-dis.c (print_insn_arg): Print case 7.2 using %pc@()
1207 syntax. From Roman Hodek
1210 * i386-dis.c (twobyte_has_modrm): Fix pand.
1214 * i386-dis.c (dis386_twobyte): Fix pand and pandn.
1218 * arm-dis.c: Add prototypes for arm_decode_shift and
1223 * mips-opc.c: Add r3900 insns.
1227 * sh-dis.c (print_insn_shx): Change relmask to bfd_vma. Don't
1228 print delay slot instructions on the same line. When using a PC
1229 relative load, add a comment with the value being loaded if it can
1234 * i386-dis.c (dis386[], dis386_twobyte[]): change pushl/popl
1235 to pushS/popS for segment regs and byte constant so that
1236 pushw/popw printed when in 16 bit data mode.
1238 * i386-dis.c (dis386[]): change cwtl, cltd to cWtS, cStd to
1239 print cbtw, cwtd in 16 bit data mode.
1240 * i386-dis.c (putop): extra case W to support above.
1242 * i386-dis.c (print_insn_x86): print addr32 prefix when given
1243 address size prefix in 16 bit address mode.
1247 * sh-dis.c: Reindent. Rename local variable fprintf to
1252 * m32r-opc.c (m32r_cgen_insn_table, cmpui): Undo patch of May 2.
1256 * mips-opc.c (mips_builtin_opcodes): Moved INSN_ISA field into new
1258 * mips16-opc.c (mip16_opcodes): same.
1262 * m68k-opc.c (moveb): Change $d to %d.
1266 * i386-dis.c: (dis386_twobyte): Add MMX instructions.
1267 (twobyte_has_modrm): Likewise.
1269 (OP_MMX, OP_EM, OP_MS): New static functions.
1271 * i386-dis.c: Revert patch of April 4. The output now matches
1276 * m32r-opc.c (m32r_cgen_insn_table, cmpui): Use $uimm16 instead
1281 * m32r-opc.h (CGEN_ARCH): Renamed from CGEN_CPU.
1285 * Makefile.in (install): Depend upon installdirs.
1286 (installdirs): New target.
1291 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
1292 * configure: Rebuild.
1296 * cgen-*.c, m32r-*.c: #include sysdep.h instead of config.h.
1297 Delete string{,s}.h support.
1301 * cgen-asm.c (cgen_parse_operand_fn): New global.
1302 (cgen_parse_{{,un}signed_integer,address}): Update call to
1303 cgen_parse_operand_fn.
1304 (cgen_init_parse_operand): New function.
1305 * m32r-asm.c (parse_insn_normal): cgen_init_parse_operand renamed
1306 from cgen_asm_init_parse.
1307 (m32r_cgen_assemble_insn): New operand `errmsg'.
1308 Delete call to as_bad, return error message to caller.
1309 (m32r_cgen_asm_hash_keywords): #if 0 out.
1313 * m68k-dis.c (print_insn_arg) [case 'd']: Print as address register,
1315 [case 'J']: Fix typo in register name.
1319 * configure.in: Substitute SHLIB_LIBS.
1320 * configure: Rebuild.
1321 * Makefile.in (SHLIB_LIBS): New variable.
1322 ($(SHLIB)): Use $(SHLIB_LIBS).
1326 * cgen-dis.c (build_dis_hash_table): Fix xmalloc size computation.
1328 * cgen-opc.c (hash_keyword_name): Improve algorithm.
1330 * disassemble.c (disassembler): Handle m32r.
1334 * m32r-asm.c, m32r-dis.c, m32r-opc.c, m32r-opc.h: New files.
1335 * cgen-asm.c, cgen-dis.c, cgen-opc.c: New files.
1336 * Makefile.in (CFILES): Add them.
1337 (ALL_MACHINES): Add them.
1338 (dependencies): Regenerate.
1339 * configure.in (cgen_files): New variable.
1340 (bfd_m32r_arch): Add entry.
1341 * configure: Regenerate.
1345 * configure.in: Correct file names for bfd_mn10[23]00_arch.
1346 * configure: Rebuild.
1348 * Makefile.in: Rebuild dependencies.
1350 * d10v-dis.c: Include "ansidecl.h" before "opcode/d10v.h".
1352 * i386-dis.c (float_reg): Swap fsubrp and fsubp. Swap fdivrp and
1357 * Branched binutils 2.8.
1361 * m10200-dis.c: Rename from mn10200-dis.c.
1362 * m10200-opc.c: Rename from mn10200-opc.c.
1363 * m10300-dis.c: Rename from mn10300-dis.c
1364 * m10300-opc.c: Rename from mn10300-opc.c.
1365 * Makefile.in: Update accordingly.
1367 * mips16-opc.c: Add mul and dmul macros.
1371 * makefile.vms: Update CFLAGS, add clean target.
1375 * mips-opc.c: Add "wait". From Ralf Baechle
1378 * configure.in: Add stdlib.h to AC_CHECK_HEADERS list.
1379 * configure, config.in: Rebuild.
1380 * sysdep.h: Include <stdlib.h> if it exists.
1381 * sparc-dis.c: Include <stdio.h> and "sysdep.h". Don't include
1383 * Makefile.in: Rebuild dependencies.
1387 * ppc-opc.c: Add PPC 403 instructions and extended opcodes. From
1390 * mips-opc.c: Add cast when setting mips_opcodes.
1394 * v850-dis.c (disassemble): Fix sign extension problem.
1395 * v850-opc.c (extract_d*): Fix sign extension problems to make
1396 disassembly calculate branch offsets correctly.
1400 * sh-opc.h: Add bf/s and bt/s as synonyms for bf.s and bt.s.
1402 * mips-opc.c: Add dctr and dctw.
1407 * d30v-dis.c (print_insn): Change the way signed constants
1412 * Makefile.in (BFD_H): New variable.
1413 (HFILES): New variable.
1414 (CFILES): Add all C files.
1415 (.dep, .dep1, dep.sed, dep, dep-in): New targets.
1416 Delete old dependencies, and build new ones.
1417 * dep-in.sed: New file.
1421 * m68k-opc.c (m68k_opcode_aliases): Added blo and blo{s,b,w,l}.
1423 start-sanitize-coldfire
1426 * m68k-opc.c (m68k_opcodes): Provide coldfire division module
1429 end-sanitize-coldfire
1432 * mn10200-opc.c: Change "trap" to "syscall".
1433 * mn10300-opc.c: Add new "syscall" instruction.
1437 * m68k-opc.c (m68k_opcodes): Provide correct entries for mulsl and
1438 mulul insns on the coldfire.
1442 * arm-dis.c (print_insn_arm): Don't print instruction bytes.
1443 (print_insn_big_arm): Set bytes_per_chunk and display_endian.
1444 (print_insn_little_arm): Likewise.
1449 * i386-dis.c (fetch_data): Add prototype.
1450 * m68k-dis.c (fetch_data): Add prototype.
1451 (dummy_print_address): Add prototype. Make static.
1452 * ppc-opc.c (valid_bo): Add prototype.
1453 * sparc-dis.c (build_hash_table): Add prototype.
1454 (is_delayed_branch, compute_arch_mask): Add prototypes.
1455 (print_insn_sparc): Make several local variables const.
1456 (compare_opcodes): Change arguments to const PTR. Add prototype.
1457 * sparc-opc.c (arg): Change name field to be const.
1458 (lookup_name, lookup_value): Add prototypes. Change table and
1459 name parameters to be const.
1460 (sparc_encode_asi): Change name parameter to be const.
1461 (sparc_encode_membar, sparc_encode_prefetch): Likewise.
1462 (sparc_encode_sparclet_cpreg): Likewise.
1463 (sparc_decode_asi): Change return type to be const.
1464 (sparc_decode_membar, sparc_decode_prefetch): Likewise.
1465 (sparc_decode_sparclet_cpreg): Likewise.
1469 * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since
1470 Solaris doesn't like the combined options, and the -f is
1472 (stamp-tshlink, install): Likewise.
1476 * mn10300-opc.c (IMM16_PCREL, SD8N_PCREL, D16_SHIFT): Mark these
1481 * m68k-opc.c (m68k_opcodes): Fix last change for the mc68010.
1485 * m68k-opc.c (m68k_opcodes): Added entries for the tst insns on
1490 * m68k-opc.c (m68k_opcodes): Added swbegl pseudo-instruction.
1492 start-sanitize-tic80
1495 * tic80-dis.c (print_insn_tic80): Set info->bytes_per_line to 8.
1499 * tic80-opc.c (tic80_predefined_symbols): Define r25 properly.
1504 * m68k-dis.c (NEXTSINGLE, NEXTDOUBLE, NEXTEXTEND): Use
1505 floatformat_to_double to make portable.
1506 (print_insn_arg): Use NEXTEXTEND macro when extracting extended
1511 * mips-opc.c: Initialize mips_opcodes to mips_builtin_opcodes,
1512 and bfd_mips_num_opcodes to bfd_mips_num_builtin_opcodes.
1516 * d10v-dis.c, d10v-opc.c: Change pre_defined_registers to
1517 d10v_predefined_registers and reg_name_cnt to d10v_reg_name_cnt.
1519 start-sanitize-tic80
1522 * tic80-opc.c (LSI_SCALED): Renamed from this ...
1523 (OFF_SL_BR_SCALED): ... to this, and added the flag
1524 TIC80_OPERAND_BASEREL to the flags word.
1525 (tic80_opcodes): Replace all occurances of LSI_SCALED with
1531 * mips-opc.c: Add macros for cop0, cop1 cop2 and cop3.
1532 Change mips_opcodes from const array to a pointer,
1533 and change bfd_mips_num_opcodes from const int to int,
1534 so that we can increase the size of the mips opcodes table
1537 start-sanitize-tic80
1540 * tic80-opc.c (tic80_predefined_symbols): Revert change to
1541 store BITNUM values in the table in one's complement form
1542 to match behavior when assembler is given a raw numeric
1543 value for a BITNUM operand.
1544 * tic80-dis.c (print_operand_bitnum): Ditto.
1550 * d30v-opc.c: Removed references to FLAG_X.
1555 * Makefile.in: Add dependencies on ../bfd/bfd.h as required.
1560 * Makefile.in: Added d30v object files.
1561 * configure: (bfd_d30v_arch) Rebuilt.
1562 * configure.in: (bfd_d30v_arch) Added new case.
1563 * d30v-dis.c: New file.
1564 * d30v-opc.c: New file.
1565 * disassemble.c (disassembler) Add entry for d30v.
1568 start-sanitize-tic80
1571 * tic80-opc.c (tic80_predefined_symbols): Add symbolic
1572 representations for the floating point BITNUM values.
1576 * tic80-opc.c (tic80_predefined_symbols): Store BITNUM values
1577 in the table in one's complement form, as they appear in the
1579 (tic80_symbol_to_value): Use macros to access predefined
1581 (tic80_value_to_symbol): Ditto.
1582 (tic80_next_predefined_symbol): New function.
1583 * tic80-dis.c (print_operand_bitnum): Remove code that did
1584 one's complement for BITNUM values.
1587 start-sanitize-r5900
1590 * mips-opc.c: bug fix, can't mark insns INSN_5900 and INSN_ISA4
1595 * makefile.vms: Remove 8 bit characters. Update to latest
1600 * m68k-opc.c (m68k_opcodes): Add swbeg pseudo-instruction.
1604 * mn10200-opc.c (IMM16_PCREL): This is a signed operand.
1605 (IMM24_PCREL): Likewise.
1609 * mips-dis.c (print_mips16_insn_arg): Use memaddr - 2 as the base
1610 address for an extended PC relative instruction that is not a
1615 * m68k-dis.c (print_insn_m68k): Set bytes_per_chunk and
1618 start-sanitize-tic80
1621 * tic80-opc.c (tic80_operands): Fix typo '+' -> '|'.
1622 (tic80_opcodes): Sort entries so that long immediate forms
1623 come after short immediate forms, making it easier for
1624 assembler to select the right one for a given operand.
1629 * mips-dis.c (_print_insn_mips): Set bytes_per_chunk and
1631 (print_insn_mips16): Likewise.
1633 start-sanitize-r5900
1636 * mips-opc.c: add r5900.
1639 start-sanitize-tic80
1642 * tic80-opc.c (tic80_symbol_to_value): Changed to accept
1643 a symbol class that restricts translation to just that
1644 class (general register, condition code, etc).
1648 * tic80-opc.c (tic80_operands): Add REG_0_E, REG_22_E,
1649 and REG_DEST_E for register operands that have to be
1650 an even numbered register. Add REG_FPA for operands that
1651 are one of the floating point accumulator registers.
1652 Add TIC80_OPERAND_MASK to flags for ENDMASK operand.
1653 (tic80_opcodes): Change entries that need even numbered
1654 register operands to use the new operand table entries.
1655 Add "or" entries that are identical to "or.tt" entries.
1660 * mips16-opc.c: Add new cases of exit instruction for
1662 * mips-dis.c (print_mips16_insn_arg): Display floating point
1663 registers in operands of exit instruction. Print `$' before
1664 register names in operands of entry and exit instructions.
1666 start-sanitize-tic80
1669 * tic80-opc.c (tic80_predefined_symbols): Table of name/value
1670 pairs for all predefined symbols recognized by the assembler.
1671 Also used by the disassembling routines.
1672 (tic80_symbol_to_value): New function.
1673 (tic80_value_to_symbol): New function.
1674 * tic80-dis.c (print_operand_control_register,
1675 print_operand_condition_code, print_operand_bitnum):
1676 Remove private tables and use tic80_value_to_symbol function.
1681 * d10v-dis.c (print_operand): Change address printing
1682 to correctly handle PC wrapping. Fixes PR11490.
1686 * mn10200-opc.c (mn10200_operands): Make 8 and 16 bit pc-relative
1691 * mips-dis.c (print_insn_mips16): Set insn_info information.
1692 (print_mips16_insn_arg): Likewise.
1694 * mips-dis.c (print_insn_mips16): Better handling of an extend
1695 opcode followed by an instruction which can not be extended.
1699 * m68k-opc.c (m68k_opcodes): Changed operand specifier for the
1700 coldfire moveb instruction to not allow an address register as
1701 destination. Although the documentation does not indicate that
1702 this is invalid, experiments uncovered unexpected behavior.
1703 Added a comment explaining the situation. Thanks to Andreas
1704 Schwab for pointing this out to me.
1706 start-sanitize-tic80
1709 * tic80-opc.c (tic80_opcodes): Expand comment to note that the
1710 entries are presorted so that entries with the same mnemonic are
1711 adjacent to each other in the table. Sort the entries for each
1712 instruction so that this is true.
1717 * m68k-dis.c: Include <libiberty.h>.
1718 (print_insn_m68k): Sort the opcode table on the most significant
1719 nibble of the opcode.
1721 start-sanitize-tic80
1724 * tic80-dis.c (tic80_opcodes): Add "wrcr", "vmpy", "vrnd",
1725 "vsub", "vst", "xnor", and "xor" instructions.
1726 (V_a1): Renamed from V_a, msb of accumulator reg number.
1727 (V_a0): Add macro, lsb of accumulator reg number.
1731 * tic80-dis.c (print_insn_tic80): Broke excessively long
1732 function up into several smaller ones and arranged for
1733 the instruction printing function to be callable recursively
1734 to print vector instructions that have both a load and a
1735 math instruction packed into a single opcode.
1736 * tic80-opc.c (tic80_opcodes): Expand comment for vld opcode
1737 to explain why it comes after the other vector opcodes.
1742 * m68k-opc.c (m68k_opcodes): add b, w, or l specifier to coldfire
1743 move insns to handle immediate operands.
1747 * m68k-opc.c (m68k_opcodes): Delete duplicate entry for "cmpil".
1748 fix operand mask in the "moveml" entries for the coldfire.
1750 start-sanitize-tic80
1753 * tic80-opc.c (V_a, V_m, V_S, V_Z, V_p, OP_V, MASK_V):
1754 New macros for building vector instruction opcodes.
1755 (tic80_opcodes): Remove all uses of FMT_SI, FMT_REG, and
1756 FMT_LI, which were unused. The field is now a flags field.
1757 Remove some opcodes that are possible, but illegal, such
1758 as long immediate instructions with doubles for immediate
1759 values. Add "vadd" and "vld" instructions.
1763 * tic80-opc.c (tic80_operands): Reorder some table entries to make
1764 the order more logical. Move the shift alias instructions ("rotl",
1765 "shl", "ins", "rotr", "extu", "exts", "srl", and "sra" to be
1766 interspersed with the regular sr.x and sl.x instructions. Add
1767 and test new instruction opcodes for "sl", "sli", "sr", "sri", "st",
1768 "sub", "subu", "swcr", and "trap".
1772 * tic80-opc.c (OFF_SS_PC): Renamed from OFF_SS.
1773 (OFF_SL_PC): Renamed from OFF_SL.
1774 (OFF_SS_BR): New operand type for base relative operand.
1775 (OFF_SL_BR): New operand type for base relative operand.
1776 (REG_BASE): New operand type for base register operand.
1777 (tic80_opcodes): Add and test "fmpy", "frndm", "frndn", "frndp",
1778 "frndz", "fsqrt", "fsub", "illop0", "illopF", "ins", "jsr",
1779 "ld", "ld.u", "lmo", "or", "rdcr", "rmo", "rotl", and "rotr"
1781 * tic80-dis.c (print_insn_tic80): Print opcode name with fixed width
1782 10 char field, padded with spaces on rhs, rather than a string
1783 followed by a tab. Use renamed TIC80_OPERAND_PCREL flag bit rather
1784 than old TIC80_OPERAND_RELATIVE. Add support for new
1785 TIC80_OPERAND_BASEREL flag bit.
1789 * tic80-dis.c (print_insn_tic80): Print floating point operands
1791 * tic80-opc.c (SPFI): Add single precision floating point
1792 immediate operand type.
1793 (ROTATE): Add rotate operand type for shifts.
1794 (ENDMASK): Add for shifts.
1795 (n): Macro for the 'n' bit.
1796 (i): Macro for the 'i' bit.
1797 (PD): Macro for the 'PD' field.
1798 (P2): Macro for the 'P2' field.
1799 (P1): Macro for the 'P1' field.
1800 (tic80_opcodes): Add entries for "exts", "extu", "fadd",
1806 * mn10200-dis.c (disassemble): Mask off unwanted bits after
1807 adding in current address for pc-relative operands.
1809 start-sanitize-tic80
1812 * tic80-dis.c (R_SCALED): Add macro to test for ":s" modifier bit.
1813 (print_insn_tic80): If R_SCALED then print ":s" modifier for operand.
1814 * tic80-opc.c (REG0, REG22, REG27, SSOFF, LSOFF): Names
1815 changed to REG_0, REG_22, REG_DEST, OFF_SS, OFF_SL respectively.
1816 (SICR, LICR, REGM_SI, REGM_LI): Names changed to CR_SI, CR_LI,
1817 REG_BASE_M_SI, REG_BASE_M_LI respectively.
1818 (REG_SCALED, LSI_SCALED): New operand types.
1819 (E): New macro for 'E' bit at bit 27.
1820 (tic80_opcodes): Add and test dld, dld.u, dst, estop, and etrap
1821 opcodes, including the various size flavors (b,h,w,d) for
1822 the direct load and store instructions.
1826 * tic80-dis.c (M_SI, M_LI): Add macros to test for ":m" modifier bit
1828 * tic80-dis.c (print_insn_tic80): Change comma and paren handling.
1829 Use M_SI and M_LI macros to check for ":m" modifier for GPR operands.
1830 * tic80-opc.c (tic80_operands): Add REGM_SI and REGM_LI operands.
1831 (F, M_REG, M_LI, M_SI, SZ_REG, SZ_LI, SZ_SI, D, S): New bit-twiddlers.
1832 (MASK_LI_M, MASK_SI_M, MASK_REG_M): Remove and replace in opcode
1833 masks with "MASK_* & ~M_*" to get the M bit reset.
1834 (tic80_opcodes): Add bsr, bsr.a, cmnd, cmp, dcachec, and dcachef.
1838 * tic80-dis.c (print_insn_tic80): Print TIC80_OPERAND_RELATIVE
1839 correctly. Add support for printing TIC80_OPERAND_BITNUM and
1840 TIC80_OPERAND_CC, and TIC80_OPERAND_CR operands in symbolic
1842 * tic80-opc.c (tic80_operands): Add SSOFF, LSOFF, BITNUM,
1843 CC, SICR, and LICR table entries.
1844 (tic80_opcodes): Add and test "nop", "br", "bbo", "bbz",
1845 "bcnd", and "brcr" opcodes.
1850 * ppc-opc.c (powerpc_operands): Make comment match the
1851 actual fields (no shift field).
1852 * sparc-opc.c (sparc_opcodes): Document why this cannot be "const".
1853 start-sanitize-tic80
1854 * tic80-dis.c (print_insn_tic80): Replace abort stub with a
1855 partial implementation, work in progress.
1856 * tic80-opc.c (tic80_operands): Begin construction operands table.
1857 (tic80_opcodes): Continue populating opcodes table and start
1858 filling in the operand indices.
1859 (tic80_num_opcodes): Add this.
1864 * m68k-opc.c: Add #B case for moveq.
1868 * mn10300-dis.c (disassemble): Make sure all variables are initialized
1869 before they are used.
1873 * v850-opc.c (v850_opcodes): Put curly-braces around operands
1874 for "breakpoint" instruction.
1878 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
1879 (dep): Use ALL_CFLAGS rather than CFLAGS.
1883 * v850-opc.c (D8_{6,7}): Set V850_OPERAND_ADJUST_SHORT_MEMORY
1888 * Makefile.in (m68k-opc.o, alpha-opc.o): Remove dis-asm.h dependency.
1889 start-sanitize-tic80
1890 (tic80-dis.o, tic80-opc.o): Add rules per comment in Makefile.in.
1895 * mips16-opc.c: Add "abs".
1897 start-sanitize-tic80
1900 * Makefile.in (ALL_MACHINES): Add tic80-dis.o and tic80-opc.o.
1901 * disassemble.c (ARCH_tic80): Define if ARCH_all is defined.
1902 (disassembler): Add bfd_arch_tic80 support to set disassemble
1903 to print_insn_tic80.
1904 * tic80-dis.c (print_insn_tic80): Add stub.
1908 * configure.in (arch in $selarchs): Add bfd_tic80_arch entry.
1909 * configure: Regenerate with autoconf.
1910 * tic80-dis.c: Add file.
1911 * tic80-opc.c: Add file.
1916 * d10v-opc.c (pre_defined_registers): Add cr[0-15], dpc, dpsw, link.
1920 * mn10200-opc.c (mn10200_operands): Add SIMM16N.
1921 (mn10200_opcodes): Use it for some logicals and btst insns.
1922 Add "break" and "trap" instructions.
1924 * mn10300-opc.c (mn10300_opcodes): Add "break" instruction.
1926 * mn10200-opc.c: Add pseudo-ops for "mov (an),am" and "mov an,(am)".
1930 * mips-dis.c (print_mips16_insn_arg): The base address of a PC
1931 relative load or add now depends upon whether the instruction is
1936 * mn10200-dis.c: Finish writing disassembler.
1937 * mn10200-opc.c (mn10200_opcodes): Fix mask for "mov imm8,dn".
1938 Fix mask for "jmp (an)".
1940 * mn10300-dis.c (disassemble, print_insn_mn10300): Corrently
1941 handle endianness issues for mn10300.
1943 * mn10200-opc.c (mn10200_opcodes): Fix operands for "movb dm,(an)".
1947 * mn10200-opc.c (mn10200_opcodes): "mov imm8,d0" is a format 2
1948 instruction. Fix opcode field for "movb (imm24),dn".
1950 * mn10200-opc.c (mn10200_operands): Fix insertion position
1955 * mn10200-opc.c: Create mn10200 opcode table.
1956 * mn10200-dis.c: Flesh out mn10200 disassembler. Not ready,
1957 but moving along nicely.
1961 * Makefile.in (ALL_MACHINES): Add mips16-opc.o.
1965 * m68k-opc.c (m68k_opcodes): Revert change to use < and >
1966 specifiers for fmovem* instructions.
1970 * mn10300-dis.c (disassemble): Remove '$' register prefixing.
1974 * mips16-opc.c: Change opcode for entry/exit to avoid conflicting
1979 * mn10300-opc.c: Add some comments explaining the various
1982 * mn10300-dis.c (disassemble): Fix minor gcc -Wall warnings.
1986 * m68k-dis.c (print_insn_arg): Handle new < and > operand
1989 * m68k-opc.c (m68k_opcodes): Simplify table by using < and >
1990 operand specifiers in fmovm* instructions.
1994 * ppc-opc.c (insert_li): Give an error if the offset has the two
1995 least significant bits set.
1999 * mips-dis.c (print_insn_mips16): Separate the instruction from
2000 the arguments with a tab, not a space.
2004 * mn10300-dis.c (disasemble): Finish conversion to '$' as
2007 * mn10300-opc.c (mn10300_opcodes): Fix mask field for
2012 * configure: Rebuild with autoconf 2.12.
2014 Add support for mips16 (16 bit MIPS implementation):
2015 * mips16-opc.c: New file.
2016 * mips-dis.c: Include "elf-bfd.h" and "elf/mips.h".
2017 (mips16_reg_names): New static array.
2018 (print_insn_big_mips): Use print_insn_mips16 in 16 bit mode or
2019 after seeing a 16 bit symbol.
2020 (print_insn_little_mips): Likewise.
2021 (print_insn_mips16): New static function.
2022 (print_mips16_insn_arg): New static function.
2023 * mips-opc.c: Add jalx instruction.
2024 * Makefile.in (mips16-opc.o): New target.
2025 * configure.in: Use mips16-opc.o for bfd_mips_arch.
2026 * configure: Rebuild.
2030 * m68k-opc.c (m68k_opcodes): Simplify table by using < and >
2031 operand specifiers in *save, *restore and movem* instructions.
2033 * m68k-opc.c (m68k_opcodes): Fix move and movem instructions for
2036 * m68k-opc.c (m68k_opcodes): The coldfire (mcf5200) can only use
2037 register operands for immediate arithmetic, not, neg, negx, and
2038 set according to condition instructions.
2040 * m68k-opc.c (m68k_opcodes): Consistantly Use "s" as the storage
2041 specifier of the effective-address operand in immediate forms of
2042 arithmetic instructions. The specifier for the immediate operand
2043 notes how and where the constant will be stored.
2047 * mn10300-opc.c (mn10300_opcodes): Remove redundant "lcc"
2050 * mn10300-dis.c (disassemble): Use '$' instead of '%' for
2053 * mn10300-dis.c (disassemble): Prefix registers with '%'.
2057 * mn10300-dis.c (disassemble): Handle register lists.
2059 * mn10300-opc.c: Fix handling of register list operand for
2060 "call", "ret", and "rets" instructions.
2062 * mn10300-dis.c (disassemble): Print PC-relative and memory
2063 addresses symbolically if possible.
2064 * mn10300-opc.c: Distinguish between absolute memory addresses,
2065 pc-relative offsets & random immediates.
2067 * mn10300-dis.c (print_insn_mn10300): Fix fetch of last byte
2069 (disassemble): Handle SPLIT and EXTENDED operands.
2073 * mn10300-dis.c: Rough cut at printing some operands.
2075 * mn10300-dis.c: Start working on disassembler support.
2076 * mn10300-opc.c (mn10300_opcodes): Fix masks on several insns.
2078 * mn10300-opc.c (mn10300_operands): Add "REGS" for a register
2080 (mn10300_opcodes): Use REGS for register list in "movm" instructions.
2084 * d10v-opc.c (d10v_opcodes): Add3 sets the carry.
2088 * mn10300-opc.c (mn10300_opcodes): Demand parens around
2089 register argument is calls and jmp instructions.
2093 * mn10300-opc.c (mn10300_opcodes): Use DN01 for putx and
2094 getx operand. Fix opcode for mulqu imm,dn.
2098 * mn10300-opc.c (mn10300_operands): Hijack "bits" field
2099 in MN10300_OPERAND_SPLIT operands for how many bits
2100 appear in the basic insn word. Add IMM32_HIGH24,
2101 IMM32_HIGH24_LOWSHIFT8, IMM8E_SHIFT8.
2102 (mn10300_opcodes): Use new operands as needed.
2104 * mn10300-opc.c (mn10300_operands): Add IMM32_LOWSHIFT8
2105 for bset, bclr, btst instructions.
2106 (mn10300_opcodes): Use new IMM32_LOWSHIFT8 as needed.
2108 * mn10300-opc.c (mn10300_operands): Remove many redundant
2109 operands. Update opcode table as appropriate.
2110 (IMM32): Add MN10300_OPERAND_SPLIT flag.
2111 (mn10300_opcodes): Fix single bit error in mov imm32,dn insn.
2115 * mn10300-opc.c (mn10300_operands): Add DN2, DM2, AN2, AM2
2116 operands (for indexed load/stores). Fix bitpos for DI
2117 operand. Add SN8N_SHIFT8, IMM8_SHIFT8, and D16_SHIFT for the
2118 few instructions that insert immediates/displacements in the
2119 middle of the instruction. Add IMM8E for 8 bit immediate in
2120 the extended part of an instruction.
2121 (mn10300_operands): Use new opcodes as appropriate.
2125 * d10v-opc.c (d10v_opcodes): Declare the trap instruction
2126 sequential so the assembler never parallelizes it with
2131 * mn10300-opc.c (mn10300_operands): Add DN01 and AN01 for
2132 a data/address register that appears in register field 0
2133 and register field 1.
2134 (mn10300_opcodes): Use DN01 and AN01 for mov/cmp imm8,DN/AN
2138 * alpha-dis.c (print_insn_alpha): Use new NOPAL mask for
2139 standard disassembly.
2141 * alpha-opc.c (alpha_operands): Rearrange flags slot.
2142 (alpha_opcodes): Add new BWX, CIX, and MAX instructions.
2143 Recategorize PALcode instructions.
2147 * v850-opc.c (v850_opcodes): Add relaxing "jbr".
2151 * mips-dis.c (_print_insn_mips): Don't print a trailing tab if
2152 there are no operand types.
2156 * v850-opc.c (D9_RELAX): Renamed from D9, all references
2158 (v850_operands): Make sure D22 immediately follows D9_RELAX.
2162 * i386-dis.c (print_insn_x86): Set info->bytes_per_line to 5.
2166 * v850-opc.c (insert_d8_6): Fix operand insertion for sld.w
2167 and sst.w instructions.
2169 * v850-opc.c (v850_opcodes): Add "jCC" instructions (aliases for
2174 * mips-dis.c (_print_insn_mips): Use a tab between the instruction
2179 * ppc-opc.c (PPCPWR2): Define.
2180 (powerpc_opcodes): Use PPCPWR2 for fsqrt, rather than duplicating
2185 * mn10300-opc.c (mn10300_opcodes): Fix typo in opcode
2186 field for movhu instruction.
2188 * v850-dis.c (disassemble): For V850_OPERAND_SIGNED operands,
2189 cast value to "long" not "signed long" to keep hpux10
2194 * mn10300-opc.c (mn10300_opcodes): Fix typo in opcode field
2197 * mn10300-opc.c (FMT*): Remove definitions.
2199 * mn10300-opc.c (mn10300_opcodes): Fix destination register
2200 for shift-by-register opcodes.
2202 * mn10300-opc.c (mn10300_operands): Break DN, DM, AN, AM
2203 into [AD][MN][01] for encoding the position of the register
2208 * mn10300-opc.c (mn10300_opcodes): Add "extended" instructions,
2209 "putx", "getx", "mulq", "mulqu", "sat16", "sat24", "bsch".
2213 * mn10300-opc.c (mn10300_operands): Remove "REGS" operand.
2214 Fix various typos. Add "PAREN" operand.
2215 (MEM, MEM2): Define.
2216 (mn10300_opcodes): Surround all memory addresses with "PAREN"
2217 operands. Fix several typos.
2219 * mn10300-opc.c (mn10300_opcodes): Fix typos in yesterday's
2224 * mn10300-opc.c (FMT_XX): Renumber starting at one.
2225 (mn10300_operands): Rough cut. Enough to parse "mov" instructions
2227 (mn10300_opcodes): Break opcode format out into its own field.
2228 Update many operand fields to deal with signed vs unsigned
2229 issues. Fix one or two typos in the "mov" instruction
2230 opcode, mask and/or operand fields.
2234 * m68k-opc.c (plusha): Prefer encoding for m68040up, in case
2235 m68851 wasn't reset.
2239 * mn10300-opc.c (mn10300_opcodes): Add opcode & masks for
2240 all opcodes. Very rough cut at operands for all opcodes.
2242 * mn10300-opc.c (mn10300_opcodes): Start fleshing out the
2247 * mn10200-opc.c, mn10300-opc.c: New files.
2248 * mn10200-dis.c, mn10300-dis.c: New files.
2249 * mn10x00-opc.c, mn10x00-dis.c: Deleted.
2250 * disassemble.c: Break mn10x00 support into 10200 and 10300
2252 * configure.in: Likewise.
2253 * configure: Rebuilt.
2257 * Makefile.in (MOSTLYCLEAN): Move config.log to distclean.
2261 * mn10x00-opc.c, mn10x00-dis.c: New files for Matsushita
2263 * disassemble (ARCH_mn10x00): Define.
2264 (disassembler): Handle bfd_arch_mn10x00.
2265 * configure.in: Recognize bfd_mn10x00_arch.
2266 * configure: Rebuilt.
2270 * i386-dis.c (op_rtn): Change to be a pointer. Adjust uses
2271 accordingly. Don't declare functions using op_rtn.
2275 * v850-dis.c (disassemble): Add memaddr argument. Re-arrange
2276 params to be more standard.
2277 * (disassemble): Print absolute addresses and symbolic names for
2278 branch and jump targets.
2279 * v850-opc.c (v850_operand): Add displacement flag to 9 and 22
2281 * (v850_opcodes): Add breakpoint insn.
2285 * m68k-opc.c: Move the fmovemx data register cases before the
2286 other cases, so that they get recognized before the data register
2287 does gets treated as a degenerate register list.
2291 * mips-opc.c: Add a case for "div" and "divu" with two registers
2292 and a destination of $0.
2296 * mips-dis.c (print_insn_arg): Add prototype.
2297 (_print_insn_mips): Ditto.
2301 * mips-dis.c (print_insn_arg): Print condition code registers as
2306 * sparc-opc.c (sparc_opcodes): Add setuw, setsw, setx.
2310 * v850-dis.c (disassemble): Make static. Provide prototype.
2314 * v850-opc.c (insert_d9, insert_d22): Fix boundary case
2319 * v850-dis.c (disassemble): Handle insertion of ',', '[' and
2320 ']' characters into the output stream.
2321 * v850-opc.c (v850_opcodes: Remove size field from all opcodes.
2322 Add "memop" field to all opcodes (for the disassembler).
2323 Reorder opcodes so that "nop" comes before "mov" and "jr"
2324 comes before "jarl".
2326 * v850-dis.c (print_insn_v850): Fix typo in last change.
2328 * v850-dis.c (print_insn_v850): Properly handle disassembling
2329 a two byte insn at the end of a memory region when the memory
2330 region's size is only two byte aligned.
2332 * v850-dis.c (v850_cc_names): Fix stupid thinkos.
2334 * v850-dis.c (v850_reg_names): Define.
2335 (v850_sreg_names, v850_cc_names): Likewise.
2336 (disassemble): Very rough cut at printing operands (unformatted).
2338 * v850-opc.c (BOP_MASK): Fix.
2339 (v850_opcodes): Fix mask for jarl and jr.
2341 * v850-dis.c: New file. Skeleton for disassembler support.
2342 * Makefile.in Remove v850 references, they're not needed here.
2343 * configure.in: Add v850-dis.o when building v850 toolchains.
2344 * configure: Rebuilt.
2345 * disassemble.c (disassembler): Call v850 disassembler.
2347 * v850-opc.c (insert_d8_7, extract_d8_7): New functions.
2348 (insert_d8_6, extract_d8_6): New functions.
2349 (v850_operands): Rename D7S to D7; operand for D7 is unsigned.
2350 Rename D8 to D8_7, use {insert,extract}_d8_7 routines.
2352 (IF4A, IF4B): Use "D7" instead of "D7S".
2353 (IF4C, IF4D): Use "D8_7" instead of "D8".
2354 (IF4E, IF4F): New. Use "D8_6".
2355 (v850_opcodes): Use IF4A/IF4B for sld.b/sst.b. Use IF4C/IF4D for
2356 sld.h/sst.h. Use IF4E/IF4F for sld.w/sst.w.
2358 * v850-opc.c (insert_d16_15, extract_d16_15): New functions.
2359 (v850_operands): Change D16 to D16_15, use special insert/extract
2360 routines. New new D16 that uses the generic insert/extract code.
2361 (IF7A, IF7B): Use D16_15.
2362 (IF7C, IF7D): New. Use D16.
2363 (v850_opcodes): Use IF7C and IF7D for ld.b and st.b.
2365 * v850-opc.c (insert_d9, insert_d22): Slightly improve error
2366 message. Issue an error if the branch offset is odd.
2368 * v850-opc.c: Add notes about needing special insert/extract
2369 for all the load/store insns, except "ld.b" and "st.b".
2371 * v850-opc.c (insert_d22, extract_d22): New functions.
2372 (v850_operands): Use insert_d22 and extract_d22 for
2374 (insert_d9): Fix range check.
2378 * v850-opc.c (v850_operands): Add V850_OPERAND_SIGNED flag
2379 and set bits field to D9 and D22 operands.
2383 * v850-opc.c (v850_operands): Define SR2 operand.
2384 (v850_opcodes): "ldsr" uses R1,SR2.
2386 * v850-opc.c (v850_opcodes): Fix opcode specs for
2387 sld.w, sst.b, sst.h, sst.w, and nop.
2391 * v850-opc.c (v850_opcodes): Add null opcode to mark the
2392 end of the opcode table.
2396 * d10v-opc.c (pre_defined_registers): Added register pairs,
2397 "r0-r1", "r2-r3", etc.
2401 * v850-opc.c (v850_operands): Make I16 be a signed operand.
2402 Create I16U for an unsigned 16bit mmediate operand.
2403 (v850_opcodes): Use I16U for "ori", "andi" and "xori".
2405 * v850-opc.c (v850_operands): Define EP operand.
2406 (IF4A, IF4B, IF4C, IF4D): Use EP.
2408 * v850-opc.c (v850_opcodes): Fix opcode numbers for "mov"
2409 with immediate operand, "movhi". Tweak "ldsr".
2411 * v850-opc.c (v850_opcodes): Get ld.[bhw] and st.[bhw]
2412 correct. Get sld.[bhw] and sst.[bhw] closer.
2414 * v850-opc.c (v850_operands): "not" is a two byte insn
2416 * v850-opc.c (v850_opcodes): Correct bit pattern for setf.
2418 * v850-opc.c (v850_operands): D16 inserts at offset 16!
2420 * v850-opc.c (two): Get order of words correct.
2422 * v850-opc.c (v850_operands): I16 inserts at offset 16!
2424 * v850-opc.c (v850_operands): Add "SR1" and "SR2" for system
2425 register source and destination operands.
2426 (v850_opcodes): Use SR1 and SR2 for "ldsr" and "stsr".
2428 * v850-opc.c (v850_opcodes): Fix thinko in "jmp" opcode. Fix
2429 same thinko in "trap" opcode.
2431 * v850-opc.c (v850_opcodes): Add initializer for size field
2434 * v850-opc.c (v850_operands): D6 -> DS7. References changed.
2435 Add D8 for 8-bit unsigned field in short load/store insns.
2436 (IF4A, IF4D): These both need two registers.
2437 (IF4C, IF4D): Define. Use 8-bit unsigned field.
2438 (v850_opcodes): For "sld.h", "sld.w", "sst.h", "sst.w", use
2439 IF4C & IF4D. For "trap" use I5U, not I5. Add IF1 operand
2440 for "ldsr" and "stsr".
2441 * v850-opc.c (v850_operands): 3-bit immediate for bit insns
2444 * v850-opc.c (v850_opcodes): Correct short store half (sst.h) and
2445 short store word (sst.w).
2449 * v850-opc.c (v850_operands): Added insert and extract fields,
2450 pointers to functions that handle unusual operand encodings.
2454 * v850-opc.c (v850_opcodes): Enable "trap".
2456 * v850-opc.c (v850_opcodes): Fix order of displacement
2457 and register for "set1", "clr1", "not1", and "tst1".
2461 * v850-opc.c (v850_operands): Add "B3" support.
2462 (v850_opcodes): Fix and enable "set1", "clr1", "not1"
2465 * v850-opc.c (v850_opcodes): "jmp" has only an R1 operand.
2467 * v850-opc.c: Close unterminated comment.
2471 * v850-opc.c (v850_operands): Add flags field.
2472 (v850_opcodes): add move opcodes.
2476 * Makefile.in (ALL_MACHINES): Add v850-opc.o.
2477 * configure: (bfd_v850v_arch) Add new case.
2478 * configure.in: (bfd_v850_arch) Add new case.
2479 * v850-opc.c: New file.
2483 * sparc-dis.c (print_insn_sparc): Handle little endian sparcs.
2487 * d10v-opc.c: Add additional information to the opcode
2488 table to help determinine which instructions can be done
2493 * mpw-make.sed: Update editing of include pathnames to be
2498 * arm-opc.h: Added "bx" instruction definition.
2502 * alpha-opc.c (EV4EXTHWINDEX): Field width should be 8 not 5.
2506 * d10v-opc.c (d10v_opcodes): Minor fixes to addi and bl.l.
2510 * d10v-opc.c (d10v_opcodes): Correct 'mv' unit entry to EITHER.
2514 * makefile.vms: Update for alpha-opc changes.
2518 * i386-dis.c (print_insn_i386): Actually return the correct value.
2519 (ONE, OP_ONE): #ifdef out; not used.
2523 * d10v-opc.c (d10v_opcodes): Added 2 accumulator sub instructions.
2524 Changed subi operand type to treat 0 as 16.
2528 * m68k-opc.c: Add cpushl for the mcf5200. From Ken Rose
2533 * arm-opc.h: (arm_opcodes): Added halfword and sign-extension
2534 memory transfer instructions. Add new format string entries %h and %s.
2535 * arm-dis.c: (print_insn_arm): Provide decoding of the new
2540 * d10v-opc.c (d10v_operands): Added UNUM4S; a 4-bit accumulator shift.
2541 (d10v_opcodes): Modified accumulator shift instructions to use UNUM4S.
2545 * alpha-dis.c (print_insn_alpha_osf): Remove.
2546 (print_insn_alpha_vms): Remove.
2547 (print_insn_alpha): Make globally visible. Chose the register
2548 names based on info->flavour.
2549 * disassemble.c: Always return print_insn_alpha for the alpha.
2553 * d10v-dis.c (dis_long): Handle unknown opcodes.
2557 * d10v-opc.c: Changes to support signed and unsigned numbers.
2558 All instructions with the same name that have long and short forms
2559 now end in ".l" or ".s". Divs added.
2560 * d10v-dis.c: Changes to support signed and unsigned numbers.
2564 * d10v-dis.c: Change all functions to use info->print_address_func.
2568 * m68k-opc.c (m68k_opcodes): Make opcode masks for the ColdFire
2569 move ccr/sr insns more strict so that the disassembler only
2570 selects them when the addressing mode is data register.
2573 * d10v-opc.c (pre_defined_registers): Declare.
2574 * d10v-dis.c (print_operand): Now uses pre_defined_registers
2575 to pick a better name for the registers.
2579 * sparc-opc.c: Fix opcode values for fpack16, and fpackfix. Fix
2580 operands for fexpand and fpmerge. From Christian Kuehnke
2585 * alpha-dis.c (print_insn_alpha): No longer the user-visible
2586 print routine. Take new regnames and cpumask arguments.
2587 Kill the environment variable nonsense.
2588 (print_insn_alpha_osf): New function. Do OSF/1 style regnames.
2589 (print_insn_alpha_vms): New function. Do VMS style regnames.
2590 * disassemble.c (disassembler): Test bfd flavour to pick
2591 between OSF and VMS routines. Default to OSF.
2595 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
2596 * configure: Rebuild.
2597 * Makefile.in (install): Use @INSTALL_SHLIB@.
2601 * configure: (bfd_d10v_arch) Add new case.
2602 * configure.in: (bfd_d10v_arch) Add new case.
2603 * d10v-dis.c: New file.
2604 * d10v-opc.c: New file.
2605 * disassemble.c (disassembler) Add entry for d10v.
2609 * m68k-opc.c (m68k_opcodes): Fix bugs in coldfire insns relating
2610 to bcc, trapfl, subxl, and wddata discovered by Andreas Schwab.
2614 * i386-dis.c: Get rid of print_insn_i8086. Use info.mach to
2615 distinguish between variants of the instruction set.
2616 * sparc-dis.c: Get rid of print_insn_sparclite. Use info.mach to
2617 distinguish between variants of the instruction set.
2621 * i386-dis.c (print_insn_i8086): New routine to disassemble using
2622 the 8086 instruction set.
2623 * i386-dis.c: General cleanups. Make most things static. Add
2624 prototypes. Get rid of static variables aflags and dflags. Pass
2625 them as args (to almost everything).
2629 * h8300-dis.c (bfd_h8_disassemble): Handle macregs in ldmac insns.
2631 * h8300-dis.c (bfd_h8_disassemble): Handle "ldm.l" and "stm.l".
2633 * h8300-dis.c (bfd_h8_disassemble): "abs" is implicitly two
2634 if the next arg is marked with SRC_IN_DST. Gross.
2636 * h8300-dis.c (bfd_h8_disassemble): Print "exr" when
2637 we're looking for and find EXR.
2639 * h8300-dis.c (bfd_h8_disassemble): We don't have a match
2640 if we're looking for KBIT and we don't find it.
2642 * h8300-dis.c (bfd_h8_disassemble): Mask off unwanted bits
2645 * h8300-dis.c (bfd_h8_disassemble): Don't set plen for
2646 3bit immediate operands.
2650 * Released binutils 2.7.
2652 * alpha-opc.c: Add new case of "mov". From Klaus Kaempf
2657 * alpha-opc.c: Correct second case of "mov" to use OPRL.
2661 * sparc-dis.c (print_insn_sparclite): New routine to print
2662 sparclite instructions.
2666 * m68k-opc.c (m68k_opcodes): Add coldfire support.
2670 * sparc-opc.c (asi_table): Add #ASI_N, #ASI_N_L, #ASI_NUCLEUS,
2671 #ASI_NUCLEUS_LITTLE. Rename #ASI_AS_IF_USER_{PRIMARY,SECONDARY}_L
2672 to #ASI_AS_IF_USER_{PRIMARY,SECONDARY}_LITTLE.
2676 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
2677 Use autoconf-set values.
2678 (docdir, oldincludedir): Removed.
2679 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2683 * alpha-opc.c: New file.
2684 * alpha-opc.h: Remove.
2685 * alpha-dis.c: Complete rewrite to use new opcode table.
2686 * configure.in: For bfd_alpha_arch, use alpha-opc.o.
2687 * configure: Rebuild with autoconf 2.10.
2688 * Makefile.in (ALL_MACHINES): Add alpha-opc.o.
2689 (alpha-dis.o): Depend upon $(INCDIR)/opcode/alpha.h, not
2691 (alpha-opc.o): New target.
2695 * sparc-dis.c (print_insn_sparc): Remove unused local variable i.
2696 Set imm_added_to_rs1 even if the source and destination register
2699 * sparc-opc.c: Add some two operand forms of the wr instruction.
2703 * h8300-dis.c (bfd_h8_disassemble): Rename "hmode" argument
2706 * disassemble.c (disassembler): Handle H8/S.
2707 * h8300-dis.c (print_insn_h8300s): New function for H8/S.
2711 * sparc-opc.c: Add beq/teq as aliases for be/te.
2713 * ppc-opc.c: Fix fcmpo opcode. From Sergei Steshenko
2718 * makefile.vms: New file.
2720 * alpha-dis.c (print_insn_alpha): Print lda ra,lit(rz) as mov.
2724 * h8300-dis.c (bfd_h8_disassemble): Always print ABS8MEM with :8,
2729 * i386-dis.c (OP_OFF): Call append_prefix.
2733 * ppc-opc.c (instruction encoding macros): Add explicit casts to
2734 unsigned long to silence a warning from the Solaris PowerPC
2739 * sparc-opc.c (sparc_opcodes): Add ultrasparc vis extensions.
2743 * sparc-dis.c (X_IMM,X_SIMM): New macros.
2745 (print_insn_sparc): Merge cases i,I,j together. New cases X,Y.
2746 * sparc-opc.c (sparc_opcodes): Use X for 5 bit shift constants,
2747 Y for 6 bit shift constants. Rewrite entries for crdcxt, cwrcxt,
2748 cpush, cpusha, cpull sparclet insns.
2752 * sparc-dis.c (compute_arch_mask): Replace ANSI style def with K&R.
2756 * sparc-opc.c: Set F_FBR on floating point branch instructions.
2757 Set F_FLOAT on other floating point instructions.
2761 * ppc-opc.c (PPC860): Macro for 860/821 specific instructions and
2763 (powerpc_opcodes): Add 860/821 specific SPRs.
2767 * configure.in: Permit --enable-shared to specify a list of
2768 directories. Set and substitute BFD_PICLIST.
2769 * configure: Rebuild.
2770 * Makefile.in (BFD_PICLIST): Rename from BFD_LIST. Change all
2771 uses. Set to @BFD_PICLIST@.
2775 * h8300-dis.c (bfd_h8_disassemble): Use "bit" for L_3 immediates,
2776 not "abs", which may be needed for the absolute in something
2777 like btst #0,@10:8. Print L_3 immediates separately from other
2778 immediates. Change ABSMOV reference to ABS8MEM.
2782 * sparc-dis.c (opcodes_initialized): Move inside print_insn_sparc.
2783 (current_arch_mask): New static global.
2784 (compute_arch_mask): New static function.
2785 (print_insn_sparc): Delete sparc_v9_p. New static local
2786 current_mach. Resort opcode table if current_mach changes.
2787 Generalize "insn not supported" test.
2788 (compare_opcodes): Prefer supported opcodes to nonsupported ones.
2789 Delete test for v9/!v9.
2790 * sparc-opc.c (MASK_*): Use SPARC_OPCODE_ARCH_MASK.
2792 (brfc): Split into CBR and FBR for coprocessor/fp branches.
2793 (brfcx): Renamed to FBRX.
2794 (condfc): Renamed to CONDFC. Pass v6notlet to CBR (standard
2795 coprocessor mnemonics are not supported on the sparclet).
2796 (condf): Renamed to CONDF.
2797 (SLCBCC2): Delete F_ALIAS flag.
2801 * sparc-opc.c (sparc_opcodes): rd must be 0 for
2802 mov foo,{%y,%psr,%wim,%tbr}. Support mov foo,%asrX.
2806 * Makefile.in (config.status): Depend upon BFD VERSION file, so
2807 that the shared library version number is set correctly.
2811 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
2813 * configure: Rebuild.
2817 * z8kgen.c (internal, gas): Call xmalloc rather than unchecked
2822 * configure: Rebuild with autoconf 2.8.
2826 * sparc-dis.c (print_insn_sparc): Handle 'O' operand char like 'r'.
2827 * sparc-opc.c (sparc_opcodes): Use 'O' operand char for `neg reg'.
2831 * configure.in: Don't set SHLIB or SHLINK to an empty string,
2832 since they appear as targets in Makefile.in.
2833 * configure: Rebuild.
2837 * mpw-make.sed: Edit out shared library support bits.
2841 * sparc-opc.c (v8,v6notv9): Add MASK_SPARCLET.
2842 (sparc_opcode_archs): Add MASK_V8 to sparclet entry.
2843 (sparc_opcodes): Add sparclet insns.
2844 (sparclet_cpreg_table): New static local.
2845 (sparc_{encode,decode}_sparclet_cpreg): New functions.
2846 * sparc-dis.c (print_insn_sparc): Handle sparclet cpregs.
2850 * i386-dis.c (index16): New static variable.
2851 (putop): Print jecxz for 32 bit case, jcxz for 16 bit, not the
2853 (OP_indirE): Return result of OP_E.
2854 (OP_E): Check for 16 bit addressing mode, and disassemble
2855 correctly. Optimised 32 bit case a little. Don't print
2856 "(base,index,scale)" when sib specifies only an offset.
2860 * configure.in: Set and substitute SHLIB_DEP.
2861 * configure: Rebuild.
2862 * Makefile.in (SHLIB_DEP): New variable.
2863 (LIBIBERTY_LISTS, BFD_LIST): New variables.
2864 (stamp-piclist): Depend upon LIBIBERTY_LISTS and BFD_LIST. If
2865 COMMON_SHLIB, add them to piclist with appropriate modifications.
2866 ($(SHLIB)): Depend upon $(SHLIB_DEP). Don't check COMMON_SHLIB
2867 here: just use piclist.
2871 * sparc-dis.c (MASK_V9,V9_ONLY_P,V9_P): Define.
2872 (print_insn_sparc): Rewrite v9/not-v9 tests.
2873 (compare_opcodes): Likewise.
2874 * sparc-opc.c (MASK_<ARCH>): Define.
2875 (v6,v7,v8,sparclite,v9,v9a): Redefine.
2876 (sparclet,v6notv9): Define.
2877 (sparc_opcode_archs): Delete member `conflicts'. Add `supported'.
2878 (sparc_opcodes): Delete F_NOTV9, use v6notv9 instead.
2882 * configure.in: Call AC_PROG_CC before configure.host.
2883 * configure: Rebuild.
2885 * Makefile.in (SONAME): Remove leading ../bfd/ from $(SHLIB).
2889 * i386-dis.c (onebyte_has_modrm): New static array.
2890 (twobyte_has_modrm): New static array.
2891 (print_insn_i386): Only fetch the mod/reg/rm byte if it is needed.
2895 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
2900 * ppc-opc.c (PPC): Undef, so default defination on Windows NT
2905 * m68k-opc.c (m68k_opcodes): The bkpt instruction is supported on
2906 m68010up, not just m68020up | cpu32.
2908 * Makefile.in (SONAME): New variable.
2909 ($(SHLINK)): Make a link to the transformed name, as well.
2910 (stamp-tshlink): New target.
2911 (install): Skip stamp-tshlink during install.
2915 * configure.in: Call AC_ARG_PROGRAM.
2916 * configure: Rebuild.
2917 * Makefile.in (program_transform_name): New variable.
2918 (install): Transform library name before installing it.
2922 * i960-dis.c (mem): Add HX dcinva instruction.
2924 Support for building as a shared library, based on patches from
2926 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
2927 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
2928 SHLIB_CFLAGS, COMMON_SHLIB, SHLINK.
2929 * configure: Rebuild.
2930 * Makefile.in (ALLLIBS): New variable.
2931 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
2932 (COMMON_SHLIB, SHLINK): New variables.
2933 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
2934 (STAGESTUFF): Remove variable.
2935 (all): Depend upon $(ALLLIBS) rather than $(TARGETLIB).
2936 (stamp-piclist, piclist): New targets.
2937 ($(SHLIB), $(SHLINK)): New targets.
2938 ($(OFILES)): Depend upon stamp-picdir.
2939 (disassemble.o): Build twice if PICFLAG is set.
2940 (MOSTLYCLEAN): Add pic/*.o.
2941 (clean): Remove $(SHLIB), $(SHLINK), piclist, and stamp-piclist.
2942 (distclean): Remove pic and stamp-picdir.
2943 (install): Install shared libraries.
2944 (stamp-picdir): New target.
2948 * sparc-dis.c (print_insn_sparc): Delete DISASM_RAW_INSN support.
2949 Print unknown instruction as "unknown", rather than in hex.
2953 * dis-buf.c: Include "sysdep.h" before "dis-asm.h".
2957 * sparc-opc.c (sparc_opcode_archs): Mark v8/sparclite as conflicting.
2961 * i386-dis.c (print_insn_i386): Only fetch the mod/reg/rm byte
2962 when necessary. From Ulrich Drepper
2967 * sparc-dis.c (print_insn_sparc): NUMOPCODES replaced with
2968 sparc_num_opcodes. Update architecture enum values.
2969 * sparc-opc.c (sparc_opcode_archs): Replaces architecture_pname.
2970 (sparc_opcode_lookup_arch): New function.
2971 (sparc_num_opcodes): Renamed from bfd_sparc_num_opcodes.
2972 (sparc_opcodes): Add v9a shutdown insn.
2976 * sparc-dis.c (print_insn_sparc): Renamed from print_insn.
2977 If DISASM_RAW_INSN, print insn in hex. Handle v9a as opcode
2979 (print_insn_sparc64): Deleted.
2980 * disassemble.c (disassembler, case bfd_arch_sparc): Always use
2983 * sparc-opc.c (architecture_pname): Add v9a.
2987 * alpha-opc.h (alpha_insn_set): VAX floating point opcode was
2988 incorrectly defined as 0x16 when it should be 0x15.
2989 (FLOAT_FORMAT_MASK): function code is 11 bits, not just 7 bits!
2990 (alpha_insn_set): added cvtst and cvttq float ops. Also added
2991 excb (exception barrier) which is defined in the Alpha
2992 Architecture Handbook version 2.
2993 * alpha-dis.c (print_insn_alpha): Fixed special-case decoding for
2994 OPERATE_FORMAT_CODE type instructions. The bug caused mulq to be
2995 disassembled as or, for example.
2999 * mips-dis.c (print_insn_arg): Print cases 'i' and 'u' in hex.
3000 (_print_insn_mips): Change i from int to unsigned int.
3004 * ppc-opc.c (powerpc_opcodes): tlbi POWER opcode form different
3005 from tlbie PowerPC opcode. Add PPC603 tlbld and tlbli.
3009 * i386-dis.c: Added Pentium Pro instructions.
3013 * ppc-opc.c (fsqrt{,.}): Duplicate for PowerPC in addition to
3018 * sh-opc.h (sh_nibble_type): Added REG_B.
3019 (sh_arg_type): Added A_REG_B.
3020 (sh_table): Added pref and bank reg versions of ldc, ldc.l, stc
3022 * sh-dis.c (print_insn_shx): Added cases for REG_B and A_REG_B.
3026 * disassemble.c (disassembler): Use new bfd_big_endian macro.
3030 * Makefile.in (distclean): Remove stamp-h. From Ronald
3036 * alpha-dis.c (print_insn_alpha): fixed decoding of cpys
3041 * sh-opc.h (sh_arg_type): Added A_SSR and A_SPC.
3042 (sh_table): Added many SH3 opcodes.
3043 * sh-dis.c (print_insn_shx): Added cases for A_SSR and A_SPC.
3047 * ppc-opc.c (subfc., subfco): Mark this PPCCOM, not PPC.
3048 (subco,subco.): Mark this PPC, not PPCCOM.
3052 * configure: Rebuild with autoconf 2.7.
3056 * configure: Rebuild with autoconf 2.6.
3060 * configure.in: Sort list of architectures. Accept but do nothing
3061 for alliant, convex, pyramid, romp, and tahoe.
3065 * a29k-dis.c (print_special): Change num to unsigned int.
3069 * a29k-dis.c (print_insn): Cast insn24 to unsigned long when
3074 * configure.in: Call AC_CHECK_PROG to find and cache AR.
3075 * configure: Rebuilt.
3079 * configure.in: Add case for bfd_i860_arch.
3080 * configure: Rebuild.
3084 * m68k-opc.c (m68k_opcodes): Correct fmoveml operands.
3085 * m68k-dis.c (NEXTSINGLE): Change i to unsigned int.
3086 (NEXTDOUBLE): Likewise.
3087 (print_insn_m68k): Don't match fmoveml if there is more than one
3088 register in the list.
3089 (print_insn_arg): Handle a place of '8' for a type of 'L'.
3093 * m68k-opc.c: Use #W rather than #w.
3094 * m68k-dis.c (print_insn_arg): Handle new 'W' place.
3098 * m68k-opc.c (m68k_opcode_aliases): Add dbfw as an alias for dbf,
3099 and likewise for all the dbxx opcodes.
3103 * arc-dis.c: Include elf-bfd.h rather than libelf.h.
3107 * mips-opc.c: Added shorthand (V1) for INSN_4100 manifest. Added
3108 the VR4100 specific instructions to the mips_opcodes structure.
3112 * mpw-config.in, mpw-make.sed: Remove ugly workaround for
3113 ugly Metrowerks bug in CW6, is fixed in CW7.
3117 * ppc-opc.c (whole file): Add flags for common/any support.
3121 * Makefile.in (BISON): Remove macro.
3122 (FLAGS_TO_PASS): Remove BISON.
3128 * m68k-dis.c (print_insn_m68k): Recognize all two-word
3129 instructions that take no args by looking at the match mask.
3130 (print_insn_arg): Always print "%" before register names.
3131 [case 'c']: Use "nc" for the no-cache case, as recognized by gas.
3132 [case '_']: Don't print "@#" before address.
3133 [case 'J']: Use "%s" as format string, not register name.
3134 [case 'B']: Treat place == 'C' like 'l' and 'L'.
3138 * i386-dis.c: Describe cmpxchg8b operand, and spell the opcode
3145 * alpha-opc.h (MEMORY_FUNCTION_FORMAT_MASK): added.
3146 (alpha_insn_set): added definitions for VAX floating point
3147 instructions (Unix compilers don't generate these, but handcoded
3148 assembly might still use them).
3150 * alpha-dis.c (print_insn_alpha): added support for disassembling
3151 the miscellaneous instructions in the Alpha instruction set.
3155 * mpw-config.in: Add m68k-opc.c.o to BFD_MACHINES for m68k,
3156 no longer create sysdep.h, sed ppc-opc.c to work around a
3157 serious Metrowerks C bug.
3158 * mpw-make.in: Remove.
3159 * mpw-make.sed: New file, used by mpw-configure to edit
3160 Makefile.in into an MPW makefile.
3164 * Makefile.in (maintainer-clean): New synonym for realclean.
3168 * m68k-opc.c: Split pmove patterns which use 'P' into patterns
3169 which use '0', '1', and '2' instead. Specify the proper size for
3170 a pmove immediate operand. Correct the pmovefd patterns to be
3171 moves to a register, not from a register.
3172 * m68k-dis.c (print_insn_arg): Replace 'P' with '0', '1', '2'.
3176 * sparc-opc.c (sparc_opcodes): Mark all insns that reference
3177 %psr, %wim, %tbr as F_NOTV9.
3181 * Makefile.in (Makefile): Just rebuild Makefile when running
3183 (config.h, stamp-h): New targets.
3184 * configure.in: Call AC_CONFIG_HEADER and AC_CANONICAL_SYSTEM
3185 earlier. Don't bother to call AC_ARG_PROGRAM. Touch stamp-h when
3186 rebuilding config.h.
3187 * configure: Rebuild.
3189 * mips-opc.c: Change unaligned loads and stores with "t,A"
3190 operands to use "t,A(b)".
3194 * sh-dis.c (print_insn_shx): Add F_FR0 support.
3198 * sh-dis.c (print_insn_shx): Change loop over op->arg[n] to iterate
3199 until 3 instead of until 2.
3203 * Makefile.in (ALL_CFLAGS): Define.
3204 (.c.o, disassemble.o): Use $(ALL_CFLAGS).
3205 (MOSTLYCLEAN): Add config.log.
3206 (distclean): Don't remove config.log.
3207 * configure.in: Substitute HDEFINES.
3208 * configure: Rebuild.
3212 * sh-opc.h (sh_arg_type): Add F_FR0.
3213 (sh_table, case fmac): Add F_FR0 as first argument.
3217 * sh-opc.h (sh_opcode_info): Increase arg array size to 4.
3221 * sparc-dis.c: Remove all references to NO_V9.
3225 * aclocal.m4: Just include ../bfd/aclocal.m4.
3226 * configure: Rebuild.
3230 * sparc-dis.c (X_DISP19): Define.
3231 (print_insn, case 'G'): Use it.
3232 (print_insn, case 'L'): Sign extend displacement.
3236 * configure.in: Run ../bfd/configure.host before AC_PROG_CC.
3237 Subsitute CFLAGS and AR. Call AC_PROG_INSTALL. Don't substitute
3238 host_makefile_frag or frags.
3239 * aclocal.m4: New file.
3240 * configure: Rebuild.
3241 * Makefile.in (INSTALL): Set to @INSTALL@.
3242 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
3243 (INSTALL_DATA): Set to @INSTALL_DATA@.
3245 (AR_FLAGS): Set to rc rather than qc.
3246 (CC): Define as @CC@.
3247 (CFLAGS): Set to @CFLAGS@.
3248 (@host_makefile_frag@): Remove.
3249 (config.status): Remove dependency upon @frags@.
3251 * configure.in: ../bfd/config.bfd now just sets shell variables.
3252 Use them rather than looking through target Makefile fragments.
3253 * configure: Rebuild.
3257 * sh-opc.h (ftrc): Change FPUL_N to FPUL_M.
3261 * sparc-opc.c (sparc_opcodes): Delete duplicate wr %y insn.
3262 Add clrx, iprefetch, signx, clruw, cas, casl, casx, casxl synthetic
3265 * sparc-opc.c (sparc_opcodes): Fix prefetcha insn.
3266 (lookup_{name,value}): New functions.
3267 (prefetch_table): New static local.
3268 (sparc_{encode,decode}_prefetch): New functions.
3269 * sparc-dis.c (print_insn): Handle '*' arg (prefetch function).
3273 * sh-opc.h: Add blank lines to improve readabililty of sh3e
3278 * sh-dis.c: Correct comment on first line of file.
3282 * disassemble.c (disassembler): Handle bfd_mach_sparc64.
3284 * sparc-opc.c (asi, membar): New static locals.
3285 (sparc_{encode,decode}_{asi,membar}): New functions.
3286 (sparc_opcodes, membar insn): Fix.
3287 * sparc-dis.c (print_insn): Call sparc_decode_asi.
3288 Support decoding of membar masks.
3293 * m68k-opc.c (m68k_opcode_aliases): Add br, brs, brb, brw, brl.
3297 * m68k-opc.c (m68k_opcode_aliases): Add bhib as an alias for bhis,
3298 and likewise for the other branches. Add bhs as an alias for bcc,
3299 and likewise for the size variants. Add dbhs as an alias for
3304 * sh-opc.h (FP sts instructions): Update to match reality.
3308 * m68k-dis.c: (fpcr_names): Add % before all register names.
3309 (reg_names): Likewise.
3310 (print_insn_arg): Don't explicitly print % before register names.
3311 Add % before register names in static array names. In case 'r',
3312 print data registers as `@(Dn)', not `Dn@'. When printing a
3313 memory address, don't print @# before it.
3314 (print_indexed): Change base_disp and outer_disp from int to
3315 bfd_vma. Print using MIT syntax, not mutant invalid Motorola
3316 syntax. Sign extend 8 byte displacement correctly.
3317 (print_base): Print using MIT syntax. Print zpc when appropriate.
3318 Change parameter disp from int to bfd_vma.
3320 * m68k-opc.c (m68k_opcode_aliases): Add jsrl and jsrs as aliases
3325 * sh-dis.c (print_insn_shx): Handle new operand types F_REG_N,
3326 F_REG_M, FPSCR_M, FPSCR_N, FPUL_M and FPUL_N.
3327 * sh-opc.h (sh_arg_type): Add new operand types.
3328 (sh_table): Add new opcodes from SH3E Floating Point ISA.
3332 * Makefile.in (distclean): Remove generated file config.h.
3336 * Makefile.in (distclean): Remove generated file config.h.
3340 * m68k-opc.c: New file, holding tables from include/opcode/m68k.h.
3342 * m68k-dis.c: Remove BREAK_UP_BIG_DECL stuff.
3344 (print_insn_m68k): Change d to be const. Use m68k_numopcodes
3345 rather than numopcodes. Use m68k_opcodes rather than removed
3346 opcode function. Don't check F_ALIAS.
3347 (print_insn_arg): Change first parameter to be const char *.
3348 * Makefile.in (ALL_MACHINES): Add m68k-opc.o.
3349 (m68k-opc.o): New target.
3350 * configure.in: Build m68k-opc.o for bfd_m68k_arch.
3351 * configure: Rebuild.
3355 * sparc-dis.c (HASH_SIZE, HASH_INSN): Define.
3356 (opcode_bits, opcode_hash_table): New variables.
3357 (opcodes_initialized): Renamed from opcodes_sorted.
3358 (build_hash_table): New function.
3359 (is_delayed_branch): Use hash table.
3360 (print_insn): Renamed from print_insn_sparc, made static.
3361 Build and use hash table. If !sparc64, ignore sparc64 insns,
3362 and vice-versa if sparc64.
3363 (print_insn_sparc, print_insn_sparc64): New functions.
3364 (compare_opcodes): Move sparc64 opcodes to end.
3365 Print commutative insns with constant second.
3366 * sparc-opc.c (all non-v9 insns): Use flag F_NOTV9 instead of F_ALIAS.
3370 * sh-dis.c (print_insn_shx): Remove unused local dslot. Use
3371 print_address_func for A_BDISP12 and A_BDISP8. Correct test which
3372 avoids printing a delay slot in a delay slot.
3373 * sh-opc.h (sh_table): Fully bracket last entry.
3377 * sparc-opc.c (sllx, srax, srlx): Fix disassembly.
3381 * configure.in: Get host_makefile_frag from ${srcdir}.
3383 * configure.in: Autoconfiscated. Check for string[s].h. Create
3384 config.h from config.in. Don't set up sysdep.h link.
3385 * sysdep.h: New file.
3386 * configure, config.in: New files, generated from configure.in.
3387 * Makefile.in: Updated to be processed autoconf-style.
3388 (distclean): Keep sysdep.h. Remove config.log and config.cache.
3389 (Makefile): Depend on config.status.
3390 (config.status): New rule.
3391 * configure.bat: Update Makefile substitutions.
3395 * mips-opc.c (L1): Define.
3396 (mips_opcodes): Add R4010 instructions: flushi, flushd, flushid,
3397 addciu, madd, maddu, ffc, ffs, msub, msubu, selsi, selsr, waiti,
3402 * mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu
3403 if ISA 3 and addu otherwise, replacing or, since some MIPS chips
3404 have multiple add units but only a single logical unit.
3406 * ppc-opc.c (powerpc_operands): Change CR to use a bitsize of 3,
3407 shifted by 18, without any insertion or extraction function.
3408 (insert_cr, extract_cr): Remove.
3412 * m68k-dis.c (print_insn_arg, print_indexed): Print "%" before
3417 * mpw-config.in: Add sh and i386 configs, remove sparc config.
3418 * sh-opc.h: Add copyright.
3422 * Makefile.in (crunch-m68k): Delete extra target accidentally
3423 checked in a while ago.
3427 * sh-opc.h (sh_table): Add SH3 support.
3431 * sh-opc.h: Added bsrf and braf.
3435 * arm-opc.h (arm_opcodes): Add 64-bit multiply patterns. Delete
3436 bogus [ls]fm{ea,fd} patterns.
3438 * arm-opc.h (arm_opcodes): Correct typos in stm, ldm, std, and ldc.
3439 * arm-dis.c (print_insn_arm): Make GIVEN a parameter, don't try and
3440 initialize it from memory. Make function static.
3441 (print_insn_{big,little}_arm): New functions.
3442 * disassemble.c (disassembler, case bfd_arch_arm): Disassemble for
3443 the correct endianness.
3447 * sh-opc.h (sh_nibble_type, sh_arg_type): remove trailing , from
3452 * m68k-dis.c (opcode): Finish change made by Kung Hsu on April
3453 17th, so that it builds again using GCC as the compiler.
3457 * mips-dis.c (print_insn_little_mips): Cast return value from
3458 bfd_getl32 from bfd_vma to unsigned long, because _print_insn_mips
3459 expects an unsigned long, and that might be fewer words of
3460 argument storage (e.g., if bfd_vma is long long on a 32-bit
3462 (print_insn_big_mips): Likewise with bfd_getb32 value.
3463 (_print_insn_mips): Now static.
3467 * m68k-dis.c: Take out #define BREAK_UP_BIG_DECL kludge, because
3468 gcc memory hog problem with initializer is fixed.
3472 Merge in support for Mac MPW as a host.
3473 (Old change descriptions retained for informational value.)
3475 * mpw-config.in (archname): Compute from the config.
3476 (BFD_MACHINES, ARCHDEFS): Put into mk.tmp.
3478 * mpw-config.in (target_arch): Compute from canonical target.
3479 (m68k, mips, powerpc, sparc): Add architectures.
3480 * mpw-make.in (disassemble.c.o): Add.
3481 (ALL_CFLAGS): Remove special flags (-mc68020 -mc68881 -model far).
3483 * mpw-config.in (BFD_MACHINES): Set to a default value.
3484 * mpw-make.in (BFD_MACHINES): Remove wired-in value.
3486 * mpw-make.in (CSEARCH): Add extra-include to search path.
3488 * mpw-config.in (varargs.h): Don't create.
3489 (sysdep.h): Create using forward-include.
3490 * mpw-make.in (CSEARCH): Add include/mpw to search path.
3492 * mpw-config.in: New file, MPW version of configure.in.
3493 * mpw-make.in: New file, MPW version of Makefile.in.
3497 * alpha-dis.c (print_insn_alpha): Put empty statement after
3502 * hppa-dis.c (sign_extend): Delete, redundant with libhppa.h version.
3503 (low_sign_extend): Likewise.
3504 (get_field): Delete unused function.
3505 (set_field, deposit_14, deposit_21): Likewise.
3509 * i386-dis.c: Support for more pentium opcodes. From Guy Harris
3516 * alpha-opc.h (OSF_ASMCODE): define
3517 print pal-code names as defined in App C of the
3518 Alpha Architecture Reference Manual
3520 * alpha-dis.c: cleaned up output
3521 print stylized code forms as defined in App A.4.3 of the
3522 Alpha Architecture Reference Manual
3526 * mips-opc.c: Add new mips4 instructions. Don't set INSN_RFE for
3528 * mips-dis.c (print_insn_arg): Handle new argument types 'h', 'R',
3533 * m68k-dis.c (opcode): New function. Returns address of opcode
3534 table entry given index, even if the opcode table was split to
3535 work around gcc bugs.
3536 (print_insn_m68k): Call opcode instead of referencing m68k_opcodes
3538 (BREAK_UP_BIG_DECL): Make secondary array static and const.
3539 (reg_names): Now const.
3540 (print_insn_arg): Arrays cacheFieldName and names now const.
3541 (print_indexed): Array scales now const.
3545 * ppc-opc.c: Sort recently added instructions by minor opcode
3546 number within major opcode number.
3550 * hppa-dis.c: Include libhppa.h.
3554 * mips-opc.c: Change dli to use M_DLI, and add dla.
3558 * Makefile.in (ALL_MACHINES): Add w65-dis.o.
3562 * mips-opc.c: Add r4650 mul instruction.
3566 * mips-opc.c: Add uld and usd macros for unaligned double load and
3571 * ppc-opc.c (powerpc_opcodes): Add 403GA opcodes rfci, dccci,
3572 mfdcr, mtdcr, icbt, iccci.
3576 * i960-dis.c (struct tabent, struct sparse_tabent): Change the
3577 signed char fields to shorts, more portable.
3581 * i960-dis.c (struct tabent, struct sparse_tabent): Declare the
3582 char fields as signed chars, since they may have negative values.
3586 * i386-dis.c (dis386_twobyte): Add cpuid, From Charles Hannum
3592 * ppc-opc.c (extract_bdm): Correct parenthezisation.
3593 * ppc-dis.c (print_insn_powerpc): Print .long before unrecognized
3598 * ppc-opc.c: Changes based on patch from David Edelsohn
3600 (powerpc_operands): Add operands SPRBAT and SPRG. Split TBR out of
3603 (insert_tbr): New static function.
3604 (extract_tbr): New static function.
3605 (XFXFXM_MASK, XFXM): Define.
3606 (XSPRBAT_MASK, XSPRG_MASK): Define.
3607 (powerpc_opcodes): Add instructions to access special registers by
3608 name. Add mtcr and mftbu.
3612 * mips-opc.c (P3): Define.
3613 (mips_opcodes): Add mad and madu.
3615 Sun Jan 15 16:32:59 1995 Steve Chamberlain <sac@splat>
3617 * configure.in: Add W65 support.
3618 * disassemble.c: Likewise.
3619 * w65-opc.h, w65-dis.c: New files.
3623 * h8300-dis.c (bfd_h8_disassemble): Add support for 2 bit
3628 * mips-opc.c: Add dli as a synonym for li.
3632 * alpha-dis.c (print_insn_alpha): Handle call_pal instruction, and
3633 print something for reserved opcode values, even if it won't
3636 * mips-dis.c (_print_insn_mips): When initializing, shift right
3637 and mask, to avoid sign extension problems on the Alpha.
3639 * m68k-dis.c (print_insn_arg, case 'J'): Handle buscr and pcr
3644 * sh-opc.h (mov.l gbr): Get direction right.
3645 * sh-dis.c (print_insn_shx): New function.
3646 (print_insn_shl, print_insn_sh): Call print_insn_shx to
3647 print opcodes with right byte order.
3651 * ns32k-dis.c (struct ns32k_option): Renamed from struct option,
3652 to avoid conflicts with getopt.
3656 * hppa-dis.c (print_insn_hppa): Read the instruction using
3657 bfd_getb32, so that it works on a little endian or 64 bit host.
3658 Remove unused local variable op.
3662 * mips-opc.c: Use or instead of addu for pseudo-op move, since
3663 addu does not work correctly if -mips3.
3667 * a29k-dis.c (print_special): Add special register names defined
3668 on 29030, 29040 and 29050.
3669 (print_insn): Handle new operand type 'I'.
3673 * Makefile.in (INSTALL): Use top level install.sh script.
3677 * sparc-dis.c: Rewrite to use bitfields, rather than a union, so
3678 that it works on a little endian host.
3682 * configure.in: Use ${config_shell} when running config.bfd.
3686 * mips-opc.c (mips_opcodes): "dabs" is only available with -mips3.
3690 * a29k-dis.c (print_insn): Print the opcode.
3694 * mips-opc.c (mips_opcodes): Set WR_t for sc and scd.
3698 * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.
3702 * mips-opc.c: Set INSN_STORE_MEMORY flag for all instructions
3703 which store a value into memory.
3707 * configure.in, Makefile.in, disassemble.c: Add support for the ARM.
3708 * arm-dis.c, arm-opc.h: New files.
3712 * Makefile.in (ns32k-dis.o): Add dependency.
3713 * ns32k-dis.c (print_insn_arg): Declare initialized local as
3714 string, not as array of chars.
3718 * sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.
3720 * sparc-opc.c: Added sparclite extended FP operations, and
3721 versions of v9 impdep* instructions permitting specification of
3726 * i960-dis.c (reg_names): Now const.
3727 (struct sparse_tabent): New type, copied from array type in mem
3729 (ctrl): Local static array ctrl_tab now const.
3730 (cobr): Local static array cobr_tab now const.
3731 (mem): Local variables reg1, reg2, reg3 now point to const. Local
3732 static variable mem_tab no longer explicitly initialized. Changed
3733 mem_init to const array of struct sparse_tabent.
3734 (reg): Local static variable reg_tab no longer explicitly
3735 initialized. Changed reg_init to const array of struct
3737 (ea): Local static array scale_tab now const.
3739 * i960-dis.c (reg): Added i960JX instructions to reg_init table.
3744 * configure.bat: the disassember needs to be enabled for
3745 "objdump -d" to work in djgpp.
3749 * ns32k-dis.c: Deleted all code in "#ifdef GDB".
3750 (invalid_float): Enabled general version, doesn't require running
3751 on ns32k host. Changed to take char* argument, and test for
3752 explicitly specified sizes, instead of using sizeof() on host CPU
3754 (INVALID_FLOAT): Cast first argument.
3755 (opt_u, opt_U, opt_O, opt_C, opt_S, list_P532, list_M532,
3756 list_P032, list_M032): Now const.
3757 (optlist, list_search): Made appropriate arguments now point to
3759 (print_insn_arg): Changed static array of one-character-string
3760 pointers into a static const array of characters; fixed sprintf
3761 statement accordingly.
3765 * opcodes/ns32k-dis.c: Semi-new file. Had apparently been dropped
3766 from distribution. A ns32k-dis.c from a previous distribution has
3767 been brought up to date and supports the new interface.
3769 * disassemble.c: define ARCH_ns32k and add case bfd_arch_ns32k.
3771 * configure.in: add bfd_ns32k_arch target support.
3773 * Makefile.in: add ns32k-dis.o to ALL_MACHINES.
3774 Add ns32k-dis.c to CFILES. Add dependencies for ns32k-dis.o.
3778 * h8300-dis.c (bfd_h8_disassemble): Get 16bit branch
3783 * h8300-dis.c, mips-dis.c: Don't use true and false.
3787 * configure.in: Change --with-targets to --enable-targets.
3791 * mips-dis.c (_print_insn_mips): Build a static hash table mapping
3792 opcodes to the first instruction with that opcode, to speed
3798 * Makefile.in (mostlyclean): Fix typo (was mostyclean).
3802 * configure.bat: update to latest makefile.in
3806 * a29k-dis.c (print_insn): Print 'x' type operand in hex.
3807 * h8300-dis.c (bfd_h8_disassemble): Print 16bit rels correctly.
3808 * sh-dis.c (print_insn_sh): Don't recur endlessly if delay
3809 slot insn is in a delay slot.
3810 * z8k-opc.h: (resflg): Fix patterns.
3811 * h8500-opc.h Fix CR insn patterns.
3815 * ppc-opc.c (powerpc_opcodes): Put PowerPC versions of "cmp" and
3816 "cmpl" before POWER versions, so that gas -many uses them.
3820 * disassemble.c: New file.
3821 * Makefile.in (OFILES): Add disassemble.o.
3822 (disassemble.o): Provide dependencies; compile with $(ARCHDEFS).
3823 * configure.in: Define ARCHDEFS in Makefile. Code taken from
3824 binutils/configure.in.
3826 * m68k-dis.c (print_insn_m68k): If F_ALIAS flag is set, skip the
3827 opcode being examined.
3831 * ppc-opc.c (powerpc_operands): Added RAL, RAM and RAS.
3832 (insert_ral, insert_ram, insert_ras): New functions.
3833 (powerpc_opcodes): Use RAL for load with update, RAM for lmw, and
3834 RAS for store with update.
3838 * ppc-opc.c (powerpc_opcodes): Correct fcir. From David Edelsohn
3843 * mips-opc.c (mips_opcodes): Correct operands of "nor" with an
3848 * sparc-opc.c (sparc_opcodes): Fix "rd %fprs,%l0".
3852 * ppc-opc.c (powerpc_operands): The signedp field has been
3853 removed, so don't initialize it. Set the PPC_OPERAND_SIGNED flag
3854 instead. Add new operand SISIGNOPT.
3855 (powerpc_opcodes): For lis, liu, addis, and cau use SISIGNOPT.
3857 * ppc-dis.c (print_insn_powerpc): Check PPC_OPERAND_SIGNED rather
3862 * i386-dis.c (struct private): Renamed to dis_private. `private'
3863 is a reserved word for dynix cc.
3867 * configure.in: Change error message to refer to bfd/config.bfd
3868 rather than bfd/configure.in.
3872 * ppc-opc.c: Define POWER2 as short alias flag.
3873 (powerpc_opcodes): Add POWER/2 opcodes lfq*, stfq*, fcir[z], and
3878 * i960-dis.c (print_insn_i960): Don't read a second word for
3879 opcodes 0, 1, 2 and 3.
3883 * configure.in: Don't build m68881-ext.o for bfd_m68k_arch.
3887 * m68881-ext.c: Removed; no longer used.
3888 * Makefile.in: Changed accordingly.
3890 * m68k-dis.c (ext_format_68881): Don't declare.
3891 (print_insn_m68k): If an instruction uses place 'i', it uses at
3892 least four fixed bytes.
3893 (print_insn_arg): Don't bump p by 2 for case 'I', place 'i'. For
3894 extended float, convert to double using floatformat_to_double, not
3895 ieee_extended_to_double, and fetch the data before converting it.
3899 * mips-opc.c: It's sqrt.s, not sqrt.w. From
3904 * ppc-opc.c (powerpc_opcodes): The POWER uses bdn[l][a] where the
3905 PowerPC uses bdnz[l][a].
3909 * dis-buf.c, i386-dis.c: Include sysdep.h.
3913 * configure.in (bfd_powerpc_arch): Use ppc-dis.o and ppc-opc.o.
3915 * ppc-opc.c (powerpc_opcodes): Mark POWER instructions supported
3916 by Motorola PowerPC 601 with PPC_OPCODE_601.
3917 * ppc-dis.c (print_insn_big_powerpc, print_insn_little_powerpc):
3918 Disassemble Motorola PowerPC 601 instructions as well as normal
3919 PowerPC instructions.
3923 * i960-dis.c (reg, mem): Just use a static array instead of
3928 * hppa-dis.c (print_insn_hppa): For '?' and '@' only adjust the
3929 condition name index if this is for a negated condition.
3931 * hppa-dis.c (print_insn_hppa): No space before 'H' operand.
3932 Floating point format for 'H' operand is backwards from normal
3933 case (0 == double, 1 == single). For '4', '6', '7', '9', and '8'
3934 operands (fmpyadd and fmpysub), handle bizarre register
3935 translation correctly for single precision format.
3937 * hppa-dis.c (print_insn_hppa): Do not emit a space after 'F'
3938 or 'I' operands if the next format specifier is 'M' (fcmp
3939 condition completer).
3943 * ppc-opc.c (powerpc_operands): New operand type MBE to handle a
3944 single number giving a bitmask for the MB and ME fields of an M
3945 form instruction. Change NB to accept 32, and turn it into 0;
3946 also turn 0 into 32 when disassembling. Seperated SH from NB.
3947 (insert_mbe, extract_mbe): New functions.
3948 (insert_nb, extract_nb): New functions.
3949 (SC_MASK): Mask out SA and LK bits.
3950 (powerpc_opcodes): Change "cal" to use RT, D, RA rather than RT,
3951 RA, SI. Change "liu" and "cau" to use UI rather than SI. Mark
3952 "bctr" and "bctrl" as accepted by POWER. Change "rlwimi",
3953 "rlimi", "rlwimi.", "rlimi.", "rlwinm", "rlinm", "rlwinm.",
3954 "rlinm.", "rlmi", "rlmi.", "rlwnm", "rlnm", "rlwnm.", "rlnm." to
3955 use MBE rather than MB. Add "mfmq" and "mtmq" POWER instructions.
3956 (powerpc_macros): Define table of macro definitions.
3957 (powerpc_num_macros): Define.
3959 * ppc-dis.c (print_insn_powerpc): Don't skip optional operands
3960 if PPC_OPERAND_NEXT is set.
3964 * i960-dis.c (print_insn_i960): Make buffer bfd_byte instead of
3965 char. Retrieve contents using bfd_getl32 instead of shifting.
3969 * ppc-opc.c: New file. Opcode table for PowerPC, including
3970 opcodes for POWER (RS/6000).
3971 * ppc-dis.c: New file. PowerPC and Power (RS/6000) disassembler.
3972 * Makefile.in (ALL_MACHINES): Add ppc-dis.o and ppc-opc.o.
3973 (CFILES): Add ppc-dis.c.
3974 (ppc-dis.o, ppc-opc.o): New targets.
3975 * configure.in: Build ppc-dis.o and ppc-opc.o for bfd_rs6000_arch.
3979 * hppa-dis.c (print_insn_hppa): Handle 'N' in assembler template.
3980 No space before 'u', 'f', or 'N'.
3984 * i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
3985 farther than we should.
3987 * i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.
3991 * sparc-dis.c m68k-dis.c alpha-dis.c a29k-dis.c: Fix comments.
3995 * i960-dis.c (print_insn_i960): Only read word2 if the instruction
3996 needs it, to prevent reading past the end of a section.
4000 * mips-opc.h: Use macro for j instruction, to support SVR4 PIC.
4001 Removed t,A case for la; always use t,A(b) case.
4006 * mips-dis.c (print_insn_arg): Handle 'k'.
4007 * mips-opc.c: Make cache use k, not t.
4011 * alpha-opc.h, alpha-dis.c (print_insn_alpha): Add
4012 FLOAT_MEMORY_FORMAT_CODE, FLOAT_BRANCH_FORMAT_CODE, correct
4013 FLOAT_FORMAT_CODE to put out floating point register names.
4017 * mips-opc.c: Use macros for jal variants, to support SVR4 PIC.
4021 * a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.
4025 * mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
4026 larger than 32. Moved dsxx32 variants first for disassembler.
4030 * z8kgen.c, z8k-opc.h: Add full lda information.
4034 * hppa-dis.c (print_insn_hppa): Do not emit a space after
4035 movb instructions. Any necessary space will be emitted by
4036 the code to handle nullification completers.
4040 * mips-opc.c: Moved l.d down so that it disassembles as ldc1.
4044 * alpha-opc.h: Add ldl_l, fix typo for ldq_u.
4045 * alpha-dis.c (print_insn_alpha): Add code for PAL_FORMAT_CODE.
4049 * mips-opc.c: Correct lwu opcode value (book had it wrong).
4053 * z8k-dis.c (FETCH_DATA): get just the right amount of data.
4054 (unpack_instr): Cope with ARG_IMM4M1 type instructions.
4058 * m88k-dis.c (m88kdis): comment change. Remove space after
4060 (printop): handle new arg types DEC and XREG for m88110.
4064 * hppa-dis.c (print_insn_hppa): Handle 'z' operand
4065 type for absolute branch addresses. Delete special
4066 "ble" and "be" code in 'W' operand code.
4070 * mips-opc.c: Set hazard information correctly for branch
4071 likely instructions.
4075 * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
4076 info->fprintf_func for printing and info->print_address_func for
4081 * mips-opc.c: Set INSN_TRAP for tXX instructions.
4086 Corrected second case of "b" for disassembler.
4090 * mips-dis.c, m88k-dis.c: Don't include libbfd.h. Changed calls
4091 to BFD swapping routines to correspond to BFD name changes.
4095 * mips-opc.c: Change div machine instruction to be z,s,t rather
4096 than s,t. Change div macro to be d,v,t rather than d,s,t.
4097 Likewise for divu, ddiv, ddivu. Added z,s,t case for drem, dremu,
4098 rem and remu which generates only the corresponding div
4099 instruction. This is for compatibility with the MIPS assembler,
4100 which only generates the simple machine instruction when an
4101 explicit destination of $0 is used.
4102 * mips-dis.c (print_insn_arg): Handle 'z' (always register zero).
4107 WR_31 hazard for bal, bgezal, bltzal.
4111 * hppa-dis.c (print_insn_hppa): Use print function
4112 from within the disassemble_info, not fprintf_filtered.
4116 * hppa-dis.c (print_insn_hppa): Handle '|' like '>'. (From Jeff
4121 * mips-opc.c ("absu"): Removed.
4126 * mips-opc.c: Added r6000 and r4000 instructions and macros.
4127 Changed hazard information to distinguish between memory load
4128 delays and coprocessor load delays.
4132 * mips-opc.c: li.d uses "T,L", not "S,F". Added li.s.
4136 * configure.in: Don't pass cpu to config.bfd.
4140 * m88k-dis.c (m88kdis): Make class unsigned.
4144 * alpha-dis.c (print_insn_alpha): One branch format case was
4145 missing the instruction name.
4149 * Makefile.in (ALL_MACHINES): Renamed from DIS_LIBS.
4150 Add the arch-specific auxiliary files.
4151 (OFILES): Remove the arch-specific auxiliary files
4152 and use BFD_MACHINES instead of DIS_LIBS.
4153 * configure.in: Set BFD_MACHINES based on --with-targets option.
4157 * mips-opc.c: Added lwc1 E,A(b) to go with lwc1 T,A(b). Similarly
4162 * sparc-opc.c: Change CONST to const to deal with gcc
4163 -Dconst=__const -traditional.
4168 coprocessor instructions out of #if 0, and made them use new
4173 * sparc-dis.c: Include ansidecl.h before opcodes/sparc.h.
4177 * sparc-opc.c: Add F_JSR, F_UNBR, or F_CONDBR flags to each branch
4178 instruction, for use by the disassembler.
4180 * sparc-dis.c (SEX): Add sign extension macro. Replace many
4181 hand-coded sign extensions that depended on 32-bit host ints.
4182 FIXME, we still depend on big-endian host bitfield ordering.
4183 (sparc_print_insn): Set the insn_info_valid field, and the
4184 other fields that describe the instruction being printed.
4188 * sparc-opc.c (call): Accept all 6 addressing modes valid for
4189 `jmp' instead of just one of them.
4193 * hppa-dis.c: Move floating registers from reg_names to fp_reg_names.
4194 (fput_fp_reg_r): Renamed from fput_reg_r.
4195 (fput_fp_reg): New function.
4196 (print_insn_hppa): Use fput_fp_reg{,_r} where appropriate.
4198 * hppa-dis.c (print_insn_hppa, cases 'a', 'd'): Print space afterwards.
4200 * hppa-dis.c (print_insn_hppa, case 'd'): Use GET_COND not GET_FIELD.
4204 * hppa-dis.c (print_insn_hppa): Use extract_5r_store for 'r'.
4206 * hppa-dis.c (print_insn_hppa, case '>'): If next character is 'n',
4207 don't output a space.
4209 * hppa-dis.c (float_format_names): 10 is undefined, and 11 is quad.
4213 * mips-opc.c: New file, containing opcode table from
4214 ../include/opcode/mips.h.
4215 * Makefile.in: Add it.
4219 * m88k-dis.c: New file, moved in from gdb and changed to use the
4220 new dis-asm.h disassembler interface.
4221 * Makefile.in (DIS_LIBS): Added m88k-dis.o.
4222 (m88k-dis.o): New target.
4226 * mips-dis.c (print_insn_arg, _print_insn_mips): Made pointer to
4227 argument string const char * to correspond to opcode/mips.h.
4231 * mips-dis.c: Updated to account for name changes in new version
4233 * Makefile.in: Added header file dependencies.
4237 * h8300-dis.c (bfd_h8_disassemble): Correct fetching of instruction.
4241 * m68k-dis.c (NEXTWORD, NEXTLONG): Use ((x) ^ 0x8000) - 0x8000 to sign
4242 extend, rather than shifts.
4246 * Makefile.in: Undo 15 June change.
4250 * m68k-dis.c (print_insn_arg): Change return value to byte count
4252 * m68k-dis.c: Re-write to detect invalid operands before
4253 printing anything, so we can handle this the same way we
4254 handle invalid opcodes.
4258 * sh-dis.c, sh-opc.h: Understand some more opcodes.
4262 * hppa-dis.c: Include <ansidecl.h> and sysdep.h before other
4267 * sparc-dis.c: Don't declare qsort, since sysdep.h might.
4269 * configure.in: Do make sysdep.h link.
4270 * Makefile.in: Search ../include. Don't search ../bfd.
4275 * hppa-dis.c: Fix typo. 'a' and 'd' were reversed.
4276 Do not print a space before the completers specified by
4281 * mips-dis.c: No longer need to bomb out if HOST_64_BIT is
4282 defined, since gdb has been fixed.
4285 * hppa-dis.c (print_insn_hppa): Last argument to fput_reg,
4286 fput_reg_r, fput_creg, fput_const, and fputs_filtered should
4287 be a *disassemble_info, not a *FILE.
4288 * hppa-dis.c: Support 'd', '!', and 'a'.
4289 * hppa-dis.c: Support 's' to extract a 2 bit space register.
4290 * hppa-dis.c: Delete cases which are no longer needed.
4294 * m68k-dis.c (print_insn_{m68k,arg}): Add MMU codes.
4298 * h8300-dis.c: New file, removed from bfd/cpu-h8300.c, with
4303 * Makefile.in (CSEARCH): Add -I../bfd for sysdep.h and bfd.h.
4304 * configure.in: No longer need to configure to get sysdep.h.
4309 * hppa-dis.c: Support 'I', 'J', and 'K' in output
4310 templates for 1.1 FP computational instructions.
4314 * h8500-dis.c (print_insn_h8500): Address argument is type
4316 * z8k-dis.c (print_insn_z8k, print_insn_z8001, print_insn_z8002):
4319 * h8500-opc.h (addr_class_type): No comma at end of enumerator.
4320 * sh-opc.h (sh_nibble_type, sh_arg_type): Ditto.
4322 * sparc-dis.c (compare_opcodes): Move static declaration to
4327 * sparc-dis.c (print_insn_sparc): Implement 'n' argument for unimp
4328 instruction, remove unimp hack from 'l' argument.
4332 * z8k-dis.c (fetch_data): Use unsigned char to make ancient gcc's
4338 * mips-dis.c (print_insn_arg): Handle 'C' for general coprocessor
4343 * hppa-dis.c: Include dis-asm.h before sysdep.h. Changed some
4344 arrays of string pointers to 2-d arrays of chars, to save
4349 * a29k-dis.c, alpha-dis.c, i960-dis.c, sparc-dis.c, z8k-dis.c:
4350 Cast second arg to read_memory_func to "bfd_byte *", as necessary.
4354 * hppa-dis.c: New file from Utah, adapted to new disassembler
4356 * Makefile.in: Include it.
4360 * sh-dis.c, sh-opc.h: New files.
4364 * alpha-dis.c, alpha-opc.h: New files.
4368 * mips-dis.c: Sign extend 'j' and 'b' arguments, delta is a signed
4373 * sparc-dis.c: Make "ta" the default trap instruction, "t" the alias.
4377 * a29k-dis.c, sparc-dis.c, sparc-opc.c: Use CONST rather than
4382 * sparc-dis.c: Use fprintf_func a few places where I forgot,
4383 and double percent signs a few places.
4385 * a29k-dis.c, i960-dis.c: New, merged from gdb and binutils.
4387 * i386-dis.c, m68k-dis.c, mips-dis.c, sparc-dis.c:
4388 Use info->print_address_func not print_address.
4390 * dis-buf.c (generic_print_address): New function.
4394 * Makefile.in: Add sparc-dis.c.
4395 sparc-dis.c: New file, merges binutils and gdb versions as follows:
4397 Add `add' instruction to the set that get checked
4398 for a preceding `sethi' in order to print an absolute address.
4399 * (print_insn): Disassembly prefers real instructions.
4400 (is_delayed_branch): Speed up.
4401 * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
4402 Still missing some float ops, and needs testing.
4403 * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
4404 F_ALIAS. Use printf, not fprintf, when not passing a file
4406 (compare_opcodes): Check that identical instructions have
4407 identical opcodes, complain otherwise.
4410 * Include reg_names.
4412 Use dis-asm.h/read_memory_func interface.
4416 * h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
4417 deliberately return non-zero to setjmp from longjmp. Otherwise
4418 this code fails to compile.
4422 * m68k-dis.c: Fix prototype for fetch_arg().
4426 * dis-buf.c: New file, for new read_memory_func interface.
4427 Makefile.in (OFILES): Include it.
4428 m68k-dis.c, i386-dis.c, h8500-dis.c, mips-dis.c, z8k-dis.c:
4429 Use new read_memory_func interface.
4433 * h8500-dis.c (print_insn_h8500): Get sign of fp offsets right.
4434 * h8500-opc.h: Fix couple of opcodes.
4436 Wed Mar 24 02:03:36 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
4438 * Makefile.in: add dvi & installcheck targets
4442 * Makefile.in: Update for h8500-dis.c.
4446 * h8500-dis.c, h8500-opc.h: New files
4450 * mips-dis.c, z8k-dis.c: Converted to use interface defined in
4451 ../include/dis-asm.h.
4452 * m68k-dis.c: New file (merge of ../binutils/m68k-pinsn.c
4453 and ../gdb/m68k-pinsn.c).
4454 * i386-dis.c: New file (merge of ../binutils/i386-pinsn.c
4455 and ../gdb/i386-pinsn.c).
4456 * m68881-ext.c: New file. Moved definition of
4457 ext_format ext_format_68881 from ../gdb/m68k-tdep.c.
4458 * Makefile.in: Adjust for new files.
4460 * m68k-dis.c: Recognize '9' placement code, so (say) pflush
4461 can be dis-assembled.
4465 * mips-dis.c (print_insn_arg): Now returns void.
4469 * mips-dis.c (ansidecl.h): Include for benefit of sysdep.h
4470 files that use the macros.
4474 * mips-dis.c: New file, from gdb/mips-pinsn.c.
4475 * Makefile.in (DIS_LIBS): Added mips-dis.o.
4476 (CFILES): Added mips-dis.c.
4480 * z8k-dis.c (print_insn_z8001, print_insn_z8002): new routines
4481 * z8kgen.c, z8k-opc.h: fix sizes of some shifts.
4485 * Makefile.in: Improve *clean rules.
4486 * configure.in: Allow a default host.
4488 Tue Nov 17 19:53:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4490 * Makefile.in: also use -I$(srcdir)/../bfd, since some sysdep
4491 files include other sysdep files
4495 * z8k-dis.c z8k-opc.h z8kgen.c: checkpoint
4499 * configure.in: For host support, use ../bfd/configure.host
4500 so it stays in sync with the ../bfd/hosts database.
4502 Thu Oct 1 23:38:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4504 * configure.in: use cpu-vendor-os triple instead of nested cases
4508 * z8k-dis.c (unparse_instr): fix bug where opcode returned was
4509 *always* the wrong one.
4513 * z8kgen.c: added copyright info
4517 * z8k-dis.c (unparse_instr): prettier tabs
4518 * z8kgen.c -> z8k-opc.h: bug fixes in tables
4520 Fri Sep 25 12:50:32 1992 Stu Grossman (grossman at cygnus.com)
4522 * configure.in: Add ncr* configuration.
4523 * z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make
4524 picayune ANSI compilers happy.
4528 * configure.in (i386): Make i386 and i486 synonymous for now.
4529 * configure.in (i[34]86-*-sysv4): Add my_host definition.
4533 * Makefile.in (install): Fix typo.
4537 * Makefile.in (make): Remove obsolete crud.
4538 (sparc-opc.o): Avoid Sun Make VPATH bug.
4542 * Makefile.in: since there are no SUBDIRS, remove rule and
4543 references of subdir_do.
4547 * Makefile.in (install): Get the library name right here too.
4548 Don't install bfd.h, since it's unrelated to this library. No
4549 subdirs to recurse into, either.
4550 (CFILES): The source file has a .c suffix, not .o.
4552 * sparc-opc.c: New file, moved from BFD.
4553 * Makefile.in (OFILES): Build it.
4557 * z8k-dis.c: fixed forward refferences of some declarations.
4561 * Makefile.in: get the name of the library right
4565 * z8k-dis.c: knows how to disassemble z8k stuff
4566 * z8k-opc.h: new file full of z8000 opcodes
4570 version-control: never