Commit ab247762 by Maxim Kuvyrkov Committed by Maxim Kuvyrkov

Define tuning for Core 2 and Core i7.

	* config/i386/i386-c.c (ix86_target_macros_internal): Update.
	* config/i386/i386.c (core2_cost): Delete, use generic costs instead.
	(m_CORE2): Replace with m_CORE2_{32,64}.
	(m_CORE2I7{,_32,_64}): New macros.
	(m_GENERIC32, m_GENERIC64): Update.
	(initial_ix86_tune_features, x86_accumulate_outgoing_args,)
	(x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
	set m_CORE2I7_64 iff m_GENERIC64.
	(processor_target_table): Use generic costs for Core 2 and Core i7.
	(ix86_option_override_internal): Update entries for Core 2 and Core i7.
	(ix86_issue_rate): Remove entry for Core 2.
	(ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
	* config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
	(TARGET_CORE2): Update.
	(PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
	(PROCESSOR_CORE2): Remove.

From-SVN: r167374
parent edaadf74
2010-12-02 Maxim Kuvyrkov <maxim@codesourcery.com>
Define tuning for Core 2 and Core i7.
* config/i386/i386-c.c (ix86_target_macros_internal): Update.
* config/i386/i386.c (core2_cost): Delete, use generic costs instead.
(m_CORE2): Replace with m_CORE2_{32,64}.
(m_CORE2I7{,_32,_64}): New macros.
(m_GENERIC32, m_GENERIC64): Update.
(initial_ix86_tune_features, x86_accumulate_outgoing_args,)
(x86_arch_always_fancy_math_387): Set m_CORE2I7_32 iff m_GENERIC32 and
set m_CORE2I7_64 iff m_GENERIC64.
(processor_target_table): Use generic costs for Core 2 and Core i7.
(ix86_option_override_internal): Update entries for Core 2 and Core i7.
(ix86_issue_rate): Remove entry for Core 2.
(ia32_multipass_dfa_lookahead, ix86_sched_init_global): Update.
* config/i386/i386.h (TARGET_CORE2_32, TARGET_CORE2_64): New macros.
(TARGET_CORE2): Update.
(PROCESSOR_CORE2_32, PROCESSOR_CORE2_64): New constants.
(PROCESSOR_CORE2): Remove.
2010-12-02 Richard Guenther <rguenther@suse.de> 2010-12-02 Richard Guenther <rguenther@suse.de>
* lto-streamer.h (LTO_major_version): Bump to 2. * lto-streamer.h (LTO_major_version): Bump to 2.
...@@ -118,7 +118,8 @@ ix86_target_macros_internal (int isa_flag, ...@@ -118,7 +118,8 @@ ix86_target_macros_internal (int isa_flag,
def_or_undef (parse_in, "__nocona"); def_or_undef (parse_in, "__nocona");
def_or_undef (parse_in, "__nocona__"); def_or_undef (parse_in, "__nocona__");
break; break;
case PROCESSOR_CORE2: case PROCESSOR_CORE2_32:
case PROCESSOR_CORE2_64:
def_or_undef (parse_in, "__core2"); def_or_undef (parse_in, "__core2");
def_or_undef (parse_in, "__core2__"); def_or_undef (parse_in, "__core2__");
break; break;
...@@ -199,7 +200,8 @@ ix86_target_macros_internal (int isa_flag, ...@@ -199,7 +200,8 @@ ix86_target_macros_internal (int isa_flag,
case PROCESSOR_NOCONA: case PROCESSOR_NOCONA:
def_or_undef (parse_in, "__tune_nocona__"); def_or_undef (parse_in, "__tune_nocona__");
break; break;
case PROCESSOR_CORE2: case PROCESSOR_CORE2_32:
case PROCESSOR_CORE2_64:
def_or_undef (parse_in, "__tune_core2__"); def_or_undef (parse_in, "__tune_core2__");
break; break;
case PROCESSOR_COREI7_32: case PROCESSOR_COREI7_32:
......
...@@ -240,7 +240,9 @@ extern const struct processor_costs ix86_size_cost; ...@@ -240,7 +240,9 @@ extern const struct processor_costs ix86_size_cost;
#define TARGET_K8 (ix86_tune == PROCESSOR_K8) #define TARGET_K8 (ix86_tune == PROCESSOR_K8)
#define TARGET_ATHLON_K8 (TARGET_K8 || TARGET_ATHLON) #define TARGET_ATHLON_K8 (TARGET_K8 || TARGET_ATHLON)
#define TARGET_NOCONA (ix86_tune == PROCESSOR_NOCONA) #define TARGET_NOCONA (ix86_tune == PROCESSOR_NOCONA)
#define TARGET_CORE2 (ix86_tune == PROCESSOR_CORE2) #define TARGET_CORE2_32 (ix86_tune == PROCESSOR_CORE2_32)
#define TARGET_CORE2_64 (ix86_tune == PROCESSOR_CORE2_64)
#define TARGET_CORE2 (TARGET_CORE2_32 || TARGET_CORE2_64)
#define TARGET_COREI7_32 (ix86_tune == PROCESSOR_COREI7_32) #define TARGET_COREI7_32 (ix86_tune == PROCESSOR_COREI7_32)
#define TARGET_COREI7_64 (ix86_tune == PROCESSOR_COREI7_64) #define TARGET_COREI7_64 (ix86_tune == PROCESSOR_COREI7_64)
#define TARGET_COREI7 (TARGET_COREI7_32 || TARGET_COREI7_64) #define TARGET_COREI7 (TARGET_COREI7_32 || TARGET_COREI7_64)
...@@ -2050,7 +2052,8 @@ enum processor_type ...@@ -2050,7 +2052,8 @@ enum processor_type
PROCESSOR_PENTIUM4, PROCESSOR_PENTIUM4,
PROCESSOR_K8, PROCESSOR_K8,
PROCESSOR_NOCONA, PROCESSOR_NOCONA,
PROCESSOR_CORE2, PROCESSOR_CORE2_32,
PROCESSOR_CORE2_64,
PROCESSOR_COREI7_32, PROCESSOR_COREI7_32,
PROCESSOR_COREI7_64, PROCESSOR_COREI7_64,
PROCESSOR_GENERIC32, PROCESSOR_GENERIC32,
......
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