2014-03-05 19:46:15 +08:00
|
|
|
/* Copyright (C) 1998-2014 Free Software Foundation, Inc.
|
2000-04-22 04:22:24 +08:00
|
|
|
Contributed by David Mosberger-Tang <davidm@hpl.hp.com>
|
|
|
|
|
2007-07-03 22:26:43 +08:00
|
|
|
This file is part of BFD, the Binary File Descriptor library.
|
2000-04-22 04:22:24 +08:00
|
|
|
|
2007-07-03 22:26:43 +08:00
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
2000-04-22 04:22:24 +08:00
|
|
|
|
2007-07-03 22:26:43 +08:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2000-04-22 04:22:24 +08:00
|
|
|
|
2007-07-03 22:26:43 +08:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
|
|
|
MA 02110-1301, USA. */
|
2000-04-22 04:22:24 +08:00
|
|
|
|
|
|
|
/* Logically, this code should be part of libopcode but since some of
|
|
|
|
the operand insertion/extraction functions help bfd to implement
|
Touches most files in bfd/, so likely will be blamed for everything..
o bfd_read and bfd_write lose an unnecessary param and become
bfd_bread and bfd_bwrite.
o bfd_*alloc now all take a bfd_size_type arg, and will error if
size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files
or bugs in linker scripts etc.
o file_ptr becomes a bfd_signed_vma. Besides matching sizes with
various other types involved in handling sections, this should make
it easier for bfd to support a 64 bit off_t on 32 bit hosts that
provide it.
o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*)
generally available. They now cast their args to bfd_vma and
bfd_byte * as appropriate, which removes a swag of casts from the
source.
o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and
aout-encap.c.
o Zillions of formatting and -Wconversion fixes.
2001-09-18 17:57:26 +08:00
|
|
|
relocations, this code is included as part of cpu-ia64.c. This
|
2000-04-22 04:22:24 +08:00
|
|
|
avoids circular dependencies between libopcode and libbfd and also
|
|
|
|
obviates the need for applications to link in libopcode when all
|
|
|
|
they really want is libbfd.
|
|
|
|
|
|
|
|
--davidm Mon Apr 13 22:14:02 1998 */
|
|
|
|
|
|
|
|
#include "../opcodes/ia64-opc.h"
|
|
|
|
|
|
|
|
#define NELEMS(a) ((int) (sizeof (a) / sizeof ((a)[0])))
|
|
|
|
|
|
|
|
static const char*
|
Eliminate compiler warnings from IA-64 port.
* coff-ia64.c (howto_table): Use EMPTY_HOWTO.
(in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
* cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
(ins_imms_scaled): Initialize sign_bit at function entry.
(elf64_ia64_operands): Add missing initializers.
* elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
parameters.
(elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
and free_extsyms at function entry.
(elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
(elfNN_ia64_create_dynamic_sections): Delete unused local h.
(get_got): Delete unused local srel.
(elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
(elfNN_ia64_relocate_section): Delete unused local dynindx.
2000-11-23 05:25:36 +08:00
|
|
|
ins_rsvd (const struct ia64_operand *self ATTRIBUTE_UNUSED,
|
|
|
|
ia64_insn value ATTRIBUTE_UNUSED, ia64_insn *code ATTRIBUTE_UNUSED)
|
2000-04-22 04:22:24 +08:00
|
|
|
{
|
|
|
|
return "internal error---this shouldn't happen";
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
Eliminate compiler warnings from IA-64 port.
* coff-ia64.c (howto_table): Use EMPTY_HOWTO.
(in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
* cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
(ins_imms_scaled): Initialize sign_bit at function entry.
(elf64_ia64_operands): Add missing initializers.
* elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
parameters.
(elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
and free_extsyms at function entry.
(elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
(elfNN_ia64_create_dynamic_sections): Delete unused local h.
(get_got): Delete unused local srel.
(elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
(elfNN_ia64_relocate_section): Delete unused local dynindx.
2000-11-23 05:25:36 +08:00
|
|
|
ext_rsvd (const struct ia64_operand *self ATTRIBUTE_UNUSED,
|
|
|
|
ia64_insn code ATTRIBUTE_UNUSED, ia64_insn *valuep ATTRIBUTE_UNUSED)
|
2000-04-22 04:22:24 +08:00
|
|
|
{
|
|
|
|
return "internal error---this shouldn't happen";
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
Eliminate compiler warnings from IA-64 port.
* coff-ia64.c (howto_table): Use EMPTY_HOWTO.
(in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
* cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
(ins_imms_scaled): Initialize sign_bit at function entry.
(elf64_ia64_operands): Add missing initializers.
* elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
parameters.
(elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
and free_extsyms at function entry.
(elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
(elfNN_ia64_create_dynamic_sections): Delete unused local h.
(get_got): Delete unused local srel.
(elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
(elfNN_ia64_relocate_section): Delete unused local dynindx.
2000-11-23 05:25:36 +08:00
|
|
|
ins_const (const struct ia64_operand *self ATTRIBUTE_UNUSED,
|
|
|
|
ia64_insn value ATTRIBUTE_UNUSED, ia64_insn *code ATTRIBUTE_UNUSED)
|
2000-04-22 04:22:24 +08:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
Eliminate compiler warnings from IA-64 port.
* coff-ia64.c (howto_table): Use EMPTY_HOWTO.
(in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
* cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
(ins_imms_scaled): Initialize sign_bit at function entry.
(elf64_ia64_operands): Add missing initializers.
* elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
parameters.
(elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
and free_extsyms at function entry.
(elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
(elfNN_ia64_create_dynamic_sections): Delete unused local h.
(get_got): Delete unused local srel.
(elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
(elfNN_ia64_relocate_section): Delete unused local dynindx.
2000-11-23 05:25:36 +08:00
|
|
|
ext_const (const struct ia64_operand *self ATTRIBUTE_UNUSED,
|
|
|
|
ia64_insn code ATTRIBUTE_UNUSED, ia64_insn *valuep ATTRIBUTE_UNUSED)
|
2000-04-22 04:22:24 +08:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_reg (const struct ia64_operand *self, ia64_insn value, ia64_insn *code)
|
|
|
|
{
|
|
|
|
if (value >= 1u << self->field[0].bits)
|
|
|
|
return "register number out of range";
|
|
|
|
|
|
|
|
*code |= value << self->field[0].shift;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_reg (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
*valuep = ((code >> self->field[0].shift)
|
|
|
|
& ((1u << self->field[0].bits) - 1));
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_immu (const struct ia64_operand *self, ia64_insn value, ia64_insn *code)
|
|
|
|
{
|
Updated sources to avoid using the identifier name "new", which is a
keyword in c++.
* bfd/aoutx.h (NAME (aout, make_empty_symbol)): Rename variable
new to new_symbol.
* bfd/coffgen.c (coff_make_empty_symbol)
(coff_bfd_make_debug_symbol): Rename variable new to new_symbol.
* bfd/cpu-ia64-opc.c (ext_reg, ins_imms_scaled): Rename variable
new to new_insn.
* bfd/doc/chew.c (newentry, add_intrinsic): Rename variable new to
new_d.
* bfd/ecoff.c (_bfd_ecoff_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/elf32-m68k.c (elf_m68k_get_got_entry_type): Rename argument
new to new_reloc.
* bfd/hash.c (bfd_hash_lookup): Rename variable new to new_string.
* bfd/ieee.c (ieee_make_empty_symbol): Rename variable new to
new_symbol.
* bfd/linker.c (bfd_new_link_order): Rename variable new to
new_lo.
* bfd/mach-o.c (bfd_mach_o_sizeof_headers): Rename variable new to
symbol.
* bfd/oasys.c (oasys_make_empty_symbol): Rename variable new to
new_symbol_type.
* bfd/pdp11.c (NAME (aout, make_empty_symbol)): Rename variable
new to new_symbol_type.
* bfd/plugin.c (bfd_plugin_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/rs6000-core.c (CoreHdr, VmInfo): Rename union member new to
new_dump.
(read_hdr, rs6000coff_core_p)
(rs6000coff_core_file_matches_executable_p)
(rs6000coff_core_file_failing_command)
(rs6000coff_core_file_failing_signal): Updated function to use new
union member name.
* bfd/som.c (som_make_empty_symbol): Rename variable new to
new_symbol_type.
* bfd/syms.c (_bfd_generic_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/tekhex.c (first_phase, tekhex_make_empty_symbol): Rename
variable new to new_symbol.
* binutils/nlmconv.c (main): Rename variable new to new_name.
* gas/config/tc-arm.c (insert_reg_alias): Rename variable new to
new_reg.
* gas/config/tc-dlx.c (parse_operand): Rename variable new to
new_pos.
* gas/config/tc-ia64.c (ia64_gen_real_reloc_type): Rename variable
new to newr.
* gas/config/tc-mcore.c (parse_exp, parse_imm): Rename variable
new to new_pointer.
* gas/config/tc-microblaze.c (parse_exp, parse_imm, check_got):
Change name from new to new_pointer.
* gas/config/tc-or32.c (parse_operand): Rename variable new to
new_pointer.
* gas/config/tc-pdp11.c (md_assemble): Rename variable new to
new_pointer.
* gas/config/tc-pj.c (alias): Change argument new to new_name.
* gas/config/tc-score.c (s3_build_score_ops_hsh): Rename variable
new to new_opcode. (s3_build_dependency_insn_hsh) Rename variable
new to new_i2n. (s3_convert): Rename variables old and new to
r_old and r_new.
* gas/config/tc-score7.c (s7_build_score_ops_hsh): Rename variable
new to new_opcode. (s7_build_dependency_insn_hsh): Rename variable
new to new_i2d. (s7_b32_relax_to_b16, s7_convert_frag): Rename
variables old and new to r_old and r_new.
* gas/config/tc-sh.c (parse_exp): Rename variable new to
new_pointer.
* gas/config/tc-sh64.c (shmedia_parse_exp): Rename variable new to
new_pointer.
* gas/config/tc-tic4x.c (tic4x_operand_parse): Rename variable new
to new_pointer.
* gas/config/tc-z8k.c (parse_exp): Rename variable new to
new_pointer.
* gas/listing.c (listing_newline): Rename variable new to new_i.
* ld/ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop)
(exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new
to new_e.
* ld/ldfile.c (ldfile_add_library_path): Rename variable new to
new_dirs. (ldfile_add_arch): Rename variable new to new_arch.
* ld/ldlang.c (new_statement, lang_final, lang_add_wild)
(lang_target, lang_add_fill, lang_add_data, lang_add_assignment)
(lang_add_insert): Rename variable new to new_stmt. (new_afile):
Added missing cast. (lang_memory_region_lookup): Rename variable
new to new_region. (init_os): Rename variable new to
new_userdata. (lang_add_section): Rename variable new to
new_section. (ldlang_add_undef): Rename variable new to
new_undef. (realsymbol): Rename variable new to new_name.
* opcodes/z8kgen.c (internal, gas): Rename variable new to new_op.
Updated sources to avoid using the identifier name "template",
which is a keyword in c++.
* bfd/elf32-arm.c (struct stub_def): Rename member template to
template_sequence. (arm_build_one_stub,
find_stub_size_and_template, arm_size_one_stub, arm_map_one_stub):
Rename variable template to template_sequence.
* bfd/elfxx-ia64.c (elfNN_ia64_relax_br, elfNN_ia64_relax_brl):
Rename variable template to template_val.
* gas/config/tc-arm.c (struct asm_cond, struct asm_psr, struct
asm_barrier_opt): Change member template to
template_name. (md_begin): Update code to reflect new member
names.
* gas/config/tc-i386.c (struct templates, struct _i386_insn)
(match_template, cpu_flags_match, match_reg_size, match_mem_size)
(operand_size_match, md_begin, i386_print_statistics, pi)
(build_vex_prefix, md_assemble, parse_insn, optimize_imm)
(optimize_disp): Updated code to use new names. (parse_insn):
Added casts.
* gas/config/tc-ia64.c (dot_template, emit_one_bundle): Updated
code to use new names.
* gas/config/tc-score.c (struct s3_asm_opcode): Renamed member
template to template_name. (s3_parse_16_32_inst, s3_parse_48_inst,
s3_do_macro_ldst_label, s3_build_score_ops_hsh): Update code to
use new names.
* gas/config/tc-score7.c (struct s7_asm_opcode): Renamed member
template to template_name. (s7_parse_16_32_inst,
s7_do_macro_ldst_label, s7_build_score_ops_hsh): Update code to
use new names.
* gas/config/tc-tic30.c (md_begin, struct tic30_insn)
(md_assemble): Update code to use new names.
* gas/config/tc-tic54x.c (struct _tic54x_insn, md_begin)
(optimize_insn, tic54x_parse_insn, next_line_shows_parallel):
Update code to use new names.
* include/opcode/tic30.h (template): Rename type template to
insn_template. Updated code to use new name.
* include/opcode/tic54x.h (template): Rename type template to
insn_template.
* opcodes/cris-dis.c (bytes_to_skip): Update code to use new name.
* opcodes/i386-dis.c (putop): Update code to use new name.
* opcodes/i386-gen.c (process_i386_opcodes): Update code to use
new name.
* opcodes/i386-opc.h (struct template): Rename struct template to
insn_template. Update code accordingly.
* opcodes/i386-tbl.h (i386_optab): Update type to use new name.
* opcodes/ia64-dis.c (print_insn_ia64): Rename variable template
to template_val.
* opcodes/tic30-dis.c (struct instruction, get_tic30_instruction):
Update code to use new name.
* opcodes/tic54x-dis.c (has_lkaddr, get_insn_size)
(print_parallel_instruction, print_insn_tic54x, tic54x_get_insn):
Update code to use new name.
* opcodes/tic54x-opc.c (tic54x_unknown_opcode, tic54x_optab):
Update type to new name.
2009-08-30 06:11:02 +08:00
|
|
|
ia64_insn new_insn = 0;
|
2000-04-22 04:22:24 +08:00
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 0; i < NELEMS (self->field) && self->field[i].bits; ++i)
|
|
|
|
{
|
Updated sources to avoid using the identifier name "new", which is a
keyword in c++.
* bfd/aoutx.h (NAME (aout, make_empty_symbol)): Rename variable
new to new_symbol.
* bfd/coffgen.c (coff_make_empty_symbol)
(coff_bfd_make_debug_symbol): Rename variable new to new_symbol.
* bfd/cpu-ia64-opc.c (ext_reg, ins_imms_scaled): Rename variable
new to new_insn.
* bfd/doc/chew.c (newentry, add_intrinsic): Rename variable new to
new_d.
* bfd/ecoff.c (_bfd_ecoff_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/elf32-m68k.c (elf_m68k_get_got_entry_type): Rename argument
new to new_reloc.
* bfd/hash.c (bfd_hash_lookup): Rename variable new to new_string.
* bfd/ieee.c (ieee_make_empty_symbol): Rename variable new to
new_symbol.
* bfd/linker.c (bfd_new_link_order): Rename variable new to
new_lo.
* bfd/mach-o.c (bfd_mach_o_sizeof_headers): Rename variable new to
symbol.
* bfd/oasys.c (oasys_make_empty_symbol): Rename variable new to
new_symbol_type.
* bfd/pdp11.c (NAME (aout, make_empty_symbol)): Rename variable
new to new_symbol_type.
* bfd/plugin.c (bfd_plugin_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/rs6000-core.c (CoreHdr, VmInfo): Rename union member new to
new_dump.
(read_hdr, rs6000coff_core_p)
(rs6000coff_core_file_matches_executable_p)
(rs6000coff_core_file_failing_command)
(rs6000coff_core_file_failing_signal): Updated function to use new
union member name.
* bfd/som.c (som_make_empty_symbol): Rename variable new to
new_symbol_type.
* bfd/syms.c (_bfd_generic_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/tekhex.c (first_phase, tekhex_make_empty_symbol): Rename
variable new to new_symbol.
* binutils/nlmconv.c (main): Rename variable new to new_name.
* gas/config/tc-arm.c (insert_reg_alias): Rename variable new to
new_reg.
* gas/config/tc-dlx.c (parse_operand): Rename variable new to
new_pos.
* gas/config/tc-ia64.c (ia64_gen_real_reloc_type): Rename variable
new to newr.
* gas/config/tc-mcore.c (parse_exp, parse_imm): Rename variable
new to new_pointer.
* gas/config/tc-microblaze.c (parse_exp, parse_imm, check_got):
Change name from new to new_pointer.
* gas/config/tc-or32.c (parse_operand): Rename variable new to
new_pointer.
* gas/config/tc-pdp11.c (md_assemble): Rename variable new to
new_pointer.
* gas/config/tc-pj.c (alias): Change argument new to new_name.
* gas/config/tc-score.c (s3_build_score_ops_hsh): Rename variable
new to new_opcode. (s3_build_dependency_insn_hsh) Rename variable
new to new_i2n. (s3_convert): Rename variables old and new to
r_old and r_new.
* gas/config/tc-score7.c (s7_build_score_ops_hsh): Rename variable
new to new_opcode. (s7_build_dependency_insn_hsh): Rename variable
new to new_i2d. (s7_b32_relax_to_b16, s7_convert_frag): Rename
variables old and new to r_old and r_new.
* gas/config/tc-sh.c (parse_exp): Rename variable new to
new_pointer.
* gas/config/tc-sh64.c (shmedia_parse_exp): Rename variable new to
new_pointer.
* gas/config/tc-tic4x.c (tic4x_operand_parse): Rename variable new
to new_pointer.
* gas/config/tc-z8k.c (parse_exp): Rename variable new to
new_pointer.
* gas/listing.c (listing_newline): Rename variable new to new_i.
* ld/ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop)
(exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new
to new_e.
* ld/ldfile.c (ldfile_add_library_path): Rename variable new to
new_dirs. (ldfile_add_arch): Rename variable new to new_arch.
* ld/ldlang.c (new_statement, lang_final, lang_add_wild)
(lang_target, lang_add_fill, lang_add_data, lang_add_assignment)
(lang_add_insert): Rename variable new to new_stmt. (new_afile):
Added missing cast. (lang_memory_region_lookup): Rename variable
new to new_region. (init_os): Rename variable new to
new_userdata. (lang_add_section): Rename variable new to
new_section. (ldlang_add_undef): Rename variable new to
new_undef. (realsymbol): Rename variable new to new_name.
* opcodes/z8kgen.c (internal, gas): Rename variable new to new_op.
Updated sources to avoid using the identifier name "template",
which is a keyword in c++.
* bfd/elf32-arm.c (struct stub_def): Rename member template to
template_sequence. (arm_build_one_stub,
find_stub_size_and_template, arm_size_one_stub, arm_map_one_stub):
Rename variable template to template_sequence.
* bfd/elfxx-ia64.c (elfNN_ia64_relax_br, elfNN_ia64_relax_brl):
Rename variable template to template_val.
* gas/config/tc-arm.c (struct asm_cond, struct asm_psr, struct
asm_barrier_opt): Change member template to
template_name. (md_begin): Update code to reflect new member
names.
* gas/config/tc-i386.c (struct templates, struct _i386_insn)
(match_template, cpu_flags_match, match_reg_size, match_mem_size)
(operand_size_match, md_begin, i386_print_statistics, pi)
(build_vex_prefix, md_assemble, parse_insn, optimize_imm)
(optimize_disp): Updated code to use new names. (parse_insn):
Added casts.
* gas/config/tc-ia64.c (dot_template, emit_one_bundle): Updated
code to use new names.
* gas/config/tc-score.c (struct s3_asm_opcode): Renamed member
template to template_name. (s3_parse_16_32_inst, s3_parse_48_inst,
s3_do_macro_ldst_label, s3_build_score_ops_hsh): Update code to
use new names.
* gas/config/tc-score7.c (struct s7_asm_opcode): Renamed member
template to template_name. (s7_parse_16_32_inst,
s7_do_macro_ldst_label, s7_build_score_ops_hsh): Update code to
use new names.
* gas/config/tc-tic30.c (md_begin, struct tic30_insn)
(md_assemble): Update code to use new names.
* gas/config/tc-tic54x.c (struct _tic54x_insn, md_begin)
(optimize_insn, tic54x_parse_insn, next_line_shows_parallel):
Update code to use new names.
* include/opcode/tic30.h (template): Rename type template to
insn_template. Updated code to use new name.
* include/opcode/tic54x.h (template): Rename type template to
insn_template.
* opcodes/cris-dis.c (bytes_to_skip): Update code to use new name.
* opcodes/i386-dis.c (putop): Update code to use new name.
* opcodes/i386-gen.c (process_i386_opcodes): Update code to use
new name.
* opcodes/i386-opc.h (struct template): Rename struct template to
insn_template. Update code accordingly.
* opcodes/i386-tbl.h (i386_optab): Update type to use new name.
* opcodes/ia64-dis.c (print_insn_ia64): Rename variable template
to template_val.
* opcodes/tic30-dis.c (struct instruction, get_tic30_instruction):
Update code to use new name.
* opcodes/tic54x-dis.c (has_lkaddr, get_insn_size)
(print_parallel_instruction, print_insn_tic54x, tic54x_get_insn):
Update code to use new name.
* opcodes/tic54x-opc.c (tic54x_unknown_opcode, tic54x_optab):
Update type to new name.
2009-08-30 06:11:02 +08:00
|
|
|
new_insn |= ((value & ((((ia64_insn) 1) << self->field[i].bits) - 1))
|
|
|
|
<< self->field[i].shift);
|
2000-04-22 04:22:24 +08:00
|
|
|
value >>= self->field[i].bits;
|
|
|
|
}
|
|
|
|
if (value)
|
|
|
|
return "integer operand out of range";
|
|
|
|
|
Updated sources to avoid using the identifier name "new", which is a
keyword in c++.
* bfd/aoutx.h (NAME (aout, make_empty_symbol)): Rename variable
new to new_symbol.
* bfd/coffgen.c (coff_make_empty_symbol)
(coff_bfd_make_debug_symbol): Rename variable new to new_symbol.
* bfd/cpu-ia64-opc.c (ext_reg, ins_imms_scaled): Rename variable
new to new_insn.
* bfd/doc/chew.c (newentry, add_intrinsic): Rename variable new to
new_d.
* bfd/ecoff.c (_bfd_ecoff_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/elf32-m68k.c (elf_m68k_get_got_entry_type): Rename argument
new to new_reloc.
* bfd/hash.c (bfd_hash_lookup): Rename variable new to new_string.
* bfd/ieee.c (ieee_make_empty_symbol): Rename variable new to
new_symbol.
* bfd/linker.c (bfd_new_link_order): Rename variable new to
new_lo.
* bfd/mach-o.c (bfd_mach_o_sizeof_headers): Rename variable new to
symbol.
* bfd/oasys.c (oasys_make_empty_symbol): Rename variable new to
new_symbol_type.
* bfd/pdp11.c (NAME (aout, make_empty_symbol)): Rename variable
new to new_symbol_type.
* bfd/plugin.c (bfd_plugin_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/rs6000-core.c (CoreHdr, VmInfo): Rename union member new to
new_dump.
(read_hdr, rs6000coff_core_p)
(rs6000coff_core_file_matches_executable_p)
(rs6000coff_core_file_failing_command)
(rs6000coff_core_file_failing_signal): Updated function to use new
union member name.
* bfd/som.c (som_make_empty_symbol): Rename variable new to
new_symbol_type.
* bfd/syms.c (_bfd_generic_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/tekhex.c (first_phase, tekhex_make_empty_symbol): Rename
variable new to new_symbol.
* binutils/nlmconv.c (main): Rename variable new to new_name.
* gas/config/tc-arm.c (insert_reg_alias): Rename variable new to
new_reg.
* gas/config/tc-dlx.c (parse_operand): Rename variable new to
new_pos.
* gas/config/tc-ia64.c (ia64_gen_real_reloc_type): Rename variable
new to newr.
* gas/config/tc-mcore.c (parse_exp, parse_imm): Rename variable
new to new_pointer.
* gas/config/tc-microblaze.c (parse_exp, parse_imm, check_got):
Change name from new to new_pointer.
* gas/config/tc-or32.c (parse_operand): Rename variable new to
new_pointer.
* gas/config/tc-pdp11.c (md_assemble): Rename variable new to
new_pointer.
* gas/config/tc-pj.c (alias): Change argument new to new_name.
* gas/config/tc-score.c (s3_build_score_ops_hsh): Rename variable
new to new_opcode. (s3_build_dependency_insn_hsh) Rename variable
new to new_i2n. (s3_convert): Rename variables old and new to
r_old and r_new.
* gas/config/tc-score7.c (s7_build_score_ops_hsh): Rename variable
new to new_opcode. (s7_build_dependency_insn_hsh): Rename variable
new to new_i2d. (s7_b32_relax_to_b16, s7_convert_frag): Rename
variables old and new to r_old and r_new.
* gas/config/tc-sh.c (parse_exp): Rename variable new to
new_pointer.
* gas/config/tc-sh64.c (shmedia_parse_exp): Rename variable new to
new_pointer.
* gas/config/tc-tic4x.c (tic4x_operand_parse): Rename variable new
to new_pointer.
* gas/config/tc-z8k.c (parse_exp): Rename variable new to
new_pointer.
* gas/listing.c (listing_newline): Rename variable new to new_i.
* ld/ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop)
(exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new
to new_e.
* ld/ldfile.c (ldfile_add_library_path): Rename variable new to
new_dirs. (ldfile_add_arch): Rename variable new to new_arch.
* ld/ldlang.c (new_statement, lang_final, lang_add_wild)
(lang_target, lang_add_fill, lang_add_data, lang_add_assignment)
(lang_add_insert): Rename variable new to new_stmt. (new_afile):
Added missing cast. (lang_memory_region_lookup): Rename variable
new to new_region. (init_os): Rename variable new to
new_userdata. (lang_add_section): Rename variable new to
new_section. (ldlang_add_undef): Rename variable new to
new_undef. (realsymbol): Rename variable new to new_name.
* opcodes/z8kgen.c (internal, gas): Rename variable new to new_op.
Updated sources to avoid using the identifier name "template",
which is a keyword in c++.
* bfd/elf32-arm.c (struct stub_def): Rename member template to
template_sequence. (arm_build_one_stub,
find_stub_size_and_template, arm_size_one_stub, arm_map_one_stub):
Rename variable template to template_sequence.
* bfd/elfxx-ia64.c (elfNN_ia64_relax_br, elfNN_ia64_relax_brl):
Rename variable template to template_val.
* gas/config/tc-arm.c (struct asm_cond, struct asm_psr, struct
asm_barrier_opt): Change member template to
template_name. (md_begin): Update code to reflect new member
names.
* gas/config/tc-i386.c (struct templates, struct _i386_insn)
(match_template, cpu_flags_match, match_reg_size, match_mem_size)
(operand_size_match, md_begin, i386_print_statistics, pi)
(build_vex_prefix, md_assemble, parse_insn, optimize_imm)
(optimize_disp): Updated code to use new names. (parse_insn):
Added casts.
* gas/config/tc-ia64.c (dot_template, emit_one_bundle): Updated
code to use new names.
* gas/config/tc-score.c (struct s3_asm_opcode): Renamed member
template to template_name. (s3_parse_16_32_inst, s3_parse_48_inst,
s3_do_macro_ldst_label, s3_build_score_ops_hsh): Update code to
use new names.
* gas/config/tc-score7.c (struct s7_asm_opcode): Renamed member
template to template_name. (s7_parse_16_32_inst,
s7_do_macro_ldst_label, s7_build_score_ops_hsh): Update code to
use new names.
* gas/config/tc-tic30.c (md_begin, struct tic30_insn)
(md_assemble): Update code to use new names.
* gas/config/tc-tic54x.c (struct _tic54x_insn, md_begin)
(optimize_insn, tic54x_parse_insn, next_line_shows_parallel):
Update code to use new names.
* include/opcode/tic30.h (template): Rename type template to
insn_template. Updated code to use new name.
* include/opcode/tic54x.h (template): Rename type template to
insn_template.
* opcodes/cris-dis.c (bytes_to_skip): Update code to use new name.
* opcodes/i386-dis.c (putop): Update code to use new name.
* opcodes/i386-gen.c (process_i386_opcodes): Update code to use
new name.
* opcodes/i386-opc.h (struct template): Rename struct template to
insn_template. Update code accordingly.
* opcodes/i386-tbl.h (i386_optab): Update type to use new name.
* opcodes/ia64-dis.c (print_insn_ia64): Rename variable template
to template_val.
* opcodes/tic30-dis.c (struct instruction, get_tic30_instruction):
Update code to use new name.
* opcodes/tic54x-dis.c (has_lkaddr, get_insn_size)
(print_parallel_instruction, print_insn_tic54x, tic54x_get_insn):
Update code to use new name.
* opcodes/tic54x-opc.c (tic54x_unknown_opcode, tic54x_optab):
Update type to new name.
2009-08-30 06:11:02 +08:00
|
|
|
*code |= new_insn;
|
2000-04-22 04:22:24 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_immu (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
BFD_HOST_U_64_BIT value = 0;
|
|
|
|
int i, bits = 0, total = 0;
|
|
|
|
|
|
|
|
for (i = 0; i < NELEMS (self->field) && self->field[i].bits; ++i)
|
|
|
|
{
|
|
|
|
bits = self->field[i].bits;
|
|
|
|
value |= ((code >> self->field[i].shift)
|
|
|
|
& ((((BFD_HOST_U_64_BIT) 1) << bits) - 1)) << total;
|
|
|
|
total += bits;
|
|
|
|
}
|
|
|
|
*valuep = value;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2006-02-24 05:36:18 +08:00
|
|
|
static const char*
|
|
|
|
ins_immu5b (const struct ia64_operand *self, ia64_insn value,
|
|
|
|
ia64_insn *code)
|
|
|
|
{
|
|
|
|
if (value < 32 || value > 63)
|
|
|
|
return "value must be between 32 and 63";
|
|
|
|
return ins_immu (self, value - 32, code);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_immu5b (const struct ia64_operand *self, ia64_insn code,
|
|
|
|
ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
const char *result;
|
|
|
|
|
|
|
|
result = ext_immu (self, code, valuep);
|
|
|
|
if (result)
|
|
|
|
return result;
|
|
|
|
|
|
|
|
*valuep = *valuep + 32;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2000-04-22 04:22:24 +08:00
|
|
|
static const char*
|
|
|
|
ins_immus8 (const struct ia64_operand *self, ia64_insn value, ia64_insn *code)
|
|
|
|
{
|
|
|
|
if (value & 0x7)
|
|
|
|
return "value not an integer multiple of 8";
|
|
|
|
return ins_immu (self, value >> 3, code);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_immus8 (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
const char *result;
|
|
|
|
|
|
|
|
result = ext_immu (self, code, valuep);
|
|
|
|
if (result)
|
|
|
|
return result;
|
|
|
|
|
|
|
|
*valuep = *valuep << 3;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_imms_scaled (const struct ia64_operand *self, ia64_insn value,
|
|
|
|
ia64_insn *code, int scale)
|
|
|
|
{
|
Eliminate compiler warnings from IA-64 port.
* coff-ia64.c (howto_table): Use EMPTY_HOWTO.
(in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
* cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
(ins_imms_scaled): Initialize sign_bit at function entry.
(elf64_ia64_operands): Add missing initializers.
* elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
parameters.
(elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
and free_extsyms at function entry.
(elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
(elfNN_ia64_create_dynamic_sections): Delete unused local h.
(get_got): Delete unused local srel.
(elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
(elfNN_ia64_relocate_section): Delete unused local dynindx.
2000-11-23 05:25:36 +08:00
|
|
|
BFD_HOST_64_BIT svalue = value, sign_bit = 0;
|
Updated sources to avoid using the identifier name "new", which is a
keyword in c++.
* bfd/aoutx.h (NAME (aout, make_empty_symbol)): Rename variable
new to new_symbol.
* bfd/coffgen.c (coff_make_empty_symbol)
(coff_bfd_make_debug_symbol): Rename variable new to new_symbol.
* bfd/cpu-ia64-opc.c (ext_reg, ins_imms_scaled): Rename variable
new to new_insn.
* bfd/doc/chew.c (newentry, add_intrinsic): Rename variable new to
new_d.
* bfd/ecoff.c (_bfd_ecoff_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/elf32-m68k.c (elf_m68k_get_got_entry_type): Rename argument
new to new_reloc.
* bfd/hash.c (bfd_hash_lookup): Rename variable new to new_string.
* bfd/ieee.c (ieee_make_empty_symbol): Rename variable new to
new_symbol.
* bfd/linker.c (bfd_new_link_order): Rename variable new to
new_lo.
* bfd/mach-o.c (bfd_mach_o_sizeof_headers): Rename variable new to
symbol.
* bfd/oasys.c (oasys_make_empty_symbol): Rename variable new to
new_symbol_type.
* bfd/pdp11.c (NAME (aout, make_empty_symbol)): Rename variable
new to new_symbol_type.
* bfd/plugin.c (bfd_plugin_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/rs6000-core.c (CoreHdr, VmInfo): Rename union member new to
new_dump.
(read_hdr, rs6000coff_core_p)
(rs6000coff_core_file_matches_executable_p)
(rs6000coff_core_file_failing_command)
(rs6000coff_core_file_failing_signal): Updated function to use new
union member name.
* bfd/som.c (som_make_empty_symbol): Rename variable new to
new_symbol_type.
* bfd/syms.c (_bfd_generic_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/tekhex.c (first_phase, tekhex_make_empty_symbol): Rename
variable new to new_symbol.
* binutils/nlmconv.c (main): Rename variable new to new_name.
* gas/config/tc-arm.c (insert_reg_alias): Rename variable new to
new_reg.
* gas/config/tc-dlx.c (parse_operand): Rename variable new to
new_pos.
* gas/config/tc-ia64.c (ia64_gen_real_reloc_type): Rename variable
new to newr.
* gas/config/tc-mcore.c (parse_exp, parse_imm): Rename variable
new to new_pointer.
* gas/config/tc-microblaze.c (parse_exp, parse_imm, check_got):
Change name from new to new_pointer.
* gas/config/tc-or32.c (parse_operand): Rename variable new to
new_pointer.
* gas/config/tc-pdp11.c (md_assemble): Rename variable new to
new_pointer.
* gas/config/tc-pj.c (alias): Change argument new to new_name.
* gas/config/tc-score.c (s3_build_score_ops_hsh): Rename variable
new to new_opcode. (s3_build_dependency_insn_hsh) Rename variable
new to new_i2n. (s3_convert): Rename variables old and new to
r_old and r_new.
* gas/config/tc-score7.c (s7_build_score_ops_hsh): Rename variable
new to new_opcode. (s7_build_dependency_insn_hsh): Rename variable
new to new_i2d. (s7_b32_relax_to_b16, s7_convert_frag): Rename
variables old and new to r_old and r_new.
* gas/config/tc-sh.c (parse_exp): Rename variable new to
new_pointer.
* gas/config/tc-sh64.c (shmedia_parse_exp): Rename variable new to
new_pointer.
* gas/config/tc-tic4x.c (tic4x_operand_parse): Rename variable new
to new_pointer.
* gas/config/tc-z8k.c (parse_exp): Rename variable new to
new_pointer.
* gas/listing.c (listing_newline): Rename variable new to new_i.
* ld/ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop)
(exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new
to new_e.
* ld/ldfile.c (ldfile_add_library_path): Rename variable new to
new_dirs. (ldfile_add_arch): Rename variable new to new_arch.
* ld/ldlang.c (new_statement, lang_final, lang_add_wild)
(lang_target, lang_add_fill, lang_add_data, lang_add_assignment)
(lang_add_insert): Rename variable new to new_stmt. (new_afile):
Added missing cast. (lang_memory_region_lookup): Rename variable
new to new_region. (init_os): Rename variable new to
new_userdata. (lang_add_section): Rename variable new to
new_section. (ldlang_add_undef): Rename variable new to
new_undef. (realsymbol): Rename variable new to new_name.
* opcodes/z8kgen.c (internal, gas): Rename variable new to new_op.
Updated sources to avoid using the identifier name "template",
which is a keyword in c++.
* bfd/elf32-arm.c (struct stub_def): Rename member template to
template_sequence. (arm_build_one_stub,
find_stub_size_and_template, arm_size_one_stub, arm_map_one_stub):
Rename variable template to template_sequence.
* bfd/elfxx-ia64.c (elfNN_ia64_relax_br, elfNN_ia64_relax_brl):
Rename variable template to template_val.
* gas/config/tc-arm.c (struct asm_cond, struct asm_psr, struct
asm_barrier_opt): Change member template to
template_name. (md_begin): Update code to reflect new member
names.
* gas/config/tc-i386.c (struct templates, struct _i386_insn)
(match_template, cpu_flags_match, match_reg_size, match_mem_size)
(operand_size_match, md_begin, i386_print_statistics, pi)
(build_vex_prefix, md_assemble, parse_insn, optimize_imm)
(optimize_disp): Updated code to use new names. (parse_insn):
Added casts.
* gas/config/tc-ia64.c (dot_template, emit_one_bundle): Updated
code to use new names.
* gas/config/tc-score.c (struct s3_asm_opcode): Renamed member
template to template_name. (s3_parse_16_32_inst, s3_parse_48_inst,
s3_do_macro_ldst_label, s3_build_score_ops_hsh): Update code to
use new names.
* gas/config/tc-score7.c (struct s7_asm_opcode): Renamed member
template to template_name. (s7_parse_16_32_inst,
s7_do_macro_ldst_label, s7_build_score_ops_hsh): Update code to
use new names.
* gas/config/tc-tic30.c (md_begin, struct tic30_insn)
(md_assemble): Update code to use new names.
* gas/config/tc-tic54x.c (struct _tic54x_insn, md_begin)
(optimize_insn, tic54x_parse_insn, next_line_shows_parallel):
Update code to use new names.
* include/opcode/tic30.h (template): Rename type template to
insn_template. Updated code to use new name.
* include/opcode/tic54x.h (template): Rename type template to
insn_template.
* opcodes/cris-dis.c (bytes_to_skip): Update code to use new name.
* opcodes/i386-dis.c (putop): Update code to use new name.
* opcodes/i386-gen.c (process_i386_opcodes): Update code to use
new name.
* opcodes/i386-opc.h (struct template): Rename struct template to
insn_template. Update code accordingly.
* opcodes/i386-tbl.h (i386_optab): Update type to use new name.
* opcodes/ia64-dis.c (print_insn_ia64): Rename variable template
to template_val.
* opcodes/tic30-dis.c (struct instruction, get_tic30_instruction):
Update code to use new name.
* opcodes/tic54x-dis.c (has_lkaddr, get_insn_size)
(print_parallel_instruction, print_insn_tic54x, tic54x_get_insn):
Update code to use new name.
* opcodes/tic54x-opc.c (tic54x_unknown_opcode, tic54x_optab):
Update type to new name.
2009-08-30 06:11:02 +08:00
|
|
|
ia64_insn new_insn = 0;
|
2000-04-22 04:22:24 +08:00
|
|
|
int i;
|
|
|
|
|
|
|
|
svalue >>= scale;
|
|
|
|
|
|
|
|
for (i = 0; i < NELEMS (self->field) && self->field[i].bits; ++i)
|
|
|
|
{
|
Updated sources to avoid using the identifier name "new", which is a
keyword in c++.
* bfd/aoutx.h (NAME (aout, make_empty_symbol)): Rename variable
new to new_symbol.
* bfd/coffgen.c (coff_make_empty_symbol)
(coff_bfd_make_debug_symbol): Rename variable new to new_symbol.
* bfd/cpu-ia64-opc.c (ext_reg, ins_imms_scaled): Rename variable
new to new_insn.
* bfd/doc/chew.c (newentry, add_intrinsic): Rename variable new to
new_d.
* bfd/ecoff.c (_bfd_ecoff_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/elf32-m68k.c (elf_m68k_get_got_entry_type): Rename argument
new to new_reloc.
* bfd/hash.c (bfd_hash_lookup): Rename variable new to new_string.
* bfd/ieee.c (ieee_make_empty_symbol): Rename variable new to
new_symbol.
* bfd/linker.c (bfd_new_link_order): Rename variable new to
new_lo.
* bfd/mach-o.c (bfd_mach_o_sizeof_headers): Rename variable new to
symbol.
* bfd/oasys.c (oasys_make_empty_symbol): Rename variable new to
new_symbol_type.
* bfd/pdp11.c (NAME (aout, make_empty_symbol)): Rename variable
new to new_symbol_type.
* bfd/plugin.c (bfd_plugin_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/rs6000-core.c (CoreHdr, VmInfo): Rename union member new to
new_dump.
(read_hdr, rs6000coff_core_p)
(rs6000coff_core_file_matches_executable_p)
(rs6000coff_core_file_failing_command)
(rs6000coff_core_file_failing_signal): Updated function to use new
union member name.
* bfd/som.c (som_make_empty_symbol): Rename variable new to
new_symbol_type.
* bfd/syms.c (_bfd_generic_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/tekhex.c (first_phase, tekhex_make_empty_symbol): Rename
variable new to new_symbol.
* binutils/nlmconv.c (main): Rename variable new to new_name.
* gas/config/tc-arm.c (insert_reg_alias): Rename variable new to
new_reg.
* gas/config/tc-dlx.c (parse_operand): Rename variable new to
new_pos.
* gas/config/tc-ia64.c (ia64_gen_real_reloc_type): Rename variable
new to newr.
* gas/config/tc-mcore.c (parse_exp, parse_imm): Rename variable
new to new_pointer.
* gas/config/tc-microblaze.c (parse_exp, parse_imm, check_got):
Change name from new to new_pointer.
* gas/config/tc-or32.c (parse_operand): Rename variable new to
new_pointer.
* gas/config/tc-pdp11.c (md_assemble): Rename variable new to
new_pointer.
* gas/config/tc-pj.c (alias): Change argument new to new_name.
* gas/config/tc-score.c (s3_build_score_ops_hsh): Rename variable
new to new_opcode. (s3_build_dependency_insn_hsh) Rename variable
new to new_i2n. (s3_convert): Rename variables old and new to
r_old and r_new.
* gas/config/tc-score7.c (s7_build_score_ops_hsh): Rename variable
new to new_opcode. (s7_build_dependency_insn_hsh): Rename variable
new to new_i2d. (s7_b32_relax_to_b16, s7_convert_frag): Rename
variables old and new to r_old and r_new.
* gas/config/tc-sh.c (parse_exp): Rename variable new to
new_pointer.
* gas/config/tc-sh64.c (shmedia_parse_exp): Rename variable new to
new_pointer.
* gas/config/tc-tic4x.c (tic4x_operand_parse): Rename variable new
to new_pointer.
* gas/config/tc-z8k.c (parse_exp): Rename variable new to
new_pointer.
* gas/listing.c (listing_newline): Rename variable new to new_i.
* ld/ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop)
(exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new
to new_e.
* ld/ldfile.c (ldfile_add_library_path): Rename variable new to
new_dirs. (ldfile_add_arch): Rename variable new to new_arch.
* ld/ldlang.c (new_statement, lang_final, lang_add_wild)
(lang_target, lang_add_fill, lang_add_data, lang_add_assignment)
(lang_add_insert): Rename variable new to new_stmt. (new_afile):
Added missing cast. (lang_memory_region_lookup): Rename variable
new to new_region. (init_os): Rename variable new to
new_userdata. (lang_add_section): Rename variable new to
new_section. (ldlang_add_undef): Rename variable new to
new_undef. (realsymbol): Rename variable new to new_name.
* opcodes/z8kgen.c (internal, gas): Rename variable new to new_op.
Updated sources to avoid using the identifier name "template",
which is a keyword in c++.
* bfd/elf32-arm.c (struct stub_def): Rename member template to
template_sequence. (arm_build_one_stub,
find_stub_size_and_template, arm_size_one_stub, arm_map_one_stub):
Rename variable template to template_sequence.
* bfd/elfxx-ia64.c (elfNN_ia64_relax_br, elfNN_ia64_relax_brl):
Rename variable template to template_val.
* gas/config/tc-arm.c (struct asm_cond, struct asm_psr, struct
asm_barrier_opt): Change member template to
template_name. (md_begin): Update code to reflect new member
names.
* gas/config/tc-i386.c (struct templates, struct _i386_insn)
(match_template, cpu_flags_match, match_reg_size, match_mem_size)
(operand_size_match, md_begin, i386_print_statistics, pi)
(build_vex_prefix, md_assemble, parse_insn, optimize_imm)
(optimize_disp): Updated code to use new names. (parse_insn):
Added casts.
* gas/config/tc-ia64.c (dot_template, emit_one_bundle): Updated
code to use new names.
* gas/config/tc-score.c (struct s3_asm_opcode): Renamed member
template to template_name. (s3_parse_16_32_inst, s3_parse_48_inst,
s3_do_macro_ldst_label, s3_build_score_ops_hsh): Update code to
use new names.
* gas/config/tc-score7.c (struct s7_asm_opcode): Renamed member
template to template_name. (s7_parse_16_32_inst,
s7_do_macro_ldst_label, s7_build_score_ops_hsh): Update code to
use new names.
* gas/config/tc-tic30.c (md_begin, struct tic30_insn)
(md_assemble): Update code to use new names.
* gas/config/tc-tic54x.c (struct _tic54x_insn, md_begin)
(optimize_insn, tic54x_parse_insn, next_line_shows_parallel):
Update code to use new names.
* include/opcode/tic30.h (template): Rename type template to
insn_template. Updated code to use new name.
* include/opcode/tic54x.h (template): Rename type template to
insn_template.
* opcodes/cris-dis.c (bytes_to_skip): Update code to use new name.
* opcodes/i386-dis.c (putop): Update code to use new name.
* opcodes/i386-gen.c (process_i386_opcodes): Update code to use
new name.
* opcodes/i386-opc.h (struct template): Rename struct template to
insn_template. Update code accordingly.
* opcodes/i386-tbl.h (i386_optab): Update type to use new name.
* opcodes/ia64-dis.c (print_insn_ia64): Rename variable template
to template_val.
* opcodes/tic30-dis.c (struct instruction, get_tic30_instruction):
Update code to use new name.
* opcodes/tic54x-dis.c (has_lkaddr, get_insn_size)
(print_parallel_instruction, print_insn_tic54x, tic54x_get_insn):
Update code to use new name.
* opcodes/tic54x-opc.c (tic54x_unknown_opcode, tic54x_optab):
Update type to new name.
2009-08-30 06:11:02 +08:00
|
|
|
new_insn |= ((svalue & ((((ia64_insn) 1) << self->field[i].bits) - 1))
|
|
|
|
<< self->field[i].shift);
|
2000-04-22 04:22:24 +08:00
|
|
|
sign_bit = (svalue >> (self->field[i].bits - 1)) & 1;
|
|
|
|
svalue >>= self->field[i].bits;
|
|
|
|
}
|
|
|
|
if ((!sign_bit && svalue != 0) || (sign_bit && svalue != -1))
|
|
|
|
return "integer operand out of range";
|
|
|
|
|
Updated sources to avoid using the identifier name "new", which is a
keyword in c++.
* bfd/aoutx.h (NAME (aout, make_empty_symbol)): Rename variable
new to new_symbol.
* bfd/coffgen.c (coff_make_empty_symbol)
(coff_bfd_make_debug_symbol): Rename variable new to new_symbol.
* bfd/cpu-ia64-opc.c (ext_reg, ins_imms_scaled): Rename variable
new to new_insn.
* bfd/doc/chew.c (newentry, add_intrinsic): Rename variable new to
new_d.
* bfd/ecoff.c (_bfd_ecoff_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/elf32-m68k.c (elf_m68k_get_got_entry_type): Rename argument
new to new_reloc.
* bfd/hash.c (bfd_hash_lookup): Rename variable new to new_string.
* bfd/ieee.c (ieee_make_empty_symbol): Rename variable new to
new_symbol.
* bfd/linker.c (bfd_new_link_order): Rename variable new to
new_lo.
* bfd/mach-o.c (bfd_mach_o_sizeof_headers): Rename variable new to
symbol.
* bfd/oasys.c (oasys_make_empty_symbol): Rename variable new to
new_symbol_type.
* bfd/pdp11.c (NAME (aout, make_empty_symbol)): Rename variable
new to new_symbol_type.
* bfd/plugin.c (bfd_plugin_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/rs6000-core.c (CoreHdr, VmInfo): Rename union member new to
new_dump.
(read_hdr, rs6000coff_core_p)
(rs6000coff_core_file_matches_executable_p)
(rs6000coff_core_file_failing_command)
(rs6000coff_core_file_failing_signal): Updated function to use new
union member name.
* bfd/som.c (som_make_empty_symbol): Rename variable new to
new_symbol_type.
* bfd/syms.c (_bfd_generic_make_empty_symbol): Rename variable new
to new_symbol.
* bfd/tekhex.c (first_phase, tekhex_make_empty_symbol): Rename
variable new to new_symbol.
* binutils/nlmconv.c (main): Rename variable new to new_name.
* gas/config/tc-arm.c (insert_reg_alias): Rename variable new to
new_reg.
* gas/config/tc-dlx.c (parse_operand): Rename variable new to
new_pos.
* gas/config/tc-ia64.c (ia64_gen_real_reloc_type): Rename variable
new to newr.
* gas/config/tc-mcore.c (parse_exp, parse_imm): Rename variable
new to new_pointer.
* gas/config/tc-microblaze.c (parse_exp, parse_imm, check_got):
Change name from new to new_pointer.
* gas/config/tc-or32.c (parse_operand): Rename variable new to
new_pointer.
* gas/config/tc-pdp11.c (md_assemble): Rename variable new to
new_pointer.
* gas/config/tc-pj.c (alias): Change argument new to new_name.
* gas/config/tc-score.c (s3_build_score_ops_hsh): Rename variable
new to new_opcode. (s3_build_dependency_insn_hsh) Rename variable
new to new_i2n. (s3_convert): Rename variables old and new to
r_old and r_new.
* gas/config/tc-score7.c (s7_build_score_ops_hsh): Rename variable
new to new_opcode. (s7_build_dependency_insn_hsh): Rename variable
new to new_i2d. (s7_b32_relax_to_b16, s7_convert_frag): Rename
variables old and new to r_old and r_new.
* gas/config/tc-sh.c (parse_exp): Rename variable new to
new_pointer.
* gas/config/tc-sh64.c (shmedia_parse_exp): Rename variable new to
new_pointer.
* gas/config/tc-tic4x.c (tic4x_operand_parse): Rename variable new
to new_pointer.
* gas/config/tc-z8k.c (parse_exp): Rename variable new to
new_pointer.
* gas/listing.c (listing_newline): Rename variable new to new_i.
* ld/ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop)
(exp_trinop, exp_unop, exp_nameop, exp_assop): Rename variable new
to new_e.
* ld/ldfile.c (ldfile_add_library_path): Rename variable new to
new_dirs. (ldfile_add_arch): Rename variable new to new_arch.
* ld/ldlang.c (new_statement, lang_final, lang_add_wild)
(lang_target, lang_add_fill, lang_add_data, lang_add_assignment)
(lang_add_insert): Rename variable new to new_stmt. (new_afile):
Added missing cast. (lang_memory_region_lookup): Rename variable
new to new_region. (init_os): Rename variable new to
new_userdata. (lang_add_section): Rename variable new to
new_section. (ldlang_add_undef): Rename variable new to
new_undef. (realsymbol): Rename variable new to new_name.
* opcodes/z8kgen.c (internal, gas): Rename variable new to new_op.
Updated sources to avoid using the identifier name "template",
which is a keyword in c++.
* bfd/elf32-arm.c (struct stub_def): Rename member template to
template_sequence. (arm_build_one_stub,
find_stub_size_and_template, arm_size_one_stub, arm_map_one_stub):
Rename variable template to template_sequence.
* bfd/elfxx-ia64.c (elfNN_ia64_relax_br, elfNN_ia64_relax_brl):
Rename variable template to template_val.
* gas/config/tc-arm.c (struct asm_cond, struct asm_psr, struct
asm_barrier_opt): Change member template to
template_name. (md_begin): Update code to reflect new member
names.
* gas/config/tc-i386.c (struct templates, struct _i386_insn)
(match_template, cpu_flags_match, match_reg_size, match_mem_size)
(operand_size_match, md_begin, i386_print_statistics, pi)
(build_vex_prefix, md_assemble, parse_insn, optimize_imm)
(optimize_disp): Updated code to use new names. (parse_insn):
Added casts.
* gas/config/tc-ia64.c (dot_template, emit_one_bundle): Updated
code to use new names.
* gas/config/tc-score.c (struct s3_asm_opcode): Renamed member
template to template_name. (s3_parse_16_32_inst, s3_parse_48_inst,
s3_do_macro_ldst_label, s3_build_score_ops_hsh): Update code to
use new names.
* gas/config/tc-score7.c (struct s7_asm_opcode): Renamed member
template to template_name. (s7_parse_16_32_inst,
s7_do_macro_ldst_label, s7_build_score_ops_hsh): Update code to
use new names.
* gas/config/tc-tic30.c (md_begin, struct tic30_insn)
(md_assemble): Update code to use new names.
* gas/config/tc-tic54x.c (struct _tic54x_insn, md_begin)
(optimize_insn, tic54x_parse_insn, next_line_shows_parallel):
Update code to use new names.
* include/opcode/tic30.h (template): Rename type template to
insn_template. Updated code to use new name.
* include/opcode/tic54x.h (template): Rename type template to
insn_template.
* opcodes/cris-dis.c (bytes_to_skip): Update code to use new name.
* opcodes/i386-dis.c (putop): Update code to use new name.
* opcodes/i386-gen.c (process_i386_opcodes): Update code to use
new name.
* opcodes/i386-opc.h (struct template): Rename struct template to
insn_template. Update code accordingly.
* opcodes/i386-tbl.h (i386_optab): Update type to use new name.
* opcodes/ia64-dis.c (print_insn_ia64): Rename variable template
to template_val.
* opcodes/tic30-dis.c (struct instruction, get_tic30_instruction):
Update code to use new name.
* opcodes/tic54x-dis.c (has_lkaddr, get_insn_size)
(print_parallel_instruction, print_insn_tic54x, tic54x_get_insn):
Update code to use new name.
* opcodes/tic54x-opc.c (tic54x_unknown_opcode, tic54x_optab):
Update type to new name.
2009-08-30 06:11:02 +08:00
|
|
|
*code |= new_insn;
|
2000-04-22 04:22:24 +08:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_imms_scaled (const struct ia64_operand *self, ia64_insn code,
|
|
|
|
ia64_insn *valuep, int scale)
|
|
|
|
{
|
2003-06-30 12:09:27 +08:00
|
|
|
int i, bits = 0, total = 0;
|
|
|
|
BFD_HOST_64_BIT val = 0, sign;
|
2000-04-22 04:22:24 +08:00
|
|
|
|
|
|
|
for (i = 0; i < NELEMS (self->field) && self->field[i].bits; ++i)
|
|
|
|
{
|
|
|
|
bits = self->field[i].bits;
|
|
|
|
val |= ((code >> self->field[i].shift)
|
|
|
|
& ((((BFD_HOST_U_64_BIT) 1) << bits) - 1)) << total;
|
|
|
|
total += bits;
|
|
|
|
}
|
|
|
|
/* sign extend: */
|
2003-06-30 12:09:27 +08:00
|
|
|
sign = (BFD_HOST_64_BIT) 1 << (total - 1);
|
|
|
|
val = (val ^ sign) - sign;
|
2000-04-22 04:22:24 +08:00
|
|
|
|
|
|
|
*valuep = (val << scale);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_imms (const struct ia64_operand *self, ia64_insn value, ia64_insn *code)
|
|
|
|
{
|
|
|
|
return ins_imms_scaled (self, value, code, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_immsu4 (const struct ia64_operand *self, ia64_insn value, ia64_insn *code)
|
|
|
|
{
|
2003-06-30 12:09:27 +08:00
|
|
|
value = ((value & 0xffffffff) ^ 0x80000000) - 0x80000000;
|
2000-04-22 04:22:24 +08:00
|
|
|
|
|
|
|
return ins_imms_scaled (self, value, code, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_imms (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
return ext_imms_scaled (self, code, valuep, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_immsm1 (const struct ia64_operand *self, ia64_insn value, ia64_insn *code)
|
|
|
|
{
|
|
|
|
--value;
|
|
|
|
return ins_imms_scaled (self, value, code, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_immsm1u4 (const struct ia64_operand *self, ia64_insn value,
|
|
|
|
ia64_insn *code)
|
|
|
|
{
|
2003-06-30 12:09:27 +08:00
|
|
|
value = ((value & 0xffffffff) ^ 0x80000000) - 0x80000000;
|
2000-04-22 04:22:24 +08:00
|
|
|
|
|
|
|
--value;
|
|
|
|
return ins_imms_scaled (self, value, code, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_immsm1 (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
const char *res = ext_imms_scaled (self, code, valuep, 0);
|
|
|
|
|
|
|
|
++*valuep;
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_imms1 (const struct ia64_operand *self, ia64_insn value, ia64_insn *code)
|
|
|
|
{
|
|
|
|
return ins_imms_scaled (self, value, code, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_imms1 (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
return ext_imms_scaled (self, code, valuep, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_imms4 (const struct ia64_operand *self, ia64_insn value, ia64_insn *code)
|
|
|
|
{
|
|
|
|
return ins_imms_scaled (self, value, code, 4);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_imms4 (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
return ext_imms_scaled (self, code, valuep, 4);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_imms16 (const struct ia64_operand *self, ia64_insn value, ia64_insn *code)
|
|
|
|
{
|
|
|
|
return ins_imms_scaled (self, value, code, 16);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_imms16 (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
return ext_imms_scaled (self, code, valuep, 16);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_cimmu (const struct ia64_operand *self, ia64_insn value, ia64_insn *code)
|
|
|
|
{
|
|
|
|
ia64_insn mask = (((ia64_insn) 1) << self->field[0].bits) - 1;
|
|
|
|
return ins_immu (self, value ^ mask, code);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_cimmu (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
const char *result;
|
|
|
|
ia64_insn mask;
|
|
|
|
|
|
|
|
mask = (((ia64_insn) 1) << self->field[0].bits) - 1;
|
|
|
|
result = ext_immu (self, code, valuep);
|
|
|
|
if (!result)
|
|
|
|
{
|
|
|
|
mask = (((ia64_insn) 1) << self->field[0].bits) - 1;
|
|
|
|
*valuep ^= mask;
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_cnt (const struct ia64_operand *self, ia64_insn value, ia64_insn *code)
|
|
|
|
{
|
|
|
|
--value;
|
|
|
|
if (value >= ((BFD_HOST_U_64_BIT) 1) << self->field[0].bits)
|
|
|
|
return "count out of range";
|
|
|
|
|
|
|
|
*code |= value << self->field[0].shift;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_cnt (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
*valuep = ((code >> self->field[0].shift)
|
|
|
|
& ((((BFD_HOST_U_64_BIT) 1) << self->field[0].bits) - 1)) + 1;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_cnt2b (const struct ia64_operand *self, ia64_insn value, ia64_insn *code)
|
|
|
|
{
|
|
|
|
--value;
|
|
|
|
|
|
|
|
if (value > 2)
|
|
|
|
return "count must be in range 1..3";
|
|
|
|
|
|
|
|
*code |= value << self->field[0].shift;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_cnt2b (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
*valuep = ((code >> self->field[0].shift) & 0x3) + 1;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_cnt2c (const struct ia64_operand *self, ia64_insn value, ia64_insn *code)
|
|
|
|
{
|
|
|
|
switch (value)
|
|
|
|
{
|
|
|
|
case 0: value = 0; break;
|
|
|
|
case 7: value = 1; break;
|
|
|
|
case 15: value = 2; break;
|
|
|
|
case 16: value = 3; break;
|
|
|
|
default: return "count must be 0, 7, 15, or 16";
|
|
|
|
}
|
|
|
|
*code |= value << self->field[0].shift;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_cnt2c (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
ia64_insn value;
|
|
|
|
|
|
|
|
value = (code >> self->field[0].shift) & 0x3;
|
|
|
|
switch (value)
|
|
|
|
{
|
|
|
|
case 0: value = 0; break;
|
|
|
|
case 1: value = 7; break;
|
|
|
|
case 2: value = 15; break;
|
|
|
|
case 3: value = 16; break;
|
|
|
|
}
|
|
|
|
*valuep = value;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2012-09-04 21:52:06 +08:00
|
|
|
static const char*
|
|
|
|
ins_cnt6a (const struct ia64_operand *self, ia64_insn value,
|
|
|
|
ia64_insn *code)
|
|
|
|
{
|
|
|
|
if (value < 1 || value > 64)
|
|
|
|
return "value must be between 1 and 64";
|
|
|
|
return ins_immu (self, value - 1, code);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_cnt6a (const struct ia64_operand *self, ia64_insn code,
|
|
|
|
ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
const char *result;
|
|
|
|
|
|
|
|
result = ext_immu (self, code, valuep);
|
|
|
|
if (result)
|
|
|
|
return result;
|
|
|
|
|
|
|
|
*valuep = *valuep + 1;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ins_strd5b (const struct ia64_operand *self, ia64_insn value,
|
|
|
|
ia64_insn *code)
|
|
|
|
{
|
|
|
|
if ( value & 0x3f )
|
|
|
|
return "value must be a multiple of 64";
|
|
|
|
return ins_imms_scaled (self, value, code, 6);
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_strd5b (const struct ia64_operand *self, ia64_insn code,
|
|
|
|
ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
return ext_imms_scaled (self, code, valuep, 6);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-04-22 04:22:24 +08:00
|
|
|
static const char*
|
|
|
|
ins_inc3 (const struct ia64_operand *self, ia64_insn value, ia64_insn *code)
|
|
|
|
{
|
|
|
|
BFD_HOST_64_BIT val = value;
|
|
|
|
BFD_HOST_U_64_BIT sign = 0;
|
|
|
|
|
|
|
|
if (val < 0)
|
|
|
|
{
|
|
|
|
sign = 0x4;
|
|
|
|
value = -value;
|
|
|
|
}
|
|
|
|
switch (value)
|
|
|
|
{
|
|
|
|
case 1: value = 3; break;
|
|
|
|
case 4: value = 2; break;
|
|
|
|
case 8: value = 1; break;
|
|
|
|
case 16: value = 0; break;
|
|
|
|
default: return "count must be +/- 1, 4, 8, or 16";
|
|
|
|
}
|
|
|
|
*code |= (sign | value) << self->field[0].shift;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static const char*
|
|
|
|
ext_inc3 (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
|
|
|
|
{
|
|
|
|
BFD_HOST_64_BIT val;
|
|
|
|
int negate;
|
|
|
|
|
|
|
|
val = (code >> self->field[0].shift) & 0x7;
|
|
|
|
negate = val & 0x4;
|
|
|
|
switch (val & 0x3)
|
|
|
|
{
|
|
|
|
case 0: val = 16; break;
|
|
|
|
case 1: val = 8; break;
|
|
|
|
case 2: val = 4; break;
|
|
|
|
case 3: val = 1; break;
|
|
|
|
}
|
|
|
|
if (negate)
|
|
|
|
val = -val;
|
|
|
|
|
|
|
|
*valuep = val;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#define CST IA64_OPND_CLASS_CST
|
|
|
|
#define REG IA64_OPND_CLASS_REG
|
|
|
|
#define IND IA64_OPND_CLASS_IND
|
|
|
|
#define ABS IA64_OPND_CLASS_ABS
|
|
|
|
#define REL IA64_OPND_CLASS_REL
|
|
|
|
|
|
|
|
#define SDEC IA64_OPND_FLAG_DECIMAL_SIGNED
|
|
|
|
#define UDEC IA64_OPND_FLAG_DECIMAL_UNSIGNED
|
|
|
|
|
|
|
|
const struct ia64_operand elf64_ia64_operands[IA64_OPND_COUNT] =
|
|
|
|
{
|
|
|
|
/* constants: */
|
Eliminate compiler warnings from IA-64 port.
* coff-ia64.c (howto_table): Use EMPTY_HOWTO.
(in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
* cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
(ins_imms_scaled): Initialize sign_bit at function entry.
(elf64_ia64_operands): Add missing initializers.
* elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
parameters.
(elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
and free_extsyms at function entry.
(elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
(elfNN_ia64_create_dynamic_sections): Delete unused local h.
(get_got): Delete unused local srel.
(elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
(elfNN_ia64_relocate_section): Delete unused local dynindx.
2000-11-23 05:25:36 +08:00
|
|
|
{ CST, ins_const, ext_const, "NIL", {{ 0, 0}}, 0, "<none>" },
|
Patch to update IA-64 port to SDM 2.1.
bfd/ChangeLog
* cpu-ia64-opc.c: Add operand constant "ar.csd".
gas/ChangeLog
* config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
instruction.
(emit_one_bundle): Handle "hint" instruction.
(operand_match): Match IA64_OPND_AR_CSD.
gas/testsuite/ChangeLog
* gas/ia64/opc-b.d: Update for instructions added by SDM2.1.
* gas/ia64/opc-b.s: Ditto.
* gas/ia64/opc-f.d: Ditto.
* gas/ia64/opc-f.s: Ditto.
* gas/ia64/opc-i.d: Ditto.
* gas/ia64/opc-i.s: Ditto.
* gas/ia64/opc-m.d: Ditto.
* gas/ia64/opc-m.s: Ditto.
* gas/ia64/opc-x.d: Ditto.
* gas/ia64/opc-x.s: Ditto.
include/opcode/ChangeLog
* ia64.h: Fix copyright message.
(IA64_OPND_AR_CSD): New operand kind.
opcodes/ChangeLog
* ia64-opc-d.c (ia64_opcodes_d): Add "hint" instruction.
* ia64-opc-b.c: Add "hint.b" instruction.
* ia64-opc-f.c: Add "hint.f" instruction.
* ia64-opc-i.c: Add "hint.i" instruction.
* ia64-opc-m.c: Add "hint.m", "fc.i", "ld16", "st16", and
"cmp8xchg16" instructions.
* ia64-opc-x.c: Add "hint.x" instruction.
* ia64-opc.h (AR_CSD): New macro.
* ia64-ic.tbl: Update according to SDM2.1.
* ia64-raw.tbl: Ditto.
* ia64-waw.tbl: Ditto.
* ia64-gen.c (in_iclass): Handle "hint" like "nop".
(lookup_regindex): Recognize AR[FCR], AR[EFLAG], AR[CSD],
AR[SSD], AR[CFLG], AR[FSR], AR[FIR], and AR[FDR].
* ia64-asmtab.c: Regenerate.
2002-12-05 10:08:02 +08:00
|
|
|
{ CST, ins_const, ext_const, "ar.csd", {{ 0, 0}}, 0, "ar.csd" },
|
Eliminate compiler warnings from IA-64 port.
* coff-ia64.c (howto_table): Use EMPTY_HOWTO.
(in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
* cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
(ins_imms_scaled): Initialize sign_bit at function entry.
(elf64_ia64_operands): Add missing initializers.
* elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
parameters.
(elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
and free_extsyms at function entry.
(elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
(elfNN_ia64_create_dynamic_sections): Delete unused local h.
(get_got): Delete unused local srel.
(elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
(elfNN_ia64_relocate_section): Delete unused local dynindx.
2000-11-23 05:25:36 +08:00
|
|
|
{ CST, ins_const, ext_const, "ar.ccv", {{ 0, 0}}, 0, "ar.ccv" },
|
|
|
|
{ CST, ins_const, ext_const, "ar.pfs", {{ 0, 0}}, 0, "ar.pfs" },
|
|
|
|
{ CST, ins_const, ext_const, "1", {{ 0, 0}}, 0, "1" },
|
2001-02-22 11:16:21 +08:00
|
|
|
{ CST, ins_const, ext_const, "8", {{ 0, 0}}, 0, "8" },
|
Eliminate compiler warnings from IA-64 port.
* coff-ia64.c (howto_table): Use EMPTY_HOWTO.
(in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
* cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
(ins_imms_scaled): Initialize sign_bit at function entry.
(elf64_ia64_operands): Add missing initializers.
* elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
parameters.
(elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
and free_extsyms at function entry.
(elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
(elfNN_ia64_create_dynamic_sections): Delete unused local h.
(get_got): Delete unused local srel.
(elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
(elfNN_ia64_relocate_section): Delete unused local dynindx.
2000-11-23 05:25:36 +08:00
|
|
|
{ CST, ins_const, ext_const, "16", {{ 0, 0}}, 0, "16" },
|
|
|
|
{ CST, ins_const, ext_const, "r0", {{ 0, 0}}, 0, "r0" },
|
|
|
|
{ CST, ins_const, ext_const, "ip", {{ 0, 0}}, 0, "ip" },
|
|
|
|
{ CST, ins_const, ext_const, "pr", {{ 0, 0}}, 0, "pr" },
|
|
|
|
{ CST, ins_const, ext_const, "pr.rot", {{ 0, 0}}, 0, "pr.rot" },
|
|
|
|
{ CST, ins_const, ext_const, "psr", {{ 0, 0}}, 0, "psr" },
|
|
|
|
{ CST, ins_const, ext_const, "psr.l", {{ 0, 0}}, 0, "psr.l" },
|
|
|
|
{ CST, ins_const, ext_const, "psr.um", {{ 0, 0}}, 0, "psr.um" },
|
2000-04-22 04:22:24 +08:00
|
|
|
|
|
|
|
/* register operands: */
|
|
|
|
{ REG, ins_reg, ext_reg, "ar", {{ 7, 20}}, 0, /* AR3 */
|
|
|
|
"an application register" },
|
|
|
|
{ REG, ins_reg, ext_reg, "b", {{ 3, 6}}, 0, /* B1 */
|
|
|
|
"a branch register" },
|
|
|
|
{ REG, ins_reg, ext_reg, "b", {{ 3, 13}}, 0, /* B2 */
|
|
|
|
"a branch register"},
|
|
|
|
{ REG, ins_reg, ext_reg, "cr", {{ 7, 20}}, 0, /* CR */
|
|
|
|
"a control register"},
|
|
|
|
{ REG, ins_reg, ext_reg, "f", {{ 7, 6}}, 0, /* F1 */
|
|
|
|
"a floating-point register" },
|
|
|
|
{ REG, ins_reg, ext_reg, "f", {{ 7, 13}}, 0, /* F2 */
|
|
|
|
"a floating-point register" },
|
|
|
|
{ REG, ins_reg, ext_reg, "f", {{ 7, 20}}, 0, /* F3 */
|
|
|
|
"a floating-point register" },
|
|
|
|
{ REG, ins_reg, ext_reg, "f", {{ 7, 27}}, 0, /* F4 */
|
|
|
|
"a floating-point register" },
|
|
|
|
{ REG, ins_reg, ext_reg, "p", {{ 6, 6}}, 0, /* P1 */
|
|
|
|
"a predicate register" },
|
|
|
|
{ REG, ins_reg, ext_reg, "p", {{ 6, 27}}, 0, /* P2 */
|
|
|
|
"a predicate register" },
|
|
|
|
{ REG, ins_reg, ext_reg, "r", {{ 7, 6}}, 0, /* R1 */
|
|
|
|
"a general register" },
|
|
|
|
{ REG, ins_reg, ext_reg, "r", {{ 7, 13}}, 0, /* R2 */
|
|
|
|
"a general register" },
|
|
|
|
{ REG, ins_reg, ext_reg, "r", {{ 7, 20}}, 0, /* R3 */
|
|
|
|
"a general register" },
|
|
|
|
{ REG, ins_reg, ext_reg, "r", {{ 2, 20}}, 0, /* R3_2 */
|
|
|
|
"a general register r0-r3" },
|
2012-09-04 21:52:06 +08:00
|
|
|
{ REG, ins_reg, ext_reg, "dahr", {{ 3, 23}}, 0, /* DAHR */
|
|
|
|
"a dahr register dahr0-7" },
|
2000-04-22 04:22:24 +08:00
|
|
|
|
2005-10-24 15:42:50 +08:00
|
|
|
/* memory operands: */
|
|
|
|
{ IND, ins_reg, ext_reg, "", {{7, 20}}, 0, /* MR3 */
|
|
|
|
"a memory address" },
|
|
|
|
|
2000-04-22 04:22:24 +08:00
|
|
|
/* indirect operands: */
|
|
|
|
{ IND, ins_reg, ext_reg, "cpuid", {{7, 20}}, 0, /* CPUID_R3 */
|
|
|
|
"a cpuid register" },
|
|
|
|
{ IND, ins_reg, ext_reg, "dbr", {{7, 20}}, 0, /* DBR_R3 */
|
|
|
|
"a dbr register" },
|
|
|
|
{ IND, ins_reg, ext_reg, "dtr", {{7, 20}}, 0, /* DTR_R3 */
|
|
|
|
"a dtr register" },
|
|
|
|
{ IND, ins_reg, ext_reg, "itr", {{7, 20}}, 0, /* ITR_R3 */
|
|
|
|
"an itr register" },
|
|
|
|
{ IND, ins_reg, ext_reg, "ibr", {{7, 20}}, 0, /* IBR_R3 */
|
|
|
|
"an ibr register" },
|
|
|
|
{ IND, ins_reg, ext_reg, "msr", {{7, 20}}, 0, /* MSR_R3 */
|
|
|
|
"an msr register" },
|
|
|
|
{ IND, ins_reg, ext_reg, "pkr", {{7, 20}}, 0, /* PKR_R3 */
|
|
|
|
"a pkr register" },
|
|
|
|
{ IND, ins_reg, ext_reg, "pmc", {{7, 20}}, 0, /* PMC_R3 */
|
|
|
|
"a pmc register" },
|
|
|
|
{ IND, ins_reg, ext_reg, "pmd", {{7, 20}}, 0, /* PMD_R3 */
|
|
|
|
"a pmd register" },
|
2012-09-04 21:52:06 +08:00
|
|
|
{ IND, ins_reg, ext_reg, "dahr", {{7, 20}}, 0, /* DAHR_R3 */
|
|
|
|
"a dahr register" },
|
2000-04-22 04:22:24 +08:00
|
|
|
{ IND, ins_reg, ext_reg, "rr", {{7, 20}}, 0, /* RR_R3 */
|
|
|
|
"an rr register" },
|
|
|
|
|
|
|
|
/* immediate operands: */
|
|
|
|
{ ABS, ins_cimmu, ext_cimmu, 0, {{ 5, 20 }}, UDEC, /* CCNT5 */
|
|
|
|
"a 5-bit count (0-31)" },
|
|
|
|
{ ABS, ins_cnt, ext_cnt, 0, {{ 2, 27 }}, UDEC, /* CNT2a */
|
|
|
|
"a 2-bit count (1-4)" },
|
|
|
|
{ ABS, ins_cnt2b, ext_cnt2b, 0, {{ 2, 27 }}, UDEC, /* CNT2b */
|
|
|
|
"a 2-bit count (1-3)" },
|
|
|
|
{ ABS, ins_cnt2c, ext_cnt2c, 0, {{ 2, 30 }}, UDEC, /* CNT2c */
|
|
|
|
"a count (0, 7, 15, or 16)" },
|
|
|
|
{ ABS, ins_immu, ext_immu, 0, {{ 5, 14}}, UDEC, /* CNT5 */
|
|
|
|
"a 5-bit count (0-31)" },
|
|
|
|
{ ABS, ins_immu, ext_immu, 0, {{ 6, 27}}, UDEC, /* CNT6 */
|
|
|
|
"a 6-bit count (0-63)" },
|
|
|
|
{ ABS, ins_cimmu, ext_cimmu, 0, {{ 6, 20}}, UDEC, /* CPOS6a */
|
|
|
|
"a 6-bit bit pos (0-63)" },
|
|
|
|
{ ABS, ins_cimmu, ext_cimmu, 0, {{ 6, 14}}, UDEC, /* CPOS6b */
|
|
|
|
"a 6-bit bit pos (0-63)" },
|
|
|
|
{ ABS, ins_cimmu, ext_cimmu, 0, {{ 6, 31}}, UDEC, /* CPOS6c */
|
|
|
|
"a 6-bit bit pos (0-63)" },
|
|
|
|
{ ABS, ins_imms, ext_imms, 0, {{ 1, 36}}, SDEC, /* IMM1 */
|
|
|
|
"a 1-bit integer (-1, 0)" },
|
|
|
|
{ ABS, ins_immu, ext_immu, 0, {{ 2, 13}}, UDEC, /* IMMU2 */
|
|
|
|
"a 2-bit unsigned (0-3)" },
|
2006-02-24 05:36:18 +08:00
|
|
|
{ ABS, ins_immu5b, ext_immu5b, 0, {{ 5, 14}}, UDEC, /* IMMU5b */
|
|
|
|
"a 5-bit unsigned (32 + (0-31))" },
|
2000-04-22 04:22:24 +08:00
|
|
|
{ ABS, ins_immu, ext_immu, 0, {{ 7, 13}}, 0, /* IMMU7a */
|
|
|
|
"a 7-bit unsigned (0-127)" },
|
|
|
|
{ ABS, ins_immu, ext_immu, 0, {{ 7, 20}}, 0, /* IMMU7b */
|
|
|
|
"a 7-bit unsigned (0-127)" },
|
|
|
|
{ ABS, ins_immu, ext_immu, 0, {{ 7, 13}}, UDEC, /* SOF */
|
|
|
|
"a frame size (register count)" },
|
|
|
|
{ ABS, ins_immu, ext_immu, 0, {{ 7, 20}}, UDEC, /* SOL */
|
|
|
|
"a local register count" },
|
|
|
|
{ ABS, ins_immus8,ext_immus8,0, {{ 4, 27}}, UDEC, /* SOR */
|
|
|
|
"a rotating register count (integer multiple of 8)" },
|
|
|
|
{ ABS, ins_imms, ext_imms, 0, /* IMM8 */
|
|
|
|
{{ 7, 13}, { 1, 36}}, SDEC,
|
|
|
|
"an 8-bit integer (-128-127)" },
|
|
|
|
{ ABS, ins_immsu4, ext_imms, 0, /* IMM8U4 */
|
|
|
|
{{ 7, 13}, { 1, 36}}, SDEC,
|
|
|
|
"an 8-bit signed integer for 32-bit unsigned compare (-128-127)" },
|
|
|
|
{ ABS, ins_immsm1, ext_immsm1, 0, /* IMM8M1 */
|
|
|
|
{{ 7, 13}, { 1, 36}}, SDEC,
|
|
|
|
"an 8-bit integer (-127-128)" },
|
|
|
|
{ ABS, ins_immsm1u4, ext_immsm1, 0, /* IMM8M1U4 */
|
|
|
|
{{ 7, 13}, { 1, 36}}, SDEC,
|
|
|
|
"an 8-bit integer for 32-bit unsigned compare (-127-(-1),1-128,0x100000000)" },
|
|
|
|
{ ABS, ins_immsm1, ext_immsm1, 0, /* IMM8M1U8 */
|
|
|
|
{{ 7, 13}, { 1, 36}}, SDEC,
|
|
|
|
"an 8-bit integer for 64-bit unsigned compare (-127-(-1),1-128,0x10000000000000000)" },
|
|
|
|
{ ABS, ins_immu, ext_immu, 0, {{ 2, 33}, { 7, 20}}, 0, /* IMMU9 */
|
|
|
|
"a 9-bit unsigned (0-511)" },
|
|
|
|
{ ABS, ins_imms, ext_imms, 0, /* IMM9a */
|
|
|
|
{{ 7, 6}, { 1, 27}, { 1, 36}}, SDEC,
|
|
|
|
"a 9-bit integer (-256-255)" },
|
|
|
|
{ ABS, ins_imms, ext_imms, 0, /* IMM9b */
|
|
|
|
{{ 7, 13}, { 1, 27}, { 1, 36}}, SDEC,
|
|
|
|
"a 9-bit integer (-256-255)" },
|
|
|
|
{ ABS, ins_imms, ext_imms, 0, /* IMM14 */
|
|
|
|
{{ 7, 13}, { 6, 27}, { 1, 36}}, SDEC,
|
|
|
|
"a 14-bit integer (-8192-8191)" },
|
2012-09-04 21:52:06 +08:00
|
|
|
{ ABS, ins_immu, ext_immu, 0, /* IMMU16 */
|
|
|
|
{{4, 6}, {11, 12}, { 1, 36}}, UDEC,
|
|
|
|
"a 16-bit unsigned" },
|
2000-04-22 04:22:24 +08:00
|
|
|
{ ABS, ins_imms1, ext_imms1, 0, /* IMM17 */
|
|
|
|
{{ 7, 6}, { 8, 24}, { 1, 36}}, 0,
|
|
|
|
"a 17-bit integer (-65536-65535)" },
|
2012-09-04 21:52:06 +08:00
|
|
|
{ ABS, ins_immu, ext_immu, 0, /* IMMU19 */
|
|
|
|
{{4, 6}, {14, 12}, { 1, 36}}, UDEC,
|
|
|
|
"a 19-bit unsigned" },
|
2000-04-22 04:22:24 +08:00
|
|
|
{ ABS, ins_immu, ext_immu, 0, {{20, 6}, { 1, 36}}, 0, /* IMMU21 */
|
|
|
|
"a 21-bit unsigned" },
|
|
|
|
{ ABS, ins_imms, ext_imms, 0, /* IMM22 */
|
|
|
|
{{ 7, 13}, { 9, 27}, { 5, 22}, { 1, 36}}, SDEC,
|
2001-02-22 11:16:21 +08:00
|
|
|
"a 22-bit signed integer" },
|
2000-04-22 04:22:24 +08:00
|
|
|
{ ABS, ins_immu, ext_immu, 0, /* IMMU24 */
|
|
|
|
{{21, 6}, { 2, 31}, { 1, 36}}, 0,
|
|
|
|
"a 24-bit unsigned" },
|
|
|
|
{ ABS, ins_imms16,ext_imms16,0, {{27, 6}, { 1, 36}}, 0, /* IMM44 */
|
|
|
|
"a 44-bit unsigned (least 16 bits ignored/zeroes)" },
|
|
|
|
{ ABS, ins_rsvd, ext_rsvd, 0, {{0, 0}}, 0, /* IMMU62 */
|
2000-11-17 04:48:09 +08:00
|
|
|
"a 62-bit unsigned" },
|
2000-04-22 04:22:24 +08:00
|
|
|
{ ABS, ins_rsvd, ext_rsvd, 0, {{0, 0}}, 0, /* IMMU64 */
|
|
|
|
"a 64-bit unsigned" },
|
|
|
|
{ ABS, ins_inc3, ext_inc3, 0, {{ 3, 13}}, SDEC, /* INC3 */
|
|
|
|
"an increment (+/- 1, 4, 8, or 16)" },
|
|
|
|
{ ABS, ins_cnt, ext_cnt, 0, {{ 4, 27}}, UDEC, /* LEN4 */
|
|
|
|
"a 4-bit length (1-16)" },
|
|
|
|
{ ABS, ins_cnt, ext_cnt, 0, {{ 6, 27}}, UDEC, /* LEN6 */
|
|
|
|
"a 6-bit length (1-64)" },
|
|
|
|
{ ABS, ins_immu, ext_immu, 0, {{ 4, 20}}, 0, /* MBTYPE4 */
|
|
|
|
"a mix type (@rev, @mix, @shuf, @alt, or @brcst)" },
|
|
|
|
{ ABS, ins_immu, ext_immu, 0, {{ 8, 20}}, 0, /* MBTYPE8 */
|
|
|
|
"an 8-bit mix type" },
|
|
|
|
{ ABS, ins_immu, ext_immu, 0, {{ 6, 14}}, UDEC, /* POS6 */
|
|
|
|
"a 6-bit bit pos (0-63)" },
|
|
|
|
{ REL, ins_imms4, ext_imms4, 0, {{ 7, 6}, { 2, 33}}, 0, /* TAG13 */
|
|
|
|
"a branch tag" },
|
|
|
|
{ REL, ins_imms4, ext_imms4, 0, {{ 9, 24}}, 0, /* TAG13b */
|
|
|
|
"a branch tag" },
|
|
|
|
{ REL, ins_imms4, ext_imms4, 0, {{20, 6}, { 1, 36}}, 0, /* TGT25 */
|
|
|
|
"a branch target" },
|
|
|
|
{ REL, ins_imms4, ext_imms4, 0, /* TGT25b */
|
|
|
|
{{ 7, 6}, {13, 20}, { 1, 36}}, 0,
|
|
|
|
"a branch target" },
|
|
|
|
{ REL, ins_imms4, ext_imms4, 0, {{20, 13}, { 1, 36}}, 0, /* TGT25c */
|
2000-11-17 04:48:09 +08:00
|
|
|
"a branch target" },
|
|
|
|
{ REL, ins_rsvd, ext_rsvd, 0, {{0, 0}}, 0, /* TGT64 */
|
2000-04-22 04:22:24 +08:00
|
|
|
"a branch target" },
|
2002-12-04 02:15:48 +08:00
|
|
|
|
|
|
|
{ ABS, ins_const, ext_const, 0, {{0, 0}}, 0, /* LDXMOV */
|
|
|
|
"ldxmov target" },
|
2012-09-04 21:52:06 +08:00
|
|
|
{ ABS, ins_cnt6a, ext_cnt6a, 0, {{6, 6}}, UDEC, /* CNT6a */
|
|
|
|
"lfetch count" },
|
|
|
|
{ ABS, ins_strd5b, ext_strd5b, 0, {{5, 13}}, SDEC, /* STRD5b*/
|
|
|
|
"lfetch stride" },
|
2000-04-22 04:22:24 +08:00
|
|
|
};
|