This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, i386]: AMD bdver4 enablement

Removed the changelog entry on prefetching.

-----Original Message-----
From: Gopalasubramanian, Ganesh 
Sent: Tuesday, November 12, 2013 12:31 PM
Cc: Uros Bizjak (
Subject: [PATCH, i386]: AMD bdver4 enablement


The attached patch (bd4-enablement.patch) enables the next version of AMD's core.
New addition to the ISA (AVX2 and BMI2) are enabled for the new core.
Presently, the tuning is mostly copied from bdver3.  This includes the pipeline modeling too.
X86_TUNE_REASSOC_FP_TO_PARALLEL is not enabled (which might be a work in future).

Bootstrapping passes. Is it OK for upstream?


2013-11-12 Ganesh Gopalasubramanian  <>

	* config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
	(case ${target}): Add bdver4.
	* config/i386/ Add bdver4.
	* config/i386/driver-i386.c: (host_detect_local_cpu): Let
	-march=native recognize bdver4 processors. 
	* config/i386/i386-c.c (ix86_target_macros_internal): Add
	bdver4 def_and_undef	
	* config/i386/i386.c (struct processor_costs bdver4_cost): New.
	(m_BDVER4): New definition.
	(m_AMD_MULTIPLE): Includes m_BDVER4.
	(processor_target_table): Add bdver4 entry.
	(static const char *const cpu_names): Add bdver4 entry.
	(ix86_option_override_internal): Add bdver4 instruction sets.
	(ix86_issue_rate): Add bdver4.
	(ix86_adjust_cost): Add bdver4.	
	(ia32_multipass_dfa_lookahead): Add bdver4.
	(enum processor_model): Add M_AMDFAM15H_BDVER4.
	(struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
	(has_dispatch): Add bdver4.	
	* config/i386/i386.h (TARGET_BDVER4): New definition.	
	(enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
	(enum processor_type): Add PROCESSOR_BDVER4.
	* config/i386/ (define_attr "cpu"): Add bdver4.
	* config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
	* gcc/doc/extend.texi: Add details about bdver4.
	* gcc/doc/invoke.texi: Add details about bdver4.

Attachment: bd4-enablement.patch
Description: bd4-enablement.patch

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]