Commit Graph

4254 Commits

Author SHA1 Message Date
Doug Evans 3ab32eae4d * Makefile.am (DISTCLEANFILES): Change cgen-opc.h to cgen-desc.h.
(cgen.o): Ditto.
	(EXTRA_as_new_SOURCES): Comment out.
	(.tcdep): <arch>-opc.h renamed to <arch>-desc.h.
	* Makefile.in: Rebuild.
	* doc/Makefile.in: Rebuild.
	* configure.in: Require autoconf 2.13.  Redo using_cgen handling.
	Delete call to AM_CYGWIN32.  Replace AM_EXEEXT with AC_EXEEXT.
	(AC_OUTPUT): <arch>-opc.h renamed to <arch>-desc.h.
	* configure: Rebuild.
	* aclocal.m4: Rebuild.
	* config.in: Rebuild.
	* cgen.c: Include cgen-desc.h, not cgen-opc.h.
	(*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
	(gas_cgen_cpu_desc): Renamed from gas_cgen_opcode_desc.
	CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
	CGEN_OPERAND_ATTR renamed to CGEN_OPERAND_ATTR_VALUE.
	(gas_cgen_record_fixup): Remove unnecessary != 0 test.
	(gas_cgen_record_fixup_exp): Ditto.
	(gas_cgen_finish_insn): Ditto.  Refer to operand table via cpu
	descriptor, not global variable.
	(gas_cgen_md_apply_fix3): Refer to operand_table via cpu
	descriptor, not global variable.  Refer to insert_operand handler
	via cpu descriptor, not global function.
	* cgen.h (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
	* config/tc-fr30.c: Include opcodes/fr30-desc.h.
	(*): gas_cgen_opcode_desc renamed to gas_cgen_cpu_desc.
	CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
	Update call to CGEN_OPERAND_TYPE,CGEN_INSN_OPERANDS.
	* config/tc-m32r.c: Ditto.
	(assemble_two_insns): Update calls to cgen_lookup_get_insn_operands.
	(md_assemble): Ditto.
	(md_convert_frag): Update call to CGEN_OPERAND_ENTRY.
1999-02-10 03:20:59 +00:00
Doug Evans 310addc423 * Makefile.am (DISTCLEANFILES): Change cgen-opc.h to cgen-desc.h.
(cgen.o): Ditto.
	(EXTRA_as_new_SOURCES): Comment out.
	(.tcdep): <arch>-opc.h renamed to <arch>-desc.h.
	* Makefile.in: Rebuild.
	* configure.in: Require autoconf 2.13.  Redo using_cgen handling.
	Delete call to AM_CYGWIN32.  Replace AM_EXEEXT with AC_EXEEXT.
	(AC_OUTPUT): <arch>-opc.h renamed to <arch>-desc.h.
	* configure: Rebuild.
	* aclocal.m4: Rebuild.
	* config.in: Rebuild.
	* cgen.c: Include cgen-desc.h, not cgen-opc.h.
	(*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
	(gas_cgen_cpu_desc): Renamed from gas_cgen_opcode_desc.
	CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
	CGEN_OPERAND_ATTR renamed to CGEN_OPERAND_ATTR_VALUE.
	(gas_cgen_record_fixup): Remove unnecessary != 0 test.
	(gas_cgen_record_fixup_exp): Ditto.
	(gas_cgen_finish_insn): Ditto.  Refer to operand table via cpu
	descriptor, not global variable.
	(gas_cgen_md_apply_fix3): Refer to operand_table via cpu
	descriptor, not global variable.  Refer to insert_operand handler
	via cpu descriptor, not global function.
	* cgen.h (*): CGEN_OPCODE_DESC renamed to CGEN_CPU_DESC.
	* config/tc-fr30.c: Include opcodes/fr30-desc.h.
	(*): gas_cgen_opcode_desc renamed to gas_cgen_cpu_desc.
	CGEN_INSN_ATTR renamed to CGEN_INSN_ATTR_VALUE.
	Update call to CGEN_OPERAND_TYPE,CGEN_INSN_OPERANDS.
	* config/tc-m32r.c: Ditto.
	(assemble_two_insns): Update calls to cgen_lookup_get_insn_operands.
	(md_assemble): Ditto.
	(md_convert_frag): Update call to CGEN_OPERAND_ENTRY.
1999-02-10 03:19:32 +00:00
Nick Clifton b8d4b00e93 Fix Label1 - Label2 relocartions for ELF targets 1999-02-09 15:49:01 +00:00
Nick Clifton 9db7f240c3 Fix tests to pass on ARM targets 1999-02-08 17:29:05 +00:00
Nick Clifton 326fe535eb Add support for StrongARM target. 1999-02-08 12:41:43 +00:00
Doug Evans 92a24a438f * gas/m32r/relax-2.[sd]: New testcase.
* gas/m32r/m32rx.exp: Run it.
PR 19068
1999-02-06 03:56:24 +00:00
Doug Evans 5f02ae577f * config/tc-m32r.c (assemble_two_insns): Always call fill_insn.
PR 19068
1999-02-06 03:29:45 +00:00
Doug Evans 79caaa57ed s/sanitize-m32rx/sanitize-cygnus/ 1999-02-05 19:42:14 +00:00
Nick Clifton 8761296743 Fix arm-coff relocations. 1999-02-05 17:34:41 +00:00
Jeff Law d53e566bc0 m32rx -> cygnus sanitization change. 1999-02-05 17:34:40 +00:00
Jeff Law 6a1132ef3f m32rx -> cygnus sanitization changes. 1999-02-05 17:28:16 +00:00
Doug Evans f5ee0390c5 expand on a comment and reorg for 80 column screen some code in
assemble_two insns
1999-02-04 22:32:46 +00:00
Doug Evans bbbad6ead2 keep outofrange.s 1999-02-04 22:15:27 +00:00
Doug Evans 56629002aa * gas/m32r/outofrange.s: New testcase.
* gas/m32r/error.exp: Run it.
PR 19044
1999-02-04 22:15:12 +00:00
Jeff Law c498fa7287 * config/tc-mn10300.c (md_assemble): "exreg0", "exreg1", "exregother",
and "all" are not valid operands when not in am33 mode.
1999-02-04 17:40:02 +00:00
Richard Henderson b7a4b50949 * config/tc-alpha.c (md_show_usage): Document pca56 and ev6 options. 1999-02-03 19:36:27 +00:00
Nick Clifton 808837c56e Fix spelling typo. 1999-02-02 11:45:18 +00:00
Catherine Moore d0cbdea696 * config/tc-i386.h (LONG_DOUBLE_MNEM_SUFFIX): Define.
(INTEL_DWORD_MNEM_SUFFIX):  Define.
        (BYTE_PTR):  Define.
        (WORD_PTR):  Define.
        (DWORD_PTR):  Define.
        (XWORD_PTR):  Define.
        (SHORT):  Define.
        (OFFSET_FLAT):  Define.
        (FLAT):  Define.
        (NONE_FOUND):  Define.
        (No_dSuf):  Define.
        (No_xSuf):  Define.
        * config/tc-i386.c  (set_intel_syntax):  New routine.
        (intel_syntax):  Declare.
        (allow_naked_reg):  Declare.
        (md_pseudo_table):  Support .intel_syntax and .att_syntax.
        (intel_float_operand):  New routine.
        (md_assemble):  Handle INTEL_DWORD_MNEM_SUFFIX.
        Handle brackets as well as parens.  Call i386_intel_operand for
        intel syntax.  Reverse operands if appropriate.  Handle new
        suffixes.  Handle movzx and movsx.
        (i386_is_reg):  New routine.
        (i386_immediate):  New routine.
        (i386_scale):  New routine.
        (i386_displacement):  New routine.
        (i386_operand_modifier):  New routine.
        (build_displacement_string):  New routine.
        (i386_parse_seg):  New routine.
        (i386_intel_memory_operand):  New routine.
        (i386_intel_operand):  New routine.
        (i386_operand):  Call i386_displacement, i386_immediate,
        i386_scale, etc.  instead of handling inline.
        (parse_register):  Handle registers without prefix.
1999-02-02 02:58:57 +00:00
Catherine Moore 9ac8e451f6 * configure: Regenerate.
* configure.in (arm-*-oabi):  New.
        (thumb-*-oabi):  New.
        * config/tc-arm.c (target_oabi):  Declare.
        (md_apply_fix3): Support REL relocs.
        (md_parse_option):  Handle -oabi.
        (elf32_arm_target_format):  New routine.
        (md_longopts):  Add OPTION_OABI.
        * config/tc-arm.h:  Redefine TARGET_FORMAT.
1999-02-01 20:34:39 +00:00
Nick Clifton a21a12e39e Remove v850e sanitization 1999-02-01 11:21:32 +00:00
Nick Clifton a5904a0f69 Handle bfd_install_relocation returning out-of-range error. 1999-01-28 18:11:41 +00:00
Nick Clifton 760798c61e Fixes to allow vtable support to work. 1999-01-28 17:29:49 +00:00
Jeff Law 9e58f7c1ef am33 sanitization changes. 1999-01-26 14:30:38 +00:00
Nick Clifton bc7d553ce3 Do not merge two instructions when the left hand one kills the right hand one. 1999-01-16 13:33:46 +00:00
Doug Evans 5dddc35ca9 * Makefile.in: Regenerate.
* configure.in: Redo test for using cgen.
	* configure: Regenerate.
plus remove fr30 sanitization
1999-01-12 00:08:48 +00:00
Doug Evans e5e95c7d80 keep fr30 1999-01-11 23:16:57 +00:00
Doug Evans 3a794236c3 keep tc-fr30.[ch] 1999-01-11 23:16:25 +00:00
Nick Clifton 65fedafeb8 prevent accidental redefinition of obj_adjust_symtab 1999-01-09 11:02:56 +00:00
Doug Evans 57c3ff4ee5 * config/tc-m32r.c (OPERAND_IS_COND_BIT): Add check for psw.
pr 18634
1999-01-07 00:48:45 +00:00
Doug Evans 6b4e5a82fe * gas/m32r/interfere.s: New testcase.
* gas/m32r/error.exp: Run it.
pr 18634
1999-01-07 00:45:24 +00:00
Frank Ch. Eigler 79b41c05a4 * Test for PR 18665, from sky branch.
1999-01-06  Frank Ch. Eigler  <fche@cygnus.com>
	* gas/mips/r5900.[sd]: Add tests for multu1/div1/divu1 insns.
1999-01-06 12:47:21 +00:00
Doug Evans fa88f06825 * config/tc-mips.c (mips_frob_file): Disable "Unmatched %hi reloc" warning.
pr 18655
1999-01-06 06:00:46 +00:00
Gavin Romig-Koch 2e23624e62 * config/tc-mips.c (append_insn): For mips16, insert a nop between
a read of HI or LO and an immediatly following branch.
1998-12-29 15:46:59 +00:00
Gavin Romig-Koch ffa3e1860a 1998-12-29 Gavin Romig-Koch <gavin@cygnus.com>
* config/tc-mips.c (md_begin): Another correction to the setting of
	mips_eabi64.
1998-12-29 14:09:36 +00:00
Gavin Romig-Koch 15b7d7d32a * config/tc-mips.c (md_begin): Correct type-o in setting of mips_eabi64. 1998-12-24 00:37:47 +00:00
Nick Clifton 29388c2520 Fix for PR18233, emit a NOP after a relaxable 16 bit insn so that optimised
insns will start on a 32 bit boundary.
1998-12-21 12:42:28 +00:00
Gavin Romig-Koch d95b73282a * config/tc-mips.c (mips_eabi64): New.
(md_begin): Set mips_eabi64.
	(mips_elf_final_processing): Use it.
1998-12-20 00:01:51 +00:00
Gavin Romig-Koch a0542b2798 Correct setting of ABI in e_flags 1998-12-18 20:01:37 +00:00
Nick Clifton c548312b72 Fixed to match latest assembler output. 1998-12-18 16:26:49 +00:00
Dave Brolley d744bbbbb8 Wed Dec 16 16:17:22 1998 Dave Brolley <brolley@cygnus.com>
* config/tc-fr30.c (md_assemble): Warn about invalid instructions in delay slots.
1998-12-16 21:19:51 +00:00
Gavin Romig-Koch fd85b79fcf Handle vr4111 1998-12-16 07:17:25 +00:00
Doug Evans 8ca780d31c * cgen.c (gas_cgen_md_apply_fix3): Mark as an error, rather than a
warning, values that don't fit in the field.
1998-12-16 06:22:33 +00:00
Gavin Romig-Koch 02650bd0a9 This adds ABI flags to MIPS/ELF object files.
For bfd:
	* elf32-mips.c (elf_mips_abi_name): New.
	(_bfd_mips_elf_merge_private_bfd_data): Compare EF_MIPS_ABI flags.

For gas:
	* config/tc-mips.c (mips_abi_string): New.
	(md_parse_option,md_longopts): Add mabi.
	(mips_elf_final_processing): Set e_flags based on mabi flag.

For gcc:
	* config/mips/mips.h (GAS_ASM_SPEC): Pass mabi to gas.
	(ABI_GAS_ASM_SPEC,abi_gas_asm_spec): New.
	(EXTRA_SPECS): Added ABI_GAS_ASM_SPEC,abi_gas_asm_spec.

For include/elf:

	* mips.h (EF_MIPS_ABI,E_MIPS_ABI_O32,E_MIPS_ABI_O64,
	E_MIPS_ABI_EABI32,E_MIPS_ABI_EABI64):
1998-12-15 14:10:46 +00:00
Gavin Romig-Koch 3105a286d5 Handle the 4111 option. 1998-12-15 06:51:12 +00:00
Gavin Romig-Koch f14397f057 for bfd:
* archures.c,bfd-in2.h (bfd_mach_mips4121): New.
	* cpu-mips.c: Added vr4121.
	* elf32-mips.c (elf_mips_mach): Same.
	(_bfd_mips_elf_final_write_processing): Same.

for gas:
	* config/tc-mips.c (mips_4121): New.
	(md_begin,mips_ip,md_longopts,md_parse_option): Add vr4121.

for gcc:
	* config/mips/mips.c (override_options): Add vr4121.
	* config/mips/t-vr4xxx (MULTILIB_MATCHES): Same.

for include/elf:
	* mips.h (E_MIPS_MACH_4121): New.

for include/opcode:
	* mips.h (INSN_4121): New.

for opcodes:
	* mips-dis.c (set_mips_isa_type): Add bfd_mach_mips4121.
	(_print_insn_mips): Same.
	* mips-opc.c: Add vr4121.

for sim/mips:
	* configure.in,mips.igen,vr.igen: Add vr4121.
	* configure: Rebuilt.
1998-12-13 16:14:24 +00:00
Ken Raeburn 9139dd623e h8300: tweak "opcode not available in h8/300 mode" message 1998-12-11 07:55:04 +00:00
Doug Evans 51d57b0aa6 * gas/mips/vu0.[sd]: Update vmtir testcases. 1998-12-10 21:20:00 +00:00
Doug Evans 46338a996d Bring over forgotten changelog entry from sky-980617-branch.
Thu Jul 23 18:31:03 1998  Frank Ch. Eigler  <fche@cygnus.com>

	* gas/dvp/upper-[12].[sd]: Test two-operand CLIP; remove
	old one-operand CLIP.
1998-12-10 19:36:01 +00:00
Doug Evans de9705cb1a * gas/dvp/lower-2.[sd]: Handle label as immediate data.
* gas/dvp/gifimage-1.[sd]: Add testcases for EOP.
	* gas/dvp/upper-[12].[sd]: Test two-operand CLIP; remove
	old one-operand CLIP.
Bring over from sky-980617-branch.
1998-12-10 19:27:27 +00:00
Nick Clifton c8f7664ff1 Add line separator character. 1998-12-10 12:04:21 +00:00