OSDN Git Service

* config/mips/mips.h (mips_fix_vr4130_string): Declare.
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Mar 2005 16:38:27 +0000 (16:38 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 11 Mar 2005 16:38:27 +0000 (16:38 +0000)
commitb658678643ce3ff8fd8505d027e3ffe87fe42a28
tree6d67d7deaee3c8d2c5daab6e5ceec21a45c98736
parent4a945180def7c07584ef67d8198dd5db90cdc0aa
* config/mips/mips.h (mips_fix_vr4130_string): Declare.
(TARGET_FIX_VR4130): New macro.
(TARGET_OPTIONS): Add -mfix-vr4130.
(ISA_HAS_MACCHI): New macro.
(ASM_SPEC): Add -mfix-vr4130.
* config/mips/mips.c (mips_fix_vr4130_string): New variable.
(override_options): Handle mips_fix_vr4130_string.
(mips_avoid_hazards): Clear all_noreorder_p
if we're working around VR4130 errata and the macc alternatives
are not available.
* config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
(*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
* config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
(MULTILIB_DEFAULTS): Remove leading "march=".
(DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
if no architecture option is given.
* config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
VR4130 multilibs.
(MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
* doc/invoke.texi: Document -mfix-vr4130.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96301 138bc75d-0d04-0410-961f-82ee72b054a4
12 files changed:
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/mips.md
gcc/config/mips/t-vr
gcc/config/mips/vr.h
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/fix-vr4130-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/fix-vr4130-2.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/fix-vr4130-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/fix-vr4130-4.c [new file with mode: 0644]