Commit graph

825 commits

Author SHA1 Message Date
Doug Evans
1294c286cb * m32r-opc.h,m32r-opc.c,m32r-asm.c,m32r-dis.c: Regenerate. 1998-04-27 20:10:40 +00:00
Doug Evans
041d7e18a9 tweak comment 1998-04-27 17:49:54 +00:00
Doug Evans
2613b5e63d * cgen-asm.c (cgen_current_opcode_table): Renamed from ..._data.
(asm_hash_table_entries): New variable.
	(cgen_asm_init): Free asm_hash_table_entries.
	(hash_insn_array,hash_insn_list): New functions.
	(build_asm_hash_table): Use them.  Hash macro insns as well.
	(cgen_asm_lookup_insn): Update.
	* cgen_dis.c (cgen_current_opcode_table): Renamed from ..._data.
	(dis_hash_table_entries): New variable.
	(cgen_dis_init): Free dis_hash_table_entries.
	(hash_insn_array,hash_insn_list): New functions.
	(build_dis_hash_table): Use them.  Hash macro insns as well.
	(cgen_dis_lookup_insn): Update.
	* cgen-opc.c (cgen_current_opcode_table): Renamed from ..._data.
	(cgen_set_cpu,cgen_hw_lookup,cgen_insn_count): Update.
	(cgen_macro_insn_count): New function.
	* cgen-opc.in (@arch@_cgen_lookup_insn): New arg alias_p.
	All callers updated.  Sanity check result of extract fn.
	(@arch@_cgen_get_insn_operands): Change result type to void.
	Delete args insn_value, length.  New arg fields.  All callers updated.
	(@arch@_cgen_lookup_get_insn_operands): New function.
1998-04-27 17:48:05 +00:00
Ian Lance Taylor
409595b889 Fri Apr 24 16:07:57 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* i386-dis.c (OP_DSSI): Print segment override.
1998-04-24 20:09:22 +00:00
Frank Ch. Eigler
fd298f38cd * Another typo in R5900 COP1 disassembly tables. Other similar
entries are fine.

Thu Apr 23 12:32:07 1998  Frank Ch. Eigler  <fche@cygnus.com>

	* mips-opc.c (msub.s): Correct mask pattern for disassembly.
1998-04-23 16:41:11 +00:00
Frank Ch. Eigler
171c7bbffe * Bit mask pattern fix for R5900 madd.s instruction; PR 15371. 1998-04-21 14:32:53 +00:00
Jeff Law
632c232a93 * vu0.h (vlqd, vlqi): Update per revised specs. 1998-04-18 06:30:57 +00:00
Doug Evans
c2e042cf7b (vif_unpack_len_value): Avoid divide by zero. 1998-04-16 21:34:38 +00:00
Doug Evans
cd53a9d95a * dvp-opc.c (parse_vif_unpackloc,insert_vif_unpackloc): Delete.
(vif_operands): Update.
	(vif_get_unpackloc): Delete.
	(state_vif_unpackloc{,_star_p}): Delete.
	(dvp_opcode_init_parse): Update.
1998-04-16 18:49:18 +00:00
Frank Ch. Eigler
92976c09d5 * Customer specs changed one R5900 COP2 instruction bit-pattern.
Wed Apr 15 10:30:07 1998   Frank Ch. Eigler  <fche@cygnus.com>

	* vu0.h: Specs changed for VCALLMSR bit pattern.
	* mips-dis.c: (print_insn_arg) Matching change.
1998-04-15 17:36:43 +00:00
Nick Clifton
e172723d97 Add "_all" extension to 'C' operator. 1998-04-14 00:01:20 +00:00
Ian Lance Taylor
991e950245 * Makefile.am (libopcodes_la_LIBADD): Add @WIN32LIBADD@.
(libopcodes_la_LDFLAGS): Add @WIN32LDFLAGS@.
	* configure.in: Define and substitute WIN32LDFLAGS and
	WIN32LIBADD.
	* aclocal.m4: Rebuild with new libtool.
	* configure, Makefile.in: Rebuild.
1998-04-13 20:52:01 +00:00
Frank Ch. Eigler
dde0a234f5 * Corrected a one-character typo. All instructions tested in gas/.../vu0.s
now correctly disassemble during runs under the sky VU0 simulator.

[ChangeLog]

Mon Apr 13 16:02:02 1998  Frank Ch. Eigler  <fche@cygnus.com>

	* vu0.h: Corrected bit pattern for VMAXI opcode.
1998-04-13 20:25:24 +00:00
Doug Evans
108d6f326e * m32r-opc.c: Regenerate. 1998-04-11 01:18:23 +00:00
Doug Evans
2df3bc2192 * dvp-opc.c (vif_macros): Tweak unpackloc operand.
(dvp_expand_macro): Implement.
	(insert_vif_datalen): Record value with max+1 -> 0 conversion.
	(vif_unpack_len): Perform 0 -> max+1 conversion on `wl' value.
1998-04-07 03:20:26 +00:00
Doug Evans
1741be004a * dvp-opc.c (vif_macros): Tweak unpackloc operand.
(dvp_expand_macro): Implement.
1998-04-07 00:19:58 +00:00
Ian Lance Taylor
638985a9c9 Sun Apr 5 16:04:39 1998 H.J. Lu <hjl@gnu.org>
* Makefile.am (stamp-lib): Check that .libs/libopcodes.a exists
	before trying to copy it.
	* Makefile.in: Rebuild.
1998-04-05 20:09:39 +00:00
Nick Clifton
d8ca5faec5 Fix bit patterns for SAT and SATB to rev 0.82 docs. 1998-04-03 00:45:21 +00:00
Nick Clifton
6c406210fa Add extra control registers 1998-04-02 22:10:56 +00:00
Jason Molenda
775b60dd73 Wed Apr 1 16:20:27 1998 Ian Dall <Ian.Dall@dsto.defence.gov.au>
* ns32k-dis.c (bit_extract_simple): New function to extract bits
        from an arbitrary valid buffer instead of fetching them on demand
        using fetch_data().
        (invalid_float): use bit_extract_simple() instead of bit_extract().


contributed to me for gdb 4.17.
1998-04-02 00:21:05 +00:00
Nick Clifton
b2ddf0c4d6 Fix SATB bit pattern. Add extra control registers. 1998-04-01 22:58:53 +00:00
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
Ian Lance Taylor
930ab85653 Fix gcc -Wall warnings. See ChangeLog for details. 1998-03-27 23:29:46 +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
98f699f653 * vu0.h (vcallms): Use 'O' for call target operand.
* mips-dis.c (print_insn_arg): Handle 'O'.
1998-03-22 19:56:37 +00:00
Ian Lance Taylor
bd4a69c3ea * configure.in: Use AM_DISABLE_SHARED.
* aclocal.m4, configure: Rebuild with libtool 1.2.
1998-03-20 23:55:49 +00:00
Jeff Law
25957cb064 Sanitize away vu0 stuff unless --keep-r5900. 1998-03-20 22:56:01 +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