Add support for Loongson EXT instructions

Programming / Compilers / GCC - paulhua [138bc75d-0d04-0410-961f-82ee72b054a4] - 7 November 2018 08:35 EST

gcc/
- config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_loongson_ext. (MIPS_ASE_LOONGSON_EXT_SPEC): New. (BASE_DRIVER_SELF_SPECS): march=loongson3a implies
-mloongson-ext. (ASM_SPEC): Add mloongson-ext and mno-loongson-ext.
- config/mips/mips.md (mul3, mul3_mul3_nohilo, div3, mod3, prefetch): Use TARGET_LOONGSON_EXT instead of TARGET_LOONGSON_3A.
- config/mips/mips.opt (-mloongson-ext): Add option.
- gcc/doc/invoke.texi (-mloongson-ext): Document.

gcc/testsuite/
- gcc.target/mips/mips.exp (mips_option_groups): Add
-mloongson-ext option. (mips-dg-options): Add mips_option_dependency options "-mmicromips" vs "-mno-loongson-ext",

9ae8553d4ec Add support for Loongson EXT instructions.
gcc/ChangeLog | 14 ++++++++++++++
gcc/config/mips/mips.h | 14 +++++++++++++-
gcc/config/mips/mips.md | 16 ++++++++--------
gcc/config/mips/mips.opt | 4 ++++
gcc/doc/invoke.texi | 7 +++++++
gcc/testsuite/ChangeLog | 7 +++++++
gcc/testsuite/gcc.target/mips/mips.exp | 2 ++
7 files changed, 55 insertions(+), 9 deletions(-)

Upstream: gcc.gnu.org


  • Share