From 0bc8d0b3c1263f1bb039922ad41b35ab841529b0 Mon Sep 17 00:00:00 2001 From: Robert Suchanek Date: Mon, 16 May 2016 14:21:02 +0000 Subject: [PATCH] Enable LSA/DLSA for MSA. * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa. (ISA_HAS_DLSA): Ditto. From-SVN: r236289 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/mips.h | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 02f38cf536f..ef550790b0a 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 1efa61a6ede..e8897d19edd 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)) -- 2.30.2