From: Vineet Gupta Date: Mon, 17 Sep 2018 08:52:22 +0000 (+0000) Subject: [ARC] Enable DBNZ for core3 and newer CPUs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd1fd744cc939d763170aa80c3ee1a338742f5da;p=gcc.git [ARC] Enable DBNZ for core3 and newer CPUs. 2018-09-17 Vineet Gupta * config/arc/arc.c: Object attributes for core4 not reflected correctly. * config/arc/arc.h: Don't restrict DBNZ to core3 (core4 includes core3). From-SVN: r264362 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 30796de19b0..44700f53242 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2018-09-17 Vineet Gupta + + * config/arc/arc.c: Object attributes for core4 not reflected + correctly. + * config/arc/arc.h: Don't restrict DBNZ to core3 (core4 includes + core3). + 2018-09-17 Alexey Brodkin * config/arc/linux.h (LINK_EH_SPEC): Add missing space. diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index c186e02e0f1..5443cdd8b3d 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -5181,7 +5181,8 @@ static void arc_file_start (void) TARGET_OPTFPE ? 1 : 0); if (TARGET_V2) asm_fprintf (asm_out_file, "\t.arc_attribute Tag_ARC_CPU_variation, %d\n", - arc_tune == ARC_TUNE_CORE_3 ? 3 : 2); + (arc_tune < ARC_TUNE_CORE_3) ? 2 : + (arc_tune == ARC_TUNE_CORE_3 ? 3 : 4)); } /* Implement `TARGET_ASM_FILE_END'. */ diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h index de09b6b2f09..98fa92800fb 100644 --- a/gcc/config/arc/arc.h +++ b/gcc/config/arc/arc.h @@ -1635,7 +1635,7 @@ enum /* Custom FP instructions used by QuarkSE EM cpu. */ #define TARGET_FPX_QUARK (TARGET_EM && TARGET_SPFP \ && (arc_fpu_build == FPX_QK)) -/* DBNZ support is available for ARCv2 core3 cpus. */ -#define TARGET_DBNZ (TARGET_V2 && (arc_tune == ARC_TUNE_CORE_3)) +/* DBNZ support is available for ARCv2 core3 and newer cpus. */ +#define TARGET_DBNZ (TARGET_V2 && (arc_tune >= ARC_TUNE_CORE_3)) #endif /* GCC_ARC_H */