3 * Makefile.am: Add wasm32-dis.c.
4 * configure.ac: Add wasm32-dis.c to wasm32 target.
5 * disassemble.c: Add wasm32 disassembler code.
6 * wasm32-dis.c: New file.
7 * Makefile.in: Regenerate.
8 * configure: Regenerate.
9 * po/POTFILES.in: Regenerate.
10 * po/opcodes.pot: Regenerate.
14 * arc-dis.c (parse_option, parse_disassembler_options): Constify.
15 * arm-dis.c (parse_arm_disassembler_options): Constify.
16 * ppc-dis.c (powerpc_init_dialect): Constify local.
17 * vax-dis.c (parse_disassembler_options): Constify.
21 * riscv-dis.c (riscv_disassemble_insn): Change "_gp" to
26 * configure.ac: Add (empty) bfd_wasm32_arch target.
27 * configure: Regenerate
28 * po/opcodes.pot: Regenerate.
32 Add support for missing SPARC ASIs from UA2005, UA2007, OSA2011, &
34 * opcodes/sparc-opc.c (asi_table): New ASIs.
38 * ppc-dis.c (ppc_opts): Set PPC_OPCODE_PPC for "any" flags. Add
40 (lookup_powerpc): Don't special case -1 dialect. Handle
42 (print_insn_powerpc): Mask out PPC_OPCODE_ANY on first
43 lookup_powerpc call, pass it on second.
48 * ppc-dis.c (struct ppc_mopt): Comment.
49 (ppc_opts <e200z4>): Move PPC_OPCODE_VLE from .sticky to .cpu.
53 * arc-nps400-tbl.h: Add Ultra Ip and Miscellaneous instructions format.
54 * arc-opc.c: Add defines. e.g. F_NJ, F_NM , F_NO_T, F_NPS_SR,
55 F_NPS_M, F_NPS_CORE, F_NPS_ALL.
56 (insert_nps_misc_imm_offset): New function.
57 (extract_nps_misc imm_offset): New function.
58 (arc_num_flag_operands): Add F_NJ, F_NM, F_NO_T.
59 (arc_flag_special_cases): Add F_NJ, F_NM, F_NO_T.
63 * s390-mkopc.c (main): Remove vx2 check.
64 * s390-opc.txt: Remove vx2 instruction flags.
68 * arc-nps400-tbl.h: Add cp32/cp16 instructions format.
69 * arc-opc.c: Add F_NPS_NA, NPS_DMA_IMM_ENTRY, NPS_DMA_IMM_OFFSET.
70 (insert_nps_imm_offset): New function.
71 (extract_nps_imm_offset): New function.
72 (insert_nps_imm_entry): New function.
73 (extract_nps_imm_entry): New function.
78 * ppc-opc.c (powerpc_opcodes): Enable mfivor32, mfivor33,
79 mtivor32, and mtivor33 for e6500. Move mfibatl and mfibatu after
80 those spr mnemonics they alias. Similarly for mtibatl, mtibatu.
84 * riscv-opc.c (riscv_opcodes> <c.li>: Use the 'o' immediate encoding.
90 * riscv-opc.c (riscv_opcodes) <c.addi>: Use match_opcode.
94 * riscv-opc.c (riscv_opcodes) <srli/C>: Use match_opcode.
101 * i386-gen.c (opcode_modifiers): Replace S with Load.
102 * i386-opc.h (S): Removed.
104 (i386_opcode_modifier): Replace s with load.
105 * i386-opc.tbl: Add {disp8}, {disp32}, {swap}, {vex2}, {vex3}
106 and {evex}. Replace S with Load.
107 * i386-tbl.h: Regenerated.
111 * i386-opc.tbl: Use CpuCET on rdsspq.
112 * i386-tbl.h: Regenerated.
116 * ppc-dis.c (ppc_opts) <altivec>: Do not use PPC_OPCODE_ALTIVEC2;
117 <vsx>: Do not use PPC_OPCODE_VSX3;
121 * ppc-opc.c (powerpc_opcodes) <lnia>: New extended mnemonic.
125 * i386-dis.c (REG_0F1E_MOD_3): New enum.
126 (MOD_0F1E_PREFIX_1): Likewise.
127 (MOD_0F38F5_PREFIX_2): Likewise.
128 (MOD_0F38F6_PREFIX_0): Likewise.
129 (RM_0F1E_MOD_3_REG_7): Likewise.
130 (PREFIX_MOD_0_0F01_REG_5): Likewise.
131 (PREFIX_MOD_3_0F01_REG_5_RM_1): Likewise.
132 (PREFIX_MOD_3_0F01_REG_5_RM_2): Likewise.
133 (PREFIX_0F1E): Likewise.
134 (PREFIX_MOD_0_0FAE_REG_5): Likewise.
135 (PREFIX_0F38F5): Likewise.
136 (dis386_twobyte): Use PREFIX_0F1E.
137 (reg_table): Add REG_0F1E_MOD_3.
138 (prefix_table): Add PREFIX_MOD_0_0F01_REG_5,
139 PREFIX_MOD_3_0F01_REG_5_RM_1, PREFIX_MOD_3_0F01_REG_5_RM_2,
140 PREFIX_0F1E, PREFIX_MOD_0_0FAE_REG_5 and PREFIX_0F38F5. Update
141 PREFIX_0FAE_REG_6 and PREFIX_0F38F6.
142 (three_byte_table): Use PREFIX_0F38F5.
143 (mod_table): Use PREFIX_MOD_0_0F01_REG_5, PREFIX_MOD_0_0FAE_REG_5.
144 Add MOD_0F1E_PREFIX_1, MOD_0F38F5_PREFIX_2, MOD_0F38F6_PREFIX_0.
145 (rm_table): Add MOD_0F38F5_PREFIX_2, MOD_0F38F6_PREFIX_0,
146 RM_0F1E_MOD_3_REG_7. Use PREFIX_MOD_3_0F01_REG_5_RM_1 and
147 PREFIX_MOD_3_0F01_REG_5_RM_2.
148 * i386-gen.c (cpu_flag_init): Add CPU_CET_FLAGS.
149 (cpu_flags): Add CpuCET.
150 * i386-opc.h (CpuCET): New enum.
151 (CpuUnused): Commented out.
152 (i386_cpu_flags): Add cpucet.
153 * i386-opc.tbl: Add Intel CET instructions.
154 * i386-init.h: Regenerated.
155 * i386-tbl.h: Likewise.
160 * ppc-opc.c (extract_esync, extract_ls, extract_ral, extract_ram)
161 (extract_raq, extract_ras, extract_rbx): New functions.
162 (powerpc_operands): Use opposite corresponding insert function.
164 (powerpc_opcodes): Apply Q_MASK to all quad insns with even
165 register restriction.
169 * disassemble.c Include "safe-ctype.h".
170 (disassemble_init_for_target): Handle s390 init.
171 (remove_whitespace_and_extra_commas): New function.
172 (disassembler_options_cmp): Likewise.
173 * arm-dis.c: Include "libiberty.h".
175 (regnames): Use long disassembler style names.
176 Add force-thumb and no-force-thumb options.
177 (NUM_ARM_REGNAMES): Rename from this...
178 (NUM_ARM_OPTIONS): ...to this. Use ARRAY_SIZE.
179 (get_arm_regname_num_options): Delete.
180 (set_arm_regname_option): Likewise.
181 (get_arm_regnames): Likewise.
182 (parse_disassembler_options): Likewise.
183 (parse_arm_disassembler_option): Rename from this...
184 (parse_arm_disassembler_options): ...to this. Make static.
185 Use new FOR_EACH_DISASSEMBLER_OPTION macro to scan over options.
186 (print_insn): Use parse_arm_disassembler_options.
187 (disassembler_options_arm): New function.
188 (print_arm_disassembler_options): Handle updated regnames.
189 * ppc-dis.c: Include "libiberty.h".
190 (ppc_opts): Add "32" and "64" entries.
191 (ppc_parse_cpu): Use ARRAY_SIZE and disassembler_options_cmp.
192 (powerpc_init_dialect): Add break to switch statement.
193 Use new FOR_EACH_DISASSEMBLER_OPTION macro.
194 (disassembler_options_powerpc): New function.
195 (print_ppc_disassembler_options): Use ARRAY_SIZE.
196 Remove printing of "32" and "64".
197 * s390-dis.c: Include "libiberty.h".
198 (init_flag): Remove unneeded variable.
199 (struct s390_options_t): New structure type.
200 (options): New structure.
201 (init_disasm): Rename from this...
202 (disassemble_init_s390): ...to this. Add initializations for
203 current_arch_mask and option_use_insn_len_bits_p. Remove init_flag.
204 (print_insn_s390): Delete call to init_disasm.
205 (disassembler_options_s390): New function.
206 (print_s390_disassembler_options): Print using information from
208 * po/opcodes.pot: Regenerate.
212 * i386-dis.c (PCMPESTR_Fixup): New.
213 (VEX_W_0F3A60_P_2, VEX_W_0F3A61_P_2): Delete.
214 (prefix_table): Use PCMPESTR_Fixup.
215 (vex_len_table): Make VPCMPESTR{I,M} entries leaf ones and use
217 (vex_w_table): Delete VPCMPESTR{I,M} entries.
218 * i386-opc.tbl (pcmpestri, pcmpestrm, vpcmpestri, vpcmpestrm):
219 Split 64-bit and non-64-bit variants.
220 * opcodes/i386-tbl.h: Re-generate.
224 * aarch64-tbl.h (OP_SVE_HMH, OP_SVE_VMU_HSD, OP_SVE_VMVU_HSD)
225 (OP_SVE_VMVV_HSD, OP_SVE_VMVVU_HSD, OP_SVE_VM_HSD, OP_SVE_VUVV_HSD)
226 (OP_SVE_VUV_HSD, OP_SVE_VU_HSD, OP_SVE_VVVU_H, OP_SVE_VVVU_S)
227 (OP_SVE_VVVU_HSD, OP_SVE_VVV_D, OP_SVE_VVV_D_H, OP_SVE_VVV_H)
228 (OP_SVE_VVV_HSD, OP_SVE_VVV_S, OP_SVE_VVV_S_B, OP_SVE_VVV_SD_BH)
229 (OP_SVE_VV_BHSDQ, OP_SVE_VV_HSD, OP_SVE_VZVV_HSD, OP_SVE_VZV_HSD)
230 (OP_SVE_V_HSD): New macros.
231 (OP_SVE_VMU_SD, OP_SVE_VMVU_SD, OP_SVE_VM_SD, OP_SVE_VUVV_SD)
232 (OP_SVE_VU_SD, OP_SVE_VVVU_SD, OP_SVE_VVV_SD, OP_SVE_VZVV_SD)
233 (OP_SVE_VZV_SD, OP_SVE_V_SD): Delete.
234 (aarch64_opcode_table): Add new SVE instructions.
235 (aarch64_opcode_table): Use imm_rotate{1,2} instead of imm_rotate
236 for rotation operands. Add new SVE operands.
237 * aarch64-asm.h (ins_sve_addr_ri_s4): New inserter.
238 (ins_sve_quad_index): Likewise.
239 (ins_imm_rotate): Split into...
240 (ins_imm_rotate1, ins_imm_rotate2): ...these two inserters.
241 * aarch64-asm.c (aarch64_ins_imm_rotate): Split into...
242 (aarch64_ins_imm_rotate1, aarch64_ins_imm_rotate2): ...these two
244 (aarch64_ins_sve_addr_ri_s4): New function.
245 (aarch64_ins_sve_quad_index): Likewise.
246 (do_misc_encoding): Handle "MOV Zn.Q, Qm".
247 * aarch64-asm-2.c: Regenerate.
248 * aarch64-dis.h (ext_sve_addr_ri_s4): New extractor.
249 (ext_sve_quad_index): Likewise.
250 (ext_imm_rotate): Split into...
251 (ext_imm_rotate1, ext_imm_rotate2): ...these two extractors.
252 * aarch64-dis.c (aarch64_ext_imm_rotate): Split into...
253 (aarch64_ext_imm_rotate1, aarch64_ext_imm_rotate2): ...these two
255 (aarch64_ext_sve_addr_ri_s4): New function.
256 (aarch64_ext_sve_quad_index): Likewise.
257 (aarch64_ext_sve_index): Allow quad indices.
258 (do_misc_decoding): Likewise.
259 * aarch64-dis-2.c: Regenerate.
260 * aarch64-opc.h (FLD_SVE_i3h, FLD_SVE_rot1, FLD_SVE_rot2): New
262 (OPD_F_OD_MASK): Widen by one bit.
263 (OPD_F_NO_ZR): Bump accordingly.
264 (get_operand_field_width): New function.
265 * aarch64-opc.c (fields): Add new SVE fields.
266 (operand_general_constraint_met_p): Handle new SVE operands.
267 (aarch64_print_operand): Likewise.
268 * aarch64-opc-2.c: Regenerate.
272 * aarch64-tbl.h (aarch64_feature_simd_v8_3): Replace with...
273 (aarch64_feature_compnum): ...this.
274 (SIMD_V8_3): Replace with...
276 (CNUM_INSN): New macro.
277 (aarch64_opcode_table): Use it for the complex number instructions.
281 * i386-dis.c (reg_table): REG_F6/1 and REG_F7/1 decode as TEST.
285 Add support for associating SPARC ASIs with an architecture level.
286 * include/opcode/sparc.h (sparc_asi): New sparc_asi struct.
287 * opcodes/sparc-opc.c (asi_table): Updated asi_table and encoding/
288 decoding of SPARC ASIs.
292 * i386-dis.c (get_valid_dis386): Don't special case VEX opcode
293 82. For 3-byte VEX only special case opcode 77 in VEX_0F space.
297 * aarch64-asm.c (convert_bfc_to_bfm): Copy operand 0 to operand
298 1 (instead of to itself). Correct typo.
302 * riscv-opc.c (riscv_opcodes): Add sfence.vma instruction and
307 * aarch64-opc.c (aarch64_sys_regs): Add SVE registers.
308 (aarch64_sys_reg_supported_p): Handle them.
312 * arc-opc.c (UIMM6_20R): Define.
313 (SIMM12_20): Use above.
314 (SIMM12_20R): Define.
315 (SIMM3_5_S): Use above.
316 (UIMM7_A32_11R_S): Define.
317 (UIMM7_9_S): Use above.
318 (UIMM3_13R_S): Define.
319 (SIMM11_A32_7_S): Use above.
321 (UIMM10_A32_8_S): Use above.
322 (UIMM8_8R_S): Define.
324 (arc_relax_opcodes): Use all above defines.
328 * arc-regs.h: Distinguish some of the registers different on
329 ARC700 and HS38 cpus.
334 * ppc-opc.c (powerpc_operands): Flag SPR, SPRG and TBR entries
335 with PPC_OPERAND_SPR. Flag PSQ and PSQM with PPC_OPERAND_GQR.
340 * cgen-opc.c (cgen_lookup_insn): Delete buf and base_insn temps.
341 Use insn_bytes_value and insn_int_value directly instead. Don't
342 free allocated memory until function exit.
346 * ppc-opc.c (powerpc_opcodes) <scv, rfscv>: New mnemonics.
351 * aarch64-opc.c (print_register_list): Ensure that the register
352 list index will fir into the tb buffer.
353 (print_register_offset_address): Likewise.
354 * tic6x-dis.c (print_insn_tic6x): Increase size of func_unit_buf.
359 * tic6x-dis.c (print_insn_tic6x): Correct displaying of parallel
360 instructions when the previous fetch packet ends with a 32-bit
365 * pru-opc.c: Remove vague reference to a future GDB port.
369 * po/ga.po: Updated Irish translation.
373 * arm-dis.c (coprocessor_opcodes): Fix vcmla mask and disassembly.
377 * m68k-dis.c (match_insn_m68k): Extend comments. Return -1
378 if FETCH_DATA returns 0.
379 (m68k_scan_mask): Likewise.
380 (print_insn_m68k): Update code to handle -1 return value.
384 * m68k-dis.c (enum print_insn_arg_error): New.
385 (NEXTBYTE): Replace -3 with
386 PRINT_INSN_ARG_MEMORY_ERROR.
387 (NEXTULONG): Likewise.
388 (NEXTSINGLE): Likewise.
389 (NEXTDOUBLE): Likewise.
390 (NEXTDOUBLE): Likewise.
391 (NEXTPACKED): Likewise.
392 (FETCH_ARG): Likewise.
393 (FETCH_DATA): Update comments.
394 (print_insn_arg): Update comments. Replace magic numbers with
396 (match_insn_m68k): Likewise.
400 * i386-dis.c (enum): Add PREFIX_EVEX_0F3855, EVEX_W_0F3855_P_2.
401 * i386-dis-evex.h (evex_table): Updated.
402 * i386-gen.c (cpu_flag_init): Add CPU_AVX512_VPOPCNTDQ_FLAGS,
403 CPU_ANY_AVX512_VPOPCNTDQ_FLAGS. Update CPU_ANY_AVX512F_FLAGS.
404 (cpu_flags): Add CpuAVX512_VPOPCNTDQ.
405 * i386-opc.h (enum): (AVX512_VPOPCNTDQ): New.
406 (i386_cpu_flags): Add cpuavx512_vpopcntdq.
407 * i386-opc.tbl: Add Intel AVX512_VPOPCNTDQ instructions.
408 * i386-init.h: Regenerate.
413 * msp430-dis.c (msp430_singleoperand): Return -1 if
414 msp430dis_opcode_signed returns false.
415 (msp430_doubleoperand): Likewise.
416 (msp430_branchinstr): Return -1 if
417 msp430dis_opcode_unsigned returns false.
418 (msp430x_calla_instr): Likewise.
419 (print_insn_msp430): Likewise.
424 * frv-desc.c (lookup_mach_via_bfd_name): Return NULL if the name
425 could not be matched.
426 (frv_cgen_cpu_open): Allow for lookup_mach_via_bfd_name returning
431 * aarch64-tbl.h (RCPC, RCPC_INSN): Define.
432 (aarch64_opcode_table): Use RCPC_INSN.
436 * riscv-opc.c (riscv-opcodes): Add support for the "q" ISA
438 * riscv-opcodes/all-opcodes: Likewise.
442 * riscv-dis.c (print_insn_args): Add fall through comment.
446 * po/sr.po: New Serbian translation.
447 * configure.ac (ALL_LINGUAS): Add sr.
448 * configure: Regenerate.
452 * epiphany-desc.h: Regenerate.
453 * epiphany-opc.h: Regenerate.
454 * fr30-desc.h: Regenerate.
455 * fr30-opc.h: Regenerate.
456 * frv-desc.h: Regenerate.
457 * frv-opc.h: Regenerate.
458 * ip2k-desc.h: Regenerate.
459 * ip2k-opc.h: Regenerate.
460 * iq2000-desc.h: Regenerate.
461 * iq2000-opc.h: Regenerate.
462 * lm32-desc.h: Regenerate.
463 * lm32-opc.h: Regenerate.
464 * m32c-desc.h: Regenerate.
465 * m32c-opc.h: Regenerate.
466 * m32r-desc.h: Regenerate.
467 * m32r-opc.h: Regenerate.
468 * mep-desc.h: Regenerate.
469 * mep-opc.h: Regenerate.
470 * mt-desc.h: Regenerate.
471 * mt-opc.h: Regenerate.
472 * or1k-desc.h: Regenerate.
473 * or1k-opc.h: Regenerate.
474 * xc16x-desc.h: Regenerate.
475 * xc16x-opc.h: Regenerate.
476 * xstormy16-desc.h: Regenerate.
477 * xstormy16-opc.h: Regenerate.
481 Update year range in copyright notice of all files.
483 For older changes see ChangeLog-2016
485 Copyright (C) 2017 Free Software Foundation, Inc.
487 Copying and distribution of this file, with or without modification,
488 are permitted in any medium without royalty provided the copyright
489 notice and this notice are preserved.
495 version-control: never