diff options
author | Sebastian Pop <sebastian.pop@amd.com> | 2010-01-06 22:52:47 +0000 |
---|---|---|
committer | Sebastian Pop <sebastian.pop@amd.com> | 2010-01-06 22:52:47 +0000 |
commit | 69dd98654ad9b6a1fb1ea1cdfa3f9fa1f57fce8c (patch) | |
tree | c940671a2cd8b8ff8fc962d49d1f043442280861 /gas/config | |
parent | a192ba05083cb72a218e7c7722f30eadb9973833 (diff) | |
download | gdb-69dd98654ad9b6a1fb1ea1cdfa3f9fa1f57fce8c.zip gdb-69dd98654ad9b6a1fb1ea1cdfa3f9fa1f57fce8c.tar.gz gdb-69dd98654ad9b6a1fb1ea1cdfa3f9fa1f57fce8c.tar.bz2 |
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 2c1d04d..60d2149 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 e355f7f..5e12272 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; |