2007-06-04 Olivier Hainque <hainque@adacore.com>
[binutils.git] / opcodes / ChangeLog
blob6cb2ef46db80aa3a2244dcd6dff58b07070dc08a
1 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
3         * Makefile.in: Regnerate.
4         * configure: Regenerate.
5         * aclocal.m4: Regenerate.
7 2007-05-18  Alan Modra  <amodra@bigpond.net.au>
9         * ppc-dis.c (print_insn_powerpc): Don't skip all operands
10         after setting skip_optional.
12 2007-05-16  Peter Bergner  <bergner@vnet.ibm.com>
14         * ppc-dis.c (operand_value_powerpc, skip_optional_operands): New.
15         (print_insn_powerpc): Use the new operand_value_powerpc and
16         skip_optional_operands functions to omit or print all optional
17         operands as a group.
18         * ppc-opc.c (BFF, W, XFL_L, XWRA_MASK): New.
19         (XFL_MASK): Delete L and W bits from the mask.
20         (mtfsfi, mtfsfi.): Replace use of BF with BFF.  Relpace use of XRA_MASK
21         with XWRA_MASK.  Use W.
22         (mtfsf, mtfsf.): Use XFL_L and W.
24 2007-05-14  H.J. Lu  <hongjiu.lu@intel.com>
26         PR binutils/4502
27         * i386-dis.c (Suffix3DNow): Replace "pfmulhrw" with "pmulhrw".
29 2007-05-10  H.J. Lu  <hongjiu.lu@intel.com>
31         * i386-opc.h (ShortForm): Redefined.
32         (Jump): Likewise.
33         (JumpDword): Likewise.
34         (JumpByte): Likewise.
35         (JumpInterSegment): Likewise.
36         (FloatMF): Likewise.
37         (FloatR): Likewise.
38         (FloatD): Likewise.
39         (Size16): Likewise.
40         (Size32): Likewise.
41         (Size64): Likewise.
42         (IgnoreSize): Likewise.
43         (DefaultSize): Likewise.
44         (No_bSuf): Likewise.
45         (No_wSuf): Likewise.
46         (No_lSuf): Likewise.
47         (No_sSuf): Likewise.
48         (No_qSuf): Likewise.
49         (No_xSuf): Likewise.
50         (FWait): Likewise.
51         (IsString): Likewise.
52         (regKludge): Likewise.
53         (IsPrefix): Likewise.
54         (ImmExt): Likewise.
55         (NoRex64): Likewise.
56         (Rex64): Likewise.
57         (Ugh): Likewise.
59 2007-05-07  H.J. Lu  <hongjiu.lu@intel.com>
61         * i386-dis.c (threebyte_0x38_uses_DATA_prefix): Correct entries
62         for some SSE4 instructions.
63         (threebyte_0x3a_uses_DATA_prefix): Likewise.
65 2007-05-03  H.J. Lu  <hongjiu.lu@intel.com>
67         * i386-dis.c (CRC32_Fixup): Don't print suffix in Intel mode.
69         * i386-opc.c (i386_optab): Remove IgnoreSize and correct operand
70         type for crc32.
72 2007-05-01  H.J. Lu  <hongjiu.lu@intel.com>
74         * i386-dis.c (CRC32_Fixup): Properly handle Intel mode and
75         check data size prefix in 16bit mode.
77         * i386-opc.c (i386_optab): Default crc32 to non-8bit and
78         support Intel mode.
80 2007-04-30  Mark Salter  <msalter@redhat.com>
82         * frv-desc.c: Regenerate.
83         * frv-desc.h: Regenerate.
85 2007-04-30  Alan Modra  <amodra@bigpond.net.au>
87         PR 4436
88         * ppc-opc.c (powerpc_operands): Correct bitm for second entry of MBE.
90 2007-04-27  H.J. Lu  <hongjiu.lu@intel.com>
92         * i386-dis.c (modrm): Put reg before rm.
94 2007-04-26  H.J. Lu  <hongjiu.lu@intel.com>
96         PR binutils/4430
97         * i386-dis.c (print_displacement): New.
98         (OP_E): Call print_displacement instead of print_operand_value
99         to output displacement when either base or index exist.  Print
100         the explicit zero displacement in 16bit mode.
102 2007-04-26  H.J. Lu  <hongjiu.lu@intel.com>
104         PR binutils/4429
105         * i386-dis.c (print_insn): Also swap the order of op_riprel
106         when swapping op_index.  Break when the RIP relative address
107         is printed.
108         (OP_E): Properly handle RIP relative addressing and print the
109         explicit zero displacement for Intel mode.
111 2007-04-27  Alan Modra  <amodra@bigpond.net.au>
113         * Makefile.am: Run "make dep-am".
114         * Makefile.in: Regenerate.
115         * ns32k-dis.c: Include sysdep.h first.
117 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
119         * opcodes/s390-opc.c (MASK_SSF_RRDRD): Fourth nybble belongs to the
120         opcode.
121         * opcodes/s390-opc.txt (pfpo, ectg, csst): Add new z9-ec instructions.
123 2007-04-24  Nick Clifton  <nickc@redhat.com>
125         * arm-dis.c (print_insn): Initialise type.
127 2007-04-24  Alan Modra  <amodra@bigpond.net.au>
129         * cgen-types.h: Include bfd_stdint.h, not stdint.h.
130         * Makefile.am: Run "make dep-am".
131         * Makefile.in: Regenerate.
133 2007-04-23  Nathan Sidwell  <nathan@codesourcery.com>
135         * m68k-opc.c: Mark mcfisa_c instructions.
137 2007-04-21  Richard Earnshaw  <rearnsha@arm.com>
139         * arm-dis.c (arm_opcodes): Disassemble to unified syntax.
140         (thumb_opcodes): Add missing white space in adr.
141         (arm_decode_shift): New parameter, print_shift.  Only decode the
142         shift parameter if set.  Adjust callers.
143         (print_insn_arm): Support for operand type q with no shift decode.
145 2007-04-21  Alan Modra  <amodra@bigpond.net.au>
147         * i386-opc.c (i386_float_regtab, i386_float_regtab_size): Delete.
148         Move contents to..
149         (i386_regtab): ..here.
150         * i386-opc.h (i386_float_regtab, i386_float_regtab_size): Delete.
152         * ppc-opc.c (powerpc_operands): Delete duplicate entries.
153         (BA_MASK, FXM_MASK, STRM_MASK, VA_MASK, VB_MASK, VC_MASK): Delete.
154         (VD_MASK, WS_MASK, MTMSRD_L, XRT_L): Delete.
155         (powerpc_opcodes): Replace uses of MTMSRD_L and XRT_L.
157 2007-04-20  Nathan Sidwell  <nathan@codesourcery.com>
159         * m68k-dis.c (print_insn_arg): Show c04 as rambar0 and c05 as
160         rambar1.
162 2007-04-20  Alan Modra  <amodra@bigpond.net.au>
164         * ppc-dis.c (print_insn_powerpc): Adjust for struct powerpc_operand
165         change.
166         * ppc-opc.c (powerpc_operands): Replace bit count with bit mask
167         in all entries.  Add PPC_OPERAND_SIGNED to DE entry.  Remove
168         references to following deleted functions.
169         (insert_bd, extract_bd, insert_dq, extract_dq): Delete.
170         (insert_ds, extract_ds, insert_de, extract_de): Delete.
171         (insert_des, extract_des, insert_li, extract_li): Delete.
172         (insert_nb, insert_rsq, insert_rtq, insert_ev2, extract_ev2): Delete.
173         (insert_ev4, extract_ev4, insert_ev8, extract_ev8): Delete.
174         (num_powerpc_operands): New constant.
175         (XSPRG_MASK): Remove entire SPRG field.
176         (powerpc_opcodes <bcctre, bcctrel>): Use XLBB_MASK not XLYBB_MASK.
178 2007-04-20  Alan Modra  <amodra@bigpond.net.au>
180         * ppc-opc.c (DCM, DGM, TE, RMC, R, SP, S): Correct shift.
181         (Z2_MASK): Define.
182         (powerpc_opcodes): Use Z2_MASK in all insns taking RMC operand.
184 2007-04-20  Richard Earnshaw  <rearnsha@arm.com>
186         * arm-dis.c (print_insn): Only look for a mapping symbol in the section
187         being disassembled.
189 2007-04-19  Alan Modra  <amodra@bigpond.net.au>
191         * Makefile.am: Run "make dep-am".
192         * Makefile.in: Regenerate.
193         * po/POTFILES.in: Regenerate.
195 2007-04-19  Alan Modra  <amodra@bigpond.net.au>
197         * ppc-opc.c (powerpc_opcodes): Add cctpl, cctpm, cctph, db8cyc,
198         db10cyc, db12cyc, db16cyc.
200 2007-04-19  Nathan Froyd <froydnj@codesourcery.com>
202         * ppc-opc.c (powerpc_opcodes): Recognize three-operand tlbsxe.
204 2007-04-18  H.J. Lu <hongjiu.lu@intel.com>
206         * i386-dis.c (CRC32_Fixup): New.
207         (PREGRP85, PREGRP86, PREGRP87, PREGRP88, PREGRP89, PREGRP90,
208          PREGRP91): New.
209         (threebyte_0x38_uses_DATA_prefix): Updated for SSE4.2.
210         (threebyte_0x3a_uses_DATA_prefix): Likewise.
211         (prefix_user_table): Add PREGRP85, PREGRP86, PREGRP87,
212         PREGRP88, PREGRP89, PREGRP90 and PREGRP91.
213         (three_byte_table): Likewise.
215         * i386-opc.c (i386_optab): Add SSE4.2 opcodes.
217         * i386-opc.h (CpuSSE4_2): New.
218         (CpuSSE4): Likewise.
219         (CpuUnknownFlags): Add CpuSSE4_2.
221 2007-04-18  H.J. Lu <hongjiu.lu@intel.com>
223         * i386-dis.c (XMM_Fixup): New.
224         (Edqb): New.
225         (Edqd): New.
226         (XMM0): New.
227         (dqb_mode): New.
228         (dqd_mode): New.
229         (PREGRP39 ... PREGRP85): New.
230         (threebyte_0x38_uses_DATA_prefix): Updated for SSE4.
231         (threebyte_0x3a_uses_DATA_prefix): Likewise.
232         (prefix_user_table): Add PREGRP39 ... PREGRP85.
233         (three_byte_table): Likewise.
234         (putop): Handle 'K'.
235         (intel_operand_size): Handle dqb_mode, dqd_mode):
236         (OP_E): Likewise.
237         (OP_G): Likewise.
239         * i386-opc.c (i386_optab): Add SSE4.1 opcodes.
241         * i386-opc.h (CpuSSE4_1): New.
242         (CpuUnknownFlags): Add CpuSSE4_1.
243         (regKludge): Update comment.
245 2007-04-18  Matthias Klose  <doko@ubuntu.com>
247         * Makefile.am (libopcodes_la_LDFLAGS): Use bfd soversion.
248         * Makefile.in: Regenerate.
250 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
252         * Makefile.am: Add ACLOCAL_AMFLAGS.
253         * Makefile.in: Regenerate.
255 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
257         * i386-dis.c: Remove trailing white spaces.
258         * i386-opc.c: Likewise.
259         * i386-opc.h: Likewise.
261 2007-04-11  H.J. Lu  <hongjiu.lu@intel.com>
263         PR binutils/4333
264         * i386-dis.c (GRP1a): New.
265         (GRP1b ... GRPPADLCK2): Update index.
266         (dis386): Use GRP1a for entry 0x8f.
267         (mod, rm, reg): Removed. Replaced by ...
268         (modrm): This.
269         (grps): Add GRP1a.
271 2007-04-09  Kazu Hirata  <kazu@codesourcery.com>
273         * m68k-dis.c (print_insn_m68k): Restore info->fprintf_func and
274         info->print_address_func if longjmp is called.
276 2007-03-29  DJ Delorie  <dj@redhat.com>
278         * m32c-desc.c: Regenerate.
279         * m32c-dis.c: Regenerate.
280         * m32c-opc.c: Regenerate.
282 2007-03-28  H.J. Lu  <hongjiu.lu@intel.com>
284         * i386-opc.c (i386_optab): Change InvMem to RegMem for mov and
285         movq.  Remove InvMem from sldt, smsw and str.
287         * i386-opc.h (InvMem): Renamed to ...
288         (RegMem): Update comments.
289         (AnyMem): Remove InvMem.
291 2007-03-27  Paul Brook  <paul@codesourcery.com>
293         * arm-dis.c (thumb_opcodes): Add entry for undefined insns (0xbe??).
295 2007-03-24  Paul Brook  <paul@codesourcery.com>
297         * arm-dis.c (coprocessor_opcodes): Remove superfluous 0x.
298         (print_insn_coprocessor): Handle %<bitfield>x.
300 2007-03-24  Paul Brook  <paul@codesourcery.com>
301             Mark Shinwell  <shinwell@codesourcery.com>
303         * arm-dis.c (arm_opcodes): Print SRS base register.
305 2007-03-23  H.J. Lu  <hongjiu.lu@intel.com>
307         * i386-dis.c (prefix_name): Replace rex64XYZ with rex.WRXB.
309         * i386-opc.c (i386_optab): Add rex.wrxb.
311 2007-03-21  H.J. Lu  <hongjiu.lu@intel.com>
313         * i386-dis.c (REX_MODE64): Remove definition.
314         (REX_EXTX): Likewise.
315         (REX_EXTY): Likewise.
316         (REX_EXTZ): Likewise.
317         (USED_REX): Use REX_OPCODE instead of 0x40.
318         Replace REX_MODE64, REX_EXTX, REX_EXTY and REX_EXTZ with REX_W,
319         REX_R, REX_X and REX_B respectively.
321 2007-03-21  H.J. Lu  <hongjiu.lu@intel.com>
323         PR binutils/4218
324         * i386-dis.c (PREGRP38): New.
325         (dis386): Use PREGRP38 for 0x90.
326         (prefix_user_table): Add PREGRP38.
327         (print_insn): Set uses_REPZ_prefix to 1 for pause.
328         (NOP_Fixup1): Properly handle REX bits.
329         (NOP_Fixup2): Likewise.
331         * i386-opc.c (i386_optab): Allow %eax with xchg in 64bit.
332         Allow register with nop.
334 2007-03-20  DJ Delorie  <dj@redhat.com>
336         * m32c-asm.c: Regenerate.
337         * m32c-desc.c: Regenerate.
338         * m32c-desc.h: Regenerate.
339         * m32c-dis.h: Regenerate.
340         * m32c-ibld.c: Regenerate.
341         * m32c-opc.c: Regenerate.
342         * m32c-opc.h: Regenerate.
344 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
346         * i386-opc.c: Include "libiberty.h".
347         (i386_regtab): Remove the last entry.
348         (i386_regtab_size): New.
349         (i386_float_regtab_size): Likewise.
351         * i386-opc.h (i386_regtab_size): New.
352         (i386_float_regtab_size): Likewise.
354 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
356         * Makefile.am (CFILES): Add i386-opc.c.
357         (ALL_MACHINES): Add i386-opc.lo.
358         Run "make dep-am".
359         * Makefile.in: Regenerated.
361         * configure.in: Add i386-opc.lo for bfd_i386_arch.
362         * configure: Regenerated.
364         * i386-dis.c: Include "opcode/i386.h".
365         (MAXLEN): Renamed to MAX_MNEM_SIZE. Remove definition.
366         (FWAIT_OPCODE): Remove definition.
367         (UNIXWARE_COMPAT): Renamed to SYSV386_COMPAT. Remove definition.
368         (MAX_OPERANDS): Remove definition.
370         * i386-opc.c: New file.
371         * i386-opc.h: Likewise.
373 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
375         * Makefile.in: Regenerated.
377 2007-03-09  H.J. Lu  <hongjiu.lu@intel.com>
379         * i386-dis.c (OP_Rd): Renamed to ...
380         (OP_R): This.
381         (Rd): Updated.
382         (Rm): Likewise.
384 2007-03-08  Alan Modra  <amodra@bigpond.net.au>
386         * fr30-asm.c: Regenerate.
387         * frv-asm.c: Regenerate.
388         * ip2k-asm.c: Regenerate.
389         * iq2000-asm.c: Regenerate.
390         * m32c-asm.c: Regenerate.
391         * m32r-asm.c: Regenerate.
392         * m32r-dis.c: Regenerate.
393         * mt-asm.c: Regenerate.
394         * mt-ibld.c: Regenerate.
395         * mt-opc.c: Regenerate.
396         * openrisc-asm.c: Regenerate.
397         * xc16x-asm.c: Regenerate.
398         * xstormy16-asm.c: Regenerate.
400         * Makefile.am: Run "make dep-am".
401         * Makefile.in: Regenerate.
402         * po/POTFILES.in: Regenerate.
404 2007-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
406         * opcodes/s390-opc.c (INSTR_RRE_FR, INSTR_RRF_F0FF2, INSTR_RRF_F0FR,
407         INSTR_RRF_UUFF, INSTR_RRF_0UFF, INSTR_RRF_FFFU, INSTR_RRR_F0FF): New
408         instruction formats added.
409         (MASK_RRE_FR, MASK_RRF_F0FF2, MASK_RRF_F0FR, MASK_RRF_UUFF,
410         MASK_RRF_0UFF, MASK_RRF_FFFU, MASK_RRR_F0FF): New instruction format
411         masks added.
412         * opcodes/s390-opc.txt (lpdfr - tgxt): Decimal floating point
413         instructions added.
414         * opcodes/s390-mkopc.c (s390_opcode_cpu_val): S390_OPCODE_Z9_EC added.
415         (main): z9-ec cpu type option added.
416         * include/opcode/s390.h (s390_opcode_cpu_val): S390_OPCODE_Z9_EC added.
418 2007-02-22  DJ Delorie  <dj@redhat.com>
420         * s390-opc.c (INSTR_SS_L2RDRD): New.
421         (MASK_SS_L2RDRD): New.
422         * s390-opc.txt (pka): Use it.
424 2007-02-20  Thiemo Seufer  <ths@mips.com>
425             Chao-Ying Fu  <fu@mips.com>
427         * mips-dis.c (mips_arch_choices): Add DSP R2 support.
428         (print_insn_args): Add support for balign instruction.
429         * mips-opc.c (D33): New shortcut for DSP R2 instructions.
430         (mips_builtin_opcodes): Add DSP R2 instructions.
432 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
434         * s390-opc.c (INSTR_RRF_U0FR, MASK_RRF_U0FR): Removed.
435         (INSTR_RRF_U0RF, MASK_RRF_U0RF): Added.
436         * s390-opc.txt (cfxbr, cfdbr, cfebr, cgebr, cgdbr, cgxbr, cger, cgdr,
437         cgxr, cfxr, cfdr, cfer): Instruction type set to INSTR_RRF_U0RF.
439 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
441         * s390-opc.txt ("efpc", "sfpc"): Set to RRE_RR_OPT instruction type.
442         * s390-opc.c (s390_operands): Add RO_28 as optional gpr.
443         (INSTR_RRE_RR_OPT, MASK_RRE_RR_OPT): New instruction type for efpc
444         and sfpc.
446 2007-02-16  Nick Clifton  <nickc@redhat.com>
448         PR binutils/4045
449         * avr-dis.c (comment_start): New variable, contains the prefix to
450         use when printing addresses in comments.
451         (print_insn_avr): Set comment_start to an empty space if there is
452         no symbol table available as the generic address printing code
453         will prefix the numeric value of the address with 0x.
455 2007-02-13  H.J. Lu  <hongjiu.lu@intel.com>
457          * i386-dis.c: Updated to use an array of MAX_OPERANDS operands
458          in struct dis386.
460 2007-02-05  Dave Brolley  <brolley@redhat.com>
461             Richard Sandiford  <rsandifo@redhat.com>
462             DJ Delorie  <dj@redhat.com>
463             Graydon Hoare  <graydon@redhat.com>
464             Frank Ch. Eigler  <fche@redhat.com>
465             Ben Elliston  <bje@redhat.com>
467         * Makefile.am (HFILES): Add mep-desc.h mep-opc.h.
468         (CFILES): Add mep-*.c
469         (ALL_MACHINES): Add mep-*.lo.
470         (CLEANFILES): Add stamp-mep.
471         (CGEN_CPUS): Add mep.
472         (MEP_DEPS): New variable.
473         (mep-*): New targets.
474         * configure.in: Handle bfd_mep_arch.
475         * disassemble.c (ARCH_mep): New macro.
476         (disassembler): Handle bfd_arch_mep.
477         (disassemble_init_for_target): Likewise.
478         * mep-*: New files for Toshiba Media Processor (MeP).
479         * Makefile.in: Regenerated.
480         * configure: Regenerated.
482 2007-02-05  H.J. Lu  <hongjiu.lu@intel.com>
484         * i386-dis.c (OP_J): Undo the last change. Properly handle 64K
485         wrap around within the same segment in 16bit mode.
487 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
489         * i386-dis.c (OP_J): Mask to 16bit only if there is a data16
490         prefix.
492 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
494         * avr-dis.c (avr_operand): Correct PR number in comment.
496 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
498         * disassemble.c (disassembler_usage): Call
499         print_i386_disassembler_options for i386 disassembler.
501         * i386-dis.c (print_i386_disassembler_options): New.
502         (print_insn): Support the new addr64 option.
504 2007-02-02  Hiroki Kaminaga  <kaminaga@sm.sony.co.jp>
506         * ppc-dis.c (powerpc_dialect): Handle ppc440.
507         * ppc-dis.c (print_ppc_disassembler_options): Note the -M440 can
508         be used.
510 2007-02-02  Alan Modra  <amodra@bigpond.net.au>
512         * ppc-opc.c (insert_bdm): -Many comment.
513         (valid_bo): Add "extract" param.  Accept both powerpc and power4
514         BO fields when disassembling with -Many.
515         (insert_bo, extract_bo, insert_boe, extract_boe): Adjust valid_bo call.
517 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
519         * m68k-opc.c (m68k_opcodes): Replace cpu32 with
520         cpu32 | fido_a except on tbl instructions.
522 2007-01-04  Paul Brook  <paul@codesourcery.com>
524         * arm-dis.c (arm_opcodes): Fix cpsie and cpsid entries.
526 2007-01-04  Andreas Schwab  <schwab@suse.de>
528         * m68k-opc.c: Fix encoding of signed bit in the cpu32 tbls insns.
530 2007-01-04  Julian Brown  <julian@codesourcery.com>
532         * arm-dis.c (neon_opcode): Fix disassembly for vshl, vqshl, vrshl,
533         vqrshl instructions.
535 For older changes see ChangeLog-2006
537 Local Variables:
538 mode: change-log
539 left-margin: 8
540 fill-column: 74
541 version-control: never
542 End: