From: Robert Suchanek Date: Mon, 16 May 2016 14:21:02 +0000 (+0000) Subject: Enable LSA/DLSA for MSA. X-Git-Tag: basepoints/gcc-8~6907 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bc8d0b3c1263f1bb039922ad41b35ab841529b0;p=thirdparty%2Fgcc.git Enable LSA/DLSA for MSA. * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa. (ISA_HAS_DLSA): Ditto. From-SVN: r236289 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 02f38cf536fb..ef550790b0ad 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-05-16 Robert Suchanek + + * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa. + (ISA_HAS_DLSA): Ditto. + 2016-05-16 Matthew Fortune * config/mips/m5100.md (m51_int_load): Update the latency to 2. diff --git a/gcc/config/mips/mips.h b/gcc/config/mips/mips.h index 1efa61a6edea..e8897d19edda 100644 --- a/gcc/config/mips/mips.h +++ b/gcc/config/mips/mips.h @@ -209,10 +209,12 @@ struct mips_cpu_info { #endif /* ISA has LSA available. */ -#define ISA_HAS_LSA (mips_isa_rev >= 6) +#define ISA_HAS_LSA (mips_isa_rev >= 6 || ISA_HAS_MSA) /* ISA has DLSA available. */ -#define ISA_HAS_DLSA (TARGET_64BIT && mips_isa_rev >= 6) +#define ISA_HAS_DLSA (TARGET_64BIT \ + && (mips_isa_rev >= 6 \ + || ISA_HAS_MSA)) /* The ISA compression flags that are currently in effect. */ #define TARGET_COMPRESSION (target_flags & (MASK_MIPS16 | MASK_MICROMIPS))