3 * cgen-asm.c (cgen_current_opcode_table): Renamed from ..._data.
4 (asm_hash_table_entries): New variable.
5 (cgen_asm_init): Free asm_hash_table_entries.
6 (hash_insn_array,hash_insn_list): New functions.
7 (build_asm_hash_table): Use them. Hash macro insns as well.
8 (cgen_asm_lookup_insn): Update.
9 * cgen_dis.c (cgen_current_opcode_table): Renamed from ..._data.
10 (dis_hash_table_entries): New variable.
11 (cgen_dis_init): Free dis_hash_table_entries.
12 (hash_insn_array,hash_insn_list): New functions.
13 (build_dis_hash_table): Use them. Hash macro insns as well.
14 (cgen_dis_lookup_insn): Update.
15 * cgen-opc.c (cgen_current_opcode_table): Renamed from ..._data.
16 (cgen_set_cpu,cgen_hw_lookup,cgen_insn_count): Update.
17 (cgen_macro_insn_count): New function.
18 * cgen-opc.in (@arch@_cgen_lookup_insn): New arg alias_p.
19 All callers updated. Sanity check result of extract fn.
20 (@arch@_cgen_get_insn_operands): Change result type to void.
21 Delete args insn_value, length. New arg fields. All callers updated.
22 (@arch@_cgen_lookup_get_insn_operands): New function.
26 * i386-dis.c (OP_DSSI): Print segment override.
31 * mips-opc.c (msub.s): Correct mask pattern for disassembly.
37 * mips-opc.c (madd.s): Correct mask pattern for disassembly.
43 * vu0.h (vlqd, vlqi): Update per revised specs.
49 * dvp-opc.c (parse_vif_unpackloc,insert_vif_unpackloc): Delete.
50 (vif_operands): Update.
51 (vif_get_unpackloc): Delete.
52 (state_vif_unpackloc{,_star_p}): Delete.
53 (dvp_opcode_init_parse): Update.
54 (vif_unpack_len_value): Avoid divide by zero.
60 * vu0.h: Specs changed for VCALLMSR bit pattern.
61 * mips-dis.c: (print_insn_arg) Matching change.
66 * arm-dis.c (print_insn_arm): Add "_all" extension to 'C'
71 * Makefile.am (libopcodes_la_LIBADD): Add @WIN32LIBADD@.
72 (libopcodes_la_LDFLAGS): Add @WIN32LDFLAGS@.
73 * configure.in: Define and substitute WIN32LDFLAGS and
75 * aclocal.m4: Rebuild with new libtool.
76 * configure, Makefile.in: Rebuild.
81 * vu0.h: Corrected bit pattern for VMAXI opcode.
86 * m32r-opc.c: Regenerate.
91 * dvp-opc.c (vif_macros): Tweak unpackloc operand.
92 (dvp_expand_macro): Implement.
93 (insert_vif_datalen): Record value with max+1 -> 0 conversion.
94 (vif_unpack_len): Perform 0 -> max+1 conversion on `wl' value.
99 * Makefile.am (stamp-lib): Check that .libs/libopcodes.a exists
100 before trying to copy it.
101 * Makefile.in: Rebuild.
105 * m32r-opc.c: Use signed immediate values for CMPUI instruction.
110 * m32r-opc.c: Fix bit patterns for SAT and SATB.
115 * ns32k-dis.c (bit_extract_simple): New function to extract bits
116 from an arbitrary valid buffer instead of fetching them on demand
118 (invalid_float): use bit_extract_simple() instead of bit_extract().
123 * m32r-opc.c: Fix SATB bit pattern. Add extra control registers.
124 * m32r-opc.h: Add extra control registers.
130 * i386-dis.c (dis386): Change 0x8c and 0x8e to movS, and change Ew
135 * Branched binutils 2.9.
140 * d30v-dis.c (print_insn_d30v): Don't use uninitialized "num" when
141 disassembling last 4 bytes of a section.
146 Fix some gcc -Wall warnings:
147 * arc-dis.c (print_insn): Add casts to avoid warnings.
148 * cgen-opc.c (cgen_keyword_lookup_name): Likewise.
149 * d10v-dis.c (dis_long, dis_2_short): Likewise.
151 * dvp-opc.c (issymchar, SKIP_BLANKS): Likewise.
152 (parse_dotdest, parse_dotdest1, u_parse_sdest): Likewise.
153 (parse_bc, parse_vfreg, parse_accdest): Likewise.
154 (parse_ffstreg, parse_vif_mode): Likewise.
156 * m10200-dis.c (disassemble): Likewise.
157 * m10300-dis.c (disassemble): Likewise.
158 * ns32k-dis.c (print_insn_ns32k): Likewise.
159 * ppc-opc.c (insert_ral, insert_ram): Likewise.
160 * cgen-dis.c (build_dis_hash_table): Remove used local variables.
161 * cgen-opc.c (cgen_keyword_search_next): Likewise.
162 * d10v-dis.c (dis_long, dis_2_short): Likewise.
164 * d30v-dis.c (print_insn_d30v, lookup_opcode): Likewise.
167 * dvp-dis.c (print_dma, print_vif, print_gif): Likewise.
168 * dvp-opc.c (parse_dest1, print_uflags): Likewise.
169 (parse_gif_nloop, dvp_opcode_init_tables): Likewise.
171 * ns32k-dis.c (bit_extract, print_insn_ns32k): Likewise.
173 * tic80-dis.c (print_one_instruction): Likewise.
175 * w65-dis.c (print_operand): Likewise.
176 * z8k-dis.c (fetch_data): Likewise.
177 * a29k-dis.c: Add return type for find_byte_func_type.
178 * arc-opc.c: Include <stdio.h>. Remove declarations of
179 insert_multshift and extract_multshift.
181 * d30v-dis.c (lookup_opcode): Parenthesize assignments in
183 (extract_value): Fully parenthesize expression.
186 * dvp-opc.c: Include <ctype.h>.
187 (print_sdest): Add default case to switch.
189 * h8500-dis.c (print_insn_h8500): Initialize local variables.
190 * h8500-opc.h (h8500_table): Fully bracket initializer.
191 * w65-opc.h (optable): Likewise.
192 * i386-dis.c (print_insn_x86): Declare aflag and flag parameters.
193 * i386-dis.c (OP_E): Initialize local variables.
194 * m10200-dis.c (print_insn_mn10200): Likewise.
195 * mips-dis.c (print_insn_mips16): Likewise.
196 * sh-dis.c (print_insn_shx): Likewise.
197 * v850-dis.c (print_insn_v850): Likewise.
198 * ns32k-dis.c (print_insn_arg): Declare.
199 (get_displacement, invalid_float): Declare.
200 (list_search, sign_extend, flip_bytes): Declare return type.
201 (get_displacement): Likewise.
202 (print_insn_arg): Likewise. Make d int. Fix sprintf format
204 (print_insn_ns32k): Make i unsigned.
205 (invalid_float): Make static. Declare type of val.
206 * tic30-dis.c (print_par_insn): Make i size_t. Don't check strlen
207 on each for iteration.
208 * tic30-dis.c (get_indirect_operand): Likewise.
209 * z8k-dis.c (print_insn_z8001): Declare return type.
210 (print_insn_z8002): Likewise.
211 (unparse_instr): Fix sprintf format strings.
215 * mips-opc.c: Add "sync.l" and "sync.p".
220 * dvp-opc.c (extract_vif_datalen): Rewrite.
221 (vif_insn_len): Perform 0->max+1 conversion for direct length.
225 * dvp-dis.c (print_insn): Print unpack address in hex.
226 * dvp-opc.c (parse_vif_mpgloc): Renamed from parse_vif_mpgloc_star.
227 Don't skip over '*', just record it.
228 (insert_vif_mpgloc): Don't update state_vif_mpgloc if '*' value.
229 (parse_vif_unpackloc): Renamed from parse_vif_unpackloc_star.
230 Don't skip over '*', just record it.
231 (insert_vif_unpackloc): Don't update state_vif_unpackloc if '*' value.
232 (vif_operands): Delete VIF_MPGLOC_STAR,VIF_UNPACKLOC_STAR entries.
233 (vif_opcodes): Likewise.
234 (state_vif_{mpg,unpack}loc_star_p): New static locals.
235 (vif_macros,vif_macro_count): New globals.
236 (vif_unpack_len_value): New arguments wl,cl. All callers updated.
237 (vif_set_{mpg,unpack}loc): Delete. All callers updated.
238 (vif_get_wl_cl): New function.
239 (dvp_opcode_init_parse): Init mpgloc,unpackloc state.
244 * m68k-dis.c (print_insn_m68k): Use info->mach to select the
245 default m68k variant to recognize.
247 * i960-dis.c (pinsn): Change type of first argument to bfd_vma.
248 (ctrl, cobr, mem, ea): Likewise.
249 (print_addr): Likewise. Remove cast.
250 (ea): Cast argument of print_addr to bfd_vma.
252 * cgen-asm.c (cgen_parse_signed_integer): Fix type of local
254 (cgen_parse_unsigned_integer): Likewise.
255 (cgen_parse_address): Likewise.
259 * i960-dis.c (ctrl): Add full braces to structure initialization.
260 (cobr, mem, reg): Likewise.
261 (ea): Correct parenthesization in expression.
263 * cgen-asm.c: Include <ctype.h>.
264 (build_asm_hash_table): Remove unused local variable i.
265 (cgen_parse_keyword): Add casts to avoid warnings.
267 * arm-dis.c (print_insn_big_arm): Only call coffsymbol for a COFF
268 symbol. Fix indentation.
269 (print_insn_little_arm): Likewise.
274 * vu0.h (cfc2, ctc2): Add variants with ".i" and ".ni"
281 * m32r-opc.c (m32r_cgen_insn_table_entries): Fix SATH bit pattern
288 * dvp-opc.c (vif_operand_datalen_special): New global.
294 * vu0.h (vcallms): Use 'O' for call target operand.
295 * mips-dis.c (print_insn_arg): Handle 'O'.
300 * configure.in: Use AM_DISABLE_SHARED.
301 * aclocal.m4, configure: Rebuild with libtool 1.2.
306 * mips-dis.c: Change '%' to '#' to avoid conflict with vr5400
313 These patches are courtesy of Jonathan Walton and Tony Thompson
316 * arm-dis.c (print_insn_thumb): Ignore bottom two bits of PC
319 * arm-opc.h (thumb_opcodes): Annotate PC relative addresses with
320 both the offset and the label closest to the destination.
325 * vu0.h: New file with cop2/vu0 instructions.
326 * mips-opc.c: Include vu0.h.
327 * mips-dis.c (print_insn_arg): Handle new args 0-9, +, -, %, K, &,
329 (print_insn_mips): Do not emit a tab after an instruction if the
330 first arg is an instruction completer (&). If the next arg is an
331 escape character (%), then print the next arg verbatim.
332 * Makefile.am (mips-opc.lo): Depend on vu0.h
338 * dvp-opc.c (vif_opcodes): Add stcycl.
342 * dvp-dis.c (print_dma): Change length from 16 to 8.
347 * m32r-opc.h: Regenerate.
352 * dvp-opc.c (print_dest1): Print dest spec again.
353 (print_vfreg,print_accdest): Likewise.
354 (vif_unpack_len): Round result up to word boundary.
357 start-sanitize-vr4320
360 * mips-opc.c ("clz","dclz"): Added the 4320 versions.
364 * mips-opc.c ("macc*","mul*"): Added the 4320 versions
371 * dvp-dis.c (print_gif): Fix length calcs for gifimage.
372 (print_insn): Do mask comparison on proper opcode word.
373 Print unsigned values in hex.
374 * dvp-opc.c (u_parse_sdest): Return -1 if dest missing.
375 (parse_bc): Catch missing dest.
376 (parse_vfreg): Replace atoi call with strtol.
377 (parse_{bcftreg,ffstreg,freg,ireg,vi01,gif_prim,gif_nloop}): Likewise.
378 (parse_bcftreg,parse_ffstreg): Handle missing dest.
379 (extract_gif_eop): New function.
380 (gif_operands): Update eop entry.
381 (VGIFOP,VGIFNREGS): Fix calcs.
382 (extract_gif_prim): Set *pinvalid to 1 if prim not used.
383 (gif_regs): Add entry for unused 11 case.
384 (print_gif_regs): Print empty list instead of nothing.
385 (extract_gif_nloop): Fix value calc.
386 (print_gif_nloop): Always print value, even if 0.
387 (insert_vif_wlcl,extract_vif_wlcl): New functions.
388 (vif_operands): Use them for wl,cl fields.
389 (state_vif_wl,state_vif_cl): New static locals.
390 (parse_vif_mode): Handle numeric args.
391 (vif_unpack_len_value,vif_unpack_len): New functions.
392 (vif_insn_len): Call vif_unpack_len.
397 * m32r-opc.h,m32r-opc.c,m32r-asm.c,m32r-dis.c: Regenerate.
401 * cgen-asm.in: Move insertion of generated routines to top of file.
402 (insert_normal): Add prototype. Delete `shift' arg.
403 * cgen-dis.in: Move insertion of generated routines to top of file.
404 (extract_normal): Add prototype. Delete `shift' arg.
405 (print_normal): Add prototype. Call CGEN_PRINT_NORMAL if defined.
406 (print_keyword): Add prototype. Fix type of `attrs' arg.
408 start-sanitize-vr4320
411 * mips-dis.c (_print_insn_mips) : Handle bfd_mach_mips4320.
412 * mips-opc.c ("mac","dmac") : Added 4320 insns.
417 * arm-dis.c (print_insn_big_arm, print_insn_little_arm): Do not
418 assume that info->symbols is non-empty.
422 * alpha-opc.c (cvtqs) There is no such thing.
423 (cvttq): Missing most of the /*d variants.
428 * mips-opc.c (r5900/madd.s): Takes three operands, not four. Fix
430 (r5900/min.s): Incorrect opcode ....,101001 not ...110000.
431 (r5900/msub.s): Takes three operands, not four. Fix opcode.
437 * d30v-opc.c (d30v_opcode_table): Indicate which instructions are
438 delayed branches or jumps.
444 * dvp-opc.c (vif_operands): Add unpack[u] support.
445 (vif_opcodes): Ditto.
446 (*_vif_imrubits): Renamed from *_vif_imrbits.
450 * dvp-dis.c (print_insn): Handle word number.
451 Handle mips address vs vu address.
452 * dvp-opc.c (vif_operands): Use DVP_OPERAND_VU_ADDRESS.
453 (dma_operands): Use DVP_OPERAND_MIPS_ADDRESS.
454 ({insert,extract}_dma_addr): Fix word ofset.
455 ({insert,print}_gif_regs): Fix encode/decode.
460 * arm-dis.c (print_insn_{big,little}_arm): info->symbol changed
462 * mips-dis.c (print_insn_{big,little}_mips): Likewise.
463 * tic30-dis.c (print_branch): Likewise.
465 * mips-dis.c (print_insn_little_mips): Call dvp_info_mach_type.
466 * dvp-dis.c (dvp_info_mach_type): New function.
467 (print_insn_dvp): Call it.
468 (print_vif): Return length of 4 if mpg or direct insn so following
469 insns get properly disabled.
470 (print_gif): Fix word order.
471 * dvp-opc.c (vif_insn_len): New argument `pcpu'. All callers updated.
472 (gif_operands): Fix word order.
473 (gif_opcodes): Likewise.
474 ({insert,extract,print}_gif_regs): Likewise.
475 (gif_regs): Add new register number/name changes.
476 (dma_opcodes): Add dmarefe insn.
481 * arm-dis.c (print_insn_big_arm, print_insn_little_arm): Remove
482 saved_symbol code as it is no longer needed.
486 * cgen-asm.c: Include symcat.h.
487 * cgen-dis.c,cgen-opc.c,cgen-asm.in,cgen-dis.in: Ditto.
489 * m32r-asm.c,m32r-dis.c,m32r-opc.h,m32r-opc.c: Regenerate.
494 * dvp-opc.c (extra_dma_flags): Fix typos.
495 (dma_operands): Fix word numbers.
496 (dma_opcodes): Likewise.
497 ({insert,extract}_dma_flags): Likewise.
502 * mips-dis.c (print_insn_arg): Do not prefix 'P' arguments with '$'.
507 * dvp-dis.c (print_gif): Complete.
508 * dvp-opc.c (gif_operands,gif_opcodes): Complete.
509 (state_gif_{nregs,regs,nloop}): New static locals.
511 (dvp_opcode_init_{parse,print}): Init gif state locals.
512 (extract_vif_datalen,{insert,extract}_vif_imrbits): New functions.
513 (vif_insn_len): Handle `unpack'.
514 ({insert,extract}_dma_flags): Complete.
520 * mips-opc.c (mula.s): Renamed from multa.s.
525 * m32r-opc.[ch]: Regenerate.
530 * dvp-opc.c (dma_operands): Rewrite.
531 (dma_operand_{count,addr}): New globals.
532 (dma_opcodes): Rewrite. Add "dmaend" with no operands.
533 (insert_dma_addr): Insert value into insn.
534 (extract_dma_addr): Extract value from insn.
538 * dvp-dis.c (print_vu): Handle loi insns.
539 (print_insn): Likewise.
540 * dvp-opc.c (vu_lower_opcodes): Add "loi".
541 (vu_operands): Make LDEST1 a FAKE operand.
542 (parse_dest1): Allow elided argument.
543 (print_dest1): Don't print the argument.
547 * dvp-opc.c (parse_vfreg): Dest spec is optional.
548 (print_vfreg): Don't print dest spec.
549 (parse_accdest): Dest spec is optional.
550 (print_accdest): Don't print dest spec.
555 * Makefile.am (CGENFILES): Update.
556 * Makefile.in: Regenerate.
557 * cgen-asm.in (insert_normal): Result is error message now.
558 Validate value to be inserted.
559 (insert_insn_normal): Result is error message now.
560 (@arch@_cgen_assemble_insn): Update.
561 * cgen-asm.c (cgen_parse_{signed,unsigned}_integer): Delete min,max
562 arguments. Don't perform validation here.
563 * m32r-asm.c,m32r-dis.c,m32r-opc.c: Regenerate.
567 * cgen-opc.in (@arch@_cgen_get_insn_operands): Handle empty
568 operand instance list.
569 * m32r-opc.c: Regenerate.
573 * Makefile.am (AUTOMAKE_OPTIONS): Define.
574 * configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
578 * m10300-dis.c (print_insn_mn10300): Recognize break instruction.
582 * configure.in: Get the version number from BFD.
583 * configure: Rebuild.
586 * Makefile.am (libopcodes_la_LDFLAGS): Define.
587 * Makefile.in: Rebuild.
591 * m32r-opc.c: Regenerate.
592 * m32r-opc.h: Regenerate.
596 * cgen-opc.in (@arch@_cgen_lookup_insn): New argument alias_p.
597 Ignore ALIAS insns if asked to.
598 (@arch@_cgen_get_insn_operands): Pass 0 for alias_p, NULL for insn.
599 * m32r-opc.c: Regenerate.
602 * dvp.opc.c: Nicely format opcode tables.
603 (vu_operands): New element UFLAGS.
604 (parse_uflags,print_uflags): New functions.
605 (vu_upper_opcodes): Add UFLAGS to all insns.
610 Fix rac to accept only a0:
611 * d10v-opc.c (d10v_predefined_registers, d10v_operands, d10v_opcodes):
612 Split OPERAND_ACC into OPERAND_ACC0 and OPERAND_ACC1.
613 Introduce OPERAND_GPR.
614 * d10v-dis.c (print_operand): Likewise.
618 * cgen-opc.in: New file.
620 * Makefile.am (CGENFILES): Add cgen-opc.in.
621 * Makefile.in: Regenerate.
623 * cgen-opc.c (cgen_set_cpu): Delete init of hw list `next' chain.
624 (cgen_hw_lookup): Make result const.
626 * cgen-dis.in (*): Use PTR instead of void *.
627 (print_insn): Delete unused vars `i', `syntax'.
629 * m32r-opc.h, m32r-opc.c, m32r-asm.c, m32r-dis.c: Regenerate.
634 * dvp-opc.c (*): pke,gpuif renamed to vif,gif.
635 (vif_opcodes): Update renamed insns.
636 * dvp-dis.c (*): Likewise.
641 * configure, aclocal.m4: Rebuild with new libtool.
646 * d30v-opc.c (repeat{,i} instructions): Repeat/repeati
647 instructions use a PC relative branch, not absolute.
652 * configure.in: Set libtool_enable_shared rather than
653 libtool_shared. Remove diversion hack.
654 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
658 * cgen-opc.c (cgen_set_cpu): Initialize hardware table.
659 * m32r-opc.h, m32r-opc.c, m32r-asm.c, m32r-dis.c: Regenerate.
663 * tic30-dis.c: New file.
664 * disassemble.c (disassembler): Add bfd_arch_tic30 case.
665 * configure.in: Handle bfd_tic30_arch.
666 * Makefile.am: Rebuild dependencies.
667 (CFILES): Add tic30-dis.c
668 (ALL_MACHINES): Add tic30-dis.lo.
669 * configure, Makefile.in: Rebuild.
674 * m32r-opc.c, m32r-opc.h, m32r-asm.c m32r-dis.c: Newly generated
675 versions after updates to m32r.cpu to remove mulwhi-a, mulwlo-a,
676 macwhi-a and macwlo-a instructions.
682 * dvp-opc.c, fixed encoding of a bunch of instructions to
683 be consistent with the asmvu assembler (and inconsistent
684 with the specification).
688 * dvp-opc.c, fixed order of pkemscal/pkemscalf instructions
689 in the opcode table. The pkemscalf instruction must come first.
693 * dvp-opc.c, MAXIi should be VUOP6(0x1d) instead of 0x2d.
698 * m32r-opc.h (HAVE_CPU_M32R): Define.
703 * dvp-dis.c, dvp-opc.c: New files.
704 * configure.in: Compile them if bfd_dvp_arch, as well as mips.
705 * configure: Regenerate.
706 * Makefile.am (ALL_MACHINES): Add dvp-{dis,opc}.lo.
707 (dvp-dis.lo,dvp-opc.lo): Add rules for.
708 (mips-dis.lo): Compile with @archdefs@.
709 * Makefile.in: Regenerate.
710 * disassemble.c: Define ARCH_mips ifdef ARCH_dvp.
711 * mips-dis.c (print_insn_little_mips): Check for DVP insns.
716 * v850-opc.c (insertion routines): If both alignment and size is
717 wrong then report this.
721 * mips-dis.c (_print_insn_mips): Set target_processor as appropriate.
722 Only recognize instructions for the current target_processor.
726 * d10v-dis.c (PC_MASK): Correct value.
727 (print_operand): If there's a reloc, don't calculate the
728 address because they could be in different sections.
730 start-sanitize-cygnus
733 * cgen.sh: Rewrite to be like simulator's version.
734 * Makefile.am (cgen): Update call to cgen.sh.
735 * Makefile.in: Regenerate
740 * mips-opc.c (mips_builtin_opcodes): Move 4010's "addciu"
741 instruction after the 4650's "mul" instruction; nobody's using the
742 4010 these days. If object files someday indicate which processor
743 variant they're intended for, we can do a better job at this.
748 * mips-opc.c (c.lt.s): Add r5900 variant.
754 * cgen-asm.c (build_asm_hash_table): Traverse compiled in table using
755 table provided entry size. Use CGEN_INSN_MNEMONIC.
756 (cgen_parse_keyword): Rewrite.
757 * cgen-dis.c (build_dis_hash_table): Traverse compiled in table using
758 table provided entry size. Use CGEN_INSN_MASK_BITSIZE.
759 * cgen-opc.c: Clean up pass over `struct foo' usage.
760 (cgen_keyword_lookup_value): Handle "" entry.
761 (cgen_keyword_add): Likewise.
762 start-sanitize-cygnus
763 * Makefile.am: Add cgen support.
764 * Makefile.in: Regenerate.
765 * configure.in: Add cgen support.
766 * configure: Regenerate.
767 * aclocal.m4: Regenerate.
768 * cgen.sh, cgen-asm.in, cgen-dis.in: New files.
773 * mips-opc.c: Add FP_D to s.d instruction flags.
777 * m68k-opc.c (halt, pulse): Enable them on the 68060.
782 * tic80-opc.c (tic80_opcodes): Revert change that put the 32 bit
783 PC relative offset forms before the 15 bit forms. An assembler command
784 line option now chooses the default.
790 * mips-opc.c: Add many missing r5900 instructions.
796 * d30v-opc.c (d30v_opcode_table): Set new flags bits
797 FLAG_{2WORD,MUL{16,32},ADDSUBppp}, in appropriate instructions.
802 * configure: Only build libopcodes shared if --enable-shared's value
803 was `yes', or was set to `*opcodes*'.
804 * aclocal.m4: Likewise.
805 * NOTE: this really needs to be fixed in libtool/libtool.m4, the
806 original source of this bit of code. It's not clear what the best fix
812 * mips-opc.c (mtpc, mfpc, mtps, mfps): Add r5900 variants.
817 * tic80-opc.c (OFF_SL_PC, OFF_SL_BR): Minor formatting change.
818 (tic80_opcodes): Reorder table entries to put the 32 bit PC relative
819 offset forms before the 15 bit forms, to default to the long forms.
824 * alpha-opc.c (cvttq/*u*): Remove, as that suffix is invalid.
828 * arm-dis.c (print_insn_little_arm): Prevent examination of stored
829 symbol if none is present.
830 (print_insn_big_arm): Prevent examination of stored symbol if
835 * d10v-opc.c (d10v_opcodes): Correct entry for RTE.
839 * disassemble.c: Remove disasm_symaddr() function.
841 * arm-dis.c: Use info->symbol instead of info->flags to determine
842 if disassmbly should be in Thumb or Arm mode.
846 * arm-dis.c: Add support for disassembling Thumb opcodes.
847 (print_insn_thumb): New function.
849 * disassemble.c (disasm_symaddr): New function.
851 * arm-opc.h: Display nop pseudo ops alongside equivalent disassembly.
852 (thumb_opcodes): Table of Thumb opcodes.
856 * m68k-opc.c (btst): Change Dd@s to Dd;b.
858 * m68k-dis.c (print_insn_arg): Recognize 'm', 'n', 'o', 'p', 'q',
859 and 'v' as operand types.
863 * m68k-opc.c: Add argument for lpstop. From Olivier Carmona
865 * m68k-dis.c (print_insn_m68k): Handle special case of lpstop,
866 which has a two word opcode with a one word argument.
871 * d30v-opc.c (d30v_opcode_table, case cmpu): Immediate field is
872 unsigned, not signed.
873 (d30v_format_table): Add SHORT_CMPU cases for cmpu.
878 * sh-dis.c (print_insn_shx): Recognize all sh4 additions.
879 * sh-opc.h (fmov): Add @<REG_M>+,<DX_REG_N> variant for sh4.
880 (ftrv): Slay the cut-and-paste monster.
884 * d10v-dis.c (print_operand):
885 Split OPERAND_FLAG into OPERAND_FFLAG and OPERAND_CFLAG.
889 * d10v-opc.c (OPERAND_FLAG): Split into:
890 (OPERAND_FFLAG, OPERAND_CFLAG) .
896 * mips-opc.c: Move the INSN_MACRO ISA value to the membership
897 field for all INSN_MACRO's.
902 * mips-opc.c (sync,cache): These are 3900 insns.
906 sh-opc.h (sh_table): Remove ftst/nan.
908 start-sanitize-vr5400
911 * mips-opc.c (dror32, dror, rzu.ob): Fix bugs in encoding.
912 (c.*.ob, mula.ob, mull.ob, muls.ob, mulsl.ob): Put 'k' version
914 * mips-dis.c (print_insn_arg): Handle VR5400 operand types.
920 * mips-opc.c (deret,dmult,dmultu,madd,maddu,pref,sdbbp):
921 Add tx49 insns and configury.
926 * mips-opc.c (ffc, ffs): Fix mask.
931 * d30v-opc.c (pre_defined_registers): Add eit_vb, int_s, and int_m
937 * mips-opc.c: Fix bug in mask for "not" pseudo-instruction.
938 start-sanitize-vr5400
939 Added VR5400 instructions.
940 (N5): New cpu-id macro.
942 (WR_HILO, RD_HILO, MOD_HILO): New macros.
946 * mips-opc.c: Fix bug in mask for "not" pseudo-instruction.
947 (WR_HILO, RD_HILO, MOD_HILO): New macros.
951 * v850-dis.c (disassemble): Replace // with /* ... */
955 * sparc-opc.c: Add wr & rd for v9a asr's.
956 * sparc-dis.c (print_insn_sparc): Recognize '_' and '/' for v9a asr's.
957 (v9a_asr_reg_names): New variable.
962 * sparc-opc.c (v9notv9a): New insn type.
963 (IMPDEP): Move to the end to not conflict with edge8 et al.
968 * mips-opc.c (bnezl,beqzl): Mark these as also tx39.
972 * mips-opc.c: Note that 'jalx' is (probably incorrectly) marked I1.
976 * v850-dis.c (disassemble): Use new symbol_at_address_func() field
977 of disassemble_info structure to determine if an overlay address
978 has a matching symbol in low memory.
980 * dis-buf.c (generic_symbol_at_address): New (dummy) function for
981 new symbol_at_address_func field in disassemble_info structure.
985 * v850-opc.c (extract_d22): Use signed arithmatic.
989 * mips-opc.c: Three op mult is not an ISA insn.
993 * mips-opc.c: Fix formatting.
997 * i386-dis.c (OP_E): Explicitly sign extend 8 bit values, rather
998 than assuming that char is signed. Explicitly sign extend 16 bit
999 values, rather than assuming that short is 16 bits.
1000 (OP_sI, OP_J, OP_DIR): Likewise.
1002 start-sanitize-v850e
1005 * v850-dis.c (v850_sreg_names): Use symbolic names for higher
1011 * v850-opc.c: Fix typo in comment.
1013 * v850-dis.c (disassemble): Add test of processor type when
1014 determining opcodes.
1018 * configure.in: Use a diversion to set enable_shared before the
1019 arguments are parsed.
1020 * configure: Rebuild.
1024 * m68k-opc.c (TBL1): Use ! rather than `.
1025 * m68k-dis.c (print_insn_arg): Remove ` operand specifier.
1029 * m68k-opc.c: Correct bchg, bclr, bset, and btst on ColdFire.
1031 * m68k-opc.c: Accept tst{b,w,l} with immediate operands on cpu32.
1033 * m68k-opc.c: Correct movew of an immediate operand to %sr or %ccr
1036 * configure.in: Call AC_CHECK_TOOL before AM_PROG_LIBTOOL.
1037 * aclocal.m4: Rebuild with new libtool.
1038 * configure: Rebuild.
1040 start-sanitize-v850e
1043 * v850-opc.c ("cmov"): Order reg param r1, r2 not r2, r2.
1048 * sparc-opc.c (sparclet_cpreg_table): Add %ccsr2, %cccrr, %ccrstr.
1052 * v850-opc.c (v850_opcodes): Further rearrangements.
1057 * d30v-opc.c (rot2h, sra2h, srl2h insns): Revert last change.
1062 * v850-opc.c (v850_opcodes): Fields reordered to allow assembler
1067 * mips-opc.c: Added tx39 insns sdbbp, rfe, and deret.
1069 * mips16-opc.c: Added mips16 sdbbp.
1074 * v850-opc.c: Initialise processors field of v850_opcode structure.
1079 Merge changes from Martin Hunt:
1081 * d30v-opc.c: Change mvfacc to accept 6-bit unsigned values.
1083 * d30v-opc.c (pre_defined_registers): Add control registers from 0-63.
1084 (d30v_opcode_tabel): Add dbt, rtd, srah, and srlh instructions. Fix
1085 rot2h, sra2h, and srl2h to use new SHORT_A5S format.
1087 * d30v-dis.c (print_insn): Fix disassembly of SHORT_D2 opcodes.
1089 * d30v-dis.c (print_insn): First operand of d*i (delayed
1090 branch) instructions is relative.
1092 * d30v-opc.c (d30v_opcode_table): Change form for repeati.
1093 (d30v_operand_table): Add IMM6S3 type.
1094 (d30v_format_table): Change SHORT_D2. Add LONG_Db.
1096 * d30v-dis.c: Fix bug with ".s" and ".l" extensions
1097 and cmp instructions.
1099 * d30v-opc.c: Correct entries for repeat*, and sat*.
1100 Make IMM5 unsigned. Create IMM6U and IMM12S3U operand
1101 types. Correct several formats.
1103 * d30v-opc.c: (pre_defined_registers): Add dpsw and dpc.
1105 * d30v-opc.c (pre_defined_registers): Change control registers.
1107 * d30v-opc.c (d30v_format_table): Correct SHORT_C1 and
1108 SHORT_C2. Manual was incorrect.
1110 * d30v-dis.c (lookup_opcode): Return value now indicates
1111 if an opcode has a short and a long form. Used for deciding
1112 to append a ".s" or ".l".
1113 (print_insn): Append a ".s" to an instruction if it is
1114 the short form and ".l" if it is a long form. Do not append
1115 anything if the instruction has only one possible size.
1117 * d30v-opc.c: Change mulx2h to require an even register.
1118 New form: SHORT_A2; a SHORT_A form that needs an even
1119 register as the first operand.
1121 * d30v-dis.c (print_insn_d30v): Fix problem where the last
1122 instruction was not being disassembled if there were an odd
1123 number of instructions.
1125 * d30v-opc.c (SHORT_M2, LONG_M2): Two new forms.
1128 start-sanitize-v850e
1131 * v850-dis.c (disassemble): Improved display of register lists.
1136 * sparc-opc.c (sparc_opcodes): Fix assembler args to
1137 fzeros, fones, fsrc1, fsrc1s, fsrc2s, fnot1, fnot1s, fnot2s,
1138 fors, fnors, fands, fnands, fxors, fxnors, fornot1s, fornot2s,
1139 fandnot1s, fandnot2s.
1143 * sparc-opc.c (sparc_opcodes): Fix op3 field for fcmpq/fcmpeq.
1147 * cgen-asm.c (cgen_parse_address): New argument resultp.
1148 All callers updated.
1149 * m32r-asm.c (parse_h_hi16): Right shift numbers by 16.
1153 * mn10200-dis.c (disassemble): PC relative instructions are
1154 relative to the next instruction, not the current instruction.
1158 * v850-dis.c (disassemble): Only signed extend values that are not
1159 returned by extract functions.
1160 Remove use of V850_OPERAND_ADJUST_SHORT_MEMORY flag.
1164 * v850-opc.c: Update comments. Remove use of
1165 V850_OPERAND_ADJUST_SHORT_MEMORY. Fix several operand patterns.
1169 * v850-opc.c (MOVHI): Immediate parameter is unsigned.
1173 * configure: Rebuilt with latest devo autoconf for NT support.
1177 * v850-dis.c (disassemble): Use curly brace syntax for register
1180 * v850-opc.c (v850_opcodes[]): Add NOT_R0 flag to decect cases
1181 where r0 is being used as a destination register.
1183 start-sanitize-v850e
1186 * v850-opc.c (v850_opcodes[]): Move divh opcodes next to each other.
1191 * sh-opc.h (sh_arg_type): Add A_SGR and A_DBR.
1192 (sh_nibble_type, sh_arg_type): Add SH4 floating point extensions.
1193 (sh_table): Likewise. Add movca.l, ocbi, ocbp, ocbwb.
1194 Add insns to access SGR and DBR.
1195 * sh-dis.c (print_insn_shx): Add SH4 floating point extensions.
1199 * alpha-opc.c (alpha_opcodes): Fix hw_rei_stall mungage.
1201 start-sanitize-v850e
1204 * v850-opc.c (v850_opcodes[]): Remove use of flag field.
1205 * v850-opc.c (v850_opcodes[]): Add support for reversed short load
1210 * configure (cgen_files): Add support for v850e target.
1211 * configure.in (cgen_files): Add support for v850e target.
1215 * configure (cgen_files): Add support for v850ea target.
1216 * configure.in (cgen_files): Add support for v850ea target.
1221 * configure.in (bfd_arc_arch): Add.
1222 * configure: Rebuild.
1223 * Makefile.am (ALL_MACHINES): Add arc-dis.lo, arc-opc.lo.
1224 * Makefile.in: Rebuild.
1225 * arc-dis.c, arc-opc.c: New files.
1226 * disassemble.c (ARCH_all): Define ARCH_arc.
1227 (disassembler): Add ARC support.
1231 start-sanitize-v850e
1232 * v850-dis.c (disassemble): Add support for v850EA instructions.
1234 * v850-opc.c (insert_i5div, extract_i5div): New Functions.
1235 (v850_opcodes): Add v850EA instructions.
1237 * v850-dis.c (disassemble): Add support for v850E instructions.
1239 * v850-opc.c (insert_d5_4, extract_d5_4, insert_d16_16,
1240 extract_d16_16, insert_i9, extract_i9, insert_u9, extract_u9,
1241 insert_spe, extract_spe): New Functions.
1242 (v850_opcodes): Add v850E instructions.
1245 * v850-opc.c: Reorganised and re-layed out to improve readability
1250 * configure: Rebuild with autoconf 2.12.1.
1254 * aclocal.m4, configure: Rebuild with new automake patches.
1258 * configure.in: Set enable_shared before AM_PROG_LIBTOOL.
1259 * acinclude.m4: Just include acinclude.m4 from BFD.
1260 * aclocal.m4, configure: Rebuild.
1264 * Makefile.am: New file, based on old Makefile.in.
1265 * acconfig.h: New file.
1266 * acinclude.m4: New file.
1267 * stamp-h.in: New file.
1268 * configure.in: Call AM_INIT_AUTOMAKE and AM_PROG_LIBTOOL.
1269 Removed shared library handling; now handled by libtool. Replace
1270 AC_CONFIG_HEADER with AM_CONFIG_HEADER. Call AM_MAINTAINER_MODE,
1271 AM_CYGWIN32, and AM_EXEEXT. Replace AC_PROG_INSTALL with
1272 AM_PROG_INSTALL. Change all .o files to .lo. Remove stamp-h
1273 handling in AC_OUTPUT.
1274 * dep-in.sed: Change .o to .lo.
1275 * Makefile.in: Now built with automake.
1276 * aclocal.m4: Now built with aclocal.
1277 * config.in, configure: Rebuild.
1281 * mips-opc.c: Fix typo/thinko in "eret" instruction.
1283 start-sanitize-r5900
1286 * mips-opc.c: Fix coding of mtsa.
1291 * sparc-opc.c (sparc_opcodes): Fix spelling on fpaddX, fpsubX insns.
1293 * sparc-dis.c (sorted_opcodes): New static local.
1294 (struct opcode_hash): `opcode' is pointer to const element.
1295 (build_hash): First arg is now table of sorted pointers.
1296 (print_insn_sparc): Sort opcodes by sorting table of pointers.
1297 (compare_opcodes): Update.
1301 * cgen-opc.c: #include <ctype.h>.
1302 (hash_keyword_name): New arg `case_sensitive_p'. Callers updated.
1303 Handle case insensitive hashing.
1304 (hash_keyword_value): Change type of `value' to unsigned int.
1308 * mips-opc.c (mips_builtin_opcodes): If an insn uses single
1309 precision FP, mark it as such. Likewise for double precision
1310 FP. Mark ISA1 insns. Consolidate duplicate opcodes where
1312 start-sanitize-r5900
1313 (mips_builtin_opcodes): Remove non-existant r5900 instructions
1316 start-sanitize-r5900
1319 * mips-opc.c (mips_builtin_opcodes): Add "pinteh", "pexeh" and
1320 "pexew" as synonyms for "pintoh", "pexoh", "pexow".
1325 * ppc-opc.c (extract_nsi): make unsigned expression signed before
1327 (UNUSED): remove one level of parens, so MSVC doesn't choke on
1328 nesting depth when all the macros are expanded.
1332 * sparc-opc.c: The fcmp v9a instructions take an integer register
1333 as a destination, not a floating point register. From Christian
1338 * m68k-dis.c (print_insn_arg): Print case 7.2 using %pc@()
1339 syntax. From Roman Hodek
1342 * i386-dis.c (twobyte_has_modrm): Fix pand.
1346 * i386-dis.c (dis386_twobyte): Fix pand and pandn.
1350 * arm-dis.c: Add prototypes for arm_decode_shift and
1355 * mips-opc.c: Add r3900 insns.
1359 * sh-dis.c (print_insn_shx): Change relmask to bfd_vma. Don't
1360 print delay slot instructions on the same line. When using a PC
1361 relative load, add a comment with the value being loaded if it can
1366 * i386-dis.c (dis386[], dis386_twobyte[]): change pushl/popl
1367 to pushS/popS for segment regs and byte constant so that
1368 pushw/popw printed when in 16 bit data mode.
1370 * i386-dis.c (dis386[]): change cwtl, cltd to cWtS, cStd to
1371 print cbtw, cwtd in 16 bit data mode.
1372 * i386-dis.c (putop): extra case W to support above.
1374 * i386-dis.c (print_insn_x86): print addr32 prefix when given
1375 address size prefix in 16 bit address mode.
1379 * sh-dis.c: Reindent. Rename local variable fprintf to
1384 * m32r-opc.c (m32r_cgen_insn_table, cmpui): Undo patch of May 2.
1388 * mips-opc.c (mips_builtin_opcodes): Moved INSN_ISA field into new
1390 * mips16-opc.c (mip16_opcodes): same.
1394 * m68k-opc.c (moveb): Change $d to %d.
1398 * i386-dis.c: (dis386_twobyte): Add MMX instructions.
1399 (twobyte_has_modrm): Likewise.
1401 (OP_MMX, OP_EM, OP_MS): New static functions.
1403 * i386-dis.c: Revert patch of April 4. The output now matches
1408 * m32r-opc.c (m32r_cgen_insn_table, cmpui): Use $uimm16 instead
1413 * m32r-opc.h (CGEN_ARCH): Renamed from CGEN_CPU.
1417 * Makefile.in (install): Depend upon installdirs.
1418 (installdirs): New target.
1423 * configure.in: Use ${CONFIG_SHELL} when running $ac_config_sub.
1424 * configure: Rebuild.
1428 * cgen-*.c, m32r-*.c: #include sysdep.h instead of config.h.
1429 Delete string{,s}.h support.
1433 * cgen-asm.c (cgen_parse_operand_fn): New global.
1434 (cgen_parse_{{,un}signed_integer,address}): Update call to
1435 cgen_parse_operand_fn.
1436 (cgen_init_parse_operand): New function.
1437 * m32r-asm.c (parse_insn_normal): cgen_init_parse_operand renamed
1438 from cgen_asm_init_parse.
1439 (m32r_cgen_assemble_insn): New operand `errmsg'.
1440 Delete call to as_bad, return error message to caller.
1441 (m32r_cgen_asm_hash_keywords): #if 0 out.
1445 * m68k-dis.c (print_insn_arg) [case 'd']: Print as address register,
1447 [case 'J']: Fix typo in register name.
1451 * configure.in: Substitute SHLIB_LIBS.
1452 * configure: Rebuild.
1453 * Makefile.in (SHLIB_LIBS): New variable.
1454 ($(SHLIB)): Use $(SHLIB_LIBS).
1458 * cgen-dis.c (build_dis_hash_table): Fix xmalloc size computation.
1460 * cgen-opc.c (hash_keyword_name): Improve algorithm.
1462 * disassemble.c (disassembler): Handle m32r.
1466 * m32r-asm.c, m32r-dis.c, m32r-opc.c, m32r-opc.h: New files.
1467 * cgen-asm.c, cgen-dis.c, cgen-opc.c: New files.
1468 * Makefile.in (CFILES): Add them.
1469 (ALL_MACHINES): Add them.
1470 (dependencies): Regenerate.
1471 * configure.in (cgen_files): New variable.
1472 (bfd_m32r_arch): Add entry.
1473 * configure: Regenerate.
1477 * configure.in: Correct file names for bfd_mn10[23]00_arch.
1478 * configure: Rebuild.
1480 * Makefile.in: Rebuild dependencies.
1482 * d10v-dis.c: Include "ansidecl.h" before "opcode/d10v.h".
1484 * i386-dis.c (float_reg): Swap fsubrp and fsubp. Swap fdivrp and
1489 * Branched binutils 2.8.
1493 * m10200-dis.c: Rename from mn10200-dis.c.
1494 * m10200-opc.c: Rename from mn10200-opc.c.
1495 * m10300-dis.c: Rename from mn10300-dis.c
1496 * m10300-opc.c: Rename from mn10300-opc.c.
1497 * Makefile.in: Update accordingly.
1499 * mips16-opc.c: Add mul and dmul macros.
1503 * makefile.vms: Update CFLAGS, add clean target.
1507 * mips-opc.c: Add "wait". From Ralf Baechle
1510 * configure.in: Add stdlib.h to AC_CHECK_HEADERS list.
1511 * configure, config.in: Rebuild.
1512 * sysdep.h: Include <stdlib.h> if it exists.
1513 * sparc-dis.c: Include <stdio.h> and "sysdep.h". Don't include
1515 * Makefile.in: Rebuild dependencies.
1519 * ppc-opc.c: Add PPC 403 instructions and extended opcodes. From
1522 * mips-opc.c: Add cast when setting mips_opcodes.
1526 * v850-dis.c (disassemble): Fix sign extension problem.
1527 * v850-opc.c (extract_d*): Fix sign extension problems to make
1528 disassembly calculate branch offsets correctly.
1532 * sh-opc.h: Add bf/s and bt/s as synonyms for bf.s and bt.s.
1534 * mips-opc.c: Add dctr and dctw.
1539 * d30v-dis.c (print_insn): Change the way signed constants
1544 * Makefile.in (BFD_H): New variable.
1545 (HFILES): New variable.
1546 (CFILES): Add all C files.
1547 (.dep, .dep1, dep.sed, dep, dep-in): New targets.
1548 Delete old dependencies, and build new ones.
1549 * dep-in.sed: New file.
1553 * m68k-opc.c (m68k_opcode_aliases): Added blo and blo{s,b,w,l}.
1555 start-sanitize-coldfire
1558 * m68k-opc.c (m68k_opcodes): Provide coldfire division module
1561 end-sanitize-coldfire
1564 * mn10200-opc.c: Change "trap" to "syscall".
1565 * mn10300-opc.c: Add new "syscall" instruction.
1569 * m68k-opc.c (m68k_opcodes): Provide correct entries for mulsl and
1570 mulul insns on the coldfire.
1574 * arm-dis.c (print_insn_arm): Don't print instruction bytes.
1575 (print_insn_big_arm): Set bytes_per_chunk and display_endian.
1576 (print_insn_little_arm): Likewise.
1581 * i386-dis.c (fetch_data): Add prototype.
1582 * m68k-dis.c (fetch_data): Add prototype.
1583 (dummy_print_address): Add prototype. Make static.
1584 * ppc-opc.c (valid_bo): Add prototype.
1585 * sparc-dis.c (build_hash_table): Add prototype.
1586 (is_delayed_branch, compute_arch_mask): Add prototypes.
1587 (print_insn_sparc): Make several local variables const.
1588 (compare_opcodes): Change arguments to const PTR. Add prototype.
1589 * sparc-opc.c (arg): Change name field to be const.
1590 (lookup_name, lookup_value): Add prototypes. Change table and
1591 name parameters to be const.
1592 (sparc_encode_asi): Change name parameter to be const.
1593 (sparc_encode_membar, sparc_encode_prefetch): Likewise.
1594 (sparc_encode_sparclet_cpreg): Likewise.
1595 (sparc_decode_asi): Change return type to be const.
1596 (sparc_decode_membar, sparc_decode_prefetch): Likewise.
1597 (sparc_decode_sparclet_cpreg): Likewise.
1601 * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since
1602 Solaris doesn't like the combined options, and the -f is
1604 (stamp-tshlink, install): Likewise.
1608 * mn10300-opc.c (IMM16_PCREL, SD8N_PCREL, D16_SHIFT): Mark these
1613 * m68k-opc.c (m68k_opcodes): Fix last change for the mc68010.
1617 * m68k-opc.c (m68k_opcodes): Added entries for the tst insns on
1622 * m68k-opc.c (m68k_opcodes): Added swbegl pseudo-instruction.
1624 start-sanitize-tic80
1627 * tic80-dis.c (print_insn_tic80): Set info->bytes_per_line to 8.
1631 * tic80-opc.c (tic80_predefined_symbols): Define r25 properly.
1636 * m68k-dis.c (NEXTSINGLE, NEXTDOUBLE, NEXTEXTEND): Use
1637 floatformat_to_double to make portable.
1638 (print_insn_arg): Use NEXTEXTEND macro when extracting extended
1643 * mips-opc.c: Initialize mips_opcodes to mips_builtin_opcodes,
1644 and bfd_mips_num_opcodes to bfd_mips_num_builtin_opcodes.
1648 * d10v-dis.c, d10v-opc.c: Change pre_defined_registers to
1649 d10v_predefined_registers and reg_name_cnt to d10v_reg_name_cnt.
1651 start-sanitize-tic80
1654 * tic80-opc.c (LSI_SCALED): Renamed from this ...
1655 (OFF_SL_BR_SCALED): ... to this, and added the flag
1656 TIC80_OPERAND_BASEREL to the flags word.
1657 (tic80_opcodes): Replace all occurances of LSI_SCALED with
1663 * mips-opc.c: Add macros for cop0, cop1 cop2 and cop3.
1664 Change mips_opcodes from const array to a pointer,
1665 and change bfd_mips_num_opcodes from const int to int,
1666 so that we can increase the size of the mips opcodes table
1669 start-sanitize-tic80
1672 * tic80-opc.c (tic80_predefined_symbols): Revert change to
1673 store BITNUM values in the table in one's complement form
1674 to match behavior when assembler is given a raw numeric
1675 value for a BITNUM operand.
1676 * tic80-dis.c (print_operand_bitnum): Ditto.
1682 * d30v-opc.c: Removed references to FLAG_X.
1687 * Makefile.in: Add dependencies on ../bfd/bfd.h as required.
1692 * Makefile.in: Added d30v object files.
1693 * configure: (bfd_d30v_arch) Rebuilt.
1694 * configure.in: (bfd_d30v_arch) Added new case.
1695 * d30v-dis.c: New file.
1696 * d30v-opc.c: New file.
1697 * disassemble.c (disassembler) Add entry for d30v.
1700 start-sanitize-tic80
1703 * tic80-opc.c (tic80_predefined_symbols): Add symbolic
1704 representations for the floating point BITNUM values.
1708 * tic80-opc.c (tic80_predefined_symbols): Store BITNUM values
1709 in the table in one's complement form, as they appear in the
1711 (tic80_symbol_to_value): Use macros to access predefined
1713 (tic80_value_to_symbol): Ditto.
1714 (tic80_next_predefined_symbol): New function.
1715 * tic80-dis.c (print_operand_bitnum): Remove code that did
1716 one's complement for BITNUM values.
1719 start-sanitize-r5900
1722 * mips-opc.c: bug fix, can't mark insns INSN_5900 and INSN_ISA4
1727 * makefile.vms: Remove 8 bit characters. Update to latest
1732 * m68k-opc.c (m68k_opcodes): Add swbeg pseudo-instruction.
1736 * mn10200-opc.c (IMM16_PCREL): This is a signed operand.
1737 (IMM24_PCREL): Likewise.
1741 * mips-dis.c (print_mips16_insn_arg): Use memaddr - 2 as the base
1742 address for an extended PC relative instruction that is not a
1747 * m68k-dis.c (print_insn_m68k): Set bytes_per_chunk and
1750 start-sanitize-tic80
1753 * tic80-opc.c (tic80_operands): Fix typo '+' -> '|'.
1754 (tic80_opcodes): Sort entries so that long immediate forms
1755 come after short immediate forms, making it easier for
1756 assembler to select the right one for a given operand.
1761 * mips-dis.c (_print_insn_mips): Set bytes_per_chunk and
1763 (print_insn_mips16): Likewise.
1765 start-sanitize-r5900
1768 * mips-opc.c: add r5900.
1771 start-sanitize-tic80
1774 * tic80-opc.c (tic80_symbol_to_value): Changed to accept
1775 a symbol class that restricts translation to just that
1776 class (general register, condition code, etc).
1780 * tic80-opc.c (tic80_operands): Add REG_0_E, REG_22_E,
1781 and REG_DEST_E for register operands that have to be
1782 an even numbered register. Add REG_FPA for operands that
1783 are one of the floating point accumulator registers.
1784 Add TIC80_OPERAND_MASK to flags for ENDMASK operand.
1785 (tic80_opcodes): Change entries that need even numbered
1786 register operands to use the new operand table entries.
1787 Add "or" entries that are identical to "or.tt" entries.
1792 * mips16-opc.c: Add new cases of exit instruction for
1794 * mips-dis.c (print_mips16_insn_arg): Display floating point
1795 registers in operands of exit instruction. Print `$' before
1796 register names in operands of entry and exit instructions.
1798 start-sanitize-tic80
1801 * tic80-opc.c (tic80_predefined_symbols): Table of name/value
1802 pairs for all predefined symbols recognized by the assembler.
1803 Also used by the disassembling routines.
1804 (tic80_symbol_to_value): New function.
1805 (tic80_value_to_symbol): New function.
1806 * tic80-dis.c (print_operand_control_register,
1807 print_operand_condition_code, print_operand_bitnum):
1808 Remove private tables and use tic80_value_to_symbol function.
1813 * d10v-dis.c (print_operand): Change address printing
1814 to correctly handle PC wrapping. Fixes PR11490.
1818 * mn10200-opc.c (mn10200_operands): Make 8 and 16 bit pc-relative
1823 * mips-dis.c (print_insn_mips16): Set insn_info information.
1824 (print_mips16_insn_arg): Likewise.
1826 * mips-dis.c (print_insn_mips16): Better handling of an extend
1827 opcode followed by an instruction which can not be extended.
1831 * m68k-opc.c (m68k_opcodes): Changed operand specifier for the
1832 coldfire moveb instruction to not allow an address register as
1833 destination. Although the documentation does not indicate that
1834 this is invalid, experiments uncovered unexpected behavior.
1835 Added a comment explaining the situation. Thanks to Andreas
1836 Schwab for pointing this out to me.
1838 start-sanitize-tic80
1841 * tic80-opc.c (tic80_opcodes): Expand comment to note that the
1842 entries are presorted so that entries with the same mnemonic are
1843 adjacent to each other in the table. Sort the entries for each
1844 instruction so that this is true.
1849 * m68k-dis.c: Include <libiberty.h>.
1850 (print_insn_m68k): Sort the opcode table on the most significant
1851 nibble of the opcode.
1853 start-sanitize-tic80
1856 * tic80-dis.c (tic80_opcodes): Add "wrcr", "vmpy", "vrnd",
1857 "vsub", "vst", "xnor", and "xor" instructions.
1858 (V_a1): Renamed from V_a, msb of accumulator reg number.
1859 (V_a0): Add macro, lsb of accumulator reg number.
1863 * tic80-dis.c (print_insn_tic80): Broke excessively long
1864 function up into several smaller ones and arranged for
1865 the instruction printing function to be callable recursively
1866 to print vector instructions that have both a load and a
1867 math instruction packed into a single opcode.
1868 * tic80-opc.c (tic80_opcodes): Expand comment for vld opcode
1869 to explain why it comes after the other vector opcodes.
1874 * m68k-opc.c (m68k_opcodes): add b, w, or l specifier to coldfire
1875 move insns to handle immediate operands.
1879 * m68k-opc.c (m68k_opcodes): Delete duplicate entry for "cmpil".
1880 fix operand mask in the "moveml" entries for the coldfire.
1882 start-sanitize-tic80
1885 * tic80-opc.c (V_a, V_m, V_S, V_Z, V_p, OP_V, MASK_V):
1886 New macros for building vector instruction opcodes.
1887 (tic80_opcodes): Remove all uses of FMT_SI, FMT_REG, and
1888 FMT_LI, which were unused. The field is now a flags field.
1889 Remove some opcodes that are possible, but illegal, such
1890 as long immediate instructions with doubles for immediate
1891 values. Add "vadd" and "vld" instructions.
1895 * tic80-opc.c (tic80_operands): Reorder some table entries to make
1896 the order more logical. Move the shift alias instructions ("rotl",
1897 "shl", "ins", "rotr", "extu", "exts", "srl", and "sra" to be
1898 interspersed with the regular sr.x and sl.x instructions. Add
1899 and test new instruction opcodes for "sl", "sli", "sr", "sri", "st",
1900 "sub", "subu", "swcr", and "trap".
1904 * tic80-opc.c (OFF_SS_PC): Renamed from OFF_SS.
1905 (OFF_SL_PC): Renamed from OFF_SL.
1906 (OFF_SS_BR): New operand type for base relative operand.
1907 (OFF_SL_BR): New operand type for base relative operand.
1908 (REG_BASE): New operand type for base register operand.
1909 (tic80_opcodes): Add and test "fmpy", "frndm", "frndn", "frndp",
1910 "frndz", "fsqrt", "fsub", "illop0", "illopF", "ins", "jsr",
1911 "ld", "ld.u", "lmo", "or", "rdcr", "rmo", "rotl", and "rotr"
1913 * tic80-dis.c (print_insn_tic80): Print opcode name with fixed width
1914 10 char field, padded with spaces on rhs, rather than a string
1915 followed by a tab. Use renamed TIC80_OPERAND_PCREL flag bit rather
1916 than old TIC80_OPERAND_RELATIVE. Add support for new
1917 TIC80_OPERAND_BASEREL flag bit.
1921 * tic80-dis.c (print_insn_tic80): Print floating point operands
1923 * tic80-opc.c (SPFI): Add single precision floating point
1924 immediate operand type.
1925 (ROTATE): Add rotate operand type for shifts.
1926 (ENDMASK): Add for shifts.
1927 (n): Macro for the 'n' bit.
1928 (i): Macro for the 'i' bit.
1929 (PD): Macro for the 'PD' field.
1930 (P2): Macro for the 'P2' field.
1931 (P1): Macro for the 'P1' field.
1932 (tic80_opcodes): Add entries for "exts", "extu", "fadd",
1938 * mn10200-dis.c (disassemble): Mask off unwanted bits after
1939 adding in current address for pc-relative operands.
1941 start-sanitize-tic80
1944 * tic80-dis.c (R_SCALED): Add macro to test for ":s" modifier bit.
1945 (print_insn_tic80): If R_SCALED then print ":s" modifier for operand.
1946 * tic80-opc.c (REG0, REG22, REG27, SSOFF, LSOFF): Names
1947 changed to REG_0, REG_22, REG_DEST, OFF_SS, OFF_SL respectively.
1948 (SICR, LICR, REGM_SI, REGM_LI): Names changed to CR_SI, CR_LI,
1949 REG_BASE_M_SI, REG_BASE_M_LI respectively.
1950 (REG_SCALED, LSI_SCALED): New operand types.
1951 (E): New macro for 'E' bit at bit 27.
1952 (tic80_opcodes): Add and test dld, dld.u, dst, estop, and etrap
1953 opcodes, including the various size flavors (b,h,w,d) for
1954 the direct load and store instructions.
1958 * tic80-dis.c (M_SI, M_LI): Add macros to test for ":m" modifier bit
1960 * tic80-dis.c (print_insn_tic80): Change comma and paren handling.
1961 Use M_SI and M_LI macros to check for ":m" modifier for GPR operands.
1962 * tic80-opc.c (tic80_operands): Add REGM_SI and REGM_LI operands.
1963 (F, M_REG, M_LI, M_SI, SZ_REG, SZ_LI, SZ_SI, D, S): New bit-twiddlers.
1964 (MASK_LI_M, MASK_SI_M, MASK_REG_M): Remove and replace in opcode
1965 masks with "MASK_* & ~M_*" to get the M bit reset.
1966 (tic80_opcodes): Add bsr, bsr.a, cmnd, cmp, dcachec, and dcachef.
1970 * tic80-dis.c (print_insn_tic80): Print TIC80_OPERAND_RELATIVE
1971 correctly. Add support for printing TIC80_OPERAND_BITNUM and
1972 TIC80_OPERAND_CC, and TIC80_OPERAND_CR operands in symbolic
1974 * tic80-opc.c (tic80_operands): Add SSOFF, LSOFF, BITNUM,
1975 CC, SICR, and LICR table entries.
1976 (tic80_opcodes): Add and test "nop", "br", "bbo", "bbz",
1977 "bcnd", and "brcr" opcodes.
1982 * ppc-opc.c (powerpc_operands): Make comment match the
1983 actual fields (no shift field).
1984 * sparc-opc.c (sparc_opcodes): Document why this cannot be "const".
1985 start-sanitize-tic80
1986 * tic80-dis.c (print_insn_tic80): Replace abort stub with a
1987 partial implementation, work in progress.
1988 * tic80-opc.c (tic80_operands): Begin construction operands table.
1989 (tic80_opcodes): Continue populating opcodes table and start
1990 filling in the operand indices.
1991 (tic80_num_opcodes): Add this.
1996 * m68k-opc.c: Add #B case for moveq.
2000 * mn10300-dis.c (disassemble): Make sure all variables are initialized
2001 before they are used.
2005 * v850-opc.c (v850_opcodes): Put curly-braces around operands
2006 for "breakpoint" instruction.
2010 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
2011 (dep): Use ALL_CFLAGS rather than CFLAGS.
2015 * v850-opc.c (D8_{6,7}): Set V850_OPERAND_ADJUST_SHORT_MEMORY
2020 * Makefile.in (m68k-opc.o, alpha-opc.o): Remove dis-asm.h dependency.
2021 start-sanitize-tic80
2022 (tic80-dis.o, tic80-opc.o): Add rules per comment in Makefile.in.
2027 * mips16-opc.c: Add "abs".
2029 start-sanitize-tic80
2032 * Makefile.in (ALL_MACHINES): Add tic80-dis.o and tic80-opc.o.
2033 * disassemble.c (ARCH_tic80): Define if ARCH_all is defined.
2034 (disassembler): Add bfd_arch_tic80 support to set disassemble
2035 to print_insn_tic80.
2036 * tic80-dis.c (print_insn_tic80): Add stub.
2040 * configure.in (arch in $selarchs): Add bfd_tic80_arch entry.
2041 * configure: Regenerate with autoconf.
2042 * tic80-dis.c: Add file.
2043 * tic80-opc.c: Add file.
2048 * d10v-opc.c (pre_defined_registers): Add cr[0-15], dpc, dpsw, link.
2052 * mn10200-opc.c (mn10200_operands): Add SIMM16N.
2053 (mn10200_opcodes): Use it for some logicals and btst insns.
2054 Add "break" and "trap" instructions.
2056 * mn10300-opc.c (mn10300_opcodes): Add "break" instruction.
2058 * mn10200-opc.c: Add pseudo-ops for "mov (an),am" and "mov an,(am)".
2062 * mips-dis.c (print_mips16_insn_arg): The base address of a PC
2063 relative load or add now depends upon whether the instruction is
2068 * mn10200-dis.c: Finish writing disassembler.
2069 * mn10200-opc.c (mn10200_opcodes): Fix mask for "mov imm8,dn".
2070 Fix mask for "jmp (an)".
2072 * mn10300-dis.c (disassemble, print_insn_mn10300): Corrently
2073 handle endianness issues for mn10300.
2075 * mn10200-opc.c (mn10200_opcodes): Fix operands for "movb dm,(an)".
2079 * mn10200-opc.c (mn10200_opcodes): "mov imm8,d0" is a format 2
2080 instruction. Fix opcode field for "movb (imm24),dn".
2082 * mn10200-opc.c (mn10200_operands): Fix insertion position
2087 * mn10200-opc.c: Create mn10200 opcode table.
2088 * mn10200-dis.c: Flesh out mn10200 disassembler. Not ready,
2089 but moving along nicely.
2093 * Makefile.in (ALL_MACHINES): Add mips16-opc.o.
2097 * m68k-opc.c (m68k_opcodes): Revert change to use < and >
2098 specifiers for fmovem* instructions.
2102 * mn10300-dis.c (disassemble): Remove '$' register prefixing.
2106 * mips16-opc.c: Change opcode for entry/exit to avoid conflicting
2111 * mn10300-opc.c: Add some comments explaining the various
2114 * mn10300-dis.c (disassemble): Fix minor gcc -Wall warnings.
2118 * m68k-dis.c (print_insn_arg): Handle new < and > operand
2121 * m68k-opc.c (m68k_opcodes): Simplify table by using < and >
2122 operand specifiers in fmovm* instructions.
2126 * ppc-opc.c (insert_li): Give an error if the offset has the two
2127 least significant bits set.
2131 * mips-dis.c (print_insn_mips16): Separate the instruction from
2132 the arguments with a tab, not a space.
2136 * mn10300-dis.c (disasemble): Finish conversion to '$' as
2139 * mn10300-opc.c (mn10300_opcodes): Fix mask field for
2144 * configure: Rebuild with autoconf 2.12.
2146 Add support for mips16 (16 bit MIPS implementation):
2147 * mips16-opc.c: New file.
2148 * mips-dis.c: Include "elf-bfd.h" and "elf/mips.h".
2149 (mips16_reg_names): New static array.
2150 (print_insn_big_mips): Use print_insn_mips16 in 16 bit mode or
2151 after seeing a 16 bit symbol.
2152 (print_insn_little_mips): Likewise.
2153 (print_insn_mips16): New static function.
2154 (print_mips16_insn_arg): New static function.
2155 * mips-opc.c: Add jalx instruction.
2156 * Makefile.in (mips16-opc.o): New target.
2157 * configure.in: Use mips16-opc.o for bfd_mips_arch.
2158 * configure: Rebuild.
2162 * m68k-opc.c (m68k_opcodes): Simplify table by using < and >
2163 operand specifiers in *save, *restore and movem* instructions.
2165 * m68k-opc.c (m68k_opcodes): Fix move and movem instructions for
2168 * m68k-opc.c (m68k_opcodes): The coldfire (mcf5200) can only use
2169 register operands for immediate arithmetic, not, neg, negx, and
2170 set according to condition instructions.
2172 * m68k-opc.c (m68k_opcodes): Consistantly Use "s" as the storage
2173 specifier of the effective-address operand in immediate forms of
2174 arithmetic instructions. The specifier for the immediate operand
2175 notes how and where the constant will be stored.
2179 * mn10300-opc.c (mn10300_opcodes): Remove redundant "lcc"
2182 * mn10300-dis.c (disassemble): Use '$' instead of '%' for
2185 * mn10300-dis.c (disassemble): Prefix registers with '%'.
2189 * mn10300-dis.c (disassemble): Handle register lists.
2191 * mn10300-opc.c: Fix handling of register list operand for
2192 "call", "ret", and "rets" instructions.
2194 * mn10300-dis.c (disassemble): Print PC-relative and memory
2195 addresses symbolically if possible.
2196 * mn10300-opc.c: Distinguish between absolute memory addresses,
2197 pc-relative offsets & random immediates.
2199 * mn10300-dis.c (print_insn_mn10300): Fix fetch of last byte
2201 (disassemble): Handle SPLIT and EXTENDED operands.
2205 * mn10300-dis.c: Rough cut at printing some operands.
2207 * mn10300-dis.c: Start working on disassembler support.
2208 * mn10300-opc.c (mn10300_opcodes): Fix masks on several insns.
2210 * mn10300-opc.c (mn10300_operands): Add "REGS" for a register
2212 (mn10300_opcodes): Use REGS for register list in "movm" instructions.
2216 * d10v-opc.c (d10v_opcodes): Add3 sets the carry.
2220 * mn10300-opc.c (mn10300_opcodes): Demand parens around
2221 register argument is calls and jmp instructions.
2225 * mn10300-opc.c (mn10300_opcodes): Use DN01 for putx and
2226 getx operand. Fix opcode for mulqu imm,dn.
2230 * mn10300-opc.c (mn10300_operands): Hijack "bits" field
2231 in MN10300_OPERAND_SPLIT operands for how many bits
2232 appear in the basic insn word. Add IMM32_HIGH24,
2233 IMM32_HIGH24_LOWSHIFT8, IMM8E_SHIFT8.
2234 (mn10300_opcodes): Use new operands as needed.
2236 * mn10300-opc.c (mn10300_operands): Add IMM32_LOWSHIFT8
2237 for bset, bclr, btst instructions.
2238 (mn10300_opcodes): Use new IMM32_LOWSHIFT8 as needed.
2240 * mn10300-opc.c (mn10300_operands): Remove many redundant
2241 operands. Update opcode table as appropriate.
2242 (IMM32): Add MN10300_OPERAND_SPLIT flag.
2243 (mn10300_opcodes): Fix single bit error in mov imm32,dn insn.
2247 * mn10300-opc.c (mn10300_operands): Add DN2, DM2, AN2, AM2
2248 operands (for indexed load/stores). Fix bitpos for DI
2249 operand. Add SN8N_SHIFT8, IMM8_SHIFT8, and D16_SHIFT for the
2250 few instructions that insert immediates/displacements in the
2251 middle of the instruction. Add IMM8E for 8 bit immediate in
2252 the extended part of an instruction.
2253 (mn10300_operands): Use new opcodes as appropriate.
2257 * d10v-opc.c (d10v_opcodes): Declare the trap instruction
2258 sequential so the assembler never parallelizes it with
2263 * mn10300-opc.c (mn10300_operands): Add DN01 and AN01 for
2264 a data/address register that appears in register field 0
2265 and register field 1.
2266 (mn10300_opcodes): Use DN01 and AN01 for mov/cmp imm8,DN/AN
2270 * alpha-dis.c (print_insn_alpha): Use new NOPAL mask for
2271 standard disassembly.
2273 * alpha-opc.c (alpha_operands): Rearrange flags slot.
2274 (alpha_opcodes): Add new BWX, CIX, and MAX instructions.
2275 Recategorize PALcode instructions.
2279 * v850-opc.c (v850_opcodes): Add relaxing "jbr".
2283 * mips-dis.c (_print_insn_mips): Don't print a trailing tab if
2284 there are no operand types.
2288 * v850-opc.c (D9_RELAX): Renamed from D9, all references
2290 (v850_operands): Make sure D22 immediately follows D9_RELAX.
2294 * i386-dis.c (print_insn_x86): Set info->bytes_per_line to 5.
2298 * v850-opc.c (insert_d8_6): Fix operand insertion for sld.w
2299 and sst.w instructions.
2301 * v850-opc.c (v850_opcodes): Add "jCC" instructions (aliases for
2306 * mips-dis.c (_print_insn_mips): Use a tab between the instruction
2311 * ppc-opc.c (PPCPWR2): Define.
2312 (powerpc_opcodes): Use PPCPWR2 for fsqrt, rather than duplicating
2317 * mn10300-opc.c (mn10300_opcodes): Fix typo in opcode
2318 field for movhu instruction.
2320 * v850-dis.c (disassemble): For V850_OPERAND_SIGNED operands,
2321 cast value to "long" not "signed long" to keep hpux10
2326 * mn10300-opc.c (mn10300_opcodes): Fix typo in opcode field
2329 * mn10300-opc.c (FMT*): Remove definitions.
2331 * mn10300-opc.c (mn10300_opcodes): Fix destination register
2332 for shift-by-register opcodes.
2334 * mn10300-opc.c (mn10300_operands): Break DN, DM, AN, AM
2335 into [AD][MN][01] for encoding the position of the register
2340 * mn10300-opc.c (mn10300_opcodes): Add "extended" instructions,
2341 "putx", "getx", "mulq", "mulqu", "sat16", "sat24", "bsch".
2345 * mn10300-opc.c (mn10300_operands): Remove "REGS" operand.
2346 Fix various typos. Add "PAREN" operand.
2347 (MEM, MEM2): Define.
2348 (mn10300_opcodes): Surround all memory addresses with "PAREN"
2349 operands. Fix several typos.
2351 * mn10300-opc.c (mn10300_opcodes): Fix typos in yesterday's
2356 * mn10300-opc.c (FMT_XX): Renumber starting at one.
2357 (mn10300_operands): Rough cut. Enough to parse "mov" instructions
2359 (mn10300_opcodes): Break opcode format out into its own field.
2360 Update many operand fields to deal with signed vs unsigned
2361 issues. Fix one or two typos in the "mov" instruction
2362 opcode, mask and/or operand fields.
2366 * m68k-opc.c (plusha): Prefer encoding for m68040up, in case
2367 m68851 wasn't reset.
2371 * mn10300-opc.c (mn10300_opcodes): Add opcode & masks for
2372 all opcodes. Very rough cut at operands for all opcodes.
2374 * mn10300-opc.c (mn10300_opcodes): Start fleshing out the
2379 * mn10200-opc.c, mn10300-opc.c: New files.
2380 * mn10200-dis.c, mn10300-dis.c: New files.
2381 * mn10x00-opc.c, mn10x00-dis.c: Deleted.
2382 * disassemble.c: Break mn10x00 support into 10200 and 10300
2384 * configure.in: Likewise.
2385 * configure: Rebuilt.
2389 * Makefile.in (MOSTLYCLEAN): Move config.log to distclean.
2393 * mn10x00-opc.c, mn10x00-dis.c: New files for Matsushita
2395 * disassemble (ARCH_mn10x00): Define.
2396 (disassembler): Handle bfd_arch_mn10x00.
2397 * configure.in: Recognize bfd_mn10x00_arch.
2398 * configure: Rebuilt.
2402 * i386-dis.c (op_rtn): Change to be a pointer. Adjust uses
2403 accordingly. Don't declare functions using op_rtn.
2407 * v850-dis.c (disassemble): Add memaddr argument. Re-arrange
2408 params to be more standard.
2409 * (disassemble): Print absolute addresses and symbolic names for
2410 branch and jump targets.
2411 * v850-opc.c (v850_operand): Add displacement flag to 9 and 22
2413 * (v850_opcodes): Add breakpoint insn.
2417 * m68k-opc.c: Move the fmovemx data register cases before the
2418 other cases, so that they get recognized before the data register
2419 does gets treated as a degenerate register list.
2423 * mips-opc.c: Add a case for "div" and "divu" with two registers
2424 and a destination of $0.
2428 * mips-dis.c (print_insn_arg): Add prototype.
2429 (_print_insn_mips): Ditto.
2433 * mips-dis.c (print_insn_arg): Print condition code registers as
2438 * sparc-opc.c (sparc_opcodes): Add setuw, setsw, setx.
2442 * v850-dis.c (disassemble): Make static. Provide prototype.
2446 * v850-opc.c (insert_d9, insert_d22): Fix boundary case
2451 * v850-dis.c (disassemble): Handle insertion of ',', '[' and
2452 ']' characters into the output stream.
2453 * v850-opc.c (v850_opcodes: Remove size field from all opcodes.
2454 Add "memop" field to all opcodes (for the disassembler).
2455 Reorder opcodes so that "nop" comes before "mov" and "jr"
2456 comes before "jarl".
2458 * v850-dis.c (print_insn_v850): Fix typo in last change.
2460 * v850-dis.c (print_insn_v850): Properly handle disassembling
2461 a two byte insn at the end of a memory region when the memory
2462 region's size is only two byte aligned.
2464 * v850-dis.c (v850_cc_names): Fix stupid thinkos.
2466 * v850-dis.c (v850_reg_names): Define.
2467 (v850_sreg_names, v850_cc_names): Likewise.
2468 (disassemble): Very rough cut at printing operands (unformatted).
2470 * v850-opc.c (BOP_MASK): Fix.
2471 (v850_opcodes): Fix mask for jarl and jr.
2473 * v850-dis.c: New file. Skeleton for disassembler support.
2474 * Makefile.in Remove v850 references, they're not needed here.
2475 * configure.in: Add v850-dis.o when building v850 toolchains.
2476 * configure: Rebuilt.
2477 * disassemble.c (disassembler): Call v850 disassembler.
2479 * v850-opc.c (insert_d8_7, extract_d8_7): New functions.
2480 (insert_d8_6, extract_d8_6): New functions.
2481 (v850_operands): Rename D7S to D7; operand for D7 is unsigned.
2482 Rename D8 to D8_7, use {insert,extract}_d8_7 routines.
2484 (IF4A, IF4B): Use "D7" instead of "D7S".
2485 (IF4C, IF4D): Use "D8_7" instead of "D8".
2486 (IF4E, IF4F): New. Use "D8_6".
2487 (v850_opcodes): Use IF4A/IF4B for sld.b/sst.b. Use IF4C/IF4D for
2488 sld.h/sst.h. Use IF4E/IF4F for sld.w/sst.w.
2490 * v850-opc.c (insert_d16_15, extract_d16_15): New functions.
2491 (v850_operands): Change D16 to D16_15, use special insert/extract
2492 routines. New new D16 that uses the generic insert/extract code.
2493 (IF7A, IF7B): Use D16_15.
2494 (IF7C, IF7D): New. Use D16.
2495 (v850_opcodes): Use IF7C and IF7D for ld.b and st.b.
2497 * v850-opc.c (insert_d9, insert_d22): Slightly improve error
2498 message. Issue an error if the branch offset is odd.
2500 * v850-opc.c: Add notes about needing special insert/extract
2501 for all the load/store insns, except "ld.b" and "st.b".
2503 * v850-opc.c (insert_d22, extract_d22): New functions.
2504 (v850_operands): Use insert_d22 and extract_d22 for
2506 (insert_d9): Fix range check.
2510 * v850-opc.c (v850_operands): Add V850_OPERAND_SIGNED flag
2511 and set bits field to D9 and D22 operands.
2515 * v850-opc.c (v850_operands): Define SR2 operand.
2516 (v850_opcodes): "ldsr" uses R1,SR2.
2518 * v850-opc.c (v850_opcodes): Fix opcode specs for
2519 sld.w, sst.b, sst.h, sst.w, and nop.
2523 * v850-opc.c (v850_opcodes): Add null opcode to mark the
2524 end of the opcode table.
2528 * d10v-opc.c (pre_defined_registers): Added register pairs,
2529 "r0-r1", "r2-r3", etc.
2533 * v850-opc.c (v850_operands): Make I16 be a signed operand.
2534 Create I16U for an unsigned 16bit mmediate operand.
2535 (v850_opcodes): Use I16U for "ori", "andi" and "xori".
2537 * v850-opc.c (v850_operands): Define EP operand.
2538 (IF4A, IF4B, IF4C, IF4D): Use EP.
2540 * v850-opc.c (v850_opcodes): Fix opcode numbers for "mov"
2541 with immediate operand, "movhi". Tweak "ldsr".
2543 * v850-opc.c (v850_opcodes): Get ld.[bhw] and st.[bhw]
2544 correct. Get sld.[bhw] and sst.[bhw] closer.
2546 * v850-opc.c (v850_operands): "not" is a two byte insn
2548 * v850-opc.c (v850_opcodes): Correct bit pattern for setf.
2550 * v850-opc.c (v850_operands): D16 inserts at offset 16!
2552 * v850-opc.c (two): Get order of words correct.
2554 * v850-opc.c (v850_operands): I16 inserts at offset 16!
2556 * v850-opc.c (v850_operands): Add "SR1" and "SR2" for system
2557 register source and destination operands.
2558 (v850_opcodes): Use SR1 and SR2 for "ldsr" and "stsr".
2560 * v850-opc.c (v850_opcodes): Fix thinko in "jmp" opcode. Fix
2561 same thinko in "trap" opcode.
2563 * v850-opc.c (v850_opcodes): Add initializer for size field
2566 * v850-opc.c (v850_operands): D6 -> DS7. References changed.
2567 Add D8 for 8-bit unsigned field in short load/store insns.
2568 (IF4A, IF4D): These both need two registers.
2569 (IF4C, IF4D): Define. Use 8-bit unsigned field.
2570 (v850_opcodes): For "sld.h", "sld.w", "sst.h", "sst.w", use
2571 IF4C & IF4D. For "trap" use I5U, not I5. Add IF1 operand
2572 for "ldsr" and "stsr".
2573 * v850-opc.c (v850_operands): 3-bit immediate for bit insns
2576 * v850-opc.c (v850_opcodes): Correct short store half (sst.h) and
2577 short store word (sst.w).
2581 * v850-opc.c (v850_operands): Added insert and extract fields,
2582 pointers to functions that handle unusual operand encodings.
2586 * v850-opc.c (v850_opcodes): Enable "trap".
2588 * v850-opc.c (v850_opcodes): Fix order of displacement
2589 and register for "set1", "clr1", "not1", and "tst1".
2593 * v850-opc.c (v850_operands): Add "B3" support.
2594 (v850_opcodes): Fix and enable "set1", "clr1", "not1"
2597 * v850-opc.c (v850_opcodes): "jmp" has only an R1 operand.
2599 * v850-opc.c: Close unterminated comment.
2603 * v850-opc.c (v850_operands): Add flags field.
2604 (v850_opcodes): add move opcodes.
2608 * Makefile.in (ALL_MACHINES): Add v850-opc.o.
2609 * configure: (bfd_v850v_arch) Add new case.
2610 * configure.in: (bfd_v850_arch) Add new case.
2611 * v850-opc.c: New file.
2615 * sparc-dis.c (print_insn_sparc): Handle little endian sparcs.
2619 * d10v-opc.c: Add additional information to the opcode
2620 table to help determinine which instructions can be done
2625 * mpw-make.sed: Update editing of include pathnames to be
2630 * arm-opc.h: Added "bx" instruction definition.
2634 * alpha-opc.c (EV4EXTHWINDEX): Field width should be 8 not 5.
2638 * d10v-opc.c (d10v_opcodes): Minor fixes to addi and bl.l.
2642 * d10v-opc.c (d10v_opcodes): Correct 'mv' unit entry to EITHER.
2646 * makefile.vms: Update for alpha-opc changes.
2650 * i386-dis.c (print_insn_i386): Actually return the correct value.
2651 (ONE, OP_ONE): #ifdef out; not used.
2655 * d10v-opc.c (d10v_opcodes): Added 2 accumulator sub instructions.
2656 Changed subi operand type to treat 0 as 16.
2660 * m68k-opc.c: Add cpushl for the mcf5200. From Ken Rose
2665 * arm-opc.h: (arm_opcodes): Added halfword and sign-extension
2666 memory transfer instructions. Add new format string entries %h and %s.
2667 * arm-dis.c: (print_insn_arm): Provide decoding of the new
2672 * d10v-opc.c (d10v_operands): Added UNUM4S; a 4-bit accumulator shift.
2673 (d10v_opcodes): Modified accumulator shift instructions to use UNUM4S.
2677 * alpha-dis.c (print_insn_alpha_osf): Remove.
2678 (print_insn_alpha_vms): Remove.
2679 (print_insn_alpha): Make globally visible. Chose the register
2680 names based on info->flavour.
2681 * disassemble.c: Always return print_insn_alpha for the alpha.
2685 * d10v-dis.c (dis_long): Handle unknown opcodes.
2689 * d10v-opc.c: Changes to support signed and unsigned numbers.
2690 All instructions with the same name that have long and short forms
2691 now end in ".l" or ".s". Divs added.
2692 * d10v-dis.c: Changes to support signed and unsigned numbers.
2696 * d10v-dis.c: Change all functions to use info->print_address_func.
2700 * m68k-opc.c (m68k_opcodes): Make opcode masks for the ColdFire
2701 move ccr/sr insns more strict so that the disassembler only
2702 selects them when the addressing mode is data register.
2705 * d10v-opc.c (pre_defined_registers): Declare.
2706 * d10v-dis.c (print_operand): Now uses pre_defined_registers
2707 to pick a better name for the registers.
2711 * sparc-opc.c: Fix opcode values for fpack16, and fpackfix. Fix
2712 operands for fexpand and fpmerge. From Christian Kuehnke
2717 * alpha-dis.c (print_insn_alpha): No longer the user-visible
2718 print routine. Take new regnames and cpumask arguments.
2719 Kill the environment variable nonsense.
2720 (print_insn_alpha_osf): New function. Do OSF/1 style regnames.
2721 (print_insn_alpha_vms): New function. Do VMS style regnames.
2722 * disassemble.c (disassembler): Test bfd flavour to pick
2723 between OSF and VMS routines. Default to OSF.
2727 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
2728 * configure: Rebuild.
2729 * Makefile.in (install): Use @INSTALL_SHLIB@.
2733 * configure: (bfd_d10v_arch) Add new case.
2734 * configure.in: (bfd_d10v_arch) Add new case.
2735 * d10v-dis.c: New file.
2736 * d10v-opc.c: New file.
2737 * disassemble.c (disassembler) Add entry for d10v.
2741 * m68k-opc.c (m68k_opcodes): Fix bugs in coldfire insns relating
2742 to bcc, trapfl, subxl, and wddata discovered by Andreas Schwab.
2746 * i386-dis.c: Get rid of print_insn_i8086. Use info.mach to
2747 distinguish between variants of the instruction set.
2748 * sparc-dis.c: Get rid of print_insn_sparclite. Use info.mach to
2749 distinguish between variants of the instruction set.
2753 * i386-dis.c (print_insn_i8086): New routine to disassemble using
2754 the 8086 instruction set.
2755 * i386-dis.c: General cleanups. Make most things static. Add
2756 prototypes. Get rid of static variables aflags and dflags. Pass
2757 them as args (to almost everything).
2761 * h8300-dis.c (bfd_h8_disassemble): Handle macregs in ldmac insns.
2763 * h8300-dis.c (bfd_h8_disassemble): Handle "ldm.l" and "stm.l".
2765 * h8300-dis.c (bfd_h8_disassemble): "abs" is implicitly two
2766 if the next arg is marked with SRC_IN_DST. Gross.
2768 * h8300-dis.c (bfd_h8_disassemble): Print "exr" when
2769 we're looking for and find EXR.
2771 * h8300-dis.c (bfd_h8_disassemble): We don't have a match
2772 if we're looking for KBIT and we don't find it.
2774 * h8300-dis.c (bfd_h8_disassemble): Mask off unwanted bits
2777 * h8300-dis.c (bfd_h8_disassemble): Don't set plen for
2778 3bit immediate operands.
2782 * Released binutils 2.7.
2784 * alpha-opc.c: Add new case of "mov". From Klaus Kaempf
2789 * alpha-opc.c: Correct second case of "mov" to use OPRL.
2793 * sparc-dis.c (print_insn_sparclite): New routine to print
2794 sparclite instructions.
2798 * m68k-opc.c (m68k_opcodes): Add coldfire support.
2802 * sparc-opc.c (asi_table): Add #ASI_N, #ASI_N_L, #ASI_NUCLEUS,
2803 #ASI_NUCLEUS_LITTLE. Rename #ASI_AS_IF_USER_{PRIMARY,SECONDARY}_L
2804 to #ASI_AS_IF_USER_{PRIMARY,SECONDARY}_LITTLE.
2808 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
2809 Use autoconf-set values.
2810 (docdir, oldincludedir): Removed.
2811 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
2815 * alpha-opc.c: New file.
2816 * alpha-opc.h: Remove.
2817 * alpha-dis.c: Complete rewrite to use new opcode table.
2818 * configure.in: For bfd_alpha_arch, use alpha-opc.o.
2819 * configure: Rebuild with autoconf 2.10.
2820 * Makefile.in (ALL_MACHINES): Add alpha-opc.o.
2821 (alpha-dis.o): Depend upon $(INCDIR)/opcode/alpha.h, not
2823 (alpha-opc.o): New target.
2827 * sparc-dis.c (print_insn_sparc): Remove unused local variable i.
2828 Set imm_added_to_rs1 even if the source and destination register
2831 * sparc-opc.c: Add some two operand forms of the wr instruction.
2835 * h8300-dis.c (bfd_h8_disassemble): Rename "hmode" argument
2838 * disassemble.c (disassembler): Handle H8/S.
2839 * h8300-dis.c (print_insn_h8300s): New function for H8/S.
2843 * sparc-opc.c: Add beq/teq as aliases for be/te.
2845 * ppc-opc.c: Fix fcmpo opcode. From Sergei Steshenko
2850 * makefile.vms: New file.
2852 * alpha-dis.c (print_insn_alpha): Print lda ra,lit(rz) as mov.
2856 * h8300-dis.c (bfd_h8_disassemble): Always print ABS8MEM with :8,
2861 * i386-dis.c (OP_OFF): Call append_prefix.
2865 * ppc-opc.c (instruction encoding macros): Add explicit casts to
2866 unsigned long to silence a warning from the Solaris PowerPC
2871 * sparc-opc.c (sparc_opcodes): Add ultrasparc vis extensions.
2875 * sparc-dis.c (X_IMM,X_SIMM): New macros.
2877 (print_insn_sparc): Merge cases i,I,j together. New cases X,Y.
2878 * sparc-opc.c (sparc_opcodes): Use X for 5 bit shift constants,
2879 Y for 6 bit shift constants. Rewrite entries for crdcxt, cwrcxt,
2880 cpush, cpusha, cpull sparclet insns.
2884 * sparc-dis.c (compute_arch_mask): Replace ANSI style def with K&R.
2888 * sparc-opc.c: Set F_FBR on floating point branch instructions.
2889 Set F_FLOAT on other floating point instructions.
2893 * ppc-opc.c (PPC860): Macro for 860/821 specific instructions and
2895 (powerpc_opcodes): Add 860/821 specific SPRs.
2899 * configure.in: Permit --enable-shared to specify a list of
2900 directories. Set and substitute BFD_PICLIST.
2901 * configure: Rebuild.
2902 * Makefile.in (BFD_PICLIST): Rename from BFD_LIST. Change all
2903 uses. Set to @BFD_PICLIST@.
2907 * h8300-dis.c (bfd_h8_disassemble): Use "bit" for L_3 immediates,
2908 not "abs", which may be needed for the absolute in something
2909 like btst #0,@10:8. Print L_3 immediates separately from other
2910 immediates. Change ABSMOV reference to ABS8MEM.
2914 * sparc-dis.c (opcodes_initialized): Move inside print_insn_sparc.
2915 (current_arch_mask): New static global.
2916 (compute_arch_mask): New static function.
2917 (print_insn_sparc): Delete sparc_v9_p. New static local
2918 current_mach. Resort opcode table if current_mach changes.
2919 Generalize "insn not supported" test.
2920 (compare_opcodes): Prefer supported opcodes to nonsupported ones.
2921 Delete test for v9/!v9.
2922 * sparc-opc.c (MASK_*): Use SPARC_OPCODE_ARCH_MASK.
2924 (brfc): Split into CBR and FBR for coprocessor/fp branches.
2925 (brfcx): Renamed to FBRX.
2926 (condfc): Renamed to CONDFC. Pass v6notlet to CBR (standard
2927 coprocessor mnemonics are not supported on the sparclet).
2928 (condf): Renamed to CONDF.
2929 (SLCBCC2): Delete F_ALIAS flag.
2933 * sparc-opc.c (sparc_opcodes): rd must be 0 for
2934 mov foo,{%y,%psr,%wim,%tbr}. Support mov foo,%asrX.
2938 * Makefile.in (config.status): Depend upon BFD VERSION file, so
2939 that the shared library version number is set correctly.
2943 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
2945 * configure: Rebuild.
2949 * z8kgen.c (internal, gas): Call xmalloc rather than unchecked
2954 * configure: Rebuild with autoconf 2.8.
2958 * sparc-dis.c (print_insn_sparc): Handle 'O' operand char like 'r'.
2959 * sparc-opc.c (sparc_opcodes): Use 'O' operand char for `neg reg'.
2963 * configure.in: Don't set SHLIB or SHLINK to an empty string,
2964 since they appear as targets in Makefile.in.
2965 * configure: Rebuild.
2969 * mpw-make.sed: Edit out shared library support bits.
2973 * sparc-opc.c (v8,v6notv9): Add MASK_SPARCLET.
2974 (sparc_opcode_archs): Add MASK_V8 to sparclet entry.
2975 (sparc_opcodes): Add sparclet insns.
2976 (sparclet_cpreg_table): New static local.
2977 (sparc_{encode,decode}_sparclet_cpreg): New functions.
2978 * sparc-dis.c (print_insn_sparc): Handle sparclet cpregs.
2982 * i386-dis.c (index16): New static variable.
2983 (putop): Print jecxz for 32 bit case, jcxz for 16 bit, not the
2985 (OP_indirE): Return result of OP_E.
2986 (OP_E): Check for 16 bit addressing mode, and disassemble
2987 correctly. Optimised 32 bit case a little. Don't print
2988 "(base,index,scale)" when sib specifies only an offset.
2992 * configure.in: Set and substitute SHLIB_DEP.
2993 * configure: Rebuild.
2994 * Makefile.in (SHLIB_DEP): New variable.
2995 (LIBIBERTY_LISTS, BFD_LIST): New variables.
2996 (stamp-piclist): Depend upon LIBIBERTY_LISTS and BFD_LIST. If
2997 COMMON_SHLIB, add them to piclist with appropriate modifications.
2998 ($(SHLIB)): Depend upon $(SHLIB_DEP). Don't check COMMON_SHLIB
2999 here: just use piclist.
3003 * sparc-dis.c (MASK_V9,V9_ONLY_P,V9_P): Define.
3004 (print_insn_sparc): Rewrite v9/not-v9 tests.
3005 (compare_opcodes): Likewise.
3006 * sparc-opc.c (MASK_<ARCH>): Define.
3007 (v6,v7,v8,sparclite,v9,v9a): Redefine.
3008 (sparclet,v6notv9): Define.
3009 (sparc_opcode_archs): Delete member `conflicts'. Add `supported'.
3010 (sparc_opcodes): Delete F_NOTV9, use v6notv9 instead.
3014 * configure.in: Call AC_PROG_CC before configure.host.
3015 * configure: Rebuild.
3017 * Makefile.in (SONAME): Remove leading ../bfd/ from $(SHLIB).
3021 * i386-dis.c (onebyte_has_modrm): New static array.
3022 (twobyte_has_modrm): New static array.
3023 (print_insn_i386): Only fetch the mod/reg/rm byte if it is needed.
3027 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
3032 * ppc-opc.c (PPC): Undef, so default defination on Windows NT
3037 * m68k-opc.c (m68k_opcodes): The bkpt instruction is supported on
3038 m68010up, not just m68020up | cpu32.
3040 * Makefile.in (SONAME): New variable.
3041 ($(SHLINK)): Make a link to the transformed name, as well.
3042 (stamp-tshlink): New target.
3043 (install): Skip stamp-tshlink during install.
3047 * configure.in: Call AC_ARG_PROGRAM.
3048 * configure: Rebuild.
3049 * Makefile.in (program_transform_name): New variable.
3050 (install): Transform library name before installing it.
3054 * i960-dis.c (mem): Add HX dcinva instruction.
3056 Support for building as a shared library, based on patches from
3058 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
3059 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
3060 SHLIB_CFLAGS, COMMON_SHLIB, SHLINK.
3061 * configure: Rebuild.
3062 * Makefile.in (ALLLIBS): New variable.
3063 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
3064 (COMMON_SHLIB, SHLINK): New variables.
3065 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
3066 (STAGESTUFF): Remove variable.
3067 (all): Depend upon $(ALLLIBS) rather than $(TARGETLIB).
3068 (stamp-piclist, piclist): New targets.
3069 ($(SHLIB), $(SHLINK)): New targets.
3070 ($(OFILES)): Depend upon stamp-picdir.
3071 (disassemble.o): Build twice if PICFLAG is set.
3072 (MOSTLYCLEAN): Add pic/*.o.
3073 (clean): Remove $(SHLIB), $(SHLINK), piclist, and stamp-piclist.
3074 (distclean): Remove pic and stamp-picdir.
3075 (install): Install shared libraries.
3076 (stamp-picdir): New target.
3080 * sparc-dis.c (print_insn_sparc): Delete DISASM_RAW_INSN support.
3081 Print unknown instruction as "unknown", rather than in hex.
3085 * dis-buf.c: Include "sysdep.h" before "dis-asm.h".
3089 * sparc-opc.c (sparc_opcode_archs): Mark v8/sparclite as conflicting.
3093 * i386-dis.c (print_insn_i386): Only fetch the mod/reg/rm byte
3094 when necessary. From Ulrich Drepper
3099 * sparc-dis.c (print_insn_sparc): NUMOPCODES replaced with
3100 sparc_num_opcodes. Update architecture enum values.
3101 * sparc-opc.c (sparc_opcode_archs): Replaces architecture_pname.
3102 (sparc_opcode_lookup_arch): New function.
3103 (sparc_num_opcodes): Renamed from bfd_sparc_num_opcodes.
3104 (sparc_opcodes): Add v9a shutdown insn.
3108 * sparc-dis.c (print_insn_sparc): Renamed from print_insn.
3109 If DISASM_RAW_INSN, print insn in hex. Handle v9a as opcode
3111 (print_insn_sparc64): Deleted.
3112 * disassemble.c (disassembler, case bfd_arch_sparc): Always use
3115 * sparc-opc.c (architecture_pname): Add v9a.
3119 * alpha-opc.h (alpha_insn_set): VAX floating point opcode was
3120 incorrectly defined as 0x16 when it should be 0x15.
3121 (FLOAT_FORMAT_MASK): function code is 11 bits, not just 7 bits!
3122 (alpha_insn_set): added cvtst and cvttq float ops. Also added
3123 excb (exception barrier) which is defined in the Alpha
3124 Architecture Handbook version 2.
3125 * alpha-dis.c (print_insn_alpha): Fixed special-case decoding for
3126 OPERATE_FORMAT_CODE type instructions. The bug caused mulq to be
3127 disassembled as or, for example.
3131 * mips-dis.c (print_insn_arg): Print cases 'i' and 'u' in hex.
3132 (_print_insn_mips): Change i from int to unsigned int.
3136 * ppc-opc.c (powerpc_opcodes): tlbi POWER opcode form different
3137 from tlbie PowerPC opcode. Add PPC603 tlbld and tlbli.
3141 * i386-dis.c: Added Pentium Pro instructions.
3145 * ppc-opc.c (fsqrt{,.}): Duplicate for PowerPC in addition to
3150 * sh-opc.h (sh_nibble_type): Added REG_B.
3151 (sh_arg_type): Added A_REG_B.
3152 (sh_table): Added pref and bank reg versions of ldc, ldc.l, stc
3154 * sh-dis.c (print_insn_shx): Added cases for REG_B and A_REG_B.
3158 * disassemble.c (disassembler): Use new bfd_big_endian macro.
3162 * Makefile.in (distclean): Remove stamp-h. From Ronald
3168 * alpha-dis.c (print_insn_alpha): fixed decoding of cpys
3173 * sh-opc.h (sh_arg_type): Added A_SSR and A_SPC.
3174 (sh_table): Added many SH3 opcodes.
3175 * sh-dis.c (print_insn_shx): Added cases for A_SSR and A_SPC.
3179 * ppc-opc.c (subfc., subfco): Mark this PPCCOM, not PPC.
3180 (subco,subco.): Mark this PPC, not PPCCOM.
3184 * configure: Rebuild with autoconf 2.7.
3188 * configure: Rebuild with autoconf 2.6.
3192 * configure.in: Sort list of architectures. Accept but do nothing
3193 for alliant, convex, pyramid, romp, and tahoe.
3197 * a29k-dis.c (print_special): Change num to unsigned int.
3201 * a29k-dis.c (print_insn): Cast insn24 to unsigned long when
3206 * configure.in: Call AC_CHECK_PROG to find and cache AR.
3207 * configure: Rebuilt.
3211 * configure.in: Add case for bfd_i860_arch.
3212 * configure: Rebuild.
3216 * m68k-opc.c (m68k_opcodes): Correct fmoveml operands.
3217 * m68k-dis.c (NEXTSINGLE): Change i to unsigned int.
3218 (NEXTDOUBLE): Likewise.
3219 (print_insn_m68k): Don't match fmoveml if there is more than one
3220 register in the list.
3221 (print_insn_arg): Handle a place of '8' for a type of 'L'.
3225 * m68k-opc.c: Use #W rather than #w.
3226 * m68k-dis.c (print_insn_arg): Handle new 'W' place.
3230 * m68k-opc.c (m68k_opcode_aliases): Add dbfw as an alias for dbf,
3231 and likewise for all the dbxx opcodes.
3235 * arc-dis.c: Include elf-bfd.h rather than libelf.h.
3239 * mips-opc.c: Added shorthand (V1) for INSN_4100 manifest. Added
3240 the VR4100 specific instructions to the mips_opcodes structure.
3244 * mpw-config.in, mpw-make.sed: Remove ugly workaround for
3245 ugly Metrowerks bug in CW6, is fixed in CW7.
3249 * ppc-opc.c (whole file): Add flags for common/any support.
3253 * Makefile.in (BISON): Remove macro.
3254 (FLAGS_TO_PASS): Remove BISON.
3260 * m68k-dis.c (print_insn_m68k): Recognize all two-word
3261 instructions that take no args by looking at the match mask.
3262 (print_insn_arg): Always print "%" before register names.
3263 [case 'c']: Use "nc" for the no-cache case, as recognized by gas.
3264 [case '_']: Don't print "@#" before address.
3265 [case 'J']: Use "%s" as format string, not register name.
3266 [case 'B']: Treat place == 'C' like 'l' and 'L'.
3270 * i386-dis.c: Describe cmpxchg8b operand, and spell the opcode
3277 * alpha-opc.h (MEMORY_FUNCTION_FORMAT_MASK): added.
3278 (alpha_insn_set): added definitions for VAX floating point
3279 instructions (Unix compilers don't generate these, but handcoded
3280 assembly might still use them).
3282 * alpha-dis.c (print_insn_alpha): added support for disassembling
3283 the miscellaneous instructions in the Alpha instruction set.
3287 * mpw-config.in: Add m68k-opc.c.o to BFD_MACHINES for m68k,
3288 no longer create sysdep.h, sed ppc-opc.c to work around a
3289 serious Metrowerks C bug.
3290 * mpw-make.in: Remove.
3291 * mpw-make.sed: New file, used by mpw-configure to edit
3292 Makefile.in into an MPW makefile.
3296 * Makefile.in (maintainer-clean): New synonym for realclean.
3300 * m68k-opc.c: Split pmove patterns which use 'P' into patterns
3301 which use '0', '1', and '2' instead. Specify the proper size for
3302 a pmove immediate operand. Correct the pmovefd patterns to be
3303 moves to a register, not from a register.
3304 * m68k-dis.c (print_insn_arg): Replace 'P' with '0', '1', '2'.
3308 * sparc-opc.c (sparc_opcodes): Mark all insns that reference
3309 %psr, %wim, %tbr as F_NOTV9.
3313 * Makefile.in (Makefile): Just rebuild Makefile when running
3315 (config.h, stamp-h): New targets.
3316 * configure.in: Call AC_CONFIG_HEADER and AC_CANONICAL_SYSTEM
3317 earlier. Don't bother to call AC_ARG_PROGRAM. Touch stamp-h when
3318 rebuilding config.h.
3319 * configure: Rebuild.
3321 * mips-opc.c: Change unaligned loads and stores with "t,A"
3322 operands to use "t,A(b)".
3326 * sh-dis.c (print_insn_shx): Add F_FR0 support.
3330 * sh-dis.c (print_insn_shx): Change loop over op->arg[n] to iterate
3331 until 3 instead of until 2.
3335 * Makefile.in (ALL_CFLAGS): Define.
3336 (.c.o, disassemble.o): Use $(ALL_CFLAGS).
3337 (MOSTLYCLEAN): Add config.log.
3338 (distclean): Don't remove config.log.
3339 * configure.in: Substitute HDEFINES.
3340 * configure: Rebuild.
3344 * sh-opc.h (sh_arg_type): Add F_FR0.
3345 (sh_table, case fmac): Add F_FR0 as first argument.
3349 * sh-opc.h (sh_opcode_info): Increase arg array size to 4.
3353 * sparc-dis.c: Remove all references to NO_V9.
3357 * aclocal.m4: Just include ../bfd/aclocal.m4.
3358 * configure: Rebuild.
3362 * sparc-dis.c (X_DISP19): Define.
3363 (print_insn, case 'G'): Use it.
3364 (print_insn, case 'L'): Sign extend displacement.
3368 * configure.in: Run ../bfd/configure.host before AC_PROG_CC.
3369 Subsitute CFLAGS and AR. Call AC_PROG_INSTALL. Don't substitute
3370 host_makefile_frag or frags.
3371 * aclocal.m4: New file.
3372 * configure: Rebuild.
3373 * Makefile.in (INSTALL): Set to @INSTALL@.
3374 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
3375 (INSTALL_DATA): Set to @INSTALL_DATA@.
3377 (AR_FLAGS): Set to rc rather than qc.
3378 (CC): Define as @CC@.
3379 (CFLAGS): Set to @CFLAGS@.
3380 (@host_makefile_frag@): Remove.
3381 (config.status): Remove dependency upon @frags@.
3383 * configure.in: ../bfd/config.bfd now just sets shell variables.
3384 Use them rather than looking through target Makefile fragments.
3385 * configure: Rebuild.
3389 * sh-opc.h (ftrc): Change FPUL_N to FPUL_M.
3393 * sparc-opc.c (sparc_opcodes): Delete duplicate wr %y insn.
3394 Add clrx, iprefetch, signx, clruw, cas, casl, casx, casxl synthetic
3397 * sparc-opc.c (sparc_opcodes): Fix prefetcha insn.
3398 (lookup_{name,value}): New functions.
3399 (prefetch_table): New static local.
3400 (sparc_{encode,decode}_prefetch): New functions.
3401 * sparc-dis.c (print_insn): Handle '*' arg (prefetch function).
3405 * sh-opc.h: Add blank lines to improve readabililty of sh3e
3410 * sh-dis.c: Correct comment on first line of file.
3414 * disassemble.c (disassembler): Handle bfd_mach_sparc64.
3416 * sparc-opc.c (asi, membar): New static locals.
3417 (sparc_{encode,decode}_{asi,membar}): New functions.
3418 (sparc_opcodes, membar insn): Fix.
3419 * sparc-dis.c (print_insn): Call sparc_decode_asi.
3420 Support decoding of membar masks.
3425 * m68k-opc.c (m68k_opcode_aliases): Add br, brs, brb, brw, brl.
3429 * m68k-opc.c (m68k_opcode_aliases): Add bhib as an alias for bhis,
3430 and likewise for the other branches. Add bhs as an alias for bcc,
3431 and likewise for the size variants. Add dbhs as an alias for
3436 * sh-opc.h (FP sts instructions): Update to match reality.
3440 * m68k-dis.c: (fpcr_names): Add % before all register names.
3441 (reg_names): Likewise.
3442 (print_insn_arg): Don't explicitly print % before register names.
3443 Add % before register names in static array names. In case 'r',
3444 print data registers as `@(Dn)', not `Dn@'. When printing a
3445 memory address, don't print @# before it.
3446 (print_indexed): Change base_disp and outer_disp from int to
3447 bfd_vma. Print using MIT syntax, not mutant invalid Motorola
3448 syntax. Sign extend 8 byte displacement correctly.
3449 (print_base): Print using MIT syntax. Print zpc when appropriate.
3450 Change parameter disp from int to bfd_vma.
3452 * m68k-opc.c (m68k_opcode_aliases): Add jsrl and jsrs as aliases
3457 * sh-dis.c (print_insn_shx): Handle new operand types F_REG_N,
3458 F_REG_M, FPSCR_M, FPSCR_N, FPUL_M and FPUL_N.
3459 * sh-opc.h (sh_arg_type): Add new operand types.
3460 (sh_table): Add new opcodes from SH3E Floating Point ISA.
3464 * Makefile.in (distclean): Remove generated file config.h.
3468 * Makefile.in (distclean): Remove generated file config.h.
3472 * m68k-opc.c: New file, holding tables from include/opcode/m68k.h.
3474 * m68k-dis.c: Remove BREAK_UP_BIG_DECL stuff.
3476 (print_insn_m68k): Change d to be const. Use m68k_numopcodes
3477 rather than numopcodes. Use m68k_opcodes rather than removed
3478 opcode function. Don't check F_ALIAS.
3479 (print_insn_arg): Change first parameter to be const char *.
3480 * Makefile.in (ALL_MACHINES): Add m68k-opc.o.
3481 (m68k-opc.o): New target.
3482 * configure.in: Build m68k-opc.o for bfd_m68k_arch.
3483 * configure: Rebuild.
3487 * sparc-dis.c (HASH_SIZE, HASH_INSN): Define.
3488 (opcode_bits, opcode_hash_table): New variables.
3489 (opcodes_initialized): Renamed from opcodes_sorted.
3490 (build_hash_table): New function.
3491 (is_delayed_branch): Use hash table.
3492 (print_insn): Renamed from print_insn_sparc, made static.
3493 Build and use hash table. If !sparc64, ignore sparc64 insns,
3494 and vice-versa if sparc64.
3495 (print_insn_sparc, print_insn_sparc64): New functions.
3496 (compare_opcodes): Move sparc64 opcodes to end.
3497 Print commutative insns with constant second.
3498 * sparc-opc.c (all non-v9 insns): Use flag F_NOTV9 instead of F_ALIAS.
3502 * sh-dis.c (print_insn_shx): Remove unused local dslot. Use
3503 print_address_func for A_BDISP12 and A_BDISP8. Correct test which
3504 avoids printing a delay slot in a delay slot.
3505 * sh-opc.h (sh_table): Fully bracket last entry.
3509 * sparc-opc.c (sllx, srax, srlx): Fix disassembly.
3513 * configure.in: Get host_makefile_frag from ${srcdir}.
3515 * configure.in: Autoconfiscated. Check for string[s].h. Create
3516 config.h from config.in. Don't set up sysdep.h link.
3517 * sysdep.h: New file.
3518 * configure, config.in: New files, generated from configure.in.
3519 * Makefile.in: Updated to be processed autoconf-style.
3520 (distclean): Keep sysdep.h. Remove config.log and config.cache.
3521 (Makefile): Depend on config.status.
3522 (config.status): New rule.
3523 * configure.bat: Update Makefile substitutions.
3527 * mips-opc.c (L1): Define.
3528 (mips_opcodes): Add R4010 instructions: flushi, flushd, flushid,
3529 addciu, madd, maddu, ffc, ffs, msub, msubu, selsi, selsr, waiti,
3534 * mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu
3535 if ISA 3 and addu otherwise, replacing or, since some MIPS chips
3536 have multiple add units but only a single logical unit.
3538 * ppc-opc.c (powerpc_operands): Change CR to use a bitsize of 3,
3539 shifted by 18, without any insertion or extraction function.
3540 (insert_cr, extract_cr): Remove.
3544 * m68k-dis.c (print_insn_arg, print_indexed): Print "%" before
3549 * mpw-config.in: Add sh and i386 configs, remove sparc config.
3550 * sh-opc.h: Add copyright.
3554 * Makefile.in (crunch-m68k): Delete extra target accidentally
3555 checked in a while ago.
3559 * sh-opc.h (sh_table): Add SH3 support.
3563 * sh-opc.h: Added bsrf and braf.
3567 * arm-opc.h (arm_opcodes): Add 64-bit multiply patterns. Delete
3568 bogus [ls]fm{ea,fd} patterns.
3570 * arm-opc.h (arm_opcodes): Correct typos in stm, ldm, std, and ldc.
3571 * arm-dis.c (print_insn_arm): Make GIVEN a parameter, don't try and
3572 initialize it from memory. Make function static.
3573 (print_insn_{big,little}_arm): New functions.
3574 * disassemble.c (disassembler, case bfd_arch_arm): Disassemble for
3575 the correct endianness.
3579 * sh-opc.h (sh_nibble_type, sh_arg_type): remove trailing , from
3584 * m68k-dis.c (opcode): Finish change made by Kung Hsu on April
3585 17th, so that it builds again using GCC as the compiler.
3589 * mips-dis.c (print_insn_little_mips): Cast return value from
3590 bfd_getl32 from bfd_vma to unsigned long, because _print_insn_mips
3591 expects an unsigned long, and that might be fewer words of
3592 argument storage (e.g., if bfd_vma is long long on a 32-bit
3594 (print_insn_big_mips): Likewise with bfd_getb32 value.
3595 (_print_insn_mips): Now static.
3599 * m68k-dis.c: Take out #define BREAK_UP_BIG_DECL kludge, because
3600 gcc memory hog problem with initializer is fixed.
3604 Merge in support for Mac MPW as a host.
3605 (Old change descriptions retained for informational value.)
3607 * mpw-config.in (archname): Compute from the config.
3608 (BFD_MACHINES, ARCHDEFS): Put into mk.tmp.
3610 * mpw-config.in (target_arch): Compute from canonical target.
3611 (m68k, mips, powerpc, sparc): Add architectures.
3612 * mpw-make.in (disassemble.c.o): Add.
3613 (ALL_CFLAGS): Remove special flags (-mc68020 -mc68881 -model far).
3615 * mpw-config.in (BFD_MACHINES): Set to a default value.
3616 * mpw-make.in (BFD_MACHINES): Remove wired-in value.
3618 * mpw-make.in (CSEARCH): Add extra-include to search path.
3620 * mpw-config.in (varargs.h): Don't create.
3621 (sysdep.h): Create using forward-include.
3622 * mpw-make.in (CSEARCH): Add include/mpw to search path.
3624 * mpw-config.in: New file, MPW version of configure.in.
3625 * mpw-make.in: New file, MPW version of Makefile.in.
3629 * alpha-dis.c (print_insn_alpha): Put empty statement after
3634 * hppa-dis.c (sign_extend): Delete, redundant with libhppa.h version.
3635 (low_sign_extend): Likewise.
3636 (get_field): Delete unused function.
3637 (set_field, deposit_14, deposit_21): Likewise.
3641 * i386-dis.c: Support for more pentium opcodes. From Guy Harris
3648 * alpha-opc.h (OSF_ASMCODE): define
3649 print pal-code names as defined in App C of the
3650 Alpha Architecture Reference Manual
3652 * alpha-dis.c: cleaned up output
3653 print stylized code forms as defined in App A.4.3 of the
3654 Alpha Architecture Reference Manual
3658 * mips-opc.c: Add new mips4 instructions. Don't set INSN_RFE for
3660 * mips-dis.c (print_insn_arg): Handle new argument types 'h', 'R',
3665 * m68k-dis.c (opcode): New function. Returns address of opcode
3666 table entry given index, even if the opcode table was split to
3667 work around gcc bugs.
3668 (print_insn_m68k): Call opcode instead of referencing m68k_opcodes
3670 (BREAK_UP_BIG_DECL): Make secondary array static and const.
3671 (reg_names): Now const.
3672 (print_insn_arg): Arrays cacheFieldName and names now const.
3673 (print_indexed): Array scales now const.
3677 * ppc-opc.c: Sort recently added instructions by minor opcode
3678 number within major opcode number.
3682 * hppa-dis.c: Include libhppa.h.
3686 * mips-opc.c: Change dli to use M_DLI, and add dla.
3690 * Makefile.in (ALL_MACHINES): Add w65-dis.o.
3694 * mips-opc.c: Add r4650 mul instruction.
3698 * mips-opc.c: Add uld and usd macros for unaligned double load and
3703 * ppc-opc.c (powerpc_opcodes): Add 403GA opcodes rfci, dccci,
3704 mfdcr, mtdcr, icbt, iccci.
3708 * i960-dis.c (struct tabent, struct sparse_tabent): Change the
3709 signed char fields to shorts, more portable.
3713 * i960-dis.c (struct tabent, struct sparse_tabent): Declare the
3714 char fields as signed chars, since they may have negative values.
3718 * i386-dis.c (dis386_twobyte): Add cpuid, From Charles Hannum
3724 * ppc-opc.c (extract_bdm): Correct parenthezisation.
3725 * ppc-dis.c (print_insn_powerpc): Print .long before unrecognized
3730 * ppc-opc.c: Changes based on patch from David Edelsohn
3732 (powerpc_operands): Add operands SPRBAT and SPRG. Split TBR out of
3735 (insert_tbr): New static function.
3736 (extract_tbr): New static function.
3737 (XFXFXM_MASK, XFXM): Define.
3738 (XSPRBAT_MASK, XSPRG_MASK): Define.
3739 (powerpc_opcodes): Add instructions to access special registers by
3740 name. Add mtcr and mftbu.
3744 * mips-opc.c (P3): Define.
3745 (mips_opcodes): Add mad and madu.
3747 Sun Jan 15 16:32:59 1995 Steve Chamberlain <sac@splat>
3749 * configure.in: Add W65 support.
3750 * disassemble.c: Likewise.
3751 * w65-opc.h, w65-dis.c: New files.
3755 * h8300-dis.c (bfd_h8_disassemble): Add support for 2 bit
3760 * mips-opc.c: Add dli as a synonym for li.
3764 * alpha-dis.c (print_insn_alpha): Handle call_pal instruction, and
3765 print something for reserved opcode values, even if it won't
3768 * mips-dis.c (_print_insn_mips): When initializing, shift right
3769 and mask, to avoid sign extension problems on the Alpha.
3771 * m68k-dis.c (print_insn_arg, case 'J'): Handle buscr and pcr
3776 * sh-opc.h (mov.l gbr): Get direction right.
3777 * sh-dis.c (print_insn_shx): New function.
3778 (print_insn_shl, print_insn_sh): Call print_insn_shx to
3779 print opcodes with right byte order.
3783 * ns32k-dis.c (struct ns32k_option): Renamed from struct option,
3784 to avoid conflicts with getopt.
3788 * hppa-dis.c (print_insn_hppa): Read the instruction using
3789 bfd_getb32, so that it works on a little endian or 64 bit host.
3790 Remove unused local variable op.
3794 * mips-opc.c: Use or instead of addu for pseudo-op move, since
3795 addu does not work correctly if -mips3.
3799 * a29k-dis.c (print_special): Add special register names defined
3800 on 29030, 29040 and 29050.
3801 (print_insn): Handle new operand type 'I'.
3805 * Makefile.in (INSTALL): Use top level install.sh script.
3809 * sparc-dis.c: Rewrite to use bitfields, rather than a union, so
3810 that it works on a little endian host.
3814 * configure.in: Use ${config_shell} when running config.bfd.
3818 * mips-opc.c (mips_opcodes): "dabs" is only available with -mips3.
3822 * a29k-dis.c (print_insn): Print the opcode.
3826 * mips-opc.c (mips_opcodes): Set WR_t for sc and scd.
3830 * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.
3834 * mips-opc.c: Set INSN_STORE_MEMORY flag for all instructions
3835 which store a value into memory.
3839 * configure.in, Makefile.in, disassemble.c: Add support for the ARM.
3840 * arm-dis.c, arm-opc.h: New files.
3844 * Makefile.in (ns32k-dis.o): Add dependency.
3845 * ns32k-dis.c (print_insn_arg): Declare initialized local as
3846 string, not as array of chars.
3850 * sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.
3852 * sparc-opc.c: Added sparclite extended FP operations, and
3853 versions of v9 impdep* instructions permitting specification of
3858 * i960-dis.c (reg_names): Now const.
3859 (struct sparse_tabent): New type, copied from array type in mem
3861 (ctrl): Local static array ctrl_tab now const.
3862 (cobr): Local static array cobr_tab now const.
3863 (mem): Local variables reg1, reg2, reg3 now point to const. Local
3864 static variable mem_tab no longer explicitly initialized. Changed
3865 mem_init to const array of struct sparse_tabent.
3866 (reg): Local static variable reg_tab no longer explicitly
3867 initialized. Changed reg_init to const array of struct
3869 (ea): Local static array scale_tab now const.
3871 * i960-dis.c (reg): Added i960JX instructions to reg_init table.
3876 * configure.bat: the disassember needs to be enabled for
3877 "objdump -d" to work in djgpp.
3881 * ns32k-dis.c: Deleted all code in "#ifdef GDB".
3882 (invalid_float): Enabled general version, doesn't require running
3883 on ns32k host. Changed to take char* argument, and test for
3884 explicitly specified sizes, instead of using sizeof() on host CPU
3886 (INVALID_FLOAT): Cast first argument.
3887 (opt_u, opt_U, opt_O, opt_C, opt_S, list_P532, list_M532,
3888 list_P032, list_M032): Now const.
3889 (optlist, list_search): Made appropriate arguments now point to
3891 (print_insn_arg): Changed static array of one-character-string
3892 pointers into a static const array of characters; fixed sprintf
3893 statement accordingly.
3897 * opcodes/ns32k-dis.c: Semi-new file. Had apparently been dropped
3898 from distribution. A ns32k-dis.c from a previous distribution has
3899 been brought up to date and supports the new interface.
3901 * disassemble.c: define ARCH_ns32k and add case bfd_arch_ns32k.
3903 * configure.in: add bfd_ns32k_arch target support.
3905 * Makefile.in: add ns32k-dis.o to ALL_MACHINES.
3906 Add ns32k-dis.c to CFILES. Add dependencies for ns32k-dis.o.
3910 * h8300-dis.c (bfd_h8_disassemble): Get 16bit branch
3915 * h8300-dis.c, mips-dis.c: Don't use true and false.
3919 * configure.in: Change --with-targets to --enable-targets.
3923 * mips-dis.c (_print_insn_mips): Build a static hash table mapping
3924 opcodes to the first instruction with that opcode, to speed
3930 * Makefile.in (mostlyclean): Fix typo (was mostyclean).
3934 * configure.bat: update to latest makefile.in
3938 * a29k-dis.c (print_insn): Print 'x' type operand in hex.
3939 * h8300-dis.c (bfd_h8_disassemble): Print 16bit rels correctly.
3940 * sh-dis.c (print_insn_sh): Don't recur endlessly if delay
3941 slot insn is in a delay slot.
3942 * z8k-opc.h: (resflg): Fix patterns.
3943 * h8500-opc.h Fix CR insn patterns.
3947 * ppc-opc.c (powerpc_opcodes): Put PowerPC versions of "cmp" and
3948 "cmpl" before POWER versions, so that gas -many uses them.
3952 * disassemble.c: New file.
3953 * Makefile.in (OFILES): Add disassemble.o.
3954 (disassemble.o): Provide dependencies; compile with $(ARCHDEFS).
3955 * configure.in: Define ARCHDEFS in Makefile. Code taken from
3956 binutils/configure.in.
3958 * m68k-dis.c (print_insn_m68k): If F_ALIAS flag is set, skip the
3959 opcode being examined.
3963 * ppc-opc.c (powerpc_operands): Added RAL, RAM and RAS.
3964 (insert_ral, insert_ram, insert_ras): New functions.
3965 (powerpc_opcodes): Use RAL for load with update, RAM for lmw, and
3966 RAS for store with update.
3970 * ppc-opc.c (powerpc_opcodes): Correct fcir. From David Edelsohn
3975 * mips-opc.c (mips_opcodes): Correct operands of "nor" with an
3980 * sparc-opc.c (sparc_opcodes): Fix "rd %fprs,%l0".
3984 * ppc-opc.c (powerpc_operands): The signedp field has been
3985 removed, so don't initialize it. Set the PPC_OPERAND_SIGNED flag
3986 instead. Add new operand SISIGNOPT.
3987 (powerpc_opcodes): For lis, liu, addis, and cau use SISIGNOPT.
3989 * ppc-dis.c (print_insn_powerpc): Check PPC_OPERAND_SIGNED rather
3994 * i386-dis.c (struct private): Renamed to dis_private. `private'
3995 is a reserved word for dynix cc.
3999 * configure.in: Change error message to refer to bfd/config.bfd
4000 rather than bfd/configure.in.
4004 * ppc-opc.c: Define POWER2 as short alias flag.
4005 (powerpc_opcodes): Add POWER/2 opcodes lfq*, stfq*, fcir[z], and
4010 * i960-dis.c (print_insn_i960): Don't read a second word for
4011 opcodes 0, 1, 2 and 3.
4015 * configure.in: Don't build m68881-ext.o for bfd_m68k_arch.
4019 * m68881-ext.c: Removed; no longer used.
4020 * Makefile.in: Changed accordingly.
4022 * m68k-dis.c (ext_format_68881): Don't declare.
4023 (print_insn_m68k): If an instruction uses place 'i', it uses at
4024 least four fixed bytes.
4025 (print_insn_arg): Don't bump p by 2 for case 'I', place 'i'. For
4026 extended float, convert to double using floatformat_to_double, not
4027 ieee_extended_to_double, and fetch the data before converting it.
4031 * mips-opc.c: It's sqrt.s, not sqrt.w. From
4036 * ppc-opc.c (powerpc_opcodes): The POWER uses bdn[l][a] where the
4037 PowerPC uses bdnz[l][a].
4041 * dis-buf.c, i386-dis.c: Include sysdep.h.
4045 * configure.in (bfd_powerpc_arch): Use ppc-dis.o and ppc-opc.o.
4047 * ppc-opc.c (powerpc_opcodes): Mark POWER instructions supported
4048 by Motorola PowerPC 601 with PPC_OPCODE_601.
4049 * ppc-dis.c (print_insn_big_powerpc, print_insn_little_powerpc):
4050 Disassemble Motorola PowerPC 601 instructions as well as normal
4051 PowerPC instructions.
4055 * i960-dis.c (reg, mem): Just use a static array instead of
4060 * hppa-dis.c (print_insn_hppa): For '?' and '@' only adjust the
4061 condition name index if this is for a negated condition.
4063 * hppa-dis.c (print_insn_hppa): No space before 'H' operand.
4064 Floating point format for 'H' operand is backwards from normal
4065 case (0 == double, 1 == single). For '4', '6', '7', '9', and '8'
4066 operands (fmpyadd and fmpysub), handle bizarre register
4067 translation correctly for single precision format.
4069 * hppa-dis.c (print_insn_hppa): Do not emit a space after 'F'
4070 or 'I' operands if the next format specifier is 'M' (fcmp
4071 condition completer).
4075 * ppc-opc.c (powerpc_operands): New operand type MBE to handle a
4076 single number giving a bitmask for the MB and ME fields of an M
4077 form instruction. Change NB to accept 32, and turn it into 0;
4078 also turn 0 into 32 when disassembling. Seperated SH from NB.
4079 (insert_mbe, extract_mbe): New functions.
4080 (insert_nb, extract_nb): New functions.
4081 (SC_MASK): Mask out SA and LK bits.
4082 (powerpc_opcodes): Change "cal" to use RT, D, RA rather than RT,
4083 RA, SI. Change "liu" and "cau" to use UI rather than SI. Mark
4084 "bctr" and "bctrl" as accepted by POWER. Change "rlwimi",
4085 "rlimi", "rlwimi.", "rlimi.", "rlwinm", "rlinm", "rlwinm.",
4086 "rlinm.", "rlmi", "rlmi.", "rlwnm", "rlnm", "rlwnm.", "rlnm." to
4087 use MBE rather than MB. Add "mfmq" and "mtmq" POWER instructions.
4088 (powerpc_macros): Define table of macro definitions.
4089 (powerpc_num_macros): Define.
4091 * ppc-dis.c (print_insn_powerpc): Don't skip optional operands
4092 if PPC_OPERAND_NEXT is set.
4096 * i960-dis.c (print_insn_i960): Make buffer bfd_byte instead of
4097 char. Retrieve contents using bfd_getl32 instead of shifting.
4101 * ppc-opc.c: New file. Opcode table for PowerPC, including
4102 opcodes for POWER (RS/6000).
4103 * ppc-dis.c: New file. PowerPC and Power (RS/6000) disassembler.
4104 * Makefile.in (ALL_MACHINES): Add ppc-dis.o and ppc-opc.o.
4105 (CFILES): Add ppc-dis.c.
4106 (ppc-dis.o, ppc-opc.o): New targets.
4107 * configure.in: Build ppc-dis.o and ppc-opc.o for bfd_rs6000_arch.
4111 * hppa-dis.c (print_insn_hppa): Handle 'N' in assembler template.
4112 No space before 'u', 'f', or 'N'.
4116 * i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
4117 farther than we should.
4119 * i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.
4123 * sparc-dis.c m68k-dis.c alpha-dis.c a29k-dis.c: Fix comments.
4127 * i960-dis.c (print_insn_i960): Only read word2 if the instruction
4128 needs it, to prevent reading past the end of a section.
4132 * mips-opc.h: Use macro for j instruction, to support SVR4 PIC.
4133 Removed t,A case for la; always use t,A(b) case.
4138 * mips-dis.c (print_insn_arg): Handle 'k'.
4139 * mips-opc.c: Make cache use k, not t.
4143 * alpha-opc.h, alpha-dis.c (print_insn_alpha): Add
4144 FLOAT_MEMORY_FORMAT_CODE, FLOAT_BRANCH_FORMAT_CODE, correct
4145 FLOAT_FORMAT_CODE to put out floating point register names.
4149 * mips-opc.c: Use macros for jal variants, to support SVR4 PIC.
4153 * a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.
4157 * mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
4158 larger than 32. Moved dsxx32 variants first for disassembler.
4162 * z8kgen.c, z8k-opc.h: Add full lda information.
4166 * hppa-dis.c (print_insn_hppa): Do not emit a space after
4167 movb instructions. Any necessary space will be emitted by
4168 the code to handle nullification completers.
4172 * mips-opc.c: Moved l.d down so that it disassembles as ldc1.
4176 * alpha-opc.h: Add ldl_l, fix typo for ldq_u.
4177 * alpha-dis.c (print_insn_alpha): Add code for PAL_FORMAT_CODE.
4181 * mips-opc.c: Correct lwu opcode value (book had it wrong).
4185 * z8k-dis.c (FETCH_DATA): get just the right amount of data.
4186 (unpack_instr): Cope with ARG_IMM4M1 type instructions.
4190 * m88k-dis.c (m88kdis): comment change. Remove space after
4192 (printop): handle new arg types DEC and XREG for m88110.
4196 * hppa-dis.c (print_insn_hppa): Handle 'z' operand
4197 type for absolute branch addresses. Delete special
4198 "ble" and "be" code in 'W' operand code.
4202 * mips-opc.c: Set hazard information correctly for branch
4203 likely instructions.
4207 * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
4208 info->fprintf_func for printing and info->print_address_func for
4213 * mips-opc.c: Set INSN_TRAP for tXX instructions.
4218 Corrected second case of "b" for disassembler.
4222 * mips-dis.c, m88k-dis.c: Don't include libbfd.h. Changed calls
4223 to BFD swapping routines to correspond to BFD name changes.
4227 * mips-opc.c: Change div machine instruction to be z,s,t rather
4228 than s,t. Change div macro to be d,v,t rather than d,s,t.
4229 Likewise for divu, ddiv, ddivu. Added z,s,t case for drem, dremu,
4230 rem and remu which generates only the corresponding div
4231 instruction. This is for compatibility with the MIPS assembler,
4232 which only generates the simple machine instruction when an
4233 explicit destination of $0 is used.
4234 * mips-dis.c (print_insn_arg): Handle 'z' (always register zero).
4239 WR_31 hazard for bal, bgezal, bltzal.
4243 * hppa-dis.c (print_insn_hppa): Use print function
4244 from within the disassemble_info, not fprintf_filtered.
4248 * hppa-dis.c (print_insn_hppa): Handle '|' like '>'. (From Jeff
4253 * mips-opc.c ("absu"): Removed.
4258 * mips-opc.c: Added r6000 and r4000 instructions and macros.
4259 Changed hazard information to distinguish between memory load
4260 delays and coprocessor load delays.
4264 * mips-opc.c: li.d uses "T,L", not "S,F". Added li.s.
4268 * configure.in: Don't pass cpu to config.bfd.
4272 * m88k-dis.c (m88kdis): Make class unsigned.
4276 * alpha-dis.c (print_insn_alpha): One branch format case was
4277 missing the instruction name.
4281 * Makefile.in (ALL_MACHINES): Renamed from DIS_LIBS.
4282 Add the arch-specific auxiliary files.
4283 (OFILES): Remove the arch-specific auxiliary files
4284 and use BFD_MACHINES instead of DIS_LIBS.
4285 * configure.in: Set BFD_MACHINES based on --with-targets option.
4289 * mips-opc.c: Added lwc1 E,A(b) to go with lwc1 T,A(b). Similarly
4294 * sparc-opc.c: Change CONST to const to deal with gcc
4295 -Dconst=__const -traditional.
4300 coprocessor instructions out of #if 0, and made them use new
4305 * sparc-dis.c: Include ansidecl.h before opcodes/sparc.h.
4309 * sparc-opc.c: Add F_JSR, F_UNBR, or F_CONDBR flags to each branch
4310 instruction, for use by the disassembler.
4312 * sparc-dis.c (SEX): Add sign extension macro. Replace many
4313 hand-coded sign extensions that depended on 32-bit host ints.
4314 FIXME, we still depend on big-endian host bitfield ordering.
4315 (sparc_print_insn): Set the insn_info_valid field, and the
4316 other fields that describe the instruction being printed.
4320 * sparc-opc.c (call): Accept all 6 addressing modes valid for
4321 `jmp' instead of just one of them.
4325 * hppa-dis.c: Move floating registers from reg_names to fp_reg_names.
4326 (fput_fp_reg_r): Renamed from fput_reg_r.
4327 (fput_fp_reg): New function.
4328 (print_insn_hppa): Use fput_fp_reg{,_r} where appropriate.
4330 * hppa-dis.c (print_insn_hppa, cases 'a', 'd'): Print space afterwards.
4332 * hppa-dis.c (print_insn_hppa, case 'd'): Use GET_COND not GET_FIELD.
4336 * hppa-dis.c (print_insn_hppa): Use extract_5r_store for 'r'.
4338 * hppa-dis.c (print_insn_hppa, case '>'): If next character is 'n',
4339 don't output a space.
4341 * hppa-dis.c (float_format_names): 10 is undefined, and 11 is quad.
4345 * mips-opc.c: New file, containing opcode table from
4346 ../include/opcode/mips.h.
4347 * Makefile.in: Add it.
4351 * m88k-dis.c: New file, moved in from gdb and changed to use the
4352 new dis-asm.h disassembler interface.
4353 * Makefile.in (DIS_LIBS): Added m88k-dis.o.
4354 (m88k-dis.o): New target.
4358 * mips-dis.c (print_insn_arg, _print_insn_mips): Made pointer to
4359 argument string const char * to correspond to opcode/mips.h.
4363 * mips-dis.c: Updated to account for name changes in new version
4365 * Makefile.in: Added header file dependencies.
4369 * h8300-dis.c (bfd_h8_disassemble): Correct fetching of instruction.
4373 * m68k-dis.c (NEXTWORD, NEXTLONG): Use ((x) ^ 0x8000) - 0x8000 to sign
4374 extend, rather than shifts.
4378 * Makefile.in: Undo 15 June change.
4382 * m68k-dis.c (print_insn_arg): Change return value to byte count
4384 * m68k-dis.c: Re-write to detect invalid operands before
4385 printing anything, so we can handle this the same way we
4386 handle invalid opcodes.
4390 * sh-dis.c, sh-opc.h: Understand some more opcodes.
4394 * hppa-dis.c: Include <ansidecl.h> and sysdep.h before other
4399 * sparc-dis.c: Don't declare qsort, since sysdep.h might.
4401 * configure.in: Do make sysdep.h link.
4402 * Makefile.in: Search ../include. Don't search ../bfd.
4407 * hppa-dis.c: Fix typo. 'a' and 'd' were reversed.
4408 Do not print a space before the completers specified by
4413 * mips-dis.c: No longer need to bomb out if HOST_64_BIT is
4414 defined, since gdb has been fixed.
4417 * hppa-dis.c (print_insn_hppa): Last argument to fput_reg,
4418 fput_reg_r, fput_creg, fput_const, and fputs_filtered should
4419 be a *disassemble_info, not a *FILE.
4420 * hppa-dis.c: Support 'd', '!', and 'a'.
4421 * hppa-dis.c: Support 's' to extract a 2 bit space register.
4422 * hppa-dis.c: Delete cases which are no longer needed.
4426 * m68k-dis.c (print_insn_{m68k,arg}): Add MMU codes.
4430 * h8300-dis.c: New file, removed from bfd/cpu-h8300.c, with
4435 * Makefile.in (CSEARCH): Add -I../bfd for sysdep.h and bfd.h.
4436 * configure.in: No longer need to configure to get sysdep.h.
4441 * hppa-dis.c: Support 'I', 'J', and 'K' in output
4442 templates for 1.1 FP computational instructions.
4446 * h8500-dis.c (print_insn_h8500): Address argument is type
4448 * z8k-dis.c (print_insn_z8k, print_insn_z8001, print_insn_z8002):
4451 * h8500-opc.h (addr_class_type): No comma at end of enumerator.
4452 * sh-opc.h (sh_nibble_type, sh_arg_type): Ditto.
4454 * sparc-dis.c (compare_opcodes): Move static declaration to
4459 * sparc-dis.c (print_insn_sparc): Implement 'n' argument for unimp
4460 instruction, remove unimp hack from 'l' argument.
4464 * z8k-dis.c (fetch_data): Use unsigned char to make ancient gcc's
4470 * mips-dis.c (print_insn_arg): Handle 'C' for general coprocessor
4475 * hppa-dis.c: Include dis-asm.h before sysdep.h. Changed some
4476 arrays of string pointers to 2-d arrays of chars, to save
4481 * a29k-dis.c, alpha-dis.c, i960-dis.c, sparc-dis.c, z8k-dis.c:
4482 Cast second arg to read_memory_func to "bfd_byte *", as necessary.
4486 * hppa-dis.c: New file from Utah, adapted to new disassembler
4488 * Makefile.in: Include it.
4492 * sh-dis.c, sh-opc.h: New files.
4496 * alpha-dis.c, alpha-opc.h: New files.
4500 * mips-dis.c: Sign extend 'j' and 'b' arguments, delta is a signed
4505 * sparc-dis.c: Make "ta" the default trap instruction, "t" the alias.
4509 * a29k-dis.c, sparc-dis.c, sparc-opc.c: Use CONST rather than
4514 * sparc-dis.c: Use fprintf_func a few places where I forgot,
4515 and double percent signs a few places.
4517 * a29k-dis.c, i960-dis.c: New, merged from gdb and binutils.
4519 * i386-dis.c, m68k-dis.c, mips-dis.c, sparc-dis.c:
4520 Use info->print_address_func not print_address.
4522 * dis-buf.c (generic_print_address): New function.
4526 * Makefile.in: Add sparc-dis.c.
4527 sparc-dis.c: New file, merges binutils and gdb versions as follows:
4529 Add `add' instruction to the set that get checked
4530 for a preceding `sethi' in order to print an absolute address.
4531 * (print_insn): Disassembly prefers real instructions.
4532 (is_delayed_branch): Speed up.
4533 * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
4534 Still missing some float ops, and needs testing.
4535 * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
4536 F_ALIAS. Use printf, not fprintf, when not passing a file
4538 (compare_opcodes): Check that identical instructions have
4539 identical opcodes, complain otherwise.
4542 * Include reg_names.
4544 Use dis-asm.h/read_memory_func interface.
4548 * h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
4549 deliberately return non-zero to setjmp from longjmp. Otherwise
4550 this code fails to compile.
4554 * m68k-dis.c: Fix prototype for fetch_arg().
4558 * dis-buf.c: New file, for new read_memory_func interface.
4559 Makefile.in (OFILES): Include it.
4560 m68k-dis.c, i386-dis.c, h8500-dis.c, mips-dis.c, z8k-dis.c:
4561 Use new read_memory_func interface.
4565 * h8500-dis.c (print_insn_h8500): Get sign of fp offsets right.
4566 * h8500-opc.h: Fix couple of opcodes.
4568 Wed Mar 24 02:03:36 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
4570 * Makefile.in: add dvi & installcheck targets
4574 * Makefile.in: Update for h8500-dis.c.
4578 * h8500-dis.c, h8500-opc.h: New files
4582 * mips-dis.c, z8k-dis.c: Converted to use interface defined in
4583 ../include/dis-asm.h.
4584 * m68k-dis.c: New file (merge of ../binutils/m68k-pinsn.c
4585 and ../gdb/m68k-pinsn.c).
4586 * i386-dis.c: New file (merge of ../binutils/i386-pinsn.c
4587 and ../gdb/i386-pinsn.c).
4588 * m68881-ext.c: New file. Moved definition of
4589 ext_format ext_format_68881 from ../gdb/m68k-tdep.c.
4590 * Makefile.in: Adjust for new files.
4592 * m68k-dis.c: Recognize '9' placement code, so (say) pflush
4593 can be dis-assembled.
4597 * mips-dis.c (print_insn_arg): Now returns void.
4601 * mips-dis.c (ansidecl.h): Include for benefit of sysdep.h
4602 files that use the macros.
4606 * mips-dis.c: New file, from gdb/mips-pinsn.c.
4607 * Makefile.in (DIS_LIBS): Added mips-dis.o.
4608 (CFILES): Added mips-dis.c.
4612 * z8k-dis.c (print_insn_z8001, print_insn_z8002): new routines
4613 * z8kgen.c, z8k-opc.h: fix sizes of some shifts.
4617 * Makefile.in: Improve *clean rules.
4618 * configure.in: Allow a default host.
4620 Tue Nov 17 19:53:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4622 * Makefile.in: also use -I$(srcdir)/../bfd, since some sysdep
4623 files include other sysdep files
4627 * z8k-dis.c z8k-opc.h z8kgen.c: checkpoint
4631 * configure.in: For host support, use ../bfd/configure.host
4632 so it stays in sync with the ../bfd/hosts database.
4634 Thu Oct 1 23:38:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
4636 * configure.in: use cpu-vendor-os triple instead of nested cases
4640 * z8k-dis.c (unparse_instr): fix bug where opcode returned was
4641 *always* the wrong one.
4645 * z8kgen.c: added copyright info
4649 * z8k-dis.c (unparse_instr): prettier tabs
4650 * z8kgen.c -> z8k-opc.h: bug fixes in tables
4652 Fri Sep 25 12:50:32 1992 Stu Grossman (grossman at cygnus.com)
4654 * configure.in: Add ncr* configuration.
4655 * z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make
4656 picayune ANSI compilers happy.
4660 * configure.in (i386): Make i386 and i486 synonymous for now.
4661 * configure.in (i[34]86-*-sysv4): Add my_host definition.
4665 * Makefile.in (install): Fix typo.
4669 * Makefile.in (make): Remove obsolete crud.
4670 (sparc-opc.o): Avoid Sun Make VPATH bug.
4674 * Makefile.in: since there are no SUBDIRS, remove rule and
4675 references of subdir_do.
4679 * Makefile.in (install): Get the library name right here too.
4680 Don't install bfd.h, since it's unrelated to this library. No
4681 subdirs to recurse into, either.
4682 (CFILES): The source file has a .c suffix, not .o.
4684 * sparc-opc.c: New file, moved from BFD.
4685 * Makefile.in (OFILES): Build it.
4689 * z8k-dis.c: fixed forward refferences of some declarations.
4693 * Makefile.in: get the name of the library right
4697 * z8k-dis.c: knows how to disassemble z8k stuff
4698 * z8k-opc.h: new file full of z8000 opcodes
4702 version-control: never