2018-01-03 13:17:27 +08:00
|
|
|
@c Copyright (C) 1991-2018 Free Software Foundation, Inc.
|
1999-05-03 15:29:11 +08:00
|
|
|
@c This is part of the GAS manual.
|
|
|
|
@c For copying conditions, see the file as.texinfo.
|
|
|
|
@ifset GENERIC
|
|
|
|
@page
|
|
|
|
@node M68K-Dependent
|
|
|
|
@chapter M680x0 Dependent Features
|
|
|
|
@end ifset
|
|
|
|
@ifclear GENERIC
|
|
|
|
@node Machine Dependencies
|
|
|
|
@chapter M680x0 Dependent Features
|
|
|
|
@end ifclear
|
|
|
|
|
|
|
|
@cindex M680x0 support
|
|
|
|
@menu
|
|
|
|
* M68K-Opts:: M680x0 Options
|
|
|
|
* M68K-Syntax:: Syntax
|
|
|
|
* M68K-Moto-Syntax:: Motorola Syntax
|
|
|
|
* M68K-Float:: Floating Point
|
|
|
|
* M68K-Directives:: 680x0 Machine Directives
|
|
|
|
* M68K-opcodes:: Opcodes
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node M68K-Opts
|
|
|
|
@section M680x0 Options
|
|
|
|
|
|
|
|
@cindex options, M680x0
|
|
|
|
@cindex M680x0 options
|
|
|
|
The Motorola 680x0 version of @code{@value{AS}} has a few machine
|
2000-08-02 00:57:01 +08:00
|
|
|
dependent options:
|
|
|
|
|
|
|
|
@table @samp
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2018-07-02 18:18:24 +08:00
|
|
|
@cindex @samp{-march=} command-line option, M680x0
|
* bfd/archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
(bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
bfd_mach_mcf_isa_b_usp_float_emac): New.
(bfd_default_scan): Update coldfire mapping.
* bfd/bfd-in.h (bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Declare.
* bfd/bfd-in2.h: Rebuilt.
* bfd/cpu-m68k.c (arch_info_struct): Add new coldfire machines,
adjust legacy names.
(m68k_arch_features): New.
(bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Define.
* bfd/elf32-m68k.c (elf32_m68k_object_p): New.
(elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
(elf32_m68k_print_private_bfd_data): Print the CF EF flags.
(elf_backend_object_p): Define.
* bfd/ieee.c (ieee_write_processor): Update coldfire machines.
* bfd/libbfd.h: Rebuilt.
* gas/config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
mcf5329_control_regs): New.
(not_current_architecture, selected_arch, selected_cpu): New.
(m68k_archs, m68k_extensions): New.
(archs): Renamed to ...
(m68k_cpus): ... here. Adjust.
(n_arches): Remove.
(md_pseudo_table): Add arch and cpu directives.
(find_cf_chip, m68k_ip): Adjust table scanning.
(no_68851, no_68881): Remove.
(md_assemble): Lazily initialize.
(select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
(md_init_after_args): Move functionality to m68k_init_arch.
(mri_chip): Adjust table scanning.
(md_parse_option): Reimplement 'm' processing to add -march & -mcpu
options with saner parsing.
(m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
m68k_init_arch): New.
(s_m68k_cpu, s_m68k_arch): New.
(md_show_usage): Adjust.
(m68k_elf_final_processing): Set CF EF flags.
* gas/config/tc-m68k.h (m68k_init_after_args): Remove.
(tc_init_after_args): Remove.
* gas/doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
(M68k-Directives): Document .arch and .cpu directives.
* gas/testsuite/gas/m68k/all.exp: Add arch-cpu-1 test.
* gas/testsuite/gas/m68k/arch-cpu-1.[sd]: New.
* include/elf/m68k.h (EF_CPU32, EF_M68000, EF_CFV4E): Rename to ...
(EF_M68K_CPU32, EF_M68K_M68000, EF_M68K_CFV4E): ... here.
(EF_M68K_ISA_MASK, EF_M68K_ISA_A, EF_M68K_M68K_ISA_A_PLUS,
EF_M68K_ISA_B, EF_M68K_HW_DIV, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_USP, EF_M68K_FLOAT): New.
* include/opcode/m68k.h (m68008, m68ec030, m68882): Remove.
(m68k_mask): New.
(cpu_m68k, cpu_cf): New.
(mcf5200, mcf5206e, mcf521x, mcf5249, mcf528x, mcf5307, mcf5407,
mcf5470, mcf5480): Rename to cpu_<foo>. Add m680x0 variants.
* opcodes/m68k-dis.c (print_insn_m68k): Use
bfd_m68k_mach_to_features.
* binutils/readelf.c (get_machine_flags): Add logic for EF_M68K flags.
2006-02-08 03:01:10 +08:00
|
|
|
@item -march=@var{architecture}
|
|
|
|
This option specifies a target architecture. The following
|
|
|
|
architectures are recognized:
|
|
|
|
@code{68000},
|
|
|
|
@code{68010},
|
|
|
|
@code{68020},
|
|
|
|
@code{68030},
|
|
|
|
@code{68040},
|
|
|
|
@code{68060},
|
|
|
|
@code{cpu32},
|
|
|
|
@code{isaa},
|
|
|
|
@code{isaaplus},
|
gas/testsuite/
* gas/m68k/br-isaa.s: New.
* gas/m68k/br-isaa.d: New.
* gas/m68k/br-isab.s: New.
* gas/m68k/br-isab.d: New.
* gas/m68k/br-isac.s: New.
* gas/m68k/br-isac.d: New.
* gas/m68k/all.exp: Adjust.
gas/
* config/tc-m68k.c (mcf54455_ctrl): New.
(HAVE_LONG_DISP, HAVE_LONG_CALL, HAVE_LONG_COND): New.
(m68k_archs): Add isac.
(m68k_cpus): Add 54455 family.
(m68k_ip): Split Bg into Bb, Bs, Bg.
(m68k_elf_final_processing): Add ISA_C.
* doc/c-m68k.texi (M680x0 Options): Add isac.
include/opcode/
* m68k.h (mcfisa_c): New.
(mcfusp, mcf_mask): Adjust.
bfd/
* archures.c (bfd_mach_mcf_isa_c, bfd_mach_mcf_isa_c_mac,
bfd_mach_mcf_isa_c_emac): New.
* elf32-m68k.c (ISAC_PLT_ENTRY_SIZE, elf_isac_plt0_entry,
elf_isac_plt_entry, elf_isac_plt_info): New.
(elf32_m68k_object_p): Add ISA_C.
(elf32_m68k_print_private_bfd_data): Print ISA_C.
(elf32_m68k_get_plt_info): Detect ISA_C.
* cpu-m68k.c (arch_info): Add ISAC.
(m68k_arch_features): Likewise,
(bfd_m68k_compatible): ISAs B & C are not compatible.
opcodes/
* m68k-opc.c: Mark mcfisa_c instructions.
2007-04-23 15:51:33 +08:00
|
|
|
@code{isab},
|
|
|
|
@code{isac} and
|
* bfd/archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
(bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
bfd_mach_mcf_isa_b_usp_float_emac): New.
(bfd_default_scan): Update coldfire mapping.
* bfd/bfd-in.h (bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Declare.
* bfd/bfd-in2.h: Rebuilt.
* bfd/cpu-m68k.c (arch_info_struct): Add new coldfire machines,
adjust legacy names.
(m68k_arch_features): New.
(bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Define.
* bfd/elf32-m68k.c (elf32_m68k_object_p): New.
(elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
(elf32_m68k_print_private_bfd_data): Print the CF EF flags.
(elf_backend_object_p): Define.
* bfd/ieee.c (ieee_write_processor): Update coldfire machines.
* bfd/libbfd.h: Rebuilt.
* gas/config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
mcf5329_control_regs): New.
(not_current_architecture, selected_arch, selected_cpu): New.
(m68k_archs, m68k_extensions): New.
(archs): Renamed to ...
(m68k_cpus): ... here. Adjust.
(n_arches): Remove.
(md_pseudo_table): Add arch and cpu directives.
(find_cf_chip, m68k_ip): Adjust table scanning.
(no_68851, no_68881): Remove.
(md_assemble): Lazily initialize.
(select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
(md_init_after_args): Move functionality to m68k_init_arch.
(mri_chip): Adjust table scanning.
(md_parse_option): Reimplement 'm' processing to add -march & -mcpu
options with saner parsing.
(m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
m68k_init_arch): New.
(s_m68k_cpu, s_m68k_arch): New.
(md_show_usage): Adjust.
(m68k_elf_final_processing): Set CF EF flags.
* gas/config/tc-m68k.h (m68k_init_after_args): Remove.
(tc_init_after_args): Remove.
* gas/doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
(M68k-Directives): Document .arch and .cpu directives.
* gas/testsuite/gas/m68k/all.exp: Add arch-cpu-1 test.
* gas/testsuite/gas/m68k/arch-cpu-1.[sd]: New.
* include/elf/m68k.h (EF_CPU32, EF_M68000, EF_CFV4E): Rename to ...
(EF_M68K_CPU32, EF_M68K_M68000, EF_M68K_CFV4E): ... here.
(EF_M68K_ISA_MASK, EF_M68K_ISA_A, EF_M68K_M68K_ISA_A_PLUS,
EF_M68K_ISA_B, EF_M68K_HW_DIV, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_USP, EF_M68K_FLOAT): New.
* include/opcode/m68k.h (m68008, m68ec030, m68882): Remove.
(m68k_mask): New.
(cpu_m68k, cpu_cf): New.
(mcf5200, mcf5206e, mcf521x, mcf5249, mcf528x, mcf5307, mcf5407,
mcf5470, mcf5480): Rename to cpu_<foo>. Add m680x0 variants.
* opcodes/m68k-dis.c (print_insn_m68k): Use
bfd_m68k_mach_to_features.
* binutils/readelf.c (get_machine_flags): Add logic for EF_M68K flags.
2006-02-08 03:01:10 +08:00
|
|
|
@code{cfv4e}.
|
|
|
|
|
|
|
|
|
2018-07-02 18:18:24 +08:00
|
|
|
@cindex @samp{-mcpu=} command-line option, M680x0
|
* bfd/archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
(bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
bfd_mach_mcf_isa_b_usp_float_emac): New.
(bfd_default_scan): Update coldfire mapping.
* bfd/bfd-in.h (bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Declare.
* bfd/bfd-in2.h: Rebuilt.
* bfd/cpu-m68k.c (arch_info_struct): Add new coldfire machines,
adjust legacy names.
(m68k_arch_features): New.
(bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Define.
* bfd/elf32-m68k.c (elf32_m68k_object_p): New.
(elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
(elf32_m68k_print_private_bfd_data): Print the CF EF flags.
(elf_backend_object_p): Define.
* bfd/ieee.c (ieee_write_processor): Update coldfire machines.
* bfd/libbfd.h: Rebuilt.
* gas/config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
mcf5329_control_regs): New.
(not_current_architecture, selected_arch, selected_cpu): New.
(m68k_archs, m68k_extensions): New.
(archs): Renamed to ...
(m68k_cpus): ... here. Adjust.
(n_arches): Remove.
(md_pseudo_table): Add arch and cpu directives.
(find_cf_chip, m68k_ip): Adjust table scanning.
(no_68851, no_68881): Remove.
(md_assemble): Lazily initialize.
(select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
(md_init_after_args): Move functionality to m68k_init_arch.
(mri_chip): Adjust table scanning.
(md_parse_option): Reimplement 'm' processing to add -march & -mcpu
options with saner parsing.
(m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
m68k_init_arch): New.
(s_m68k_cpu, s_m68k_arch): New.
(md_show_usage): Adjust.
(m68k_elf_final_processing): Set CF EF flags.
* gas/config/tc-m68k.h (m68k_init_after_args): Remove.
(tc_init_after_args): Remove.
* gas/doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
(M68k-Directives): Document .arch and .cpu directives.
* gas/testsuite/gas/m68k/all.exp: Add arch-cpu-1 test.
* gas/testsuite/gas/m68k/arch-cpu-1.[sd]: New.
* include/elf/m68k.h (EF_CPU32, EF_M68000, EF_CFV4E): Rename to ...
(EF_M68K_CPU32, EF_M68K_M68000, EF_M68K_CFV4E): ... here.
(EF_M68K_ISA_MASK, EF_M68K_ISA_A, EF_M68K_M68K_ISA_A_PLUS,
EF_M68K_ISA_B, EF_M68K_HW_DIV, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_USP, EF_M68K_FLOAT): New.
* include/opcode/m68k.h (m68008, m68ec030, m68882): Remove.
(m68k_mask): New.
(cpu_m68k, cpu_cf): New.
(mcf5200, mcf5206e, mcf521x, mcf5249, mcf528x, mcf5307, mcf5407,
mcf5470, mcf5480): Rename to cpu_<foo>. Add m680x0 variants.
* opcodes/m68k-dis.c (print_insn_m68k): Use
bfd_m68k_mach_to_features.
* binutils/readelf.c (get_machine_flags): Add logic for EF_M68K flags.
2006-02-08 03:01:10 +08:00
|
|
|
@item -mcpu=@var{cpu}
|
|
|
|
This option specifies a target cpu. When used in conjunction with the
|
|
|
|
@option{-march} option, the cpu must be within the specified
|
|
|
|
architecture. Also, the generic features of the architecture are used
|
|
|
|
for instruction generation, rather than those of the specific chip.
|
|
|
|
|
2018-07-02 18:18:24 +08:00
|
|
|
@cindex @samp{-m[no-]68851} command-line option, M680x0
|
|
|
|
@cindex @samp{-m[no-]68881} command-line option, M680x0
|
|
|
|
@cindex @samp{-m[no-]div} command-line option, M680x0
|
|
|
|
@cindex @samp{-m[no-]usp} command-line option, M680x0
|
|
|
|
@cindex @samp{-m[no-]float} command-line option, M680x0
|
|
|
|
@cindex @samp{-m[no-]mac} command-line option, M680x0
|
|
|
|
@cindex @samp{-m[no-]emac} command-line option, M680x0
|
* bfd/archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
(bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
bfd_mach_mcf_isa_b_usp_float_emac): New.
(bfd_default_scan): Update coldfire mapping.
* bfd/bfd-in.h (bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Declare.
* bfd/bfd-in2.h: Rebuilt.
* bfd/cpu-m68k.c (arch_info_struct): Add new coldfire machines,
adjust legacy names.
(m68k_arch_features): New.
(bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Define.
* bfd/elf32-m68k.c (elf32_m68k_object_p): New.
(elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
(elf32_m68k_print_private_bfd_data): Print the CF EF flags.
(elf_backend_object_p): Define.
* bfd/ieee.c (ieee_write_processor): Update coldfire machines.
* bfd/libbfd.h: Rebuilt.
* gas/config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
mcf5329_control_regs): New.
(not_current_architecture, selected_arch, selected_cpu): New.
(m68k_archs, m68k_extensions): New.
(archs): Renamed to ...
(m68k_cpus): ... here. Adjust.
(n_arches): Remove.
(md_pseudo_table): Add arch and cpu directives.
(find_cf_chip, m68k_ip): Adjust table scanning.
(no_68851, no_68881): Remove.
(md_assemble): Lazily initialize.
(select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
(md_init_after_args): Move functionality to m68k_init_arch.
(mri_chip): Adjust table scanning.
(md_parse_option): Reimplement 'm' processing to add -march & -mcpu
options with saner parsing.
(m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
m68k_init_arch): New.
(s_m68k_cpu, s_m68k_arch): New.
(md_show_usage): Adjust.
(m68k_elf_final_processing): Set CF EF flags.
* gas/config/tc-m68k.h (m68k_init_after_args): Remove.
(tc_init_after_args): Remove.
* gas/doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
(M68k-Directives): Document .arch and .cpu directives.
* gas/testsuite/gas/m68k/all.exp: Add arch-cpu-1 test.
* gas/testsuite/gas/m68k/arch-cpu-1.[sd]: New.
* include/elf/m68k.h (EF_CPU32, EF_M68000, EF_CFV4E): Rename to ...
(EF_M68K_CPU32, EF_M68K_M68000, EF_M68K_CFV4E): ... here.
(EF_M68K_ISA_MASK, EF_M68K_ISA_A, EF_M68K_M68K_ISA_A_PLUS,
EF_M68K_ISA_B, EF_M68K_HW_DIV, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_USP, EF_M68K_FLOAT): New.
* include/opcode/m68k.h (m68008, m68ec030, m68882): Remove.
(m68k_mask): New.
(cpu_m68k, cpu_cf): New.
(mcf5200, mcf5206e, mcf521x, mcf5249, mcf528x, mcf5307, mcf5407,
mcf5470, mcf5480): Rename to cpu_<foo>. Add m680x0 variants.
* opcodes/m68k-dis.c (print_insn_m68k): Use
bfd_m68k_mach_to_features.
* binutils/readelf.c (get_machine_flags): Add logic for EF_M68K flags.
2006-02-08 03:01:10 +08:00
|
|
|
@item -m[no-]68851
|
2010-06-21 18:49:41 +08:00
|
|
|
@itemx -m[no-]68881
|
|
|
|
@itemx -m[no-]div
|
|
|
|
@itemx -m[no-]usp
|
|
|
|
@itemx -m[no-]float
|
|
|
|
@itemx -m[no-]mac
|
|
|
|
@itemx -m[no-]emac
|
* bfd/archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
(bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
bfd_mach_mcf_isa_b_usp_float_emac): New.
(bfd_default_scan): Update coldfire mapping.
* bfd/bfd-in.h (bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Declare.
* bfd/bfd-in2.h: Rebuilt.
* bfd/cpu-m68k.c (arch_info_struct): Add new coldfire machines,
adjust legacy names.
(m68k_arch_features): New.
(bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Define.
* bfd/elf32-m68k.c (elf32_m68k_object_p): New.
(elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
(elf32_m68k_print_private_bfd_data): Print the CF EF flags.
(elf_backend_object_p): Define.
* bfd/ieee.c (ieee_write_processor): Update coldfire machines.
* bfd/libbfd.h: Rebuilt.
* gas/config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
mcf5329_control_regs): New.
(not_current_architecture, selected_arch, selected_cpu): New.
(m68k_archs, m68k_extensions): New.
(archs): Renamed to ...
(m68k_cpus): ... here. Adjust.
(n_arches): Remove.
(md_pseudo_table): Add arch and cpu directives.
(find_cf_chip, m68k_ip): Adjust table scanning.
(no_68851, no_68881): Remove.
(md_assemble): Lazily initialize.
(select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
(md_init_after_args): Move functionality to m68k_init_arch.
(mri_chip): Adjust table scanning.
(md_parse_option): Reimplement 'm' processing to add -march & -mcpu
options with saner parsing.
(m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
m68k_init_arch): New.
(s_m68k_cpu, s_m68k_arch): New.
(md_show_usage): Adjust.
(m68k_elf_final_processing): Set CF EF flags.
* gas/config/tc-m68k.h (m68k_init_after_args): Remove.
(tc_init_after_args): Remove.
* gas/doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
(M68k-Directives): Document .arch and .cpu directives.
* gas/testsuite/gas/m68k/all.exp: Add arch-cpu-1 test.
* gas/testsuite/gas/m68k/arch-cpu-1.[sd]: New.
* include/elf/m68k.h (EF_CPU32, EF_M68000, EF_CFV4E): Rename to ...
(EF_M68K_CPU32, EF_M68K_M68000, EF_M68K_CFV4E): ... here.
(EF_M68K_ISA_MASK, EF_M68K_ISA_A, EF_M68K_M68K_ISA_A_PLUS,
EF_M68K_ISA_B, EF_M68K_HW_DIV, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_USP, EF_M68K_FLOAT): New.
* include/opcode/m68k.h (m68008, m68ec030, m68882): Remove.
(m68k_mask): New.
(cpu_m68k, cpu_cf): New.
(mcf5200, mcf5206e, mcf521x, mcf5249, mcf528x, mcf5307, mcf5407,
mcf5470, mcf5480): Rename to cpu_<foo>. Add m680x0 variants.
* opcodes/m68k-dis.c (print_insn_m68k): Use
bfd_m68k_mach_to_features.
* binutils/readelf.c (get_machine_flags): Add logic for EF_M68K flags.
2006-02-08 03:01:10 +08:00
|
|
|
|
|
|
|
Enable or disable various architecture specific features. If a chip
|
|
|
|
or architecture by default supports an option (for instance
|
|
|
|
@option{-march=isaaplus} includes the @option{-mdiv} option),
|
|
|
|
explicitly disabling the option will override the default.
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
@cindex @samp{-l} option, M680x0
|
2000-08-02 00:57:01 +08:00
|
|
|
@item -l
|
1999-05-03 15:29:11 +08:00
|
|
|
You can use the @samp{-l} option to shorten the size of references to undefined
|
|
|
|
symbols. If you do not use the @samp{-l} option, references to undefined
|
|
|
|
symbols are wide enough for a full @code{long} (32 bits). (Since
|
|
|
|
@code{@value{AS}} cannot know where these symbols end up, @code{@value{AS}} can
|
|
|
|
only allocate space for the linker to fill in later. Since @code{@value{AS}}
|
|
|
|
does not know how far away these symbols are, it allocates as much space as it
|
|
|
|
can.) If you use this option, the references are only one word wide (16 bits).
|
|
|
|
This may be useful if you want the object file to be as small as possible, and
|
|
|
|
you know that the relevant symbols are always less than 17 bits away.
|
|
|
|
|
|
|
|
@cindex @samp{--register-prefix-optional} option, M680x0
|
2000-08-02 00:57:01 +08:00
|
|
|
@item --register-prefix-optional
|
1999-05-03 15:29:11 +08:00
|
|
|
For some configurations, especially those where the compiler normally
|
|
|
|
does not prepend an underscore to the names of user variables, the
|
|
|
|
assembler requires a @samp{%} before any use of a register name. This
|
|
|
|
is intended to let the assembler distinguish between C variables and
|
|
|
|
functions named @samp{a0} through @samp{a7}, and so on. The @samp{%} is
|
|
|
|
always accepted, but is not required for certain configurations, notably
|
|
|
|
@samp{sun3}. The @samp{--register-prefix-optional} option may be used
|
|
|
|
to permit omitting the @samp{%} even for configurations for which it is
|
|
|
|
normally required. If this is done, it will generally be impossible to
|
|
|
|
refer to C variables and functions with the same names as register
|
|
|
|
names.
|
|
|
|
|
|
|
|
@cindex @samp{--bitwise-or} option, M680x0
|
2000-08-02 00:57:01 +08:00
|
|
|
@item --bitwise-or
|
1999-05-03 15:29:11 +08:00
|
|
|
Normally the character @samp{|} is treated as a comment character, which
|
|
|
|
means that it can not be used in expressions. The @samp{--bitwise-or}
|
|
|
|
option turns @samp{|} into a normal character. In this mode, you must
|
|
|
|
either use C style comments, or start comments with a @samp{#} character
|
|
|
|
at the beginning of a line.
|
|
|
|
|
|
|
|
@cindex @samp{--base-size-default-16}
|
|
|
|
@cindex @samp{--base-size-default-32}
|
2013-01-11 03:51:55 +08:00
|
|
|
@item --base-size-default-16 --base-size-default-32
|
1999-05-03 15:29:11 +08:00
|
|
|
If you use an addressing mode with a base register without specifying
|
|
|
|
the size, @code{@value{AS}} will normally use the full 32 bit value.
|
|
|
|
For example, the addressing mode @samp{%a0@@(%d0)} is equivalent to
|
|
|
|
@samp{%a0@@(%d0:l)}. You may use the @samp{--base-size-default-16}
|
|
|
|
option to tell @code{@value{AS}} to default to using the 16 bit value.
|
|
|
|
In this case, @samp{%a0@@(%d0)} is equivalent to @samp{%a0@@(%d0:w)}.
|
|
|
|
You may use the @samp{--base-size-default-32} option to restore the
|
|
|
|
default behaviour.
|
|
|
|
|
|
|
|
@cindex @samp{--disp-size-default-16}
|
|
|
|
@cindex @samp{--disp-size-default-32}
|
2000-08-02 00:57:01 +08:00
|
|
|
@item --disp-size-default-16 --disp-size-default-32
|
1999-05-03 15:29:11 +08:00
|
|
|
If you use an addressing mode with a displacement, and the value of the
|
|
|
|
displacement is not known, @code{@value{AS}} will normally assume that
|
|
|
|
the value is 32 bits. For example, if the symbol @samp{disp} has not
|
|
|
|
been defined, @code{@value{AS}} will assemble the addressing mode
|
|
|
|
@samp{%a0@@(disp,%d0)} as though @samp{disp} is a 32 bit value. You may
|
|
|
|
use the @samp{--disp-size-default-16} option to tell @code{@value{AS}}
|
|
|
|
to instead assume that the displacement is 16 bits. In this case,
|
|
|
|
@code{@value{AS}} will assemble @samp{%a0@@(disp,%d0)} as though
|
|
|
|
@samp{disp} is a 16 bit value. You may use the
|
|
|
|
@samp{--disp-size-default-32} option to restore the default behaviour.
|
|
|
|
|
2000-08-01 06:08:14 +08:00
|
|
|
@cindex @samp{--pcrel}
|
2000-08-02 00:57:01 +08:00
|
|
|
@item --pcrel
|
|
|
|
Always keep branches PC-relative. In the M680x0 architecture all branches
|
|
|
|
are defined as PC-relative. However, on some processors they are limited
|
|
|
|
to word displacements maximum. When @code{@value{AS}} needs a long branch
|
|
|
|
that is not available, it normally emits an absolute jump instead. This
|
|
|
|
option disables this substitution. When this option is given and no long
|
|
|
|
branches are available, only word branches will be emitted. An error
|
|
|
|
message will be generated if a word branch cannot reach its target. This
|
|
|
|
option has no effect on 68020 and other processors that have long branches.
|
|
|
|
@pxref{M68K-Branch,,Branch Improvement}.
|
2000-08-01 06:08:14 +08:00
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
@cindex @samp{-m68000} and related options
|
|
|
|
@cindex architecture options, M680x0
|
|
|
|
@cindex M680x0 architecture options
|
2000-08-02 00:57:01 +08:00
|
|
|
@item -m68000
|
1999-05-03 15:29:11 +08:00
|
|
|
@code{@value{AS}} can assemble code for several different members of the
|
|
|
|
Motorola 680x0 family. The default depends upon how @code{@value{AS}}
|
|
|
|
was configured when it was built; normally, the default is to assemble
|
|
|
|
code for the 68020 microprocessor. The following options may be used to
|
|
|
|
change the default. These options control which instructions and
|
|
|
|
addressing modes are permitted. The members of the 680x0 family are
|
|
|
|
very similar. For detailed information about the differences, see the
|
|
|
|
Motorola manuals.
|
|
|
|
|
|
|
|
@table @samp
|
|
|
|
@item -m68000
|
|
|
|
@itemx -m68ec000
|
|
|
|
@itemx -m68hc000
|
|
|
|
@itemx -m68hc001
|
|
|
|
@itemx -m68008
|
|
|
|
@itemx -m68302
|
|
|
|
@itemx -m68306
|
|
|
|
@itemx -m68307
|
|
|
|
@itemx -m68322
|
|
|
|
@itemx -m68356
|
|
|
|
Assemble for the 68000. @samp{-m68008}, @samp{-m68302}, and so on are synonyms
|
|
|
|
for @samp{-m68000}, since the chips are the same from the point of view
|
|
|
|
of the assembler.
|
|
|
|
|
|
|
|
@item -m68010
|
|
|
|
Assemble for the 68010.
|
|
|
|
|
|
|
|
@item -m68020
|
|
|
|
@itemx -m68ec020
|
|
|
|
Assemble for the 68020. This is normally the default.
|
|
|
|
|
|
|
|
@item -m68030
|
|
|
|
@itemx -m68ec030
|
|
|
|
Assemble for the 68030.
|
|
|
|
|
|
|
|
@item -m68040
|
|
|
|
@itemx -m68ec040
|
|
|
|
Assemble for the 68040.
|
|
|
|
|
|
|
|
@item -m68060
|
|
|
|
@itemx -m68ec060
|
|
|
|
Assemble for the 68060.
|
|
|
|
|
|
|
|
@item -mcpu32
|
|
|
|
@itemx -m68330
|
|
|
|
@itemx -m68331
|
|
|
|
@itemx -m68332
|
|
|
|
@itemx -m68333
|
|
|
|
@itemx -m68334
|
|
|
|
@itemx -m68336
|
|
|
|
@itemx -m68340
|
|
|
|
@itemx -m68341
|
|
|
|
@itemx -m68349
|
|
|
|
@itemx -m68360
|
|
|
|
Assemble for the CPU32 family of chips.
|
|
|
|
|
|
|
|
@item -m5200
|
2010-06-21 18:49:41 +08:00
|
|
|
@itemx -m5202
|
|
|
|
@itemx -m5204
|
|
|
|
@itemx -m5206
|
|
|
|
@itemx -m5206e
|
|
|
|
@itemx -m521x
|
|
|
|
@itemx -m5249
|
|
|
|
@itemx -m528x
|
|
|
|
@itemx -m5307
|
|
|
|
@itemx -m5407
|
|
|
|
@itemx -m547x
|
|
|
|
@itemx -m548x
|
|
|
|
@itemx -mcfv4
|
|
|
|
@itemx -mcfv4e
|
1999-05-03 15:29:11 +08:00
|
|
|
Assemble for the ColdFire family of chips.
|
|
|
|
|
|
|
|
@item -m68881
|
|
|
|
@itemx -m68882
|
|
|
|
Assemble 68881 floating point instructions. This is the default for the
|
|
|
|
68020, 68030, and the CPU32. The 68040 and 68060 always support
|
|
|
|
floating point instructions.
|
|
|
|
|
|
|
|
@item -mno-68881
|
|
|
|
Do not assemble 68881 floating point instructions. This is the default
|
|
|
|
for 68000 and the 68010. The 68040 and 68060 always support floating
|
|
|
|
point instructions, even if this option is used.
|
|
|
|
|
|
|
|
@item -m68851
|
|
|
|
Assemble 68851 MMU instructions. This is the default for the 68020,
|
|
|
|
68030, and 68060. The 68040 accepts a somewhat different set of MMU
|
|
|
|
instructions; @samp{-m68851} and @samp{-m68040} should not be used
|
|
|
|
together.
|
|
|
|
|
|
|
|
@item -mno-68851
|
|
|
|
Do not assemble 68851 MMU instructions. This is the default for the
|
|
|
|
68000, 68010, and the CPU32. The 68040 accepts a somewhat different set
|
|
|
|
of MMU instructions.
|
|
|
|
@end table
|
2000-08-02 00:57:01 +08:00
|
|
|
@end table
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
@node M68K-Syntax
|
|
|
|
@section Syntax
|
|
|
|
|
|
|
|
@cindex @sc{mit}
|
|
|
|
This syntax for the Motorola 680x0 was developed at @sc{mit}.
|
|
|
|
|
|
|
|
@cindex M680x0 syntax
|
|
|
|
@cindex syntax, M680x0
|
|
|
|
@cindex M680x0 size modifiers
|
|
|
|
@cindex size modifiers, M680x0
|
|
|
|
The 680x0 version of @code{@value{AS}} uses instructions names and
|
|
|
|
syntax compatible with the Sun assembler. Intervening periods are
|
|
|
|
ignored; for example, @samp{movl} is equivalent to @samp{mov.l}.
|
|
|
|
|
|
|
|
In the following table @var{apc} stands for any of the address registers
|
|
|
|
(@samp{%a0} through @samp{%a7}), the program counter (@samp{%pc}), the
|
|
|
|
zero-address relative to the program counter (@samp{%zpc}), a suppressed
|
|
|
|
address register (@samp{%za0} through @samp{%za7}), or it may be omitted
|
|
|
|
entirely. The use of @var{size} means one of @samp{w} or @samp{l}, and
|
|
|
|
it may be omitted, along with the leading colon, unless a scale is also
|
|
|
|
specified. The use of @var{scale} means one of @samp{1}, @samp{2},
|
|
|
|
@samp{4}, or @samp{8}, and it may always be omitted along with the
|
|
|
|
leading colon.
|
|
|
|
|
|
|
|
@cindex M680x0 addressing modes
|
|
|
|
@cindex addressing modes, M680x0
|
|
|
|
The following addressing modes are understood:
|
|
|
|
@table @dfn
|
|
|
|
@item Immediate
|
|
|
|
@samp{#@var{number}}
|
|
|
|
|
|
|
|
@item Data Register
|
|
|
|
@samp{%d0} through @samp{%d7}
|
|
|
|
|
|
|
|
@item Address Register
|
|
|
|
@samp{%a0} through @samp{%a7}@*
|
2006-07-24 21:49:50 +08:00
|
|
|
@samp{%a7} is also known as @samp{%sp}, i.e., the Stack Pointer. @code{%a6}
|
1999-05-03 15:29:11 +08:00
|
|
|
is also known as @samp{%fp}, the Frame Pointer.
|
|
|
|
|
|
|
|
@item Address Register Indirect
|
|
|
|
@samp{%a0@@} through @samp{%a7@@}
|
|
|
|
|
|
|
|
@item Address Register Postincrement
|
|
|
|
@samp{%a0@@+} through @samp{%a7@@+}
|
|
|
|
|
|
|
|
@item Address Register Predecrement
|
|
|
|
@samp{%a0@@-} through @samp{%a7@@-}
|
|
|
|
|
|
|
|
@item Indirect Plus Offset
|
|
|
|
@samp{@var{apc}@@(@var{number})}
|
|
|
|
|
|
|
|
@item Index
|
|
|
|
@samp{@var{apc}@@(@var{number},@var{register}:@var{size}:@var{scale})}
|
|
|
|
|
|
|
|
The @var{number} may be omitted.
|
|
|
|
|
|
|
|
@item Postindex
|
|
|
|
@samp{@var{apc}@@(@var{number})@@(@var{onumber},@var{register}:@var{size}:@var{scale})}
|
|
|
|
|
|
|
|
The @var{onumber} or the @var{register}, but not both, may be omitted.
|
|
|
|
|
|
|
|
@item Preindex
|
|
|
|
@samp{@var{apc}@@(@var{number},@var{register}:@var{size}:@var{scale})@@(@var{onumber})}
|
|
|
|
|
|
|
|
The @var{number} may be omitted. Omitting the @var{register} produces
|
|
|
|
the Postindex addressing mode.
|
|
|
|
|
|
|
|
@item Absolute
|
|
|
|
@samp{@var{symbol}}, or @samp{@var{digits}}, optionally followed by
|
|
|
|
@samp{:b}, @samp{:w}, or @samp{:l}.
|
|
|
|
@end table
|
|
|
|
|
|
|
|
@node M68K-Moto-Syntax
|
|
|
|
@section Motorola Syntax
|
|
|
|
|
|
|
|
@cindex Motorola syntax for the 680x0
|
|
|
|
@cindex alternate syntax for the 680x0
|
|
|
|
|
|
|
|
The standard Motorola syntax for this chip differs from the syntax
|
|
|
|
already discussed (@pxref{M68K-Syntax,,Syntax}). @code{@value{AS}} can
|
|
|
|
accept Motorola syntax for operands, even if @sc{mit} syntax is used for
|
|
|
|
other operands in the same instruction. The two kinds of syntax are
|
|
|
|
fully compatible.
|
|
|
|
|
|
|
|
In the following table @var{apc} stands for any of the address registers
|
|
|
|
(@samp{%a0} through @samp{%a7}), the program counter (@samp{%pc}), the
|
|
|
|
zero-address relative to the program counter (@samp{%zpc}), or a
|
|
|
|
suppressed address register (@samp{%za0} through @samp{%za7}). The use
|
|
|
|
of @var{size} means one of @samp{w} or @samp{l}, and it may always be
|
|
|
|
omitted along with the leading dot. The use of @var{scale} means one of
|
|
|
|
@samp{1}, @samp{2}, @samp{4}, or @samp{8}, and it may always be omitted
|
|
|
|
along with the leading asterisk.
|
|
|
|
|
|
|
|
The following additional addressing modes are understood:
|
|
|
|
|
|
|
|
@table @dfn
|
|
|
|
@item Address Register Indirect
|
2013-01-11 03:51:55 +08:00
|
|
|
@samp{(%a0)} through @samp{(%a7)}@*
|
2006-07-24 21:49:50 +08:00
|
|
|
@samp{%a7} is also known as @samp{%sp}, i.e., the Stack Pointer. @code{%a6}
|
1999-05-03 15:29:11 +08:00
|
|
|
is also known as @samp{%fp}, the Frame Pointer.
|
|
|
|
|
|
|
|
@item Address Register Postincrement
|
|
|
|
@samp{(%a0)+} through @samp{(%a7)+}
|
|
|
|
|
|
|
|
@item Address Register Predecrement
|
|
|
|
@samp{-(%a0)} through @samp{-(%a7)}
|
|
|
|
|
|
|
|
@item Indirect Plus Offset
|
|
|
|
@samp{@var{number}(@var{%a0})} through @samp{@var{number}(@var{%a7})},
|
|
|
|
or @samp{@var{number}(@var{%pc})}.
|
|
|
|
|
|
|
|
The @var{number} may also appear within the parentheses, as in
|
|
|
|
@samp{(@var{number},@var{%a0})}. When used with the @var{pc}, the
|
|
|
|
@var{number} may be omitted (with an address register, omitting the
|
|
|
|
@var{number} produces Address Register Indirect mode).
|
|
|
|
|
|
|
|
@item Index
|
|
|
|
@samp{@var{number}(@var{apc},@var{register}.@var{size}*@var{scale})}
|
|
|
|
|
|
|
|
The @var{number} may be omitted, or it may appear within the
|
|
|
|
parentheses. The @var{apc} may be omitted. The @var{register} and the
|
|
|
|
@var{apc} may appear in either order. If both @var{apc} and
|
|
|
|
@var{register} are address registers, and the @var{size} and @var{scale}
|
|
|
|
are omitted, then the first register is taken as the base register, and
|
|
|
|
the second as the index register.
|
|
|
|
|
|
|
|
@item Postindex
|
|
|
|
@samp{([@var{number},@var{apc}],@var{register}.@var{size}*@var{scale},@var{onumber})}
|
|
|
|
|
|
|
|
The @var{onumber}, or the @var{register}, or both, may be omitted.
|
|
|
|
Either the @var{number} or the @var{apc} may be omitted, but not both.
|
|
|
|
|
|
|
|
@item Preindex
|
|
|
|
@samp{([@var{number},@var{apc},@var{register}.@var{size}*@var{scale}],@var{onumber})}
|
|
|
|
|
|
|
|
The @var{number}, or the @var{apc}, or the @var{register}, or any two of
|
|
|
|
them, may be omitted. The @var{onumber} may be omitted. The
|
|
|
|
@var{register} and the @var{apc} may appear in either order. If both
|
|
|
|
@var{apc} and @var{register} are address registers, and the @var{size}
|
|
|
|
and @var{scale} are omitted, then the first register is taken as the
|
|
|
|
base register, and the second as the index register.
|
|
|
|
@end table
|
|
|
|
|
|
|
|
@node M68K-Float
|
|
|
|
@section Floating Point
|
|
|
|
|
|
|
|
@cindex floating point, M680x0
|
|
|
|
@cindex M680x0 floating point
|
|
|
|
Packed decimal (P) format floating literals are not supported.
|
|
|
|
Feel free to add the code!
|
|
|
|
|
|
|
|
The floating point formats generated by directives are these.
|
|
|
|
|
|
|
|
@table @code
|
|
|
|
@cindex @code{float} directive, M680x0
|
|
|
|
@item .float
|
|
|
|
@code{Single} precision floating point constants.
|
|
|
|
|
|
|
|
@cindex @code{double} directive, M680x0
|
|
|
|
@item .double
|
|
|
|
@code{Double} precision floating point constants.
|
|
|
|
|
|
|
|
@cindex @code{extend} directive M680x0
|
|
|
|
@cindex @code{ldouble} directive M680x0
|
|
|
|
@item .extend
|
|
|
|
@itemx .ldouble
|
|
|
|
@code{Extended} precision (@code{long double}) floating point constants.
|
|
|
|
@end table
|
|
|
|
|
|
|
|
@node M68K-Directives
|
|
|
|
@section 680x0 Machine Directives
|
|
|
|
|
|
|
|
@cindex M680x0 directives
|
|
|
|
@cindex directives, M680x0
|
|
|
|
In order to be compatible with the Sun assembler the 680x0 assembler
|
|
|
|
understands the following directives.
|
|
|
|
|
|
|
|
@table @code
|
|
|
|
@cindex @code{data1} directive, M680x0
|
|
|
|
@item .data1
|
|
|
|
This directive is identical to a @code{.data 1} directive.
|
|
|
|
|
|
|
|
@cindex @code{data2} directive, M680x0
|
|
|
|
@item .data2
|
|
|
|
This directive is identical to a @code{.data 2} directive.
|
|
|
|
|
|
|
|
@cindex @code{even} directive, M680x0
|
|
|
|
@item .even
|
|
|
|
This directive is a special case of the @code{.align} directive; it
|
|
|
|
aligns the output to an even byte boundary.
|
|
|
|
|
|
|
|
@cindex @code{skip} directive, M680x0
|
|
|
|
@item .skip
|
|
|
|
This directive is identical to a @code{.space} directive.
|
* bfd/archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
(bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
bfd_mach_mcf_isa_b_usp_float_emac): New.
(bfd_default_scan): Update coldfire mapping.
* bfd/bfd-in.h (bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Declare.
* bfd/bfd-in2.h: Rebuilt.
* bfd/cpu-m68k.c (arch_info_struct): Add new coldfire machines,
adjust legacy names.
(m68k_arch_features): New.
(bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Define.
* bfd/elf32-m68k.c (elf32_m68k_object_p): New.
(elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
(elf32_m68k_print_private_bfd_data): Print the CF EF flags.
(elf_backend_object_p): Define.
* bfd/ieee.c (ieee_write_processor): Update coldfire machines.
* bfd/libbfd.h: Rebuilt.
* gas/config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
mcf5329_control_regs): New.
(not_current_architecture, selected_arch, selected_cpu): New.
(m68k_archs, m68k_extensions): New.
(archs): Renamed to ...
(m68k_cpus): ... here. Adjust.
(n_arches): Remove.
(md_pseudo_table): Add arch and cpu directives.
(find_cf_chip, m68k_ip): Adjust table scanning.
(no_68851, no_68881): Remove.
(md_assemble): Lazily initialize.
(select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
(md_init_after_args): Move functionality to m68k_init_arch.
(mri_chip): Adjust table scanning.
(md_parse_option): Reimplement 'm' processing to add -march & -mcpu
options with saner parsing.
(m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
m68k_init_arch): New.
(s_m68k_cpu, s_m68k_arch): New.
(md_show_usage): Adjust.
(m68k_elf_final_processing): Set CF EF flags.
* gas/config/tc-m68k.h (m68k_init_after_args): Remove.
(tc_init_after_args): Remove.
* gas/doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
(M68k-Directives): Document .arch and .cpu directives.
* gas/testsuite/gas/m68k/all.exp: Add arch-cpu-1 test.
* gas/testsuite/gas/m68k/arch-cpu-1.[sd]: New.
* include/elf/m68k.h (EF_CPU32, EF_M68000, EF_CFV4E): Rename to ...
(EF_M68K_CPU32, EF_M68K_M68000, EF_M68K_CFV4E): ... here.
(EF_M68K_ISA_MASK, EF_M68K_ISA_A, EF_M68K_M68K_ISA_A_PLUS,
EF_M68K_ISA_B, EF_M68K_HW_DIV, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_USP, EF_M68K_FLOAT): New.
* include/opcode/m68k.h (m68008, m68ec030, m68882): Remove.
(m68k_mask): New.
(cpu_m68k, cpu_cf): New.
(mcf5200, mcf5206e, mcf521x, mcf5249, mcf528x, mcf5307, mcf5407,
mcf5470, mcf5480): Rename to cpu_<foo>. Add m680x0 variants.
* opcodes/m68k-dis.c (print_insn_m68k): Use
bfd_m68k_mach_to_features.
* binutils/readelf.c (get_machine_flags): Add logic for EF_M68K flags.
2006-02-08 03:01:10 +08:00
|
|
|
|
|
|
|
@cindex @code{arch} directive, M680x0
|
|
|
|
@item .arch @var{name}
|
2006-07-24 21:49:50 +08:00
|
|
|
Select the target architecture and extension features. Valid values
|
2018-07-02 18:18:24 +08:00
|
|
|
for @var{name} are the same as for the @option{-march} command-line
|
* bfd/archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
(bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
bfd_mach_mcf_isa_b_usp_float_emac): New.
(bfd_default_scan): Update coldfire mapping.
* bfd/bfd-in.h (bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Declare.
* bfd/bfd-in2.h: Rebuilt.
* bfd/cpu-m68k.c (arch_info_struct): Add new coldfire machines,
adjust legacy names.
(m68k_arch_features): New.
(bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Define.
* bfd/elf32-m68k.c (elf32_m68k_object_p): New.
(elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
(elf32_m68k_print_private_bfd_data): Print the CF EF flags.
(elf_backend_object_p): Define.
* bfd/ieee.c (ieee_write_processor): Update coldfire machines.
* bfd/libbfd.h: Rebuilt.
* gas/config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
mcf5329_control_regs): New.
(not_current_architecture, selected_arch, selected_cpu): New.
(m68k_archs, m68k_extensions): New.
(archs): Renamed to ...
(m68k_cpus): ... here. Adjust.
(n_arches): Remove.
(md_pseudo_table): Add arch and cpu directives.
(find_cf_chip, m68k_ip): Adjust table scanning.
(no_68851, no_68881): Remove.
(md_assemble): Lazily initialize.
(select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
(md_init_after_args): Move functionality to m68k_init_arch.
(mri_chip): Adjust table scanning.
(md_parse_option): Reimplement 'm' processing to add -march & -mcpu
options with saner parsing.
(m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
m68k_init_arch): New.
(s_m68k_cpu, s_m68k_arch): New.
(md_show_usage): Adjust.
(m68k_elf_final_processing): Set CF EF flags.
* gas/config/tc-m68k.h (m68k_init_after_args): Remove.
(tc_init_after_args): Remove.
* gas/doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
(M68k-Directives): Document .arch and .cpu directives.
* gas/testsuite/gas/m68k/all.exp: Add arch-cpu-1 test.
* gas/testsuite/gas/m68k/arch-cpu-1.[sd]: New.
* include/elf/m68k.h (EF_CPU32, EF_M68000, EF_CFV4E): Rename to ...
(EF_M68K_CPU32, EF_M68K_M68000, EF_M68K_CFV4E): ... here.
(EF_M68K_ISA_MASK, EF_M68K_ISA_A, EF_M68K_M68K_ISA_A_PLUS,
EF_M68K_ISA_B, EF_M68K_HW_DIV, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_USP, EF_M68K_FLOAT): New.
* include/opcode/m68k.h (m68008, m68ec030, m68882): Remove.
(m68k_mask): New.
(cpu_m68k, cpu_cf): New.
(mcf5200, mcf5206e, mcf521x, mcf5249, mcf528x, mcf5307, mcf5407,
mcf5470, mcf5480): Rename to cpu_<foo>. Add m680x0 variants.
* opcodes/m68k-dis.c (print_insn_m68k): Use
bfd_m68k_mach_to_features.
* binutils/readelf.c (get_machine_flags): Add logic for EF_M68K flags.
2006-02-08 03:01:10 +08:00
|
|
|
option. This directive cannot be specified after
|
|
|
|
any instructions have been assembled. If it is given multiple times,
|
2006-07-24 21:49:50 +08:00
|
|
|
or in conjunction with the @option{-march} option, all uses must be for
|
* bfd/archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
(bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
bfd_mach_mcf_isa_b_usp_float_emac): New.
(bfd_default_scan): Update coldfire mapping.
* bfd/bfd-in.h (bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Declare.
* bfd/bfd-in2.h: Rebuilt.
* bfd/cpu-m68k.c (arch_info_struct): Add new coldfire machines,
adjust legacy names.
(m68k_arch_features): New.
(bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Define.
* bfd/elf32-m68k.c (elf32_m68k_object_p): New.
(elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
(elf32_m68k_print_private_bfd_data): Print the CF EF flags.
(elf_backend_object_p): Define.
* bfd/ieee.c (ieee_write_processor): Update coldfire machines.
* bfd/libbfd.h: Rebuilt.
* gas/config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
mcf5329_control_regs): New.
(not_current_architecture, selected_arch, selected_cpu): New.
(m68k_archs, m68k_extensions): New.
(archs): Renamed to ...
(m68k_cpus): ... here. Adjust.
(n_arches): Remove.
(md_pseudo_table): Add arch and cpu directives.
(find_cf_chip, m68k_ip): Adjust table scanning.
(no_68851, no_68881): Remove.
(md_assemble): Lazily initialize.
(select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
(md_init_after_args): Move functionality to m68k_init_arch.
(mri_chip): Adjust table scanning.
(md_parse_option): Reimplement 'm' processing to add -march & -mcpu
options with saner parsing.
(m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
m68k_init_arch): New.
(s_m68k_cpu, s_m68k_arch): New.
(md_show_usage): Adjust.
(m68k_elf_final_processing): Set CF EF flags.
* gas/config/tc-m68k.h (m68k_init_after_args): Remove.
(tc_init_after_args): Remove.
* gas/doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
(M68k-Directives): Document .arch and .cpu directives.
* gas/testsuite/gas/m68k/all.exp: Add arch-cpu-1 test.
* gas/testsuite/gas/m68k/arch-cpu-1.[sd]: New.
* include/elf/m68k.h (EF_CPU32, EF_M68000, EF_CFV4E): Rename to ...
(EF_M68K_CPU32, EF_M68K_M68000, EF_M68K_CFV4E): ... here.
(EF_M68K_ISA_MASK, EF_M68K_ISA_A, EF_M68K_M68K_ISA_A_PLUS,
EF_M68K_ISA_B, EF_M68K_HW_DIV, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_USP, EF_M68K_FLOAT): New.
* include/opcode/m68k.h (m68008, m68ec030, m68882): Remove.
(m68k_mask): New.
(cpu_m68k, cpu_cf): New.
(mcf5200, mcf5206e, mcf521x, mcf5249, mcf528x, mcf5307, mcf5407,
mcf5470, mcf5480): Rename to cpu_<foo>. Add m680x0 variants.
* opcodes/m68k-dis.c (print_insn_m68k): Use
bfd_m68k_mach_to_features.
* binutils/readelf.c (get_machine_flags): Add logic for EF_M68K flags.
2006-02-08 03:01:10 +08:00
|
|
|
the same architecture and extension set.
|
|
|
|
|
|
|
|
@cindex @code{cpu} directive, M680x0
|
|
|
|
@item .cpu @var{name}
|
2017-01-23 23:23:07 +08:00
|
|
|
Select the target cpu. Valid values
|
2018-07-02 18:18:24 +08:00
|
|
|
for @var{name} are the same as for the @option{-mcpu} command-line
|
* bfd/archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
(bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
bfd_mach_mcf_isa_b_usp_float_emac): New.
(bfd_default_scan): Update coldfire mapping.
* bfd/bfd-in.h (bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Declare.
* bfd/bfd-in2.h: Rebuilt.
* bfd/cpu-m68k.c (arch_info_struct): Add new coldfire machines,
adjust legacy names.
(m68k_arch_features): New.
(bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Define.
* bfd/elf32-m68k.c (elf32_m68k_object_p): New.
(elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
(elf32_m68k_print_private_bfd_data): Print the CF EF flags.
(elf_backend_object_p): Define.
* bfd/ieee.c (ieee_write_processor): Update coldfire machines.
* bfd/libbfd.h: Rebuilt.
* gas/config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
mcf5329_control_regs): New.
(not_current_architecture, selected_arch, selected_cpu): New.
(m68k_archs, m68k_extensions): New.
(archs): Renamed to ...
(m68k_cpus): ... here. Adjust.
(n_arches): Remove.
(md_pseudo_table): Add arch and cpu directives.
(find_cf_chip, m68k_ip): Adjust table scanning.
(no_68851, no_68881): Remove.
(md_assemble): Lazily initialize.
(select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
(md_init_after_args): Move functionality to m68k_init_arch.
(mri_chip): Adjust table scanning.
(md_parse_option): Reimplement 'm' processing to add -march & -mcpu
options with saner parsing.
(m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
m68k_init_arch): New.
(s_m68k_cpu, s_m68k_arch): New.
(md_show_usage): Adjust.
(m68k_elf_final_processing): Set CF EF flags.
* gas/config/tc-m68k.h (m68k_init_after_args): Remove.
(tc_init_after_args): Remove.
* gas/doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
(M68k-Directives): Document .arch and .cpu directives.
* gas/testsuite/gas/m68k/all.exp: Add arch-cpu-1 test.
* gas/testsuite/gas/m68k/arch-cpu-1.[sd]: New.
* include/elf/m68k.h (EF_CPU32, EF_M68000, EF_CFV4E): Rename to ...
(EF_M68K_CPU32, EF_M68K_M68000, EF_M68K_CFV4E): ... here.
(EF_M68K_ISA_MASK, EF_M68K_ISA_A, EF_M68K_M68K_ISA_A_PLUS,
EF_M68K_ISA_B, EF_M68K_HW_DIV, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_USP, EF_M68K_FLOAT): New.
* include/opcode/m68k.h (m68008, m68ec030, m68882): Remove.
(m68k_mask): New.
(cpu_m68k, cpu_cf): New.
(mcf5200, mcf5206e, mcf521x, mcf5249, mcf528x, mcf5307, mcf5407,
mcf5470, mcf5480): Rename to cpu_<foo>. Add m680x0 variants.
* opcodes/m68k-dis.c (print_insn_m68k): Use
bfd_m68k_mach_to_features.
* binutils/readelf.c (get_machine_flags): Add logic for EF_M68K flags.
2006-02-08 03:01:10 +08:00
|
|
|
option. This directive cannot be specified after
|
|
|
|
any instructions have been assembled. If it is given multiple times,
|
2006-07-24 21:49:50 +08:00
|
|
|
or in conjunction with the @option{-mopt} option, all uses must be for
|
* bfd/archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
(bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
bfd_mach_mcf_isa_b_usp_float_emac): New.
(bfd_default_scan): Update coldfire mapping.
* bfd/bfd-in.h (bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Declare.
* bfd/bfd-in2.h: Rebuilt.
* bfd/cpu-m68k.c (arch_info_struct): Add new coldfire machines,
adjust legacy names.
(m68k_arch_features): New.
(bfd_m68k_mach_to_features,
bfd_m68k_features_to_mach): Define.
* bfd/elf32-m68k.c (elf32_m68k_object_p): New.
(elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
(elf32_m68k_print_private_bfd_data): Print the CF EF flags.
(elf_backend_object_p): Define.
* bfd/ieee.c (ieee_write_processor): Update coldfire machines.
* bfd/libbfd.h: Rebuilt.
* gas/config/tc-m68k.c (mcf5208_control_regs, mcf5213_control_regs,
mcf5329_control_regs): New.
(not_current_architecture, selected_arch, selected_cpu): New.
(m68k_archs, m68k_extensions): New.
(archs): Renamed to ...
(m68k_cpus): ... here. Adjust.
(n_arches): Remove.
(md_pseudo_table): Add arch and cpu directives.
(find_cf_chip, m68k_ip): Adjust table scanning.
(no_68851, no_68881): Remove.
(md_assemble): Lazily initialize.
(select_control_regs): Adjust cpu names. Add 5208, 5213, 5329.
(md_init_after_args): Move functionality to m68k_init_arch.
(mri_chip): Adjust table scanning.
(md_parse_option): Reimplement 'm' processing to add -march & -mcpu
options with saner parsing.
(m68k_lookup_cpu, m68k_set_arch, m68k_set_cpu, m68k_set_extension,
m68k_init_arch): New.
(s_m68k_cpu, s_m68k_arch): New.
(md_show_usage): Adjust.
(m68k_elf_final_processing): Set CF EF flags.
* gas/config/tc-m68k.h (m68k_init_after_args): Remove.
(tc_init_after_args): Remove.
* gas/doc/c-m68k.texi (M68K-Opts): Document -march, -mcpu options.
(M68k-Directives): Document .arch and .cpu directives.
* gas/testsuite/gas/m68k/all.exp: Add arch-cpu-1 test.
* gas/testsuite/gas/m68k/arch-cpu-1.[sd]: New.
* include/elf/m68k.h (EF_CPU32, EF_M68000, EF_CFV4E): Rename to ...
(EF_M68K_CPU32, EF_M68K_M68000, EF_M68K_CFV4E): ... here.
(EF_M68K_ISA_MASK, EF_M68K_ISA_A, EF_M68K_M68K_ISA_A_PLUS,
EF_M68K_ISA_B, EF_M68K_HW_DIV, EF_M68K_MAC_MASK, EF_M68K_MAC,
EF_M68K_EMAC, EF_M68K_USP, EF_M68K_FLOAT): New.
* include/opcode/m68k.h (m68008, m68ec030, m68882): Remove.
(m68k_mask): New.
(cpu_m68k, cpu_cf): New.
(mcf5200, mcf5206e, mcf521x, mcf5249, mcf528x, mcf5307, mcf5407,
mcf5470, mcf5480): Rename to cpu_<foo>. Add m680x0 variants.
* opcodes/m68k-dis.c (print_insn_m68k): Use
bfd_m68k_mach_to_features.
* binutils/readelf.c (get_machine_flags): Add logic for EF_M68K flags.
2006-02-08 03:01:10 +08:00
|
|
|
the same cpu.
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
@end table
|
|
|
|
|
|
|
|
@need 2000
|
|
|
|
@node M68K-opcodes
|
|
|
|
@section Opcodes
|
|
|
|
|
|
|
|
@cindex M680x0 opcodes
|
|
|
|
@cindex opcodes, M680x0
|
|
|
|
@cindex instruction set, M680x0
|
|
|
|
@c doc@cygnus.com: I don't see any point in the following
|
|
|
|
@c paragraph. Bugs are bugs; how does saying this
|
|
|
|
@c help anyone?
|
|
|
|
@ignore
|
|
|
|
Danger: Several bugs have been found in the opcode table (and
|
|
|
|
fixed). More bugs may exist. Be careful when using obscure
|
|
|
|
instructions.
|
|
|
|
@end ignore
|
|
|
|
|
|
|
|
@menu
|
|
|
|
* M68K-Branch:: Branch Improvement
|
|
|
|
* M68K-Chars:: Special Characters
|
|
|
|
@end menu
|
|
|
|
|
|
|
|
@node M68K-Branch
|
|
|
|
@subsection Branch Improvement
|
|
|
|
|
|
|
|
@cindex pseudo-opcodes, M680x0
|
|
|
|
@cindex M680x0 pseudo-opcodes
|
|
|
|
@cindex branch improvement, M680x0
|
|
|
|
@cindex M680x0 branch improvement
|
|
|
|
Certain pseudo opcodes are permitted for branch instructions.
|
|
|
|
They expand to the shortest branch instruction that reach the
|
|
|
|
target. Generally these mnemonics are made by substituting @samp{j} for
|
|
|
|
@samp{b} at the start of a Motorola mnemonic.
|
|
|
|
|
|
|
|
The following table summarizes the pseudo-operations. A @code{*} flags
|
|
|
|
cases that are more fully described after the table:
|
|
|
|
|
|
|
|
@smallexample
|
|
|
|
Displacement
|
2000-08-02 00:57:01 +08:00
|
|
|
+------------------------------------------------------------
|
|
|
|
| 68020 68000/10, not PC-relative OK
|
|
|
|
Pseudo-Op |BYTE WORD LONG ABSOLUTE LONG JUMP **
|
|
|
|
+------------------------------------------------------------
|
|
|
|
jbsr |bsrs bsrw bsrl jsr
|
|
|
|
jra |bras braw bral jmp
|
|
|
|
* jXX |bXXs bXXw bXXl bNXs;jmp
|
|
|
|
* dbXX | N/A dbXXw dbXX;bras;bral dbXX;bras;jmp
|
|
|
|
fjXX | N/A fbXXw fbXXl N/A
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
XX: condition
|
|
|
|
NX: negative of condition XX
|
|
|
|
|
|
|
|
@end smallexample
|
|
|
|
@center @code{*}---see full description below
|
2000-08-02 00:57:01 +08:00
|
|
|
@center @code{**}---this expansion mode is disallowed by @samp{--pcrel}
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
@table @code
|
|
|
|
@item jbsr
|
|
|
|
@itemx jra
|
|
|
|
These are the simplest jump pseudo-operations; they always map to one
|
|
|
|
particular machine instruction, depending on the displacement to the
|
2000-08-02 00:57:01 +08:00
|
|
|
branch target. This instruction will be a byte or word branch is that
|
|
|
|
is sufficient. Otherwise, a long branch will be emitted if available.
|
|
|
|
If no long branches are available and the @samp{--pcrel} option is not
|
|
|
|
given, an absolute long jump will be emitted instead. If no long
|
|
|
|
branches are available, the @samp{--pcrel} option is given, and a word
|
|
|
|
branch cannot reach the target, an error message is generated.
|
|
|
|
|
|
|
|
In addition to standard branch operands, @code{@value{AS}} allows these
|
|
|
|
pseudo-operations to have all operands that are allowed for jsr and jmp,
|
|
|
|
substituting these instructions if the operand given is not valid for a
|
|
|
|
branch instruction.
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
@item j@var{XX}
|
|
|
|
Here, @samp{j@var{XX}} stands for an entire family of pseudo-operations,
|
|
|
|
where @var{XX} is a conditional branch or condition-code test. The full
|
|
|
|
list of pseudo-ops in this family is:
|
|
|
|
@smallexample
|
|
|
|
jhi jls jcc jcs jne jeq jvc
|
|
|
|
jvs jpl jmi jge jlt jgt jle
|
|
|
|
@end smallexample
|
|
|
|
|
2000-08-02 00:57:01 +08:00
|
|
|
Usually, each of these pseudo-operations expands to a single branch
|
|
|
|
instruction. However, if a word branch is not sufficient, no long branches
|
|
|
|
are available, and the @samp{--pcrel} option is not given, @code{@value{AS}}
|
|
|
|
issues a longer code fragment in terms of @var{NX}, the opposite condition
|
|
|
|
to @var{XX}. For example, under these conditions:
|
1999-05-03 15:29:11 +08:00
|
|
|
@smallexample
|
|
|
|
j@var{XX} foo
|
|
|
|
@end smallexample
|
|
|
|
gives
|
|
|
|
@smallexample
|
|
|
|
b@var{NX}s oof
|
|
|
|
jmp foo
|
|
|
|
oof:
|
|
|
|
@end smallexample
|
|
|
|
|
|
|
|
@item db@var{XX}
|
|
|
|
The full family of pseudo-operations covered here is
|
|
|
|
@smallexample
|
|
|
|
dbhi dbls dbcc dbcs dbne dbeq dbvc
|
|
|
|
dbvs dbpl dbmi dbge dblt dbgt dble
|
|
|
|
dbf dbra dbt
|
|
|
|
@end smallexample
|
|
|
|
|
2000-08-02 00:57:01 +08:00
|
|
|
Motorola @samp{db@var{XX}} instructions allow word displacements only. When
|
|
|
|
a word displacement is sufficient, each of these pseudo-operations expands
|
|
|
|
to the corresponding Motorola instruction. When a word displacement is not
|
|
|
|
sufficient and long branches are available, when the source reads
|
1999-05-03 15:29:11 +08:00
|
|
|
@samp{db@var{XX} foo}, @code{@value{AS}} emits
|
|
|
|
@smallexample
|
|
|
|
db@var{XX} oo1
|
2000-08-02 00:57:01 +08:00
|
|
|
bras oo2
|
|
|
|
oo1:bral foo
|
|
|
|
oo2:
|
|
|
|
@end smallexample
|
|
|
|
|
|
|
|
If, however, long branches are not available and the @samp{--pcrel} option is
|
|
|
|
not given, @code{@value{AS}} emits
|
|
|
|
@smallexample
|
|
|
|
db@var{XX} oo1
|
|
|
|
bras oo2
|
|
|
|
oo1:jmp foo
|
1999-05-03 15:29:11 +08:00
|
|
|
oo2:
|
|
|
|
@end smallexample
|
|
|
|
|
|
|
|
@item fj@var{XX}
|
|
|
|
This family includes
|
|
|
|
@smallexample
|
|
|
|
fjne fjeq fjge fjlt fjgt fjle fjf
|
|
|
|
fjt fjgl fjgle fjnge fjngl fjngle fjngt
|
|
|
|
fjnle fjnlt fjoge fjogl fjogt fjole fjolt
|
|
|
|
fjor fjseq fjsf fjsne fjst fjueq fjuge
|
|
|
|
fjugt fjule fjult fjun
|
|
|
|
@end smallexample
|
|
|
|
|
2000-08-02 00:57:01 +08:00
|
|
|
Each of these pseudo-operations always expands to a single Motorola
|
|
|
|
coprocessor branch instruction, word or long. All Motorola coprocessor
|
|
|
|
branch instructions allow both word and long displacements.
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
@end table
|
|
|
|
|
|
|
|
@node M68K-Chars
|
|
|
|
@subsection Special Characters
|
|
|
|
|
|
|
|
@cindex special characters, M680x0
|
2011-01-18 21:37:39 +08:00
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
@cindex M680x0 line comment character
|
|
|
|
@cindex line comment character, M680x0
|
|
|
|
@cindex comments, M680x0
|
2011-01-18 21:37:39 +08:00
|
|
|
Line comments are introduced by the @samp{|} character appearing
|
2018-07-02 18:18:24 +08:00
|
|
|
anywhere on a line, unless the @option{--bitwise-or} command-line option
|
2013-01-11 03:51:55 +08:00
|
|
|
has been specified.
|
2011-01-18 21:37:39 +08:00
|
|
|
|
|
|
|
An asterisk (@samp{*}) as the first character on a line marks the
|
|
|
|
start of a line comment as well.
|
|
|
|
|
|
|
|
@cindex M680x0 immediate character
|
|
|
|
@cindex immediate character, M680x0
|
|
|
|
|
|
|
|
A hash character (@samp{#}) as the first character on a line also
|
|
|
|
marks the start of a line comment, but in this case it could also be a
|
|
|
|
logical line number directive (@pxref{Comments}) or a preprocessor
|
|
|
|
control command (@pxref{Preprocessing}). If the hash character
|
|
|
|
appears elsewhere on a line it is used to introduce an immediate
|
|
|
|
value. (This is for compatibility with Sun's assembler).
|
|
|
|
|
|
|
|
@cindex M680x0 line separator
|
|
|
|
@cindex line separator, M680x0
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2011-01-18 21:37:39 +08:00
|
|
|
Multiple statements on the same line can appear if they are separated
|
|
|
|
by the @samp{;} character.
|