Commit dd1fd744 by Vineet Gupta Committed by Claudiu Zissulescu

[ARC] Enable DBNZ for core3 and newer CPUs.

2018-09-17  Vineet Gupta  <vgupta@synopsys.com>

	* 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
parent 5305a279
2018-09-17 Vineet Gupta <vgupta@synopsys.com>
* 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 <abrodkin@synopsys.com> 2018-09-17 Alexey Brodkin <abrodkin@synopsys.com>
* config/arc/linux.h (LINK_EH_SPEC): Add missing space. * config/arc/linux.h (LINK_EH_SPEC): Add missing space.
......
...@@ -5181,7 +5181,8 @@ static void arc_file_start (void) ...@@ -5181,7 +5181,8 @@ static void arc_file_start (void)
TARGET_OPTFPE ? 1 : 0); TARGET_OPTFPE ? 1 : 0);
if (TARGET_V2) if (TARGET_V2)
asm_fprintf (asm_out_file, "\t.arc_attribute Tag_ARC_CPU_variation, %d\n", 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'. */ /* Implement `TARGET_ASM_FILE_END'. */
......
...@@ -1635,7 +1635,7 @@ enum ...@@ -1635,7 +1635,7 @@ enum
/* Custom FP instructions used by QuarkSE EM cpu. */ /* Custom FP instructions used by QuarkSE EM cpu. */
#define TARGET_FPX_QUARK (TARGET_EM && TARGET_SPFP \ #define TARGET_FPX_QUARK (TARGET_EM && TARGET_SPFP \
&& (arc_fpu_build == FPX_QK)) && (arc_fpu_build == FPX_QK))
/* DBNZ support is available for ARCv2 core3 cpus. */ /* DBNZ support is available for ARCv2 core3 and newer cpus. */
#define TARGET_DBNZ (TARGET_V2 && (arc_tune == ARC_TUNE_CORE_3)) #define TARGET_DBNZ (TARGET_V2 && (arc_tune >= ARC_TUNE_CORE_3))
#endif /* GCC_ARC_H */ #endif /* GCC_ARC_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment