diff options
author | Adam Nemet <anemet@caviumnetworks.com> | 2008-08-25 00:57:01 +0000 |
---|---|---|
committer | Adam Nemet <nemet@gcc.gnu.org> | 2008-08-25 00:57:01 +0000 |
commit | d97e6aca01c5d9e6b41fe5e2e4c551e9777162ea (patch) | |
tree | f13d95beb43ba81bd154edae66a1cafd6d601e63 /gcc/config.gcc | |
parent | 807e74dbc6dcae64f4b6dc32cd376ec87607bd67 (diff) | |
download | gcc-d97e6aca01c5d9e6b41fe5e2e4c551e9777162ea.zip gcc-d97e6aca01c5d9e6b41fe5e2e4c551e9777162ea.tar.gz gcc-d97e6aca01c5d9e6b41fe5e2e4c551e9777162ea.tar.bz2 |
config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
* config.gcc (mips64*-*-linux*): Handle mips64octeon*-*-linux*.
* config/mips/mips.h (enum processor_type): Add PROCESSOR_OCTEON.
(TARGET_OCTEON): New macro.
(TARGET_CPU_CPP_BUILTINS): Define __OCTEON__ for Octeon.
(MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC): Handle -march=octeon.
(ISA_HAS_POP): New macro.
* config/mips/driver-native.c (host_detect_local_cpu): Handle
Octeon.
* config/mips/mips.c (mips_cpu_info_table, mips_rtx_cost_data):
Handle Octeon.
* config/mips/mips.md (cpu): Add octeon.
(type): Add pop attribute value.
(popcount<mode>2): New pattern.
* doc/invoke.texi (-march=@var{arch}): Add octeon.
testsuite/
* gcc.target/mips/octeon-pop-1.c: New test.
From-SVN: r139554
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 7078b0b..559098e 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1551,6 +1551,10 @@ mips64*-*-linux* | mipsisa64*-*-linux*) tm_file="${tm_file} mips/st.h" tmake_file="${tmake_file} mips/t-st" ;; + mips64octeon*-*-linux*) + tm_defines="${tm_defines} MIPS_CPU_STRING_DEFAULT=\\\"octeon\\\"" + target_cpu_default=MASK_SOFT_FLOAT_ABI + ;; mipsisa64r2*-*-linux*) tm_defines="${tm_defines} MIPS_ISA_DEFAULT=65" ;; |