From: H.J. Lu Date: Fri, 28 Aug 2009 21:42:16 +0000 (+0000) Subject: gas/ X-Git-Tag: cgen-snapshot-20090901~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3632d14b135c61bbc859070012cc7515da182ef6;p=external%2Fbinutils.git gas/ 2009-08-28 H.J. Lu * config/tc-i386.c (cpu_arch): Use PROCESSOR_L1OM on "l1om". (i386_align_code): Handle PROCESSOR_L1OM. (check_cpu_arch_compatible): Fix a typo in comments. (set_cpu_arch): Check cpu_arch_isa instead of cpu_arch_isa_flags.bitfield.cpul1om. (i386_mach): Likewise. (i386_target_format): Likewise. * config/tc-i386.h (processor_type): Add PROCESSOR_L1OM. gas/testsuite/ 2009-08-28 H.J. Lu * gas/i386/l1om.d: Check elf64-l1om format. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 89a61d0..70d17e4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,15 @@ +2009-08-28 H.J. Lu + + * config/tc-i386.c (cpu_arch): Use PROCESSOR_L1OM on "l1om". + (i386_align_code): Handle PROCESSOR_L1OM. + (check_cpu_arch_compatible): Fix a typo in comments. + (set_cpu_arch): Check cpu_arch_isa instead of + cpu_arch_isa_flags.bitfield.cpul1om. + (i386_mach): Likewise. + (i386_target_format): Likewise. + + * config/tc-i386.h (processor_type): Add PROCESSOR_L1OM. + 2009-08-26 DJ Delorie * config/tc-mep.c (md_pcrel_from_section): Handle any other diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 86e55bf..2b614b0 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -577,7 +577,7 @@ static const arch_entry cpu_arch[] = CPU_CORE2_FLAGS }, { "corei7", PROCESSOR_COREI7, CPU_COREI7_FLAGS }, - { "l1om", PROCESSOR_GENERIC64, + { "l1om", PROCESSOR_L1OM, CPU_L1OM_FLAGS }, { "k6", PROCESSOR_K6, CPU_K6_FLAGS }, @@ -995,6 +995,7 @@ i386_align_code (fragS *fragP, int count) case PROCESSOR_CORE: case PROCESSOR_CORE2: case PROCESSOR_COREI7: + case PROCESSOR_L1OM: case PROCESSOR_GENERIC64: patt = alt_long_patt; break; @@ -1043,6 +1044,7 @@ i386_align_code (fragS *fragP, int count) case PROCESSOR_CORE: case PROCESSOR_CORE2: case PROCESSOR_COREI7: + case PROCESSOR_L1OM: if (fragP->tc_frag_data.isa_flags.bitfield.cpui686) patt = alt_long_patt; else @@ -1977,7 +1979,7 @@ check_cpu_arch_compatible (const char *name ATTRIBUTE_UNUSED, arch = default_arch; } - /* If we are targeting Intel L1OM, wm must enable it. */ + /* If we are targeting Intel L1OM, we must enable it. */ if (get_elf_backend_data (stdoutput)->elf_machine_code != EM_L1OM || new.bitfield.cpul1om) return; @@ -2085,7 +2087,7 @@ set_cpu_arch (int dummy ATTRIBUTE_UNUSED) enum bfd_architecture i386_arch (void) { - if (cpu_arch_isa_flags.bitfield.cpul1om) + if (cpu_arch_isa == PROCESSOR_L1OM) { if (OUTPUT_FLAVOR != bfd_target_elf_flavour || flag_code != CODE_64BIT) @@ -2101,7 +2103,7 @@ i386_mach () { if (!strcmp (default_arch, "x86_64")) { - if (cpu_arch_isa_flags.bitfield.cpul1om) + if (cpu_arch_isa == PROCESSOR_L1OM) { if (OUTPUT_FLAVOR != bfd_target_elf_flavour) as_fatal (_("Intel L1OM is 64bit ELF only")); @@ -8102,7 +8104,7 @@ i386_target_format (void) object_64bit = 1; use_rela_relocations = 1; } - if (cpu_arch_isa_flags.bitfield.cpul1om) + if (cpu_arch_isa == PROCESSOR_L1OM) { if (flag_code != CODE_64BIT) as_fatal (_("Intel L1OM is 64bit only")); diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index 3d89a32..d10df53 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -215,6 +215,7 @@ enum processor_type PROCESSOR_CORE, PROCESSOR_CORE2, PROCESSOR_COREI7, + PROCESSOR_L1OM, PROCESSOR_K6, PROCESSOR_ATHLON, PROCESSOR_K8, diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 6b6d75a..529e323 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2009-08-28 H.J. Lu + + * gas/i386/l1om.d: Check elf64-l1om format. + 2006-08-11 Bernd Schmidt * gas/bfin/parallel.s: Add more test cases. diff --git a/gas/testsuite/gas/i386/l1om.d b/gas/testsuite/gas/i386/l1om.d index 6c000b7..fae038c 100644 --- a/gas/testsuite/gas/i386/l1om.d +++ b/gas/testsuite/gas/i386/l1om.d @@ -2,7 +2,8 @@ #as: -J -march=l1om #objdump: -dw --insn-width=7 #name: l1om -.*: +file format .* + +.*: +file format elf64-l1om.* Disassembly of section .text: