aboutsummaryrefslogtreecommitdiff
path: root/gcc/gencodes.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2006-01-22 15:01:02 +0000
committerPaul Brook <pbrook@gcc.gnu.org>2006-01-22 15:01:02 +0000
commitdcc21c4c0ae5f44c048e5f016357730395491c8e (patch)
treec6dcb5bb9c43aba31c2d1769effa3ba9552b9441 /gcc/gencodes.c
parentd54d5437be89a983a0ee4671c4e5080a68e47769 (diff)
downloadgcc-dcc21c4c0ae5f44c048e5f016357730395491c8e.zip
gcc-dcc21c4c0ae5f44c048e5f016357730395491c8e.tar.gz
gcc-dcc21c4c0ae5f44c048e5f016357730395491c8e.tar.bz2
m68k.md: Add Coldfire FPU support.
2006-01-22 Paul Brook <paul@codesourcery.com> Peter Barada <peter@the-baradas.com> * config/m68k/m68k.md: Add Coldfire FPU support. Define FP mode macro and associated attributes. Use it for float mode patterns. * config/m68k/linux.h (FUNCTION_VALUE): Use m68k_function_value. (LIBCALL_VALUE): Use m68k_libcall_value. * config/m68k/m68k-protos.h (m68k_libcall_value): Add prototype. (m68k_function_value): Ditto. (emit_move_sequence): Ditto. * config/m68k/m68kemb.h (LIBCALL_VALUE): Use m68k_libcall_value. * config/m68k/m68k-none.h (ASM_SPEC): Add mcfv4e. * config/m68k/t-m68kelf (MULTILIB_OPTIONS): Add mcfv4e. (MULTILIB_EXCEPTIONS): Ditto. * config/m68k/m68k.opt: Add mcfv4e. * config/m68k/m68k.c (m68k_handle_option): Handle OPT_mcfv4e. (m68k_compute_frame_layout): Include space for ColdFire FPU regs. (m68k_output_function_prologue): Save ColdFire FPU registers. (m68k_output_function_epilogue): Restore ColdFire FPU registers. (force_mode, fp_reg_operand, emit_move_sequence): New functions. (m68k_regno_mode_ok): Don't allow types larget than 8 bytes in ColdFire FPU registers. (m68k_libcall_value, m68k_function_value): New functions. * config/m68k/netbsd-elf.h (FUNCTION_VALUE): Use m68k_function_value. (LIBCALL_VALUE): Use m68k_libcall_value. * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define __mcfv4e__. (MASK_COLDFIRE): Add MASK_CFV4E. (TARGET_COLDFIRE_FPU, TARGET_HARD_FLOAT, TARGET_FP_REG_SIZE): New. (MODES_TIEABLE_P): Use TARGET_HARD_FLOAT. (REG_CLASS_FROM_LETTER, PREFERRED_RELOAD_CLASS): Ditto. (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Define. (GO_IF_LEGITIMATE_ADDRESS): Use it. (LEGITIMIZE_ADDRESS): Handle ColdFire FPU addresses. * doc/invoke.tex: Document -mcfv4e on m68k. Co-Authored-By: Peter Barada <peter@the-baradas.com> From-SVN: r110091
Diffstat (limited to 'gcc/gencodes.c')
0 files changed, 0 insertions, 0 deletions