Commit graph

595 commits

Author SHA1 Message Date
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
Doug Evans
1b4817e3c3 * dvp-dis.c (print_vu): Handle loi insns.
(print_insn): Likewise.
	* dvp-opc.c (vu_lower_opcodes): Add "loi".
1998-02-18 23:49:27 +00:00
Doug Evans
98a112c069 * dvp-opc.c (parse_vfreg): Dest spec is optional.
(print_vfreg): Don't print dest spec.
	(parse_accdest): Dest spec is optional.
	(print_accdest): Don't print dest spec.
1998-02-18 02:50:58 +00:00
Doug Evans
b02643b554 * Makefile.am (CGENFILES): Update.
* Makefile.in: Regenerate.
	* cgen-asm.in (insert_normal): Result is error message now.
	Validate value to be inserted.
	(insert_insn_normal): Result is error message now.
	(@arch@_cgen_assemble_insn): Update.
	* cgen-asm.c (cgen_parse_{signed,unsigned}_integer): Delete min,max
	arguments.  Don't perform validation here.
	* m32r-asm.c,m32r-dis.c,m32r-opc.c: Regenerate.
1998-02-18 01:26:15 +00:00
Doug Evans
b2f1861292 * cgen-opc.in (@arch@_cgen_get_insn_operands): Handle empty
operand instance list.
	* m32r-opc.c: Regenerate.
1998-02-13 22:35:43 +00:00
Ian Lance Taylor
251617280e * Makefile.am (AUTOMAKE_OPTIONS): Define.
* configure, Makefile.in, aclocal.m4: Rebuild with automake 1.2e.
1998-02-13 19:55:14 +00:00
Ian Lance Taylor
cf4ce8779a x 1998-02-13 18:39:49 +00:00
Mark Alexander
d31bae35d0 Oops, fix typo. 1998-02-13 18:34:46 +00:00
Mark Alexander
3ed34fca38 * mn10300-dis.c (print_insn_mn10300): Recognize break instruction. 1998-02-13 18:33:34 +00:00
Ian Lance Taylor
ef3c03a472 * configure.in: Get the version number from BFD.
* configure: Rebuild.
1998-02-13 18:31:09 +00:00
Ian Lance Taylor
3a99465376 * Makefile.am (libopcodes_la_LDFLAGS): Define.
* Makefile.in: Rebuild.
1998-02-13 18:13:58 +00:00
Nick Clifton
6eacba2e77 Regenerated after modifying cgen/m32r.cpu to remove WRITE_LR and WRITE_SRC
attributes.
1998-02-13 17:51:46 +00:00
Doug Evans
bf59c0544d tweak last entry 1998-02-13 02:31:33 +00:00
Doug Evans
390bd87dba * cgen-opc.in (@arch@_cgen_lookup_insn): New argument alias_p.
Ignore ALIAS insns if asked to.
	(@arch@_cgen_get_insn_operands): Pass 0 for alias_p, NULL for insn.
	* m32r-opc.c: Regenerate.
1998-02-13 02:31:10 +00:00
Doug Evans
a7dead174d (vu_operands): New element UFLAGS.
(parse_uflags,print_uflags): New functions.
	(vu_upper_opcodes): Add UFLAGS to all insns.
1998-02-13 01:48:16 +00:00
Doug Evans
a45cf1c5cf * dvp.opc.c: Nicely format opcode tables. 1998-02-12 19:04:15 +00:00
Joern Rennecke
fc3c25b9e0 opcodes:
* d10v-opc.c (d10v_predefined_registers, d10v_operands, d10v_opcodes):
	Split OPERAND_ACC into OPERAND_ACC0 and OPERAND_ACC1.
	Introduce OPERAND_GPR.
	* d10v-dis.c (print_operand): Likewise.
include/opcode:
	* d10v.h (OPERAND_ACC): Split into:
	(OPERAND_ACC0, OPERAND_ACC1) .
	(OPERAND_GPR): Define.
gas/config:
	* tc-d10v.c (parallel_ok, find_opcode):
	Split OPERAND_ACC into OPERAND_ACC0 and OPERAND_ACC1.
	Introduce OPERAND_GPR.
1998-02-12 03:56:57 +00:00
Doug Evans
ab0bd0493a * cgen-opc.in: New file.
* cgen.sh: Translate @ARCH@.  Cat cgen-opc.in into @arch@-opc.c.
	* Makefile.am (CGENFILES): Add cgen-opc.in.
	* Makefile.in: Regenerate.

	* cgen-opc.c (cgen_set_cpu): Delete init of hw list `next' chain.
	(cgen_hw_lookup): Make result const.

	* cgen-dis.in (*): Use PTR instead of void *.
	(print_insn): Delete unused vars `i', `syntax'.

	* m32r-opc.h, m32r-opc.c, m32r-asm.c, m32r-dis.c: Regenerate.
1998-02-12 03:13:21 +00:00
Doug Evans
9766c43faf * dvp-opc.c (*): pke,gpuif renamed to vif,gif.
* dvp-dis.c (*): Likewise.
1998-02-10 22:58:49 +00:00
Ian Lance Taylor
7ee4e307d6 * configure, aclocal.m4: Rebuild with new libtool. 1998-02-07 20:35:04 +00:00
Michael Meissner
942738d396 Repeat/repeati are pc-relative 1998-02-05 23:01:37 +00:00
Ian Lance Taylor
788e3f91eb * configure.in: Set libtool_enable_shared rather than
libtool_shared.  Remove diversion hack.
	* configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
1998-02-05 00:18:54 +00:00
Doug Evans
7c26196f5a * cgen-opc.c (cgen_set_cpu): Initialize hardware table.
* m32r-opc.h, m32r-opc.c, m32r-asm.c, m32r-dis.c: Update.
1998-02-04 01:54:47 +00:00
Nick Clifton
b73ebb798d Removed mulwhi-a mulwlo-a, macwhi-a, macwlo-a instructions. 1998-02-02 19:07:04 +00:00
Ian Carmichael
54917cbbd5 * dvp-opc.c, a bunch of little change to the instruction table to make
* it consistent with the SCE asmvu assembler (and inconsistent with the
* spec).
1998-01-30 22:42:04 +00:00
Doug Evans
04eb2dddaf fix d30v and sky sanitization 1998-01-30 20:45:53 +00:00
Ian Carmichael
7092fe96e8 * Fix MAXi encoding, Fix pkemscal/pkemscalf order. 1998-01-30 02:05:05 +00:00
Doug Evans
35e689de71 * m32r-opc.h (HAVE_CPU_M32R): Define. 1998-01-29 21:04:25 +00:00
Doug Evans
37130f1153 * dvp-dis.c, dvp-opc.c: New files.
* configure.in: Compile them if bfd_dvp_arch, as well as mips.
	* configure: Regenerate.
	* Makefile.am (ALL_MACHINES): Add dvp-{dis,opc}.lo.
	(dvp-dis.lo,dvp-opc.lo): Add rules for.
	(mips-dis.lo): Compile with @archdefs@.
	* Makefile.in: Regenerate.
	* disassemble.c: Define ARCH_mips ifdef ARCH_dvp.
	* mips-dis.c (print_insn_little_mips): Check for DVP insns.
plus delete old txvu stuff
1998-01-28 21:58:23 +00:00
Nick Clifton
397b3a9d72 Report combined alignment and size overflow errors. 1998-01-28 17:59:52 +00:00
Jeff Law
83af233519 * mips-dis.c (_print_insn_mips): Set target_processor as appropriate.
Only recognize instructions for the current target_processor.
1998-01-28 04:51:22 +00:00
Doug Evans
f006120d1d * txvu-dis.c (*): Update to use new arguments in
parse/insert/extract/print fns.
	* txvu-opc.c (*): Likewise.
1998-01-27 22:11:55 +00:00
Doug Evans
7b5c32cfa1 (lookup_keyword_{value,name}): New functions.
(scan_symbol): New function.
	(issymchar,SKIP_BLANKS): New macros.
Plus more dma/gpuif support code.
1998-01-27 02:58:45 +00:00
Doug Evans
f31e207296 * txvu-dis.c (print_insn): Extract/print fns take pointer to
insn now and not insn itself.
	* txvu-opc.c: insert/extract/print fns take pointer to
	insn now and not insn itself.  Add initial dma,pke,gpuif support.
	Parse fn no longer needs to set errmsg = NULL for success.
1998-01-27 00:27:54 +00:00
Doug Evans
42e6567657 * txvu-opc.c:
(parse_dest1,insert_luimm12up6): New functions.
	(txvu_operands): New operands LUIMM12UP6, LDEST1.
	(txvu_lower_opcodes): Clean up pass over table.
	(parse_dotdest1): Fix dest calculation.
	(_parse_sdest): Fix typo.
1998-01-24 02:47:35 +00:00
Doug Evans
d1128f738f * txvu-opc.c (txvu_operands, UBC): Add extract entry.
(txvu_operands, UACCDEST): Not a fake operand.
	(txvu_operands, UXYZ): Move parse entry to insert entry.
	(txvu_operands, LVI01): Not a fake operand.
	(txvu_upper_opcodes): Fix spelling of minii instruction.
	(printf_vfreg): Print register number with "%02ld".
	(print_bcftreg): Likewise.
	(print_accdest): Pass `dest' to _print_dest.
	(insert_xyz): Renamed from parse_xyz.
1998-01-23 10:06:43 +00:00
Fred Fish
fcd533e09e * d10v-dis.c (PC_MASK): Correct value.
(print_operand): If there's a reloc, don't calculate the
 	address because they could be in different sections.
1998-01-23 02:36:05 +00:00
Doug Evans
3b7029b185 * cgen.sh: Rewrite to be like simulator's version.
* Makefile.am (cgen): Update call to cgen.sh.
	* Makefile.in: Regenerate
1998-01-23 00:22:56 +00:00
Jim Blandy
88d4055cac *** empty log message *** 1998-01-19 20:28:36 +00:00
Doug Evans
853713a768 backout m32rx stuff, not ready to be checked in 1998-01-16 00:26:51 +00:00
Nick Clifton
0d0bb9140b Only look for two parallel instructions when we are at a 32 bit boundary 1998-01-15 18:35:08 +00:00
Nick Clifton
6bbfec6cda generated file imported from cgen 1998-01-15 01:59:10 +00:00
Nick Clifton
23cf992f4a Support for disassembling parallel instructions added.
Insn attributes hand patched until cgen can generate the correct values.
1998-01-15 01:48:51 +00:00
Jeff Law
b898fc0a3c * mips-opc.c (c.lt.s): Add r5900 variant.
(c.le.s): Likewise.
pr14594.
1998-01-13 16:21:45 +00:00
Doug Evans
bfc10abe47 * Makefile.am: Add cgen support.
* Makefile.in: Regenerate.
	* configure.in: Add cgen support.
	* configure: Regenerate.
	* aclocal.m4: Regenerate.
	* cgen.sh, cgen-asm.in, cgen-dis.in: New files.
1998-01-13 01:37:20 +00:00
Doug Evans
c062b1036f * cgen-asm.c (build_asm_hash_table): Traverse compiled in table using
table provided entry size.  Use CGEN_INSN_MNEMONIC.
	(cgen_parse_keyword): Rewrite.
	* cgen-dis.c (build_dis_hash_table): Traverse compiled in table using
	table provided entry size.  Use CGEN_INSN_MASK_BITSIZE.
	* cgen-opc.c: Clean up pass over `struct foo' usage.
	(cgen_keyword_lookup_value): Handle "" entry.
	(cgen_keyword_add): Likewise.
1998-01-13 01:36:05 +00:00