diff options
author | spop <spop> | 2010-01-06 22:52:46 +0000 |
---|---|---|
committer | spop <spop> | 2010-01-06 22:52:46 +0000 |
commit | 5f7c44df2c8b4e3791936d7e3bf7f3bb4fa3fded (patch) | |
tree | 5f71b0525245ab008876b4c145c92dd8abeabbbd /gas/config | |
parent | 029d4e4132a24952cf6abd635fd50abc38118eb8 (diff) | |
download | binutils-redhat-5f7c44df2c8b4e3791936d7e3bf7f3bb4fa3fded.tar.gz |
2010-01-06 Quentin Neill <quentin.neill@amd.com>
gas/
* config/tc-i386.c (cpu_arch): Add amdfam15.
(i386_align_code): Add PROCESSOR_AMDFAM15 cases.
* config/tc-i386.h (processor_type): Add PROCESSOR_AMDFAM15.
* doc/c-i386.texi: Add amdfam15.
opcodes/
* i386-gen.c (cpu_flag_init): Add new CPU_AMDFAM15_FLAGS.
* i386-init.h: Regenerated.
testsuite/
* gas/i386/i386.exp: Add new amdfam15 test cases.
* gas/i386/nops-1-amdfam15.d: New.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 7 | ||||
-rw-r--r-- | gas/config/tc-i386.h | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 2c1d04da44..60d214938d 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -596,6 +596,8 @@ static const arch_entry cpu_arch[] = CPU_K8_FLAGS, 0 }, { STRING_COMMA_LEN ("amdfam10"), PROCESSOR_AMDFAM10, CPU_AMDFAM10_FLAGS, 0 }, + { STRING_COMMA_LEN ("amdfam15"), PROCESSOR_AMDFAM15, + CPU_AMDFAM15_FLAGS, 0 }, { STRING_COMMA_LEN (".8087"), PROCESSOR_UNKNOWN, CPU_8087_FLAGS, 0 }, { STRING_COMMA_LEN (".287"), PROCESSOR_UNKNOWN, @@ -957,7 +959,8 @@ i386_align_code (fragS *fragP, int count) PROCESSOR_CORE, PROCESSOR_CORE2, PROCESSOR_COREI7, and PROCESSOR_GENERIC64, alt_long_patt will be used. 3. For PROCESSOR_ATHLON, PROCESSOR_K6, PROCESSOR_K8 and - PROCESSOR_AMDFAM10, alt_short_patt will be used. + PROCESSOR_AMDFAM10, and PROCESSOR_AMDFAM15, alt_short_patt + will be used. When -mtune= isn't used, alt_long_patt will be used if cpu_arch_isa_flags has Cpu686. Otherwise, f32_patt will @@ -1010,6 +1013,7 @@ i386_align_code (fragS *fragP, int count) case PROCESSOR_ATHLON: case PROCESSOR_K8: case PROCESSOR_AMDFAM10: + case PROCESSOR_AMDFAM15: patt = alt_short_patt; break; case PROCESSOR_I386: @@ -1037,6 +1041,7 @@ i386_align_code (fragS *fragP, int count) case PROCESSOR_ATHLON: case PROCESSOR_K8: case PROCESSOR_AMDFAM10: + case PROCESSOR_AMDFAM15: case PROCESSOR_GENERIC32: /* We use cpu_arch_isa_flags to check if we CAN optimize for Cpu686. */ diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index e355f7f0c9..5e12272f4a 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -220,7 +220,8 @@ enum processor_type PROCESSOR_K8, PROCESSOR_GENERIC32, PROCESSOR_GENERIC64, - PROCESSOR_AMDFAM10 + PROCESSOR_AMDFAM10, + PROCESSOR_AMDFAM15 }; extern enum processor_type cpu_arch_tune; |