Commit graph

640 commits

Author SHA1 Message Date
Ian Lance Taylor
d4006c819a From H.J. Lu <hjl@gnu.org>:
* i386-dis.c (dis386): Change 0x8c and 0x8e to movS, and change Ew
	to Ev for both.
1998-03-31 16:10:46 +00:00
Ian Lance Taylor
b5dc554447 x 1998-03-30 22:32:48 +00:00
Ken Raeburn
7ea76776a8 * d30v-dis.c (print_insn_d30v): Don't use uninitialized "num" when
disassembling last 4 bytes of a section.
1998-03-30 20:24:50 +00:00
Jeff Law
348f11e573 * mips-opc.c: Add "sync.l" and "sync.p".
pr15204
1998-03-27 07:01:51 +00:00
Doug Evans
3792311ce6 * dvp-dis.c (print_insn): Print unpack address in hex.
* dvp-opc.c (parse_vif_mpgloc): Renamed from parse_vif_mpgloc_star.
	Don't skip over '*', just record it.
	(insert_vif_mpgloc): Don't update state_vif_mpgloc if '*' value.
	(parse_vif_unpackloc): Renamed from parse_vif_unpackloc_star.
	Don't skip over '*', just record it.
	(insert_vif_unpackloc): Don't update state_vif_unpackloc if '*' value.
	(vif_operands): Delete VIF_MPGLOC_STAR,VIF_UNPACKLOC_STAR entries.
	(vif_opcodes): Likewise.
	(state_vif_{mpg,unpack}loc_star_p): New static locals.
	(vif_macros,vif_macro_count): New globals.
	(vif_unpack_len_value): New arguments wl,cl.  All callers updated.
	(vif_set_{mpg,unpack}loc): Delete.  All callers updated.
	(vif_get_wl_cl): New function.
	(dvp_opcode_init_parse): Init mpgloc,unpackloc state.
1998-03-25 21:43:02 +00:00
Ian Lance Taylor
143e58b45b Wed Mar 25 14:32:48 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* m68k-dis.c (print_insn_m68k): Use info->mach to select the
	default m68k variant to recognize.
1998-03-25 20:41:31 +00:00
Ian Lance Taylor
025af5b9d2 Wed Mar 25 14:32:48 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* i960-dis.c (pinsn): Change type of first argument to bfd_vma.
	(ctrl, cobr, mem, ea): Likewise.
	(print_addr): Likewise.  Remove cast.
	(ea): Cast argument of print_addr to bfd_vma.

	* cgen-asm.c (cgen_parse_signed_integer): Fix type of local
	variable value.
	(cgen_parse_unsigned_integer): Likewise.
	(cgen_parse_address): Likewise.

Wed Mar 25 14:31:31 1998  Ian Lance Taylor  <ian@cygnus.com>

	* i960-dis.c (ctrl): Add full braces to structure initialization.
	(cobr, mem, reg): Likewise.
	(ea): Correct parenthesization in expression.

	* cgen-asm.c: Include <ctype.h>.
	(build_asm_hash_table): Remove unused local variable i.
	(cgen_parse_keyword): Add casts to avoid warnings.

	* arm-dis.c (print_insn_big_arm): Only call coffsymbol for a COFF
	symbol.  Fix indentation.
	(print_insn_little_arm): Likewise.
1998-03-25 19:36:04 +00:00
Jeff Law
f4cbd84efe * vu0.h (cfc2, ctc2): Add variants with ".i" and ".ni"
opcode extensions.
1998-03-25 01:09:09 +00:00
Nick Clifton
ca6697f7f3 add sanitization marker 1998-03-23 19:36:21 +00:00
Nick Clifton
e5f359d16c Fix SATH bit pattern (PR15418) 1998-03-23 19:33:35 +00:00
Doug Evans
9a5a39e9e4 * dvp-opc.c (vif_operand_datalen_special): New global. 1998-03-23 18:01:04 +00:00
Jeff Law
5a06c16d2a * mips-dis.c: Change '%' to '#' to avoid conflict with vr5400
support.
        * vu0.h: Likewise.
1998-03-20 16:01:43 +00:00
Nick Clifton
de1b531df3 Patches for PR15356 courtesy of Tony Thompson at ARM. 1998-03-19 23:51:18 +00:00
Jeff Law
ffee80df9e * vu0.h: New file with cop2/vu0 instructions.
* mips-opc.c: Include vu0.h.
        * mips-dis.c (print_insn_arg): Handle new args 0-9, +, -, %, K, &,
        J, Q, X, and U.
        (print_insn_mips): Do not emit a tab after an instruction if the
        first arg is an instruction completer (&).  If the next arg is an
        escape character (%), then print the next arg verbatim.
        * Makefile.am (mips-opc.lo): Depend on vu0.h
1998-03-19 21:05:23 +00:00
Doug Evans
578491a2b1 * dvp-opc.c (vif_opcodes): Add stcycl. 1998-03-19 18:51:46 +00:00
Doug Evans
d898c665e4 * dvp-dis.c (print_dma): Change length from 16 to 8. 1998-03-17 21:28:32 +00:00
Doug Evans
fccbd5b836 m32r-opc.h: Regenerate. 1998-03-15 09:19:59 +00:00
Doug Evans
00735561e8 * dvp-opc.c (print_dest1): Print dest spec again.
(print_vfreg,print_accdest): Likewise.
1998-03-12 17:23:22 +00:00
Gavin Romig-Koch
56f04c4945 * mips-opc.c ("clz","dclz"): Added the 4320 versions. 1998-03-10 21:01:43 +00:00
Gavin Romig-Koch
46bb89f0d2 * mips-opc.c ("macc*","mul*"): Added the 4320 versions
of these.
1998-03-09 20:26:37 +00:00
Doug Evans
8fc527423a * dvp-dis.c (print_insn): Print unsigned values in hex.
* dvp-opc.c (insert_vif_wlcl,extract_vif_wlcl): New functions.
	(vif_operands): Use them for wl,cl fields.
	(state_vif_wl,state_vif_cl): New static locals.
	(parse_vif_mode): Handle numeric args.
	(vif_unpack_len_value,vif_unpack_len): New functions.
	(vif_insn_len): Call vif_unpack_len.
1998-03-07 01:41:44 +00:00
Joern Rennecke
1e442295a0 Remove SH4 sanitation. 1998-03-07 00:41:39 +00:00
Doug Evans
4aa141721d * dvp-dis.c (print_gif): Fix length calcs for gifimage.
(print_insn): Do mask comparison on proper opcode word.
	* dvp-opc.c (u_parse_sdest): Return -1 if dest missing.
	(parse_bc): Catch missing dest.
	(parse_vfreg): Replace atoi call with strtol.
	(parse_{bcftreg,ffstreg,freg,ireg,vi01,gif_prim,gif_nloop}): Likewise.
	(parse_bcftreg,parse_ffstreg): Handle missing dest.
	(extract_gif_eop): New function.
	(gif_operands): Update eop entry.
	(VGIFOP,VGIFNREGS): Fix calcs.
	(extract_gif_prim): Set *pinvalid to 1 if prim not used.
	(gif_regs): Add entry for unused 11 case.
	(print_gif_regs): Print empty list instead of nothing.
	(extract_gif_nloop): Fix value calc.
	(print_gif_nloop): Always print value, even if 0.
1998-03-06 19:37:35 +00:00
Doug Evans
a6cefe4f38 * m32r-opc.h,m32r-opc.c,m32r-asm.c,m32r-dis.c: Regenerate. 1998-03-04 20:10:36 +00:00
Doug Evans
239f4e323c * cgen-asm.in: Move insertion of generated routines to top of file.
(insert_normal): Add prototype.  Delete `shift' arg.
	* cgen-dis.in: Move insertion of generated routines to top of file.
	(extract_normal): Add prototype.  Delete `shift' arg.
	(print_normal): Add prototype.  Call CGEN_PRINT_NORMAL if defined.
	(print_keyword): Add prototype.  Fix type of `attrs' arg.
1998-03-04 02:54:57 +00:00
Gavin Romig-Koch
779b65bfdb * mips-dis.c (_print_insn_mips) : Handle bfd_mach_mips4320.
* mips-opc.c ("mac","dmac") : Added 4320 insns.
1998-03-03 16:53:41 +00:00
Nick Clifton
d4a05a4013 Prevent core dump when info->symbols is NULL. 1998-03-01 00:04:17 +00:00
Richard Henderson
a8c053005c * alpha-opc.c (cvtqs) There is no such thing.
(cvttq): Missing most of the /*d variants.
1998-02-28 20:21:32 +00:00
Jeff Law
01e5c2f36c Put sanitize markers around last ChangeLog entry. 1998-02-27 20:16:35 +00:00
Jeff Law
bac914a58b * mips-opc.c (r5900/madd.s): Takes three operands, not four. Fix
opcode.
        (r5900/min.s): Incorrect opcode ....,101001 not ...110000.
        (r5900/msub.s): Takes three operands, not four.  Fix opcode.
1998-02-27 20:15:50 +00:00
Michael Meissner
81b9505a43 Indicate which instructions are delayed branches or jumps 1998-02-27 19:24:15 +00:00
Doug Evans
b6f63b41bf * dvp-opc.c (vif_operands): Add unpack[u] support.
(vif_opcodes): Ditto.
	(*_vif_imrubits): Renamed from *_vif_imrbits.
1998-02-27 18:07:50 +00:00
Doug Evans
95bb4ad144 * dvp-dis.c (print_insn): Handle word number.
Handle mips address vs vu address.
        * dvp-opc.c (vif_operands): Use DVP_OPERAND_VU_ADDRESS.
        (dma_operands): Use DVP_OPERAND_MIPS_ADDRESS.
        ({insert,extract}_dma_addr): Fix word ofset.
        ({insert,print}_gif_regs): Fix encode/decode.
1998-02-25 08:34:41 +00:00
Doug Evans
fdd59f73f9 (dma_opcodes): Add dmarefe insn. 1998-02-25 01:11:14 +00:00
Doug Evans
4a7d1b79f1 (gif_regs): Add new register number/name changes. 1998-02-25 00:57:19 +00:00
Doug Evans
4771aa23ae (print_gif): Fix word order. 1998-02-24 22:10:28 +00:00
Doug Evans
52491f93ae * dvp-opc.c (gif_operands): Fix word order.
(gif_opcodes): Likewise.
	({insert,extract,print}_gif_regs): Likewise.
1998-02-24 21:56:44 +00:00
Doug Evans
88b38f0c3c * arm-dis.c (print_insn_{big,little}_arm): info->symbol changed
to *info->symbols.
	* mips-dis.c (print_insn_{big,little}_mips): Likewise.
	* tic30-dis.c (print_branch): Likewise.
start-sanitize-sky
	* mips-dis.c (print_insn_little_mips): Call dvp_info_mach_type.
	* dvp-dis.c (dvp_info_mach_type): New function.
	(print_insn_dvp): Call it.
	(print_vif): Return length of 4 if mpg or direct insn so following
	insns get properly disabled.
	* dvp-opc.c (vif_insn_len): New argument `pcpu'.  All callers updated.
end-sanitize-sky
1998-02-24 20:57:58 +00:00
Nick Clifton
89dc75c562 Removed saved_symbol code as it is no longer needed. 1998-02-24 19:23:07 +00:00
Nick Clifton
c3ba2ed2d0 Fixed bug displaying symbols in big endian arms. 1998-02-24 19:07:28 +00:00
Doug Evans
34e2f57412 (dma_operands): Fix word numbers.
(dma_opcodes): Likewise.
	({insert,extract}_dma_flags): Likewise.
1998-02-23 23:56:04 +00:00
Doug Evans
0bf55db8fd * m32r-asm.c,m32r-dis.c,m32r-opc.h,m32r-opc.c: Regenerate. 1998-02-23 21:20:37 +00:00
Doug Evans
833d299073 * cgen-asm.c: Include symcat.h.
* cgen-dis.c,cgen-opc.c,cgen-asm.in,cgen-dis.in: Ditto.
1998-02-23 21:17:29 +00:00
Doug Evans
3ea07de422 * dvp-opc.c (extra_dma_flags): Fix typos. 1998-02-23 17:53:31 +00:00
Jeff Law
fb1a826b06 * mips-dis.c (print_insn_arg): Do not prefix 'P' arguments with '$'. 1998-02-23 17:32:21 +00:00
Doug Evans
a2707619a5 (extract_vif_datalen,{insert,extract}_vif_imrbits): New functions.
(vif_insn_len): Handle `unpack'.
	({insert,extract}_dma_flags): Complete.
1998-02-21 06:26:41 +00:00
Doug Evans
c2b2e0f0f3 * dvp-dis.c (print_gif): Complete.
* dvp-opc.c (gif_operands,gif_opcodes): Complete.
	(state_gif_{nregs,regs,nloop}): New static locals.
	(*_gif_*): Complete.
	(dvp_opcode_init_{parse,print}): Init gif state locals.
1998-02-21 02:09:02 +00:00
Jeff Law
10e3e6ced5 * mips-opc.c (mula.s): Renamed from multa.s. 1998-02-20 08:22:48 +00:00
Doug Evans
8d157f9653 * m32r-opc.[ch]: Regenerate. 1998-02-20 00:57:03 +00:00
Doug Evans
6370553445 Rewrite dma operands/opcodes tables. 1998-02-19 22:40:08 +00:00