diff options
author | Quentin Neill <quentin.neill@amd.com> | 2011-05-10 22:02:27 +0000 |
---|---|---|
committer | Quentin Neill <quentin.neill@amd.com> | 2011-05-10 22:02:27 +0000 |
commit | af2f724ec495247ddaefa39f7da4f4f81719ffcb (patch) | |
tree | 576b864f2c98c55bd56dd643983d8365f96e16ae /gas/config | |
parent | 2471d0083c54a1474b907a1cc3637baa93d12eb7 (diff) | |
download | gdb-af2f724ec495247ddaefa39f7da4f4f81719ffcb.zip gdb-af2f724ec495247ddaefa39f7da4f4f81719ffcb.tar.gz gdb-af2f724ec495247ddaefa39f7da4f4f81719ffcb.tar.bz2 |
2011-05-10 Quentin Neill <quentin.neill@amd.com>
gas/
* config/tc-i386.c (cpu_arch): Add bdver2 and rename
PROCESSOR_BDVER1 to PROCESSOR_BDVER.
(i386_align_code): Rename PROCESSOR_BDVER1.
(processor_type): Ditto.
* doc/c-i386.texi: Add bdver2.
opcodes/
* i386-gen.c (cpu_flag_init): Add new CPU_BDVER2_FLAGS.
* i386-init.h: Regenerated.
gas/testsuite/
* gas/i386/i386.exp: Add new bdver2 test cases.
* gas/i386/nops-1-bdver2.d: New.
* gas/i386/x86-64-nops-1-bdver2.d: New.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 10 | ||||
-rw-r--r-- | gas/config/tc-i386.h | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 69ac150..d208a0d 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -645,8 +645,10 @@ static const arch_entry cpu_arch[] = CPU_K8_FLAGS, 0, 0 }, { STRING_COMMA_LEN ("amdfam10"), PROCESSOR_AMDFAM10, CPU_AMDFAM10_FLAGS, 0, 0 }, - { STRING_COMMA_LEN ("bdver1"), PROCESSOR_BDVER1, + { STRING_COMMA_LEN ("bdver1"), PROCESSOR_BDVER, CPU_BDVER1_FLAGS, 0, 0 }, + { STRING_COMMA_LEN ("bdver2"), PROCESSOR_BDVER, + CPU_BDVER2_FLAGS, 0, 0 }, { STRING_COMMA_LEN (".8087"), PROCESSOR_UNKNOWN, CPU_8087_FLAGS, 0, 0 }, { STRING_COMMA_LEN (".287"), PROCESSOR_UNKNOWN, @@ -1023,7 +1025,7 @@ 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, and PROCESSOR_BDVER1, alt_short_patt + PROCESSOR_AMDFAM10, and PROCESSOR_BDVER, alt_short_patt will be used. When -mtune= isn't used, alt_long_patt will be used if @@ -1076,7 +1078,7 @@ i386_align_code (fragS *fragP, int count) case PROCESSOR_ATHLON: case PROCESSOR_K8: case PROCESSOR_AMDFAM10: - case PROCESSOR_BDVER1: + case PROCESSOR_BDVER: patt = alt_short_patt; break; case PROCESSOR_I386: @@ -1105,7 +1107,7 @@ i386_align_code (fragS *fragP, int count) case PROCESSOR_ATHLON: case PROCESSOR_K8: case PROCESSOR_AMDFAM10: - case PROCESSOR_BDVER1: + case PROCESSOR_BDVER: case PROCESSOR_GENERIC32: /* We use cpu_arch_isa_flags to check if we CAN optimize with nops. */ diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index bf227c6..bbe71e0 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -230,7 +230,7 @@ enum processor_type PROCESSOR_GENERIC32, PROCESSOR_GENERIC64, PROCESSOR_AMDFAM10, - PROCESSOR_BDVER1 + PROCESSOR_BDVER }; extern enum processor_type cpu_arch_tune; |