Commit Graph

1013 Commits

Author SHA1 Message Date
Ian Lance Taylor
faec70d605 remove d30v sanitization 1998-07-24 03:58:14 +00:00
Jeff Law
47254a1631 * m10300-opc.c: Add DSP autoincrement memory loads/stores. 1998-07-23 15:51:24 +00:00
Jeff Law
b0b57954c5 * m10300-opc.c: Add autoincrement memory loads/stores. 1998-07-23 15:22:17 +00:00
Jeff Law
faac4767b1 * mips-opc.c: Make phmadh and phmsbh synonyms for phmaddh and
phmsubh respectively.
pr16537
1998-07-22 23:07:38 +00:00
Doug Evans
b00ea55caf regenerate, get displacement operand shifts right 1998-07-21 23:46:56 +00:00
Doug Evans
0cc2fbf340 tweak 1998-07-21 21:08:03 +00:00
Doug Evans
fbc8134df6 * cgen-opc.in (@arch@_cgen_lookup_insn): Update call to
CGEN_EXTRACT_FN.
	(@arch@_cgen_get_insn_operands): @arch@_cgen_get_operand renamed to
	@arch_cgen_get_int_operand.
	* cgen-asm.in (insert_insn_normal): New arg `pc', callers updated.
	Update call to @arch@_cgen_insert_operand.
	(@arch@_cgen_assemble_insn): Update call to CGEN_INSERT_FN.
	* cgen-dis.in (print_normal): Delete use of CGEN_PCREL_OFFSET.
	(extract_insn_normal): New arg `pc', callers updated.
	Update call to @arch@_cgen_extract_operand.
	(print_insn): Update call to CGEN_EXTRACT_FN.
	* m32r-opc.h,m32r-opc.c,m32r-asm.c,m32r-dis.c: Regenerate.
1998-07-21 20:59:23 +00:00
Jeff Law
f10a9bdead * m10300-opc.c (mn10300_opcodes): Fix opcode for 4 operand "mul" and
"mulu".
1998-07-17 00:06:55 +00:00
Ian Lance Taylor
33b111fa62 Mon Jul 13 14:53:59 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* i386-dis.c (ckprefix): Handle fwait specially only when it isn't
	the first prefix.
	(dofloat): Correct test for fnstsw.  Print `fnstsw %ax' rather
	than `fnstsw %eax'.
	(OP_J): Remove unnecessary subtraction when 16-bit displacement
	will be masked later.
1998-07-13 18:54:43 +00:00
Jeff Law
228695a5d8 * m10300-opc.c (mn10300_opcodes): Fix destination operand for 3 operand
instructions.
1998-07-11 05:12:03 +00:00
Jeff Law
ccd5eb2da9 * m10300-dis.c (disassemble): When printing RREGs and XRREGs, map
from raw register #s to symbolic names to make debugging easier.
1998-07-08 17:38:15 +00:00
Doug Evans
1b9ec81e15 * m32r-opc.h (CGEN_MIN_INSN_SIZE): New #define. 1998-07-03 00:11:25 +00:00
Doug Evans
0499462e76 * Makefile.am (CGENDIR): Set via configure.
(CGEN): New variable.
	(CGENFILES): object.scm renamed to cos.scm.
	(run-cgen): Renamed from cgen.  stamp file renamed to stamp-$prefix.
	(stamp-m32r): Pass prefix to run-cgen.
	* Makefile.in: Regenerate.
	* cgen-asm.in: @arch@-opc.h renamed to @prefix@-opc.h.
	* cgen-dis.in: Ditto.
	* cgen-opc.in: Ditto.
	* cgen.sh: New args cgen,prefix.  Delete args scheme,schemeflags.
	* configure.in: AC_SUBST cgen,cgendir.  No longer look for guile.
	* configure: Regenerate.
	* m32r-asm.c,m32r-dis.c,m32r-opc.c,m32r-opc.h: Regenerate.
1998-07-01 23:31:27 +00:00
Doug Evans
3c88e9a988 * dvp-opc.c (DVP_OPERAND_RELOC_11_S4): Temporarily back out
the DVP_OPERAND_RELOC_11_S4 relocation.
	* dvp-opc.c (LIMM11, LUIMM15): New symbol types
	DVP_OPERAND_RELOC_U15_S3 and DVP_OPERAND_RELOC_11_S4 to allow labels to
	be used as immediate values.
1998-07-01 19:34:55 +00:00
Nick Clifton
e38a77d3ca Replace object.scm with cos.scm 1998-07-01 16:42:36 +00:00
Jeff Law
ff7a9bc9b4 * m10300-opc.c: Reorder "movbu" and "movhu" instructions too.
Why oh why didn't they take our advice about register prefixing.  It would
have avoided the ambigious syntax issues.  Sigh.
1998-06-30 16:04:44 +00:00
Jeff Law
a841b47c4b * m10300-opc.c: Reorder more instructions so that we do not
accidentally match a mn10300 instruction when we really
        wanted an am33 instruction.
1998-06-29 20:57:25 +00:00
Jeff Law
0c9b3858c1 * m10300-dis.c: Only recognize instructions from the currently
selected machine.
        * m10300-opc.c: Add field indicating the particular variant of
        the mn10300 each instruction is available on.
1998-06-26 17:12:10 +00:00
Ian Lance Taylor
69ad8cac12 * configure.in: For bfd_vax_arch, build vax-dis.lo.
* Makefile.am: Rebuild dependencies.
 	(CFILES): Add vax-dis.c.
	(ALL_MACHINES): Add vax-dis.lo.
	* aclocal.m4: Rebuild with current libtool.
	* configure, Makefile.in: Rebuild.

Fri Jun 26 12:03:20 1998  Klaus Kaempf  <kkaempf@progis.de>

	* vax-dis.c: New file, from work by Pauline Middelink
	<middelin@polyware.iaf.nl>.
	* disassemble.c (ARCH_vax): Define if ARCH_all.
	(disassembler): Add case for ARCH_vax.
	* makefile.vms: Support compilation on vms/vax.
1998-06-26 16:08:02 +00:00
Jeff Law
1c2a961d56 * m10300-dis.c (print_insn_mn10300): 0xf7 opcode prefix specifies
4 byte instructions.
        (disassemble): Correctly handle FMT_D10 instructions.
1998-06-24 19:04:06 +00:00
Jeff Law
59557be25d * mn10300-opc.c (mn10300_opcodes): Fix typo in IMM24 versions of the
am33 shift instructions.
1998-06-24 19:02:27 +00:00
Jeff Law
c29d7797d2 * mn10300-dis.c (print_insn_mn10300): 0xf9 opcode prefix specifies
3 byte instructions.
        (disassemble): Handle new instruction formats FMT_D6, FMT_D7, FMT_D8
        FMT_D9 and FMT_D10.  Handle various new opcode flags for the am33.
1998-06-24 16:00:43 +00:00
Jeff Law
4da06098ff * mn10300-opc.c (IMM32_HIGH8_MEM): New operand type.
(mn10300_opcodes): Reorder so as to try and select opcodes from
        the core chip when multiple alternatives exist.  Change several
        am33 instructions to use IMM32_HIGH8_MEM.  Fix typos in "mac" and
        "macbu" instructions.  Fix typos in a couple DSP instructions too.
1998-06-24 15:56:40 +00:00
Mark Alexander
42fc298244 * m10200-dis.c (print_insn_mn10200): Fix various non-portabilities
related to sign extension and the size of ints.
1998-06-24 02:49:07 +00:00
Jeff Law
8b727aa4d3 * m10300-opc.c: Support one operand "asr", "lsr" and "asl"
instructions.  Support (sp) addressing mode by expanding it into
        (0,sp).
1998-06-23 17:01:44 +00:00
Jeff Law
c5a6e18b2e * m10300-opc.c: Support 4 byte DSP instructions. 1998-06-22 19:38:35 +00:00
Jeff Law
d7f444fd7a * m10300-opc.c: Support 6 and 7 byte am33 instructions. 1998-06-19 22:49:43 +00:00
Mark Alexander
7b61b0945f * m10200-dis.c (print_insn_mn10200): Recognize 'break' pseudo-op. 1998-06-19 16:19:12 +00:00
Jeff Law
b17af7f6ef * m10300-opc.c: Support for 3 byte and 4 byte extended instructions
found on the mn10300.
1998-06-19 15:45:13 +00:00
Ian Lance Taylor
4b035e8ea9 formatting fixes 1998-06-19 14:43:45 +00:00
Ulrich Drepper
d2a24cee53 Update. 1998-06-19 01:58:48 +00:00
John Metzler
7648738c81 Fix compile errors in set_mips_isa_type 1998-06-18 22:47:43 +00:00
John Metzler
8b023c48d5 *** empty log message *** 1998-06-18 21:08:52 +00:00
Jeff Law
a145a5ac84 Rework ChangeLog entry to avoid mentioning vr5400 in a r5900 entry. 1998-06-18 19:14:20 +00:00
John Metzler
20af011086 * mips-dis.c (print_insn_little_mips): Previously, instruction
printing references the symbol table to determine whether the
 	instruction resides in a block regular instructions or mips16
 	instructions. However, when the disassembler gets used in other
 	environments where the symbol table is not present, we no longer
 	rely in the symbol table, rather, use the low bit of the
 	instructions address to guess. There should be no change for usage
 	of the disassembler in host based programse, gdb ,objdump.
	(print_insn_big_mips): ditto.
	(print_insn_mips): ditto
1998-06-18 17:30:26 +00:00
Ian Lance Taylor
d845999e69 tipo 1998-06-18 16:20:45 +00:00
Jeff Law
9eb61c7c61 start-sanitize-am33
* m10300-opc.c (USP, SSP, MSP, PC, IMM4, EPSW, RN0, RM1): New
        operands for the am33.
        (mn10300_opcodes): Add new instructions from the am33.
end-sanitize-am33
        * m10300-opc.c (mn10300_opcodes): Change opcode for "syscall".

Snapshot current work.
1998-06-17 23:54:25 +00:00
Ian Lance Taylor
e6db632454 Tue Jun 16 13:10:51 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* i386-dis.c (index16): Add '%' to register names.  Use ','
	instead of '+'.
1998-06-16 17:11:47 +00:00
Ian Lance Taylor
5f90dab190 Sat Jun 13 11:33:55 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* i386-dis.c: Don't print opcode suffix when we can figure out the
	size (and gas can!) by register operands, or from the default
	size.
	(putop): Handle 'A', 'B', 'L', 'P', 'Q', 'R' macros.  Rename 'C'
	macro to 'E'.
	(dis386, dis386_twobyte, grps): Use new suffix macros.
	(dis386): Correct imul Ib to imul sIb.  Change jnl to jge to be
	consistent.  Add suffix for call, jmp, lcall, ljmp, iret.  Reverse
	order of cmps operands to agree with Intel docs.  Correct operand
	of aad and aam (Ib -> sIb).  Change ud2b from 0fb8 to 0fb9 to
	agree with Intel docs.
	(print_insn_x86): Print orphan fwait before other prefixes.
	Return correct byte count for orphan fwait with prefixes.  Don't
	print `bound' operands in reverse order.
	(ckprefix): Stop accumulating prefixes if we get fwait.
	(OP_DIR): Print `$' before Ap operands of ljmp, lcall.
1998-06-13 15:38:32 +00:00
Tom Tromey
3d935b64eb * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
($(PACKAGE).pot): Unconditionally depend on POTFILES.
1998-06-12 22:39:34 +00:00
Ian Lance Taylor
80ade9931a Fri Jun 12 11:04:06 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Fix problems when bfd_vma is wider than long.
	* i386-dis.c: Make op_address and start_pc unsigned.
	(set_op): Make parameter unsigned.
	(print_insn_x86): Cast to bfd_vma when passing a value to
	print_address_func.
	* ns32k-dis.c (CORE_ADDR): Don't define.
 	(print_insn_ns32k): Change type of addr to bfd_vma.  Use
	bfd_scan_vma to read back address.
	(print_insn_arg): Change type of addr to bfd_vma.  Use sprintf_vma
	to format it.
	* m68k-dis.c (COERCE32): Cast to bfd_signed_vma to avoid overflow.
	(NEXTULONG): New definition.
	(print_insn_m68k): Avoid overflow when computing third argument of
	print_insn_arg.
	(print_insn_arg): Use NEXTULONG to fetch 32 bit address values.
	Use disp instead of val to store offset values.
	(print_indexed): Use base_disp instead of word to store base
	displacement, to avoid overflow.
	* m10300-dis.c (disassemble): Cast value to long when computing
	pc-relative address, to get correct sign extension.
1998-06-12 15:13:28 +00:00
Doug Evans
aead84dc65 * m32r-opc.c: Regenerate.
Updates from better VoidMode handling in cgen.
1998-06-10 23:00:10 +00:00
Nick Clifton
c36224ac5a Disassemble 'add rX, rY, #0' as 'mov rX, rY'. 1998-06-09 21:30:56 +00:00
Nick Clifton
f79ebb2c0f Fix for PR16116 - remove FLAG_MUL32 attribute from MULX2H insn. 1998-06-09 01:18:34 +00:00
Ian Lance Taylor
80119c9ee4 Fri Jun 5 23:47:55 1998 Alan Modra <alan@spri.levels.unisa.edu.au>
* i386-dis.c:  Combine aflag and dflag into sizeflag.  Change OP_*
	functions to void.
	(OP_DSreg): Rename from OP_DSSI.
	(OP_ESreg): Rename from OP_ESDI.
	(Xb, Xv, Yb, Yv): Use index reg code, not b_mode or v_mode.
	(DSBX): Define.
	(append_seg): Rename from append_prefix.
	(ptr_reg): New function.
	(dis386): Add S suffix to pushf, popf, ret, lret, enter, leave.
	Add DSBX for xlat.
	(PREFIX_ADDR): Rename from PREFIX_ADR.
	(float_reg): Add non-broken opcodes for people who don't want
	UNIXWARE_COMPAT.
1998-06-06 03:54:24 +00:00
Ian Lance Taylor
587b388d85 Fri Jun 5 19:15:04 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* m68k-opc.c (tstb, tstw, tstl): Don't allow pcrel on
	68000/68008/68010.
1998-06-05 23:15:45 +00:00
Ian Lance Taylor
06f9c743fc x 1998-06-03 22:57:17 +00:00
Ian Lance Taylor
ea81d2f627 Tue Jun 2 15:06:46 1998 Geoff Keating <geoffk@ozemail.com.au>
* ppc-opc.c (powerpc_macros): Support shifts and rotates of size
	0; produce error message for shifts of size 32 (or 64 for 64-bit
	shifts), because the hardware doesn't support them.
1998-06-02 19:07:44 +00:00
Jeff Law
e10f900fac * mips-opc.c (c.lt.s): Remove r5900 specific variant.
(c.le.s): Likewise.
1998-06-01 18:25:20 +00:00
Jeff Law
7d3d00f846 * vu0.h (sqc2): Fix opcode. 1998-06-01 16:36:09 +00:00
Jeff Law
d2c9a57bc6 * mips-opc.c (rsqrt.s): Update based on r5900 ISA manual version 2.1
(sqrt.s): Likewise.
1998-06-01 16:28:52 +00:00
Stan Cox
e2cb37fee1 sparclite 86x big endian instruction / little endian data support. 1998-05-27 00:51:33 +00:00
Nick Clifton
3db24c6bc8 Fix PR15984 - Add flags to various opcodes 1998-05-26 23:53:12 +00:00
Nick Clifton
42b5fd3608 Fix Pr15998 - Make SHORT_B3(b) formats examin but not modify their first register argument. 1998-05-26 23:15:23 +00:00
Doug Evans
cbc6c9b2bf * cgen-asm.in (insert_normal): Handle empty fields and 64 bit hosts.
* cgen-dis.in (extract_normal): Likewise.
	* m32r-asm.c,m32r-dis.c: Regenerate.
1998-05-22 23:03:45 +00:00
Doug Evans
05f704645d * cgen-asm.in (insert_normal): Handle empty fields and 64 bit hosts.
* cgen-dis.in (extract_normal): Likewise.
1998-05-22 23:02:40 +00:00
Doug Evans
b2158e2f1b * dvp-opc.c (parse_dotdest): Missing dest -> xyzw. 1998-05-22 18:45:19 +00:00
Jeff Law
3366d0655b * mips-opc.c (multu1): Add two operand variant for the r5900. 1998-05-20 06:21:01 +00:00
Ian Lance Taylor
7e9e8c361d * mips-dis.c (print_mips16_insn_arg): Handle type ']' correctly
with a shift count of 0.
1998-05-19 21:36:42 +00:00
Frank Ch. Eigler
10c3731d9c * Followup for SCEI PR 15853: 2-operand R5900 "mult1" instruction.
Mon May 18 14:27:06 1998  Frank Ch. Eigler  <fche@cygnus.com>
	* mips-opc.c (mult1): Add two-operand variety of mult1 for R5900.
1998-05-18 17:46:35 +00:00
Jeff Law
1124a4a7a7 * mips-dis.c (print_insn_arg): Handle ';' opcode completer.
(_print_insn_mips): Likewise.
        * vu0.h (vopmula, vopmsub): Correctly handle opcode/operand
        completers.
1998-05-18 17:46:34 +00:00
Frank Ch. Eigler
58b60bec0d * Fix sanitization 1998-05-18 09:31:10 +00:00
Doug Evans
9c73b8e49c (cgen_hw_lookup_by_num): better name 1998-05-15 23:01:06 +00:00
Doug Evans
9a6c492c14 * cgen-opc.c (cgen_hw_lookup_by_name): Renamed from cgen_hw_lookup.
(cgen_hw_lookup_by_enum): New function.

	* m32r-opc.c, m32r-opc.h: Regenerate, delete h-abort.
1998-05-15 21:59:35 +00:00
Doug Evans
b7d86bd633 * m32r-asm.c: Regenerate (handle uppercase HIGH/SHIGH/LOW/SDA). 1998-05-14 00:05:34 +00:00
Mark Alexander
c67395c94a * sparc-dis.c (print_insn_sparc): Always fetch instructions
as big-endian on SPARClite.
1998-05-13 21:39:16 +00:00
Richard Henderson
703491942c * d30v-opc.c (pre_defined_register): Remove alias for r0.
PR 15669
1998-05-12 18:46:34 +00:00
Jeff Law
c8f90c731e * po/Make-in (install-info): New target. 1998-05-11 04:36:09 +00:00
Ian Lance Taylor
c21d8b4f01 * configure.in (WIN32LIBADD): Add -lintl on cygwin32.
* configure: Rebuild.
1998-05-07 21:16:31 +00:00
Frank Ch. Eigler
bbee738e86 * Converted conditional-trap MIPS opcodes to extra-operand variety also.
Thu May  7 12:49:46 1998  Frank Ch. Eigler  <fche@cygnus.com>

	* mips-opc.c (teq,tge,tgeu,tlt,tltu,tne): Added three-operand
 	variety of ISA2 instructions to set bottom ten bits of trap code.
1998-05-07 17:43:38 +00:00
Ian Lance Taylor
928180df8e * Makefile.am (config.status): Add explicit target so that
config.status depends upon bfd/configure.in.
	* Makefile.in: Rebuild.
1998-05-07 15:56:07 +00:00
Frank Ch. Eigler
01c6e45fe7 * First batch of fixes for sky PR 15853 (20-bit break/sdbbp) 1998-05-07 15:34:13 +00:00
Doug Evans
a2f0f7f230 * cgen.sh: s/@ARCH@/${ARCH}/ in opc.h generation.
* m32r-opc.h: Regenerate.
1998-05-06 21:49:38 +00:00
Ian Lance Taylor
94db6f7294 Wed May 6 15:30:06 1998 Klaus Kaempf <kkaempf@progis.de>
* makefile.vms: Run dec c with /nodebug.
1998-05-06 19:31:11 +00:00
Ian Lance Taylor
6711d1ef23 fix xgettext invocation 1998-05-06 18:30:34 +00:00
Ian Lance Taylor
c2400a02de fix gettext sanitization 1998-05-06 18:15:00 +00:00
Ian Lance Taylor
f7934c1ac6 add po 1998-05-06 17:49:44 +00:00
Doug Evans
fbe293a6dd * configure.in: Add support for --enable-cgen-maint.
* Makefile.am (M32R_DEPS): New variable.
	(m32r-opc.h,m32r-opc.c,m32r-asm.c,m32r-dis.c): Update dependencies.
	* aclocal.m4: Regenerate.
	* Makefile.in: Regenerate.
	* configure: Regenerate.

	* Makefile.am (CGENFILES): Add minsn.scm.
1998-05-01 20:59:29 +00:00
Nick Clifton
1e74d15c9f Internationalised these files. 1998-04-29 01:06:56 +00:00
Nick Clifton
f113ea6b7d Rebuilt again! 1998-04-28 22:48:23 +00:00
Nick Clifton
65887313cf Rebuilt again! 1998-04-28 22:43:01 +00:00
Nick Clifton
8a660fab29 Regernate aclocal.m4 and configure using latest tools (I hope!) 1998-04-28 22:00:55 +00:00
Ian Lance Taylor
9f28ec1a55 Change Makefile.am, not Makefile.in. 1998-04-28 21:39:50 +00:00
Nick Clifton
4c5c86cb54 Fixed build of POTFILES.in 1998-04-28 21:15:42 +00:00
Ian Lance Taylor
784492b591 * configure.in: Call AC_ISC_POSIX near start. Move CY_GNU_GETTEXT
after AC_PROG_CC.
	* aclocal.m4, configure: Rebuild with current tools.
Also add sanitization to ChangeLog.
1998-04-28 17:16:39 +00:00
Ian Lance Taylor
4139b063a6 add opintl.h 1998-04-28 17:12:30 +00:00
Nick Clifton
240f5c9faa Added Internationalisation macros to English text strings. 1998-04-28 00:07:48 +00:00
Nick Clifton
072aa625aa Internationalised the opcodes library. 1998-04-27 21:39:56 +00:00
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
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