[patch][i386] Tremont -march/-mtune options

Makhotina, Olga olga.makhotina@intel.com
Mon Jun 4 11:48:00 GMT 2018


Hi,

This patch implements Tremont -march/-mtune.

2018-06-04  Olga Makhotina  <olga.makhotina@intel.com>

gcc/

	* config.gcc: Support "tremont".
	* config/i386/driver-i386.c (host_detect_local_cpu): Detect "tremont".
	* config/i386/i386-c.c (ix86_target_macros_internal): Handle
	PROCESSOR_TREMONT.
	* config/i386/i386.c (m_TREMONT): Define.
	(processor_target_table): Add "tremont".
	(PTA_TREMONT): Define.
	(ix86_lea_outperforms): Add TARGET_TREMONT.
	(get_builtin_code_for_version): Handle PROCESSOR_TREMONT.
	(fold_builtin_cpu): Add M_INTEL_TREMONT, replace M_INTEL_GOLDMONT
	and M_INTEL_GOLDMONT_PLUS.
	(fold_builtin_cpu): Add "tremont".
	(ix86_add_stmt_cost): Add TARGET_TREMONT.
	(ix86_option_override_internal): Add "tremont".
	* config/i386/i386.h (processor_costs): Define TARGET_TREMONT.
	(processor_type): Add PROCESSOR_TREMONT.
	* config/i386/x86-tune.def: Add m_TREMONT.
	* doc/invoke.texi: Add tremont as x86 -march=/-mtune= CPU type.

libgcc/

	* config/i386/cpuinfo.h (processor_types): Add INTEL_TREMONT.

gcc/testsuite/

	* gcc.target/i386/funcspec-56.inc: Test arch=tremont.

Is it OK?

Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-tremont.patch
Type: application/octet-stream
Size: 19859 bytes
Desc: 0001-tremont.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180604/eb1faced/attachment.obj>


More information about the Gcc-patches mailing list