2007-05-04 H.J. Lu <hongjiu.lu@intel.com>
[binutils.git] / opcodes / ChangeLog
blob60eed94cb909e07d97cba0ca0f283115aba15ad6
1 2007-05-03  H.J. Lu  <hongjiu.lu@intel.com>
3         * i386-dis.c (CRC32_Fixup): Don't print suffix in Intel mode.
5         * i386-opc.c (i386_optab): Remove IgnoreSize and correct operand
6         type for crc32.
8 2007-05-01  H.J. Lu  <hongjiu.lu@intel.com>
10         * i386-dis.c (CRC32_Fixup): Properly handle Intel mode and
11         check data size prefix in 16bit mode.
13         * i386-opc.c (i386_optab): Default crc32 to non-8bit and
14         support Intel mode.
16 2007-04-30  Mark Salter  <msalter@redhat.com>
17         
18         * frv-desc.c: Regenerate.
19         * frv-desc.h: Regenerate.
20         
21 2007-04-30  Alan Modra  <amodra@bigpond.net.au>
23         PR 4436
24         * ppc-opc.c (powerpc_operands): Correct bitm for second entry of MBE.
26 2007-04-27  H.J. Lu  <hongjiu.lu@intel.com>
28         * i386-dis.c (modrm): Put reg before rm.
30 2007-04-26  H.J. Lu  <hongjiu.lu@intel.com>
32         PR binutils/4430
33         * i386-dis.c (print_displacement): New.
34         (OP_E): Call print_displacement instead of print_operand_value
35         to output displacement when either base or index exist.  Print
36         the explicit zero displacement in 16bit mode.
38 2007-04-26  H.J. Lu  <hongjiu.lu@intel.com>
40         PR binutils/4429
41         * i386-dis.c (print_insn): Also swap the order of op_riprel
42         when swapping op_index.  Break when the RIP relative address
43         is printed.
44         (OP_E): Properly handle RIP relative addressing and print the
45         explicit zero displacement for Intel mode.
47 2007-04-27  Alan Modra  <amodra@bigpond.net.au>
49         * Makefile.am: Run "make dep-am".
50         * Makefile.in: Regenerate.
51         * ns32k-dis.c: Include sysdep.h first.
53 2007-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
55         * opcodes/s390-opc.c (MASK_SSF_RRDRD): Fourth nybble belongs to the
56         opcode.
57         * opcodes/s390-opc.txt (pfpo, ectg, csst): Add new z9-ec instructions.
59 2007-04-24  Nick Clifton  <nickc@redhat.com>
61         * arm-dis.c (print_insn): Initialise type.
63 2007-04-24  Alan Modra  <amodra@bigpond.net.au>
65         * cgen-types.h: Include bfd_stdint.h, not stdint.h.
66         * Makefile.am: Run "make dep-am".
67         * Makefile.in: Regenerate.
69 2007-04-23  Nathan Sidwell  <nathan@codesourcery.com>
71         * m68k-opc.c: Mark mcfisa_c instructions.
73 2007-04-21  Richard Earnshaw  <rearnsha@arm.com>
75         * arm-dis.c (arm_opcodes): Disassemble to unified syntax.
76         (thumb_opcodes): Add missing white space in adr.
77         (arm_decode_shift): New parameter, print_shift.  Only decode the 
78         shift parameter if set.  Adjust callers.
79         (print_insn_arm): Support for operand type q with no shift decode.
81 2007-04-21  Alan Modra  <amodra@bigpond.net.au>
83         * i386-opc.c (i386_float_regtab, i386_float_regtab_size): Delete.
84         Move contents to..
85         (i386_regtab): ..here.
86         * i386-opc.h (i386_float_regtab, i386_float_regtab_size): Delete.
88         * ppc-opc.c (powerpc_operands): Delete duplicate entries.
89         (BA_MASK, FXM_MASK, STRM_MASK, VA_MASK, VB_MASK, VC_MASK): Delete.
90         (VD_MASK, WS_MASK, MTMSRD_L, XRT_L): Delete.
91         (powerpc_opcodes): Replace uses of MTMSRD_L and XRT_L.
93 2007-04-20  Nathan Sidwell  <nathan@codesourcery.com>
95         * m68k-dis.c (print_insn_arg): Show c04 as rambar0 and c05 as
96         rambar1.
98 2007-04-20  Alan Modra  <amodra@bigpond.net.au>
100         * ppc-dis.c (print_insn_powerpc): Adjust for struct powerpc_operand
101         change.
102         * ppc-opc.c (powerpc_operands): Replace bit count with bit mask
103         in all entries.  Add PPC_OPERAND_SIGNED to DE entry.  Remove
104         references to following deleted functions.
105         (insert_bd, extract_bd, insert_dq, extract_dq): Delete.
106         (insert_ds, extract_ds, insert_de, extract_de): Delete.
107         (insert_des, extract_des, insert_li, extract_li): Delete.
108         (insert_nb, insert_rsq, insert_rtq, insert_ev2, extract_ev2): Delete.
109         (insert_ev4, extract_ev4, insert_ev8, extract_ev8): Delete.
110         (num_powerpc_operands): New constant.
111         (XSPRG_MASK): Remove entire SPRG field.
112         (powerpc_opcodes <bcctre, bcctrel>): Use XLBB_MASK not XLYBB_MASK.
114 2007-04-20  Alan Modra  <amodra@bigpond.net.au>
116         * ppc-opc.c (DCM, DGM, TE, RMC, R, SP, S): Correct shift.
117         (Z2_MASK): Define.
118         (powerpc_opcodes): Use Z2_MASK in all insns taking RMC operand.
120 2007-04-20  Richard Earnshaw  <rearnsha@arm.com>
122         * arm-dis.c (print_insn): Only look for a mapping symbol in the section
123         being disassembled.
125 2007-04-19  Alan Modra  <amodra@bigpond.net.au>
127         * Makefile.am: Run "make dep-am".
128         * Makefile.in: Regenerate.
129         * po/POTFILES.in: Regenerate.
131 2007-04-19  Alan Modra  <amodra@bigpond.net.au>
133         * ppc-opc.c (powerpc_opcodes): Add cctpl, cctpm, cctph, db8cyc,
134         db10cyc, db12cyc, db16cyc.
136 2007-04-19  Nathan Froyd <froydnj@codesourcery.com>
138         * ppc-opc.c (powerpc_opcodes): Recognize three-operand tlbsxe.
140 2007-04-18  H.J. Lu <hongjiu.lu@intel.com>
142         * i386-dis.c (CRC32_Fixup): New.
143         (PREGRP85, PREGRP86, PREGRP87, PREGRP88, PREGRP89, PREGRP90,
144          PREGRP91): New.
145         (threebyte_0x38_uses_DATA_prefix): Updated for SSE4.2.
146         (threebyte_0x3a_uses_DATA_prefix): Likewise.
147         (prefix_user_table): Add PREGRP85, PREGRP86, PREGRP87,
148         PREGRP88, PREGRP89, PREGRP90 and PREGRP91.
149         (three_byte_table): Likewise.
151         * i386-opc.c (i386_optab): Add SSE4.2 opcodes.
153         * i386-opc.h (CpuSSE4_2): New.
154         (CpuSSE4): Likewise.
155         (CpuUnknownFlags): Add CpuSSE4_2.
157 2007-04-18  H.J. Lu <hongjiu.lu@intel.com>
159         * i386-dis.c (XMM_Fixup): New.
160         (Edqb): New.
161         (Edqd): New.
162         (XMM0): New.
163         (dqb_mode): New.
164         (dqd_mode): New.
165         (PREGRP39 ... PREGRP85): New.
166         (threebyte_0x38_uses_DATA_prefix): Updated for SSE4.
167         (threebyte_0x3a_uses_DATA_prefix): Likewise.
168         (prefix_user_table): Add PREGRP39 ... PREGRP85.
169         (three_byte_table): Likewise.
170         (putop): Handle 'K'.
171         (intel_operand_size): Handle dqb_mode, dqd_mode):
172         (OP_E): Likewise.
173         (OP_G): Likewise.
175         * i386-opc.c (i386_optab): Add SSE4.1 opcodes.
177         * i386-opc.h (CpuSSE4_1): New.
178         (CpuUnknownFlags): Add CpuSSE4_1.
179         (regKludge): Update comment.
181 2007-04-18  Matthias Klose  <doko@ubuntu.com>
183         * Makefile.am (libopcodes_la_LDFLAGS): Use bfd soversion.
184         * Makefile.in: Regenerate.
186 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
188         * Makefile.am: Add ACLOCAL_AMFLAGS.
189         * Makefile.in: Regenerate.
191 2007-04-13  H.J. Lu  <hongjiu.lu@intel.com>
193         * i386-dis.c: Remove trailing white spaces.
194         * i386-opc.c: Likewise.
195         * i386-opc.h: Likewise.
197 2007-04-11  H.J. Lu  <hongjiu.lu@intel.com>
199         PR binutils/4333
200         * i386-dis.c (GRP1a): New.
201         (GRP1b ... GRPPADLCK2): Update index.
202         (dis386): Use GRP1a for entry 0x8f.
203         (mod, rm, reg): Removed. Replaced by ...
204         (modrm): This.
205         (grps): Add GRP1a.
207 2007-04-09  Kazu Hirata  <kazu@codesourcery.com>
209         * m68k-dis.c (print_insn_m68k): Restore info->fprintf_func and
210         info->print_address_func if longjmp is called.
212 2007-03-29  DJ Delorie  <dj@redhat.com>
214         * m32c-desc.c: Regenerate.
215         * m32c-dis.c: Regenerate.
216         * m32c-opc.c: Regenerate.
218 2007-03-28  H.J. Lu  <hongjiu.lu@intel.com>
220         * i386-opc.c (i386_optab): Change InvMem to RegMem for mov and
221         movq.  Remove InvMem from sldt, smsw and str.
223         * i386-opc.h (InvMem): Renamed to ...
224         (RegMem): Update comments.
225         (AnyMem): Remove InvMem.
227 2007-03-27  Paul Brook  <paul@codesourcery.com>
229         * arm-dis.c (thumb_opcodes): Add entry for undefined insns (0xbe??).
231 2007-03-24  Paul Brook  <paul@codesourcery.com>
233         * arm-dis.c (coprocessor_opcodes): Remove superfluous 0x.
234         (print_insn_coprocessor): Handle %<bitfield>x.
236 2007-03-24  Paul Brook  <paul@codesourcery.com>
237             Mark Shinwell  <shinwell@codesourcery.com>
239         * arm-dis.c (arm_opcodes): Print SRS base register.
241 2007-03-23  H.J. Lu  <hongjiu.lu@intel.com>
243         * i386-dis.c (prefix_name): Replace rex64XYZ with rex.WRXB.
245         * i386-opc.c (i386_optab): Add rex.wrxb.
247 2007-03-21  H.J. Lu  <hongjiu.lu@intel.com>
249         * i386-dis.c (REX_MODE64): Remove definition.
250         (REX_EXTX): Likewise.
251         (REX_EXTY): Likewise.
252         (REX_EXTZ): Likewise.
253         (USED_REX): Use REX_OPCODE instead of 0x40.
254         Replace REX_MODE64, REX_EXTX, REX_EXTY and REX_EXTZ with REX_W,
255         REX_R, REX_X and REX_B respectively.
257 2007-03-21  H.J. Lu  <hongjiu.lu@intel.com>
259         PR binutils/4218
260         * i386-dis.c (PREGRP38): New.
261         (dis386): Use PREGRP38 for 0x90.
262         (prefix_user_table): Add PREGRP38.
263         (print_insn): Set uses_REPZ_prefix to 1 for pause.
264         (NOP_Fixup1): Properly handle REX bits.
265         (NOP_Fixup2): Likewise.
267         * i386-opc.c (i386_optab): Allow %eax with xchg in 64bit.
268         Allow register with nop.
270 2007-03-20  DJ Delorie  <dj@redhat.com>
272         * m32c-asm.c: Regenerate.
273         * m32c-desc.c: Regenerate.
274         * m32c-desc.h: Regenerate.
275         * m32c-dis.h: Regenerate.
276         * m32c-ibld.c: Regenerate.
277         * m32c-opc.c: Regenerate.
278         * m32c-opc.h: Regenerate.
280 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
282         * i386-opc.c: Include "libiberty.h".
283         (i386_regtab): Remove the last entry.
284         (i386_regtab_size): New.
285         (i386_float_regtab_size): Likewise.
287         * i386-opc.h (i386_regtab_size): New.
288         (i386_float_regtab_size): Likewise.
290 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
292         * Makefile.am (CFILES): Add i386-opc.c.
293         (ALL_MACHINES): Add i386-opc.lo.
294         Run "make dep-am".
295         * Makefile.in: Regenerated.
297         * configure.in: Add i386-opc.lo for bfd_i386_arch.
298         * configure: Regenerated.
300         * i386-dis.c: Include "opcode/i386.h".
301         (MAXLEN): Renamed to MAX_MNEM_SIZE. Remove definition.
302         (FWAIT_OPCODE): Remove definition.
303         (UNIXWARE_COMPAT): Renamed to SYSV386_COMPAT. Remove definition.
304         (MAX_OPERANDS): Remove definition.
306         * i386-opc.c: New file.
307         * i386-opc.h: Likewise.
309 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
311         * Makefile.in: Regenerated.
313 2007-03-09  H.J. Lu  <hongjiu.lu@intel.com>
315         * i386-dis.c (OP_Rd): Renamed to ...
316         (OP_R): This.
317         (Rd): Updated.
318         (Rm): Likewise.
320 2007-03-08  Alan Modra  <amodra@bigpond.net.au>
322         * fr30-asm.c: Regenerate.
323         * frv-asm.c: Regenerate.
324         * ip2k-asm.c: Regenerate.
325         * iq2000-asm.c: Regenerate.
326         * m32c-asm.c: Regenerate.
327         * m32r-asm.c: Regenerate.
328         * m32r-dis.c: Regenerate.
329         * mt-asm.c: Regenerate.
330         * mt-ibld.c: Regenerate.
331         * mt-opc.c: Regenerate.
332         * openrisc-asm.c: Regenerate.
333         * xc16x-asm.c: Regenerate.
334         * xstormy16-asm.c: Regenerate.
336         * Makefile.am: Run "make dep-am".
337         * Makefile.in: Regenerate.
338         * po/POTFILES.in: Regenerate.
340 2007-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
342         * opcodes/s390-opc.c (INSTR_RRE_FR, INSTR_RRF_F0FF2, INSTR_RRF_F0FR,
343         INSTR_RRF_UUFF, INSTR_RRF_0UFF, INSTR_RRF_FFFU, INSTR_RRR_F0FF): New
344         instruction formats added.
345         (MASK_RRE_FR, MASK_RRF_F0FF2, MASK_RRF_F0FR, MASK_RRF_UUFF,
346         MASK_RRF_0UFF, MASK_RRF_FFFU, MASK_RRR_F0FF): New instruction format
347         masks added.
348         * opcodes/s390-opc.txt (lpdfr - tgxt): Decimal floating point
349         instructions added.
350         * opcodes/s390-mkopc.c (s390_opcode_cpu_val): S390_OPCODE_Z9_EC added.
351         (main): z9-ec cpu type option added.
352         * include/opcode/s390.h (s390_opcode_cpu_val): S390_OPCODE_Z9_EC added.
354 2007-02-22  DJ Delorie  <dj@redhat.com>
356         * s390-opc.c (INSTR_SS_L2RDRD): New.
357         (MASK_SS_L2RDRD): New.
358         * s390-opc.txt (pka): Use it.
360 2007-02-20  Thiemo Seufer  <ths@mips.com>
361             Chao-Ying Fu  <fu@mips.com>
363         * mips-dis.c (mips_arch_choices): Add DSP R2 support.
364         (print_insn_args): Add support for balign instruction.
365         * mips-opc.c (D33): New shortcut for DSP R2 instructions.
366         (mips_builtin_opcodes): Add DSP R2 instructions.
368 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
370         * s390-opc.c (INSTR_RRF_U0FR, MASK_RRF_U0FR): Removed.
371         (INSTR_RRF_U0RF, MASK_RRF_U0RF): Added.
372         * s390-opc.txt (cfxbr, cfdbr, cfebr, cgebr, cgdbr, cgxbr, cger, cgdr,
373         cgxr, cfxr, cfdr, cfer): Instruction type set to INSTR_RRF_U0RF.
375 2007-02-19  Andreas Krebbel  <krebbel1@de.ibm.com>
377         * s390-opc.txt ("efpc", "sfpc"): Set to RRE_RR_OPT instruction type.
378         * s390-opc.c (s390_operands): Add RO_28 as optional gpr.
379         (INSTR_RRE_RR_OPT, MASK_RRE_RR_OPT): New instruction type for efpc
380         and sfpc.
382 2007-02-16  Nick Clifton  <nickc@redhat.com>
384         PR binutils/4045
385         * avr-dis.c (comment_start): New variable, contains the prefix to
386         use when printing addresses in comments.
387         (print_insn_avr): Set comment_start to an empty space if there is
388         no symbol table available as the generic address printing code
389         will prefix the numeric value of the address with 0x.
391 2007-02-13  H.J. Lu  <hongjiu.lu@intel.com>
393          * i386-dis.c: Updated to use an array of MAX_OPERANDS operands
394          in struct dis386.
396 2007-02-05  Dave Brolley  <brolley@redhat.com>
397             Richard Sandiford  <rsandifo@redhat.com>
398             DJ Delorie  <dj@redhat.com>
399             Graydon Hoare  <graydon@redhat.com>
400             Frank Ch. Eigler  <fche@redhat.com>
401             Ben Elliston  <bje@redhat.com>
403         * Makefile.am (HFILES): Add mep-desc.h mep-opc.h.
404         (CFILES): Add mep-*.c
405         (ALL_MACHINES): Add mep-*.lo.
406         (CLEANFILES): Add stamp-mep.
407         (CGEN_CPUS): Add mep.
408         (MEP_DEPS): New variable.
409         (mep-*): New targets.
410         * configure.in: Handle bfd_mep_arch.
411         * disassemble.c (ARCH_mep): New macro.
412         (disassembler): Handle bfd_arch_mep.
413         (disassemble_init_for_target): Likewise.
414         * mep-*: New files for Toshiba Media Processor (MeP).
415         * Makefile.in: Regenerated.
416         * configure: Regenerated.
418 2007-02-05  H.J. Lu  <hongjiu.lu@intel.com>
420         * i386-dis.c (OP_J): Undo the last change. Properly handle 64K
421         wrap around within the same segment in 16bit mode.
423 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
425         * i386-dis.c (OP_J): Mask to 16bit only if there is a data16
426         prefix.
428 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
430         * avr-dis.c (avr_operand): Correct PR number in comment.
432 2007-02-02  H.J. Lu  <hongjiu.lu@intel.com>
434         * disassemble.c (disassembler_usage): Call
435         print_i386_disassembler_options for i386 disassembler.
437         * i386-dis.c (print_i386_disassembler_options): New.
438         (print_insn): Support the new addr64 option.
440 2007-02-02  Hiroki Kaminaga  <kaminaga@sm.sony.co.jp>
442         * ppc-dis.c (powerpc_dialect): Handle ppc440.
443         * ppc-dis.c (print_ppc_disassembler_options): Note the -M440 can
444         be used.
446 2007-02-02  Alan Modra  <amodra@bigpond.net.au>
448         * ppc-opc.c (insert_bdm): -Many comment.
449         (valid_bo): Add "extract" param.  Accept both powerpc and power4
450         BO fields when disassembling with -Many.
451         (insert_bo, extract_bo, insert_boe, extract_boe): Adjust valid_bo call.
453 2007-01-08  Kazu Hirata  <kazu@codesourcery.com>
455         * m68k-opc.c (m68k_opcodes): Replace cpu32 with
456         cpu32 | fido_a except on tbl instructions.
458 2007-01-04  Paul Brook  <paul@codesourcery.com>
460         * arm-dis.c (arm_opcodes): Fix cpsie and cpsid entries.
462 2007-01-04  Andreas Schwab  <schwab@suse.de>
464         * m68k-opc.c: Fix encoding of signed bit in the cpu32 tbls insns.
466 2007-01-04  Julian Brown  <julian@codesourcery.com>
468         * arm-dis.c (neon_opcode): Fix disassembly for vshl, vqshl, vrshl,
469         vqrshl instructions.
471 For older changes see ChangeLog-2006
473 Local Variables:
474 mode: change-log
475 left-margin: 8
476 fill-column: 74
477 version-control: never
478 End: