3 * i386.h (i386_optab): Fix 64bit pushf template; Add instructions
8 * i386.h (i386_optab): Add "rex*" instructions;
9 add swapgs; disable jmp/call far direct instructions for
10 64bit mode; add syscall and sysret; disable registers for 0xc6
11 template. Add 'q' suffixes to extendable instructions, disable
12 obsoletted instructions, add new sign/zero extension ones.
13 (i386_regtab): Add extended registers.
15 (q_Suf, wlq_Suf, bwlq_Suf): New.
19 * i386.h (i386_optab): Replace "Imm" with "EncImm".
20 (i386_regtab): Add flags field.
24 * mips.h: Fix formatting.
28 mips.h (OP_MASK_SYSCALL, OP_SH_SYSCALL): Delete.
29 (OP_MASK_CODE20, OP_SH_CODE20): Define, with values of old
30 OP_*_SYSCALL definitions.
31 (OP_SH_CODE19, OP_MASK_CODE19): Define, for use as
33 (MIPS operand specifier comments): Remove 'm', add 'U' and
34 'J', and update the meaning of 'B' so that it's more general.
36 * mips.h (INSN_ISA1, INSN_ISA2, INSN_ISA3, INSN_ISA4,
37 INSN_ISA5): Renumber, redefine to mean the ISA at which the
38 instruction was added.
39 (INSN_ISA32): New constant.
40 (INSN_4650, INSN_4010, INSN_4100, INSN_3900, INSN_GP32):
41 Renumber to avoid new and/or renumbered INSN_* constants.
42 (INSN_MIPS32): Delete.
43 (ISA_UNKNOWN): New constant to indicate unknown ISA.
44 (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4, ISA_MIPS5,
45 ISA_MIPS32): New constants, defined to be the mask of INSN_*
46 constants available at that ISA level.
47 (CPU_UNKNOWN): New constant to indicate unknown CPU.
48 (CPU_4K, CPU_MIPS32_4K): Rename the former to the latter,
49 define it with a unique value.
50 (OPCODE_IS_MEMBER): Update for new ISA membership-related
53 * mips.h (INSN_ISA64, ISA_MIPS5, ISA_MIPS64): New
56 * mips.h (CPU_SB1): New constant.
60 * sparc.h (enum sparc_opcode_arch_val): Add SPARC_OPCODE_ARCH_V9B.
61 Note that '3' is used for siam operand.
65 * ia64.h (enum ia64_dependency_semantics): Add IA64_DVS_STOP.
69 * mips.h: Use defines instead of hard-coded processor numbers.
70 (CPU_R2000, CPU_R3000, CPU_R3900, CPU_R4000, CPU_R4010,
71 CPU_VR4100, CPU_R4111, CPU_R4300, CPU_R4400, CPU_R4600, CPU_R4650,
72 CPU_R5000, CPU_R6000, CPU_R8000, CPU_R10000, CPU_MIPS32, CPU_4K,
73 CPU_4KC, CPU_4KM, CPU_4KP): Define..
74 (OPCODE_IS_MEMBER): Use new defines.
75 (OP_MASK_SEL, OP_SH_SEL): Define.
76 (OP_MASK_CODE20, OP_SH_CODE20): Define.
77 Add 'P' to used characters.
78 Use 'H' for coprocessor select field.
79 Use 'm' for 20 bit breakpoint code.
80 Document new arg characters and add to used characters.
81 (INSN_MIPS32): New define for MIPS32 extensions.
82 (OPCODE_IS_MEMBER): Recognize MIPS32 instructions.
86 * hppa.h: Mention cz completer.
90 * ia64.h (IA64_OPCODE_POSTINC): New.
94 * i386.h: Swap the Intel syntax "movsx"/"movzx" due to the
99 * avr.h (AVR_UNDEF_P, AVR_SKIP_P, AVR_DISP0_P): New macros.
100 Move related opcodes closer to each other.
101 Minor changes in comments, list undefined opcodes.
105 * cgen.h (cgen_hw_lookup_by_num): Second parameter is unsigned.
113 * avr.h (AVR_ISA_WRAP): Remove, now assumed if not AVR_ISA_MEGA.
114 (AVR_ISA_ESPM): Remove, because ESPM removed in databook update.
115 (AVR_ISA_85xx): Remove, all uses changed back to AVR_ISA_2xxx.
116 (AVR_ISA_M83): Define for ATmega83, ATmega85.
117 (espm): Remove, because ESPM removed in databook update.
118 (eicall, eijmp): Move to the end of opcode table.
122 * m68hc11.h: New file for support of Motorola 68hc11.
126 * avr.h: clr,lsl,rol, ... moved after add,adc, ...
130 * avr.h: New file with AVR opcodes.
134 * d10v.h: added ALONE attribute for d10v_opcode.exec_type.
138 * i386.h: Allow d suffix on iret, and add DefaultSize modifier.
142 * i386.h: Use sl_FP, not sl_Suf for fild.
146 * cgen.h (CGEN_MAX_SYNTAX_BYTES): Increase to 32. Check that
147 it exceeds CGEN_ACTUAL_MAX_SYNTAX_BYTES, if set.
148 (CGEN_MAX_IFMT_OPERANDS): Increase to 16. Check that it exceeds
149 CGEN_ACTUAL_MAX_IFMT_OPERANDS, if set.
153 * i386.h (i386_optab): Cpu686 for sysenter,sysexit,fxsave,fxrestore.
158 * i386.h (i386_optab): Add cpu_flags for all instructions.
163 * i386.h (wld_Suf): Define. Use on pushf, popf, pusha, popa.
171 * ppc.h (PPC_OPCODE_ALTIVEC): New opcode flag for vector unit.
172 (PPC_OPERAND_VR): New operand flag for vector registers.
176 * h8300.h (EOP): Add missing initializer.
180 * hppa.h (pa_opcodes): New opcodes for PA2.0 wide mode
181 forms of ld/st{b,h,w,d} and fld/fst{w,d} (16-bit displacements).
182 New operand types l,y,&,fe,fE,fx added to support above forms.
183 (pa_opcodes): Replaced usage of 'x' as source/target for
184 floating point double-word loads/stores with 'fx'.
195 * d30v.h (SHORT_A1): Fix value.
196 (SHORT_AR): Renumber so that it is at the end of the list of short
197 instructions, not the end of the list of long instructions.
201 * i386.h: (UNIXWARE_COMPAT): Rename to SYSV386_COMPAT as the
202 problem isn't really specific to Unixware.
203 (OLDGCC_COMPAT): Define.
204 (i386_optab): If !OLDGCC_COMPAT, don't handle fsubp etc. with
206 Fix lots of comments.
211 (SHORT_B2r, SHORT_B3, SHORT_B3r, SHORT_B3b, SHORT_B3br): Updated.
212 (SHORT_D1r, SHORT_D2, SHORT_D2r, SHORT_D2Br, SHORT_U): Updated.
213 (SHORT_F, SHORT_AF, SHORT_T, SHORT_A5, SHORT_CMP, SHORT_CMPU): Updated.
214 (SHORT_A1, SHORT_AA, SHORT_RA, SHORT_MODINC, SHORT_MODDEC): Updated.
215 (SHORT_C1, SHORT_C2, SHORT_UF, SHORT_A2, SHORT_NONE, LONG): Updated.
216 (LONG_U, LONG_Ur, LONG_CMP, LONG_M, LONG_M2, LONG_2, LONG_2r): Updated.
217 (LONG_2b, LONG_2br, LONG_D, LONG_Dr, LONG_Dbr): Updated.
221 * i386.h (fild, fistp): Change intel d_Suf form to fildd and
222 fistpd without suffix.
226 * cgen.h (cgen_cpu_desc): Rename field 'flags' to
227 'signed_overflow_ok_p'.
228 Delete prototypes for cgen_set_flags() and cgen_get_flags().
232 * cgen.h (CGEN_INSN_MACH_HAS_P): New macro.
233 (CGEN_CPU_TABLE): flags: new field.
234 Add prototypes for new functions.
238 * i386.h: Add some more UNIXWARE_COMPAT comments.
246 * mips.h: (OPCODE_IS_MEMBER): Add comment.
250 * mips.h (OPCODE_IS_MEMBER): Add gp32 arg, which determines
251 whether synthetic opcodes (e.g. move) generate 32-bit or 64-bit
256 * i386.h: Qualify intel mode far call and jmp with x_Suf.
260 * i386.h: Add JumpAbsolute qualifier to all non-intel mode
261 indirect jumps and calls. Add FF/3 call for intel mode.
265 * mn10300.h: Add new operand types. Add new instruction formats.
269 * hppa.h (pa_opcodes): Correctly handle immediate for PA2.0 "bb"
274 * mips.h (INSN_ISA5): New.
278 * mips.h (OPCODE_IS_MEMBER): New.
282 * d30v.h (SHORT_AR): Define.
286 * alpha.h (alpha_num_opcodes): Convert to unsigned.
287 (alpha_num_operands): Ditto.
291 * hppa.h (pa_opcodes): Add load and store cache control to
292 instructions. Add ordered access load and store.
294 * hppa.h (pa_opcode): Add new entries for addb and addib.
296 * hppa.h (pa_opcodes): Fix cmpb and cmpib entries.
298 * hppa.h (pa_opcodes): Add entries for cmpb and cmpib.
302 * d10v.h: Add flag RESTRICTED_NUM3 for imm3 operands.
306 * hppa.h (pa_opcodes): Add "call" and "ret". Clean up "b", "bve"
307 and "be" using completer prefixes.
309 * hppa.h (pa_opcodes): Add initializers to silence compiler.
311 * hppa.h: Update comments about character usage.
315 * hppa.h (pa_opcodes): Fix minor thinkos introduced while cleaning
316 up the new fstw & bve instructions.
320 * hppa.h (pa_opcodes): Add remaining PA2.0 integer load/store
323 * hppa.h (pa_opcodes): Add remaining PA2.0 FP load/store instructions.
325 * hppa.h (pa_opcodes): Add long offset double word load/store
328 * hppa.h (pa_opcodes): Add FLAG_STRICT variants of FP loads and
331 * hppa.h (pa_opcodes): Handle PA2.0 fcnv, fcmp and ftest insns.
333 * hppa.h (pa_opcodes): Finish support for PA2.0 "b" instructions.
335 * hppa.h (pa_opcodes): Handle PA2.0 "bve" instructions.
337 * hppa.h (pa_opcodes): Add new syntax "be" instructions.
339 * hppa.h (pa_opcodes): Note use of 'M' and 'L'.
341 * hppa.h (pa_opcodes): Add support for "b,l".
343 * hppa.h (pa_opcodes): Add support for "b,gate".
347 * hppa.h (pa_opcodes): Use 'fX' for first register operand
350 * hppa.h (pa_opcodes): Fix mask for probe and probei.
352 * hppa.h (pa_opcodes): Fix mask for depwi.
356 * hppa.h (pa_opcodes): Add "addil" variant which has the %r1 as
357 an explicit output argument.
361 * hppa.h: Add strict variants of PA1.0/PA1.1 loads and stores.
362 Add a few PA2.0 loads and store variants.
370 * i386.h (i386_regtab): Move %st to top of table, and split off
371 other fp reg entries.
372 (i386_float_regtab): To here.
376 * hppa.h (pa_opcodes): Replace 'f' by 'v'. Prefix float register args
379 * hppa.h (pa_opcodes): Add extrd, extrw, depd, depdi, depw, depwi.
382 * hppa.h: Document new completers and args.
383 * hppa.h (pa_opcodes): Add 64 bit patterns and pa2.0 syntax for uxor,
384 uaddcm, dcor, addi, add, sub, subi, shladd, rfi, and probe. Add pa2.0
385 extensions for ssm, rsm, pdtlb, pitlb. Add performance instructions
388 * hppa.h (pa_opcodes): Add pa2.0 instructions hadd, hshl,
389 hshr, hsub, mixh, mixw, permh.
391 * hppa.h (pa_opcodes): Change completers in instructions to
394 * hppa.h (pa_opcodes): Add popbts, new forms of bb, havg,
395 hshladd, hshradd, shrpd, and shrpw instructions. Update arg comments.
397 * hppa.h (pa_opcodes): Change fmpyfadd, fmpynfadd, fneg,
398 fnegabs to use 'I' instead of 'F'.
402 * i386.h: Add AMD athlon instructions, pfnacc, pfpnacc, pswapd.
403 Document pf2iw and pi2fw as athlon insns. Remove pswapw.
404 Alphabetically sort PIII insns.
408 * cgen.h (CGEN_INSN_MACH_HAS_P): New macro.
412 * hppa.h (pa_opcodes): Add 64 bit versions of or, xor, and,
413 and andcm. Add 32 and 64 bit version of cmpclr, cmpiclr.
415 * hppa.h: Document 64 bit condition completers.
419 * hppa.h (pa_opcodes): Change condition args to use '?' prefix.
423 * i386.h (i386_optab): Add DefaultSize modifier to all insns
424 that implicitly modify %esp. #undef d_Suf, x_suf, sld_suf,
425 sldx_suf, bwld_Suf, d_FP, x_FP, sld_FP, sldx_FP at end of table.
430 * hppa.h (pa_opcodes): Add "pushnom" and "pushbts".
432 * hppa.h (pa_opcodes): Mark all PA2.0 opcodes with FLAG_STRICT.
434 * hppa.h (pa_opcodes): Change xmpyu, fmpyfadd,
435 and fmpynfadd to use 'J' and 'K' instead of 'E' and 'X'.
439 * i386.h: Add "undocumented" AMD 3DNow! pf2iw, pi2fw, pswapw insns.
443 * hppa.h (struct pa_opcode): Add new field "flags".
444 (FLAGS_STRICT): Define.
449 * hppa.h (pa_opcodes): Add pa2.0 clrbts instruction.
451 * hppa.h (pa_opcodes): Add entries for mfia and mtsarcm instructions.
455 * i386.h: Allow `l' suffix on bswap. Allow `w' suffix on arpl,
456 lldt, lmsw, ltr, str, verr, verw. Add FP flag to fcmov*. Add FP
457 flag to fcomi and friends.
461 * hppa.h (pa_opcodes): Move integer arithmetic instructions after
462 integer logical instructions.
466 * m68k.h: Document new formats `E', `G', `H' and new places `N',
469 * m68k.h: Define mcf5206e, mcf5307, mcf. Document new format `u'
470 and new places `m', `M', `h'.
474 * hppa.h (pa_opcodes): Add several processor specific system
479 * hppa.h (pa_opcodes): Add second entry for "comb", "comib",
480 "addb", and "addib" to be used by the disassembler.
484 * i386.h (ReverseModrm): Remove all occurences.
485 (InvMem): Add to control/debug/test mov insns, movhlps, movlhps,
486 movmskps, pextrw, pmovmskb, maskmovq.
487 Change NoSuf to FP on all MMX, XMM and AMD insns as these all
488 ignore the data size prefix.
490 * i386.h (i386_optab, i386_regtab): Add support for PIII SIMD.
495 * ppc.h (PPC_OPCODE_64_BRIDGE): New.
499 * cgen.h (CGEN_ATTR): Delete member num_nonbools.
500 (CGEN_ATTR_TYPE): Update.
501 (CGEN_ATTR_MASK): Number booleans starting at 0.
502 (CGEN_ATTR_VALUE): Update.
503 (CGEN_INSN_ATTR): Update.
507 * hppa.h (fmpyfadd, fmpynfadd, fneg, fnegabs): New PA2.0
512 * hppa.h (bb, bvb): Tweak opcode/mask.
517 * cgen.h (CGEN_ISA,CGEN_MACH): New typedefs.
518 (struct cgen_cpu_desc): Rename member mach to machs. New member isas.
519 New members word_bitsize,default_insn_bitsize,base_insn-bitsize,
520 min_insn_bitsize,max_insn_bitsize,isa_table,mach_table,rebuild_tables.
521 Delete member max_insn_size.
522 (enum cgen_cpu_open_arg): New enum.
523 (cpu_open): Update prototype.
524 (cpu_open_1): Declare.
525 (cgen_set_cpu): Delete.
529 * cgen.h (CGEN_HW_TABLE): Delete `num_init_entries' member.
530 (CGEN_OPERAND_NIL): New macro.
531 (CGEN_OPERAND): New member `type'.
532 (@arch@_cgen_operand_table): Delete decl.
533 (CGEN_OPERAND_INDEX,CGEN_OPERAND_TYPE,CGEN_OPERAND_ENTRY): Delete.
534 (CGEN_OPERAND_TABLE): New struct.
535 (cgen_operand_lookup_by_name,cgen_operand_lookup_by_num): Declare.
536 (CGEN_OPINST): Pointer to operand table entry replaced with enum.
537 (CGEN_CPU_TABLE): New member `isa'. Change member `operand_table',
538 now a CGEN_OPERAND_TABLE. Add CGEN_CPU_DESC arg to
539 {get,set}_{int,vma}_operand.
540 (@arch@_cgen_cpu_open): New arg `isa'.
541 (cgen_set_cpu): Ditto.
545 * i386.h: Fill in cmov and fcmov alternates. Add fcomi short forms.
549 * cgen.h (enum cgen_asm_type): Add CGEN_ASM_NONE.
550 (CGEN_HW_ENTRY): Delete member `next'. Change type of `type' to
552 (CGEN_HW_TABLE): New struct.
553 (hw_table): Delete declaration.
554 (CGEN_OPERAND): Change member hw to hw_type, change type from pointer
555 to table entry to enum.
556 (CGEN_OPINST): Ditto.
557 (CGEN_CPU_TABLE): Change member hw_list to hw_table.
561 * alpha.h (AXP_OPCODE_EV6): New.
562 (AXP_OPCODE_NOPAL): Include it.
566 * cgen.h (CGEN_CPU_DESC): Renamed from CGEN_OPCODE_DESC.
567 All uses updated. New members int_insn_p, max_insn_size,
568 parse_operand,insert_operand,extract_operand,print_operand,
569 sizeof_fields,set_fields_bitsize,get_int_operand,set_int_operand,
570 get_vma_operand,set_vma_operand,parse_handlers,insert_handlers,
571 extract_handlers,print_handlers.
572 (CGEN_ATTR): Change type of num_nonbools to unsigned int.
573 (CGEN_ATTR_BOOL_OFFSET): New macro.
574 (CGEN_ATTR_MASK): Subtract it to compute bit number.
575 (CGEN_ATTR_VALUE): Redo bool/nonbool attr calculation.
576 (cgen_opcode_handler): Renamed from cgen_base.
577 (CGEN_HW_ATTR_VALUE): Renamed from CGEN_HW_ATTR, all uses updated.
578 (CGEN_OPERAND_ATTR_VALUE): Renamed from CGEN_OPERAND_ATTR,
580 (CGEN_OPERAND_INDEX): Rewrite to use table entry, not global.
581 (enum cgen_opinst_type): Renamed from cgen_operand_instance_type.
582 (CGEN_IFLD_ATTR_VALUE): Renamed from CGEN_IFLD_ATTR, all uses updated.
583 (CGEN_OPCODE,CGEN_IBASE): New types.
584 (CGEN_INSN): Rewrite.
585 (CGEN_{ASM,DIS}_HASH*): Delete.
586 (init_opcode_table,init_ibld_table): Declare.
587 (CGEN_INSN_ATTR): New type.
591 * i386.h (d_Suf, x_Suf, sld_Suf, sldx_Suf, bwld_Suf): Define.
592 (x_FP, d_FP, dls_FP, sldx_FP): Define.
593 Change *Suf definitions to include x and d suffixes.
594 (movsx): Use w_Suf and b_Suf.
596 (movs): Use bwld_Suf.
597 (fld): Change ordering. Use sld_FP.
598 (fild): Add Intel Syntax equivalent of fildq.
601 (fstp): Use sld_FP. Add x_FP version.
602 (fistp): LLongMem version for Intel Syntax.
603 (fcom, fcomp): Use sld_FP.
604 (fadd, fiadd, fsub): Use sld_FP.
606 (fmul, fimul, fdvi, fidiv, fdivr): Use sld_FP.
610 * cgen.h (enum cgen_mode): Add CGEN_MODE_TARGET_MAX, CGEN_MODE_INT,
615 * hppa.h (bv): Fix mask.
619 * cgen.h (CGEN_ATTR_VALUE_TYPE): New typedef.
621 (CGEN_ATTR_TYPE,CGEN_ATTR_ENTRY): Ditto.
622 (CGEN_ATTR_TABLE): New member dfault.
626 * mips.h (MIPS16_INSN_BRANCH): New.
630 The following is part of a change made by Edith Epstein
632 changes by HP; HP did not create ChangeLog entries.
634 * hppa.h (completer_chars): list of chars to not put a space
639 * i386.h (i386_optab): Permit w suffix on processor control and
640 status word instructions.
644 * cgen.h (struct cgen_hw_entry): Delete const on attrs member.
645 (struct cgen_keyword_entry): Ditto.
646 (struct cgen_operand): Ditto.
647 (CGEN_IFLD): New typedef, with associated access macros.
648 (CGEN_IFMT): New typedef, with associated access macros.
649 (CGEN_IFMT): Renamed from CGEN_FORMAT. New member `iflds'.
650 (CGEN_IVALUE): New typedef.
651 (struct cgen_insn): Delete const on syntax,attrs members.
652 `format' now points to format data. Type of `value' is now
654 (struct cgen_opcode_table): New member ifld_table.
658 * cgen.h (cgen_extract_fn): Update type of `base_insn' arg.
659 (CGEN_OPERAND_INSTANCE): New member `attrs'.
660 (CGEN_OPERAND_INSTANCE_{ATTRS,ATTR}): New macros.
661 (cgen_dis_lookup_insn): Update type of `base_insn' arg.
662 (cgen_opcode_table): Update type of dis_hash fn.
663 (extract_operand): Update type of `insn_value' arg.
667 * cgen.h (CGEN_VERSION_{MAJOR,MINOR,FIXLEVEL}): Delete.
671 * mips.h (INSN_MULT): Added.
675 * i386.h (MAX_MNEM_SIZE): Rename from MAX_OPCODE_SIZE.
679 * cgen.h (CGEN_INSN_INT): New typedef.
680 (CGEN_INT_INSN_P): Renamed from CGEN_INT_INSN.
681 (CGEN_INSN_BYTES): Renamed from cgen_insn_t.
682 (CGEN_INSN_BYTES_PTR): New typedef.
683 (CGEN_EXTRACT_INFO): New typedef.
684 (cgen_insert_fn,cgen_extract_fn): Update.
685 (cgen_opcode_table): New member `insn_endian'.
686 (assemble_insn,lookup_insn,lookup_get_insn_operands): Update.
687 (insert_operand,extract_operand): Update.
688 (cgen_get_insn_value,cgen_put_insn_value): Add prototypes.
692 * cgen.h (CGEN_ATTR_BOOLS): New macro.
693 (struct CGEN_HW_ENTRY): New member `attrs'.
694 (CGEN_HW_ATTR): New macro.
695 (struct CGEN_OPERAND_INSTANCE): New member `name'.
696 (CGEN_INSN_INVALID_P): New macro.
705 * i386.h (i386_optab): Add AMD 3DNow! instructions.
706 (AMD_3DNOW_OPCODE): Define.
710 * d30v.h (EITHER_BUT_PREFER_MU): Define.
714 * cgen.h (cgen_insn): #if 0 out element `cdx'.
718 Move all global state data into opcode table struct, and treat
719 opcode table as something that is "opened/closed".
720 * cgen.h (CGEN_OPCODE_DESC): New type.
721 (all fns): New first arg of opcode table descriptor.
722 (cgen_set_parse_operand_fn): Add prototype.
723 (cgen_current_machine,cgen_current_endian): Delete.
724 (CGEN_OPCODE_TABLE): New members mach,endian,operand_table,
725 parse_operand_fn,asm_hash_table,asm_hash_table_entries,
726 dis_hash_table,dis_hash_table_entries.
727 (opcode_open,opcode_close): Add prototypes.
729 * cgen.h (cgen_insn): New element `cdx'.
733 * d30v.h (FLAG_LKR): New flag for "left-kills-right" instructions.
737 * mn10300.h: Add "no_match_operands" field for instructions.
738 (MN10300_MAX_OPERANDS): Define.
742 * cgen.h (cgen_macro_insn_count): Declare.
746 * cgen.h (CGEN_VERSION_{MAJOR,MINOR,FIXLEVEL}): Define.
747 (cgen_insert_fn,cgen_extract_fn): New arg `pc'.
748 (get_operand,put_operand): Replaced with get_{int,vma}_operand,
749 set_{int,vma}_operand.
753 * mn10300.h: Add "machine" field for instructions.
754 (MN103, AM30): Define machine types.
758 * i386.h: Use FP, not sl_Suf, for fxsave and fxrstor.
762 * i386.h: Add support for fxsave, fxrstor, sysenter and sysexit.
766 * i386.h (i386_optab): Add general form of aad and aam. Add ud2a
768 (i386_regtab): Allow cr0..7, db0..7, dr0..7, tr0..7, not just
769 those that happen to be implemented on pentiums.
773 * i386.h: Change occurences of Data16 to Size16, Data32 to Size32,
774 IgnoreDataSize to IgnoreSize. Flag address and data size prefixes
775 with Size16|IgnoreSize or Size32|IgnoreSize.
779 * i386.h (REPNE): Rename to REPNE_PREFIX_OPCODE.
780 (REPE): Rename to REPE_PREFIX_OPCODE.
781 (i386_regtab_end): Remove.
782 (i386_prefixtab, i386_prefixtab_end): Remove.
783 (i386_optab): Use NULL as sentinel rather than "" to suit rewrite
785 (MAX_OPCODE_SIZE): Define.
786 (i386_optab_end): Remove.
790 * i386.h (i386_optab): Allow 16 bit displacement for `mov
791 mem,acc'. Combine 16 and 32 bit forms of various insns. Allow 16
792 bit form of ljmp. Add IsPrefix modifier to prefixes. Add addr32,
793 data32, dword, and adword prefixes.
794 (i386_regtab): Add BaseIndex modifier to valid 16 bit base/index
799 * i386.h (i386_regtab): Remove BaseIndex modifier from esp.
801 * i386.h: Allow `l' suffix on fld, fst, fstp, fcom, fcomp with
802 register operands, because this is a common idiom. Flag them with
803 a warning. Allow illegal faddp, fsubp, fsubrp, fmulp, fdivp,
804 fdivrp because gcc erroneously generates them. Also flag with a
807 * i386.h: Add suffix modifiers to most insns, and tighter operand
808 checks in some cases. Fix a number of UnixWare compatibility
809 issues with float insns. Merge some floating point opcodes, using
810 new FloatMF modifier.
811 (WORD_PREFIX_OPCODE): Rename to DATA_PREFIX_OPCODE for
814 * i386.h: Change occurence of ShortformW to W|ShortForm. Add
815 IgnoreDataSize where appropriate.
819 * i386.h: (one_byte_segment_defaults): Remove.
820 (two_byte_segment_defaults): Remove.
821 (i386_regtab): Add BaseIndex to 32 bit regs reg_type.
825 * cgen.h (cgen_hw_lookup_by_name): Renamed from cgen_hw_lookup.
826 (cgen_hw_lookup_by_num): Declare.
830 * mips.h (OP_{SH,MASK}_CODE2): Added "q" operand format for lower
831 ten bits of MIPS ISA1 "break" instruction, and for "sdbbp"
835 * cgen.h (cgen_asm_init_parse): Delete.
836 (cgen_save_fixups,cgen_restore_fixups,cgen_swap_fixups): Delete.
837 (cgen_asm_record_register,cgen_asm_finish_insn): Delete.
841 * cgen.h (CGEN_ATTR_TYPE): Delete `const', moved to uses.
842 (cgen_asm_finish_insn): Update prototype.
843 (cgen_insn): New members num, data.
844 (CGEN_INSN_TABLE): Members asm_hash, asm_hash_table_size,
845 dis_hash, dis_hash_table_size moved to ...
846 (CGEN_OPCODE_TABLE). Here. Renamed from CGEN_OPCODE_DATA.
847 All uses updated. New members asm_hash_p, dis_hash_p.
848 (CGEN_MINSN_EXPANSION): New struct.
849 (cgen_expand_macro_insn): Declare.
850 (cgen_macro_insn_count): Declare.
851 (get_insn_operands): Update prototype.
852 (lookup_get_insn_operands): Declare.
856 * i386.h (i386_optab): Change iclrKludge and imulKludge to
857 regKludge. Add operands types for string instructions.
861 * i386.h (X): Renamed from `Z_' to preserve formatting of opcode
866 * i386.h (Z_): Renamed from `_' to avoid clash with common alias
871 * i386.h: Remove NoModrm flag from all insns: it's never checked.
872 Add IsString flag to string instructions.
873 (IS_STRING): Don't define.
874 (LOCK_PREFIX_OPCODE, CS_PREFIX_OPCODE, DS_PREFIX_OPCODE): Define.
875 (ES_PREFIX_OPCODE, FS_PREFIX_OPCODE, GS_PREFIX_OPCODE): Define.
876 (SS_PREFIX_OPCODE): Define.
880 * i386.h: Revert March 24 patch; no more LinearAddress.
884 * i386.h (i386_optab): Remove fwait (9b) from all floating point
885 instructions, and instead add FWait opcode modifier. Add short
886 form of fldenv and fstenv.
887 (FWAIT_OPCODE): Define.
889 * i386.h (i386_optab): Change second operand constraint of `mov
890 sreg,reg|mem' instruction from Reg16|Mem to WordReg|WordMem to
891 allow legal instructions such as `movl %gs,%esi'
895 * h8300.h: Various changes to fully bracket initializers.
899 * i386.h: Set LinearAddress for lidt and lgdt.
903 * cgen.h (CGEN_BOOL_ATTR): New macro.
907 * d30v.h (FLAG_DELAY): New flag for delayed branches/jumps.
911 * cgen.h (CGEN_CAT3): Delete. Use CONCAT3 now.
912 (cgen_insn): Record syntax and format entries here, rather than
917 * cgen.h (CGEN_SYNTAX_MAKE_FIELD): New macro.
921 * cgen.h (cgen_insert_fn): Change type of result to const char *.
922 (cgen_parse_{signed,unsigned}_integer): Delete min,max arguments.
923 (CGEN_{INSN,KEYWORD,OPERAND}_NBOOL_ATTRS): Renamed from ..._MAX_ATTRS.
927 * cgen.h (lookup_insn): New argument alias_p.
931 Fix rac to accept only a0:
932 * d10v.h (OPERAND_ACC): Split into:
933 (OPERAND_ACC0, OPERAND_ACC1) .
934 (OPERAND_GPR): Define.
938 * cgen.h (CGEN_FIELDS): Define here.
939 (CGEN_HW_ENTRY): New member `type'.
940 (hw_list): Delete decl.
941 (enum cgen_mode): Declare.
942 (CGEN_OPERAND): New member `hw'.
943 (enum cgen_operand_instance_type): Declare.
944 (CGEN_OPERAND_INSTANCE): New type.
945 (CGEN_INSN): New member `operands'.
946 (CGEN_OPCODE_DATA): Make hw_list const.
947 (get_insn_operands,lookup_insn): Add prototypes for.
951 * cgen.h (CGEN_INSN_MAX_ATTRS): Renamed from CGEN_MAX_INSN_ATTRS.
952 (CGEN_HW_ENTRY): Move `next' entry to end of struct.
953 (CGEN_KEYWORD_MAX_ATTRS): Renamed from CGEN_MAX_KEYWORD_ATTRS.
954 (CGEN_OPERAND_MAX_ATTRS): Renamed from CGEN_MAX_OPERAND_ATTRS.
958 * cgen.h: Correct typo in comment end marker.
966 * cgen.h: Add prototypes for cgen_save_fixups(),
967 cgen_restore_fixups(), and cgen_swap_fixups(). Change prototype
968 of cgen_asm_finish_insn() to return a char *.
972 * cgen.h: Formatting changes to improve readability.
976 * cgen.h (*): Clean up pass over `struct foo' usage.
977 (CGEN_ATTR): Make unsigned char.
978 (CGEN_ATTR_TYPE): Update.
979 (CGEN_ATTR_{ENTRY,TABLE}): New types.
980 (cgen_base): Move member `attrs' to cgen_insn.
981 (CGEN_KEYWORD): New member `null_entry'.
982 (CGEN_{SYNTAX,FORMAT}): New types.
983 (cgen_insn): Format and syntax separated from each other.
987 * d30v.h (d30v_opcode): Reorder flags somewhat, add new flags for
988 2 word load/store, ADDppp/SUBppp, 16/32 bit multiply. Make
989 flags_{used,set} long.
990 (d30v_operand): Make flags field long.
994 * m68k.h: Fix comment describing operand types.
998 * d30v.h (SHORT_CMPU): Add case for cmpu instruction, and move
999 everything else after down.
1003 * d10v.h (OPERAND_FLAG): Split into:
1004 (OPERAND_FFLAG, OPERAND_CFLAG) .
1008 * mips.h (struct mips_opcode): Changed comments to reflect new
1013 * mips.h: Added to comments a quick-ref list of all assigned
1014 operand type characters.
1015 (OP_{MASK,SH}_PERFREG): New macros.
1019 * sparc.h: Add '_' and '/' for v9a asr's.
1024 * h8300.h: Bit ops with absolute addresses not in the 8 bit
1025 area are not available in the base model (H8/300).
1029 * m68k.h: Remove documentation of ` operand specifier.
1033 * m68k.h: Document q and v operand specifiers.
1037 * v850.h (struct v850_opcode): Add processors field.
1038 (PROCESSOR_V850, PROCESSOR_ALL): New bit constants.
1039 (PROCESSOR_V850E, PROCESSOR_NOT_V850): New bit constants.
1040 (PROCESSOR_V850EA): New bit constants.
1044 Merge changes from Martin Hunt:
1046 * d30v.h: Allow up to 64 control registers. Add
1049 * d30v.h (LONG_Db): New form for delayed branches.
1051 * d30v.h: (LONG_Db): New form for repeati.
1053 * d30v.h (SHORT_D2B): New form.
1055 * d30v.h (SHORT_A2): New form.
1057 * d30v.h (OPERAND_2REG): Add new operand to indicate 2
1058 registers are used. Needed for VLIW optimization.
1062 * cgen.h: Move assembler interface section
1063 up so cgen_parse_operand_result is defined for cgen_parse_address.
1064 (cgen_parse_address): Update prototype.
1068 * v850.h (V850_OPREAND_ADJUST_SHORT_MEMORY): Removed.
1072 * i386.h (two_byte_segment_defaults): Correct base register 5 in
1073 modes 1 and 2 to be ss rather than ds. From Gabriel Paubert
1076 * i386.h: Set ud2 to 0x0f0b. From Gabriel Paubert
1079 * i386.h: Comment fixes for ficom[p]?{s,l} from Gabriel Paubert
1082 * i386.h (JUMP_ON_CX_ZERO): Uncomment (define again).
1083 (JUMP_ON_ECX_ZERO): Remove commented out macro.
1087 * v850.h (V850_NOT_R0): New flag.
1091 * v850.h (struct v850_opcode): Remove flags field.
1095 * v850.h (struct v850_opcode): Add flags field.
1096 (struct v850_operand): Extend meaning of 'bits' and 'shift'
1098 (V850E_INSTRUCTION, V850EA_INSTRUCTION): New flags.
1099 (V850E_PUSH_POP, V850E_IMMEDIATE16, V850E_IMMEDIATE32): New flags.
1107 * sparc.h (sparc_opcodes): Declare as const.
1111 * mips.h (FP_S, FP_D): Define. Bitmasks indicating if an insn
1112 uses single or double precision floating point resources.
1113 (INSN_NO_ISA, INSN_ISA1): Define.
1114 (cpu specific INSN macros): Tweak into bitmasks outside the range
1119 * i386.h: Fix pand opcode.
1123 * mips.h: Widen INSN_ISA and move it to a more convenient
1124 bit position. Add INSN_3900.
1128 * mips.h (struct mips_opcode): added new field membership.
1132 * i386.h (movd): only Reg32 is allowed.
1134 * i386.h: add fcomp and ud2. From Wayne Scott
1139 * i386.h: Add MMX instructions.
1143 * i386.h: Remove W modifier from conditional move instructions.
1147 * i386.h: Change the opcodes for fsubp, fsubrp, fdivp, and fdivrp
1148 with no arguments to match that generated by the UnixWare
1153 * cgen.h (<cpu>_cgen_assemble_insn): New arg for errmsg.
1154 (cgen_parse_operand_fn): Declare.
1155 (cgen_init_parse_operand): Declare.
1156 (cgen_parse_operand): Renamed from cgen_asm_parse_operand,
1157 new argument `want'.
1158 (enum cgen_parse_operand_result): Renamed from cgen_asm_result.
1159 (enum cgen_parse_operand_type): New enum.
1163 * i386.h: Revert last patch for the NON_BROKEN_OPCODES cases.
1171 * i386.h: Correct opcode values for fsubp, fsubrp, fdivp, and
1176 * v850.h (extract): Make unsigned.
1184 * i386.h: Change DW to W for cmpxchg and xadd, since they don't
1185 take a direction bit.
1189 * sparc.h (sparc_opcode_lookup_arch): Use full prototype.
1193 * sparc.h: Include <ansidecl.h>. Update function declarations to
1194 use prototypes, and to use const when appropriate.
1198 * mn10300.h (MN10300_OPERAND_RELAX): Define.
1202 * d10v.h: Change pre_defined_registers to
1203 d10v_predefined_registers and reg_name_cnt to d10v_reg_name_cnt.
1207 * mips.h: Add macros for cop0, cop1 cop2 and cop3.
1208 Change mips_opcodes from const array to a pointer,
1209 and change bfd_mips_num_opcodes from const int to int,
1210 so that we can increase the size of the mips opcodes table
1215 * d30v.h (FLAG_X): Remove unused flag.
1223 * tic80.h (PDS_NAME): Macro to access name field of predefined symbols.
1224 (PDS_VALUE): Macro to access value field of predefined symbols.
1225 (tic80_next_predefined_symbol): Add prototype.
1229 * tic80.h (tic80_symbol_to_value): Change prototype to match
1230 change in function, added class parameter.
1234 * tic80.h (TIC80_OPERAND_ENDMASK): Add for flagging TIc80
1235 endmask fields, which are somewhat weird in that 0 and 32 are
1236 treated exactly the same.
1240 * tic80.h: Change all the OPERAND defines to use the form (1 << X)
1241 rather than a constant that is 2**X. Reorder them to put bits for
1242 operands that have symbolic names in the upper bits, so they can
1243 be packed into an int where the lower bits contain the value that
1244 corresponds to that symbolic name.
1245 (predefined_symbo): Add struct.
1246 (tic80_predefined_symbols): Declare array of translations.
1247 (tic80_num_predefined_symbols): Declare size of that array.
1248 (tic80_value_to_symbol): Declare function.
1249 (tic80_symbol_to_value): Declare function.
1253 * mn10200.h (MN10200_OPERAND_RELAX): Define.
1257 * tic80.h (TIC80_NO_R0_DEST): Add for opcodes where r0 cannot
1258 be the destination register.
1262 * tic80.h (struct tic80_opcode): Change "format" field to "flags".
1263 (FMT_UNUSED, FMT_SI, FMT_LI, FMT_REG): Delete.
1264 (TIC80_VECTOR): Define a flag bit for the flags. This one means
1265 that the opcode can have two vector instructions in a single
1266 32 bit word and we have to encode/decode both.
1270 * tic80.h (TIC80_OPERAND_PCREL): Renamed from
1271 TIC80_OPERAND_RELATIVE for PC relative.
1272 (TIC80_OPERAND_BASEREL): New flag bit for register
1277 * tic80.h (TIC80_OPERAND_FLOAT): Add for floating point operands.
1281 * tic80.h (TIC80_OPERAND_SCALED): Operand may have optional
1282 ":s" modifier for scaling.
1286 * tic80.h (TIC80_OPERAND_M_SI): Add operand modifier for ":m".
1287 (TIC80_OPERAND_M_LI): Ditto
1291 * tic80.h (TIC80_OPERAND_BITNUM): Renamed from TIC80_OPERAND_CC_SZ.
1292 (TIC80_OPERAND_CC): New define for condition code operand.
1293 (TIC80_OPERAND_CR): New define for control register operand.
1297 * tic80.h (struct tic80_opcode): Name changed.
1298 (struct tic80_opcode): Remove format field.
1299 (struct tic80_operand): Add insertion and extraction functions.
1300 (TIC80_OPERAND_*): Remove old bogus values, start adding new
1306 * v850.h (V850_OPERAND_ADJUST_SHORT_MEMORY): New flag to adjust
1307 type IV instruction offsets.
1311 * tic80.h: New file.
1315 * mn10200.h (MN10200_OPERAND_NOCHECK): Define.
1319 * mn10200.h: Fix comment, mn10200_operand not powerpc_operand.
1320 * mn10300.h: Fix comment, mn10300_operand not powerpc_operand.
1321 * v850.h: Fix comment, v850_operand not powerpc_operand.
1325 * mn10200.h: Flesh out structures and definitions needed by
1326 the mn10200 assembler & disassembler.
1330 * mips.h: Add mips16 definitions.
1334 * m68k.h: Document new <, >, m, n, o and p operand specifiers.
1338 * mn10300.h (MN10300_OPERAND_PCREL): Define.
1339 (MN10300_OPERAND_MEMADDR): Define.
1343 * mn10300.h (MN10300_OPERAND_REG_LIST): Define.
1347 * mn10300.h (MN10300_OPERAND_SPLIT): Define.
1351 * mn10300.h (MN10300_OPERAND_EXTENDED): Define.
1355 * mn10300.h (MN10300_OPERAND_REPEATED): Define.
1359 * alpha.h: Don't include "bfd.h"; private relocation types are now
1360 negative to minimize problems with shared libraries. Organize
1361 instruction subsets by AMASK extensions and PALcode
1363 (struct alpha_operand): Move flags slot for better packing.
1367 * v850.h (V850_OPERAND_RELAX): New operand flag.
1371 * mn10300.h (FMT_*): Move operand format definitions
1376 * mn10300.h (MN10300_OPERAND_PAREN): Define.
1380 * mn10300.h (mn10300_opcode): Add "format" field.
1381 (MN10300_OPERAND_*): Define.
1385 * mn10x00.h: Delete.
1386 * mn10200.h, mn10300.h: New files.
1390 * mn10x00.h: New file.
1394 * v850.h: Add new flag to indicate this instruction uses a PC
1399 * h8300.h (stmac): Add missing instruction.
1403 * v850.h (v850_opcode): Remove "size" field. Add "memop"
1408 * v850.h (V850_OPERAND_EP): Define.
1410 * v850.h (v850_opcode): Add size field.
1414 * v850.h (v850_operands): Add insert and extract fields, pointers
1415 to functions used to handle unusual operand encoding.
1416 (V850_OPERAND_REG, V850_OPERAND_SRG, V850_OPERAND_CC,
1417 V850_OPERAND_SIGNED): Defined.
1421 * v850.h (v850_operands): Add flags field.
1422 (OPERAND_REG, OPERAND_NUM): Defined.
1430 * mips.h (OP_SH_LOCC, OP_SH_HICC, OP_MASK_CC, OP_SH_COP1NORM,
1431 OP_MASK_COP1NORM, OP_SH_COP1SPEC, OP_MASK_COP1SPEC,
1432 OP_MASK_COP1SCLR, OP_MASK_COP1CMP, OP_SH_COP1CMP, OP_SH_FORMAT,
1433 OP_MASK_FORMAT, OP_SH_TRUE, OP_MASK_TRUE, OP_SH_GE, OP_MASK_GE,
1434 OP_SH_UNSIGNED, OP_MASK_UNSIGNED, OP_SH_HINT, OP_MASK_HINT):
1439 * hppa.h (pitlb, pitlbe, iitlba, iitlbp, fic, fice): Accept
1440 a 3 bit space id instead of a 2 bit space id.
1444 * d10v.h: Add some additional defines to support the
1445 assembler in determining which operations can be done in parallel.
1449 * h8300.h (SN): Define.
1450 (eepmov.b): Renamed from "eepmov"
1451 (nop, bpt, rte, rts, sleep, clrmac): These have no size associated
1456 * d10v.h (OPERAND_SHIFT): New operand flag.
1460 * d10v.h: Changes for divs, parallel-only instructions, and
1465 * d10v.h (pd_reg): Define. Putting the definition here allows
1466 the assembler and disassembler to share the same struct.
1470 * i960.h (i960_opcodes): "halt" takes an argument. From Stephen
1479 * h8300.h (band, bclr): Force high bit of immediate nibble to zero.
1483 * m68k.h (mcf5200): New macro.
1484 Document names of coldfire control registers.
1488 * h8300.h (SRC_IN_DST): Define.
1490 * h8300.h (UNOP3): Mark the register operand in this insn
1491 as a source operand, not a destination operand.
1492 (SHIFT_2, SHIFT_IMM): Remove. Eliminate all references.
1493 (UNOP3): Change SHIFT_IMM to IMM for H8/S bitops. Mark
1494 register operand with SRC_IN_DST.
1498 * alpha.h: New file.
1502 * rs6k.h: Remove obsolete file.
1506 * i386.h: Correct opcode values for faddp, fsubp, fsubrp, fmulp,
1507 fdivp, and fdivrp. Add ffreep.
1511 * h8300.h: Reorder various #defines for readability.
1512 (ABS32SRC, ABS32DST, DSP32LIST, ABS32LIST, A32LIST): Define.
1513 (BITOP): Accept additional (unused) argument. All callers changed.
1516 (ldc, stc, movb, movw, movl): Use 32bit offsets and absolutes.
1518 * h8300.h (EXR, SHIFT_2, MACREG, SHIFT_IMM, RDINC): Define.
1519 (O_TAS, O_CLRMAC, O_LDMAC, O_MAC, O_LDM, O_STM): Define.
1520 (BITOP, EBITOP): Handle new H8/S addressing modes for
1522 (UNOP3): Handle new shift/rotate insns on the H8/S.
1523 (insns using exr): New instructions.
1524 (tas, mac, ldmac, clrmac, ldm, stm): New instructions.
1528 * h8300.h (add.l): Undo Apr 5th change. The manual I had
1533 * h8300.h (START): Remove.
1534 (MEMRELAX): Define. Mark absolute memory operands in mov.b, mov.w
1535 and mov.l insns that can be relaxed.
1539 * i386.h: Remove Abs32 from lcall.
1543 * sparc.h (SPARC_OPCODE_ARCH_V9_P): New macro.
1544 (SLCPOP): New macro.
1545 Mark X,Y opcode letters as in use.
1549 * sparc.h (F_FLOAT, F_FBR): Define.
1553 * h8300.h (ABS8MEM): Renamed from ABSMOV. Remove ABSMOV
1555 (ABS8SRC,ABS8DST): Add ABS8MEM.
1556 (add.l): Fix reg+reg variant.
1557 (eepmov.w): Renamed from eepmovw.
1558 (ldc,stc): Fix many cases.
1562 * sparc.h (SPARC_OPCODE_ARCH_MASK): New macro.
1566 * sparc.h (O): Mark operand letter as in use.
1570 * sparc.h (sparc_{encode,decode}_sparclet_cpreg): Declare.
1571 Mark operand letters uU as in use.
1575 * sparc.h (sparc_opcode_arch_val): Add SPARC_OPCODE_ARCH_SPARCLET.
1576 (sparc_opcode_arch): Delete member `conflicts'. Add `supported'.
1577 (SPARC_OPCODE_SUPPORTED): New macro.
1578 (SPARC_OPCODE_CONFLICT_P): Rewrite.
1583 * sparc.h (sparc_opcode_lookup_arch) Make return type in
1584 declaration consistent with return type in definition.
1588 * i386.h (i386_optab): Remove Data32 from pushf and popf.
1592 * i386.h (i386_regtab): Add 80486 test registers.
1596 * i960.h (I_HX): Define.
1597 (i960_opcodes): Add HX instruction.
1601 * i386.h: Fix waiting forms of finit, fstenv, fsave, fstsw, fstcw,
1606 * sparc.h (enum sparc_opcode_arch_val): Replaces sparc_architecture.
1607 (SPARC_OPCODE_CONFLICT_P): Renamed from ARCHITECTURES_CONFLICT_P.
1608 (bfd_* defines): Delete.
1609 (sparc_opcode_archs): Replaces architecture_pname.
1610 (sparc_opcode_lookup_arch): Declare.
1611 (NUMOPCODES): Delete.
1615 * sparc.h (enum sparc_architecture): Add v9a.
1616 (ARCHITECTURES_CONFLICT_P): Update.
1620 * i386.h: Added Pentium Pro instructions.
1624 * m68k.h: Document new 'W' operand place.
1628 * hppa.h: Add lci and syncdma instructions.
1632 * mips.h: Added INSN_4100 flag to mark NEC VR4100 specific
1637 * ppc.h (PPC_OPCODE_{COMMON,ANY}): New opcode flags for
1638 assembler's -mcom and -many switches.
1642 * i386.h: Fix cmpxchg8b extension opcode description.
1646 * i386.h: Add Pentium instructions wrmsr, rdtsc, rdmsr, cmpxchg8b,
1651 * m68k.h: Change comment: split type P into types 0, 1 and 2.
1655 * sparc.h (sparc_{encode,decode}_prefetch): Declare.
1659 * sparc.h (sparc_{encode,decode}_{asi,membar}): Declare.
1663 * m68kmri.h: Remove.
1665 * m68k.h: Move tables into opcodes/m68k-opc.c, leaving just the
1666 declarations. Remove F_ALIAS and flag field of struct
1667 m68k_opcode. Change arch field of struct m68k_opcode to unsigned
1668 int. Make name and args fields of struct m68k_opcode const.
1672 * sparc.h (F_NOTV9): Define.
1676 * mips.h (INSN_4010): Define.
1680 * m68k.h (TBL1): Reverse sense of "round" argument in result.
1683 * m68k.h: Fix argument descriptions of coprocessor
1684 instructions to allow only alterable operands where appropriate.
1685 [!NO_DEFAULT_SIZES]: An omitted size defaults to `w'.
1686 (m68k_opcode_aliases): Add more aliases.
1690 * m68k.h: Added explcitly short-sized conditional branches, and a
1691 bunch of aliases (fmov*, ftest*, tdivul) to support gcc's
1692 svr4-based configurations.
1697 * i386.h: added missing Data16/Data32 flags to a few instructions.
1701 * mips.h (OP_MASK_FR, OP_SH_FR): Define.
1702 (OP_MASK_BCC, OP_SH_BCC): Define.
1703 (OP_MASK_PREFX, OP_SH_PREFX): Define.
1704 (OP_MASK_CCC, OP_SH_CCC): Define.
1705 (INSN_READ_FPR_R): Define.
1710 * m68k.h (enum m68k_architecture): Deleted.
1711 (struct m68k_opcode_alias): New type.
1712 (m68k_opcodes): Now const. Deleted opcode aliases with exactly
1713 matching constraints, values and flags. As a side effect of this,
1714 the MOTOROLA_SYNTAX_ONLY and MIT_SYNTAX_ONLY macros, which so far
1715 as I know were never used, now may need re-examining.
1716 (numopcodes): Now const.
1717 (m68k_opcode_aliases, numaliases): New variables.
1719 [DONT_DEFINE_TABLE]: Declare numopcodes, numaliases, and
1720 m68k_opcode_aliases; update declaration of m68k_opcodes.
1724 * hppa.h (delay_type): Delete unused enumeration.
1725 (pa_opcode): Replace unused delayed field with an architecture
1727 (pa_opcodes): Mark each instruction as either PA1.0 or PA1.1.
1731 * mips.h (INSN_ISA4): Define.
1735 * mips.h (M_DLA_AB, M_DLI): Define.
1739 * hppa.h (fstwx): Fix single-bit error.
1743 * mips.h (M_ULD, M_ULD_A, M_USD, M_USD_A): Define.
1747 * i386.h: added cpuid instruction , and dr[0-7] aliases for the
1754 * i386.h (MOV_AX_DISP32): New macro.
1755 (i386_optab): Added Data16 and Data32 as needed. Added "w" forms
1756 of several call/return instructions.
1757 (ADDR_PREFIX_OPCODE): New macro.
1763 * ../include/opcode/vax.h (struct vot_wot, field `args'): make
1764 it pointer to const char;
1765 (struct vot, field `name'): ditto.
1769 * vax.h: Supply and properly group all values in end sentinel.
1773 * mips.h (INSN_ISA, INSN_4650): Define.
1777 * a29k.h: Add operand type 'I' for `inv' and `iretinv'. On
1778 systems with a separate instruction and data cache, such as the
1779 29040, these instructions take an optional argument.
1783 * mips.h (INSN_STORE_MEMORY): Correct value to not conflict with
1788 * mips.h (INSN_STORE_MEMORY): Define.
1792 * sparc.h: Document new operand type 'x'.
1796 * i960.h (I_CX2): New instruction category. It includes
1797 instructions available on Cx and Jx processors.
1798 (I_JX): New instruction category, for JX-only instructions.
1799 (i960_opcodes): Put eshro and sysctl in I_CX2 category. Added
1800 Jx-only instructions, in I_JX category.
1804 * ns32k.h (endop): Made pointer const too.
1808 * ns32k.h: Drop Q operand type as there is no correct use
1809 for it. Add I and Z operand types which allow better checking.
1813 * h8300.h (xor.l) :fix bit pattern.
1814 (L_2): New size of operand.
1819 * m68k.h: Move "trap" before "tpcc" to change disassembly.
1823 * sparc.h: Include v9 definitions.
1827 * m68k.h (m68060): Defined.
1828 (m68040up, mfloat, mmmu): Include it.
1829 (struct m68k_opcode): Widen `arch' field.
1830 (m68k_opcodes): Updated for M68060. Removed comments that were
1831 instructions commented out by "JF" years ago.
1835 * m68k.h (struct m68k_opcode): Shorten `arch' field to 8 bits, and
1836 add a one-bit `flags' field.
1837 (F_ALIAS): New macro.
1841 * h8300.h (dec, inc): Get encoding right.
1845 * ppc.h (struct powerpc_operand): Removed signedp field; just use
1847 (PPC_OPERAND_SIGNED): Define.
1848 (PPC_OPERAND_SIGNOPT): Define.
1852 * i386.h (IS_JUMP_ON_ECX_ZERO, "jcxz" pattern): Operand size
1857 * i386.h: Reverse last change. It'll be handled in gas instead.
1861 * i386.h (sar): Disabled the two-operand Imm1 form, since it was
1862 slower on the 486 and used the implicit shift count despite the
1863 explicit operand. The one-operand form is still available to get
1864 the shorter form with the implicit shift count.
1868 * hppa.h: Fix typo in fstws arg string.
1872 * ppc.h (struct powerpc_opcode): Make operands field unsigned.
1876 * ppc.h (PPC_OPCODE_601): Define.
1880 * hppa.h (addb): Use '@' for addb and addib pseudo ops.
1881 (so we can determine valid completers for both addb and addb[tf].)
1883 * hppa.h (xmpyu): No floating point format specifier for the
1888 * ppc.h (PPC_OPERAND_NEXT): Define.
1889 (PPC_OPERAND_NEGATIVE): Change value to make room for above.
1890 (struct powerpc_macro): Define.
1891 (powerpc_macros, powerpc_num_macros): Declare.
1895 * ppc.h: New file. Header file for PowerPC opcode table.
1899 * hppa.h: More minor template fixes for sfu and copr (to allow
1900 for easier disassembly).
1902 * hppa.h: Fix templates for all the sfu and copr instructions.
1906 * i386.h (push): Permit Imm16 operand too.
1910 * h8300.h (andc): Exists in base arch.
1915 * hppa.h: #undef NONE to avoid conflict with hiux include files.
1919 * hppa.h: Add FP quadword store instructions.
1923 * mips.h: (M_J_A): Added.
1928 * mips.h (OP_MASK_CACHE, OP_SH_CACHE): Define. From Ted Lemon
1933 * hppa.h: Immediate field in probei instructions is unsigned,
1934 not low-sign extended.
1938 * m88k.h (RRI10MASK): Change from 0xfc00ffe0 to 0xfc00fc00.
1942 * i386.h: Add "fxch" without operand.
1946 * mips.h (M_JAL_1, M_JAL_2, M_JAL_A): Added.
1950 * hppa.h: Add gfw and gfr to the opcode table.
1954 * m88k.h: extended to handle m88110.
1958 * hppa.h (be, ble): Use operand type 'z' to denote absolute branch
1963 * i960.h (i960_opcodes): Properly bracket initializers.
1967 * m88k.h (BOFLAG): rewrite to avoid nested comment.
1971 * m68k.h (two): Protect second argument with parentheses.
1975 * i386.h (i386_optab): Added new instruction "rsm" (for i386sl).
1976 Deleted old in/out instructions in "#if 0" section.
1980 * i386.h (i386_optab): Properly bracket initializers.
1984 * hppa.h (pa_opcode): Use '|' for movb and movib insns. (From
1989 * i386.h (lcall): Accept Imm32 operand also.
1993 * mips.h (M_ABSU): Removed (absolute value of unsigned number??).
1998 * mips.h (INSN_*): Changed values. Removed unused definitions.
1999 Added INSN_COND_BRANCH_LIKELY, INSN_ISA2 and INSN_ISA3. Split
2000 INSN_LOAD_DELAY into INSN_LOAD_MEMORY_DELAY and
2001 INSN_LOAD_COPROC_DELAY. Split INSN_COPROC_DELAY into
2002 INSN_COPROC_MOVE_DELAY and INSN_COPROC_MEMORY_DELAY.
2003 (M_*): Added new values for r6000 and r4000 macros.
2004 (ANY_DELAY): Removed.
2008 * mips.h: Added M_LI_S and M_LI_SS.
2012 * h8300.h: Get some rare mov.bs correct.
2016 * sparc.h: Don't define const ourself; rely on ansidecl.h having
2021 * sparc.h (F_JSR, F_UNBR, F_CONDBR): Add new flags to mark
2022 jump instructions, for use in disassemblers.
2026 * m88k.h: Make bitfields just unsigned, not unsigned long or
2031 * hppa.h: New argument type 'y'. Use in various float instructions.
2035 * hppa.h (break): First immediate field is unsigned.
2037 * hppa.h: Add rfir instruction.
2041 * mips.h: Split the actual table out into ../../opcodes/mips-opc.c.
2045 * mips.h: Reworked the hazard information somewhat, and fixed some
2046 bugs in the instruction hazard descriptions.
2050 * m88k.h: Corrected a couple of opcodes.
2054 * mips.h: Replaced with version from Ralph Campbell and OSF. The
2055 new version includes instruction hazard information, but is
2056 otherwise reasonably similar.
2060 * h8300.h: Fix typo in UNOP3 (affected sh[al][lr].l).
2065 * hppa.h: Clean up some of the OLD_TABLE, non-OLD_TABLE braindamage.
2066 Make the tables be the same for the following instructions:
2067 "bb", "addb[tf]", "addib[tf]", "add", "add[loc]", "addco",
2068 "sh[123]add", "sh[123]add[lo]", "sub", "sub[obt]", "sub[bt]o",
2069 "ds", "comclr", "addi", "addi[ot]", "addito", "subi", "subio",
2070 "comiclr", "fadd", "fsub", "fmpy", "fdiv", "fsqrt", "fabs",
2071 "frnd", "fcpy", "fcnvff", "fcnvxf", "fcnvfx", "fcnvfxt",
2072 "fcmp", and "ftest".
2074 * hppa.h: Make new and old tables the same for "break", "mtctl",
2075 "mfctl", "bb", "ssm", "rsm", "xmpyu", "fmpyadd", "fmpysub".
2076 Fix typo in last patch. Collapse several #ifdefs into a
2079 * hppa.h: Delete remaining OLD_TABLE code. Bring some
2080 of the comments up-to-date.
2082 * hppa.h: Update "free list" of letters and update
2083 comments describing each letter's function.
2087 * h8300.h: checkpoint, includes H8/300-H opcodes.
2092 * hppa.h: Rework single precision FP
2093 instructions so that they correctly disassemble code
2098 * i386.h (i386_optab, mov pattern): Remove Mem16 restriction from
2099 mov to allow instructions like mov ss,xyz(ecx) to assemble.
2103 * hppa.h: Use new version from Utah if OLD_TABLE isn't defined;
2104 gdb will define it for now.
2108 * sparc.h: Don't end enumerator list with comma.
2113 * mips.h (OP_MASK_COPZ, OP_SH_COPZ): Define.
2114 ("bc2t"): Correct typo.
2115 ("[ls]wc[023]"): Use T rather than t.
2116 ("c[0123]"): Define general coprocessor instructions.
2120 * m68k.h: Move split point for gcc compilation more towards
2125 * rs6k.h: Clean up instructions for primary opcode 19 (many were
2126 simply wrong, ics, rfi, & rfsvc were missing).
2127 Add "a" to opr_ext for "bb". Doc fix.
2132 * mips.h: Add casts, to suppress warnings about shifting too much.
2133 * m68k.h: Document the placement code '9'.
2137 * m68k.h (BREAK_UP_BIG_DECL, AND_OTHER_PART): Add kludge which
2138 allows callers to break up the large initialized struct full of
2139 opcodes into two half-sized ones. This permits GCC to compile
2140 this module, since it takes exponential space for initializers.
2141 (numopcodes, endop): Revise to use AND_OTHER_PART in size calcs.
2145 * a29k.h: Remove RCS crud, update GPL to v2, update copyrights.
2146 * convex.h: Added, from GDB's convx-opcode.h. Added CONST to all
2147 initialized structs in it.
2152 * m88k.h (PMEM): Avoid previous definition from <sys/param.h>.
2153 (AND): Change to AND_ to avoid ansidecl.h `AND' conflict.
2157 * mips.h: document "i" and "j" operands correctly.
2161 * mips.h: Removed endianness dependency.
2165 * h8300.h: include info on number of cycles per instruction.
2167 Mon Dec 21 21:29:08 1992 Stu Grossman (grossman at cygnus.com)
2169 * hppa.h: Move handy aliases to the front. Fix masks for extract
2170 and deposit instructions.
2174 * i386.h: accept shld and shrd both with and without the shift
2175 count argument, which is always %cl.
2177 Fri Nov 27 17:13:18 1992 Ken Raeburn (raeburn at cygnus.com)
2179 * i386.h (i386_optab_end, i386_regtab_end): Now const.
2180 (one_byte_segment_defaults, two_byte_segment_defaults,
2181 i386_prefixtab_end): Ditto.
2185 * vax.h (bb*): Use "v" (bitfield type), not "a" (address operand)
2190 * m68k.h: Define FIXED_SIZE_BRANCH, so bsr and bra instructions
2191 always use 16-bit offsets. Makes calculated-size jump tables
2196 * i386.h: Fix one-operand forms of in* and out* patterns.
2200 * m68k.h: Added CPU32 support.
2204 * mips.h (break): Disassemble the argument. Patch from
2209 * m68k.h: merged Motorola and MIT syntax.
2213 * m68k.h (pmove): make the tests less strict, the 68k book is
2218 * m68k.h (m68ec030): Defined as alias for 68030.
2219 (m68k_opcodes): New type characters "3" for 68030 MMU regs and "t"
2220 for immediate 0-7 added. Set up some opcodes (ptest, bkpt) to use
2221 them. Tightened description of "fmovex" to distinguish it from
2222 some "pmove" encodings. Added "pmove" for 68030 MMU regs, cleaned
2223 up descriptions that claimed versions were available for chips not
2224 supporting them. Added "pmovefd".
2228 * m68k.h: fix where the . goes in divull
2232 * m68k.h: the cas2 instruction is supposed to be written with
2233 indirection on the last two operands, which can be either data or
2234 address registers. Added a new operand type 'r' which accepts
2235 either register type. Added new cases for cas2l and cas2w which
2236 use them. Corrected masks for cas2 which failed to recognize use
2237 of address register.
2241 * m68k.h: Merged in patches (mostly m68040-specific) from
2244 * m68k.h: Merged m68kmri.h and m68k.h (using the former as a
2245 base). Also cleaned up duplicates, re-ordered instructions for
2246 the sake of dis-assembling (so aliases come after standard names).
2247 * m68kmri.h: Now just defines some macros, and #includes m68k.h.
2251 * m68kmri.h: added various opcodes. Moved jbxx to bxxes. Filled in
2256 * sparc.h: Moved tables to BFD library.
2258 * i386.h (i386_optab): Add fildq, fistpq aliases used by gcc.
2262 * h8300.h: Finish filling in all the holes in the opcode table,
2263 so that the Lucid C compiler can digest this as well...
2265 Fri Jun 26 21:27:17 1992 John Gilmore (gnu at cygnus.com)
2267 * i386.h: Add setc, setnc, addr16, data16, repz, repnz aliases.
2268 Fix opcodes on various sizes of fild/fist instructions
2269 (16bit=no suffix, 32bit="l" suffix, 64bit="ll" suffix).
2270 Use tabs to indent for comments. Fixes suggested by Minh Tran-Le.
2272 Thu Jun 25 16:13:26 1992 Stu Grossman (grossman at cygnus.com)
2274 * h8300.h: Fill in all the holes in the opcode table so that the
2275 losing HPUX C compiler can digest this...
2277 Thu Jun 11 12:15:25 1992 John Gilmore (gnu at cygnus.com)
2279 * mips.h: Fix decoding of coprocessor instructions, somewhat.
2284 * sparc.h: Add new architecture variant sparclite; add its scan
2285 and divscc opcodes. Define ARCHITECTURES_CONFLICT_P macro.
2289 * mips.h: Add some more opcode synonyms (from Frank Yellin,
2294 * rs6k.h: New version from IBM (Metin).
2298 * rs6k.h: Fix incorrect extended opcode for instructions `fm'
2301 Tue Apr 7 13:38:47 1992 Stu Grossman (grossman at cygnus.com)
2303 * rs6k.h: Move from ../../gdb/rs6k-opcode.h.
2307 * m68k.h (one, two): Cast macro args to unsigned to suppress
2308 complaints from compiler and lint about integer overflow during
2311 Sun Mar 29 12:22:08 1992 John Gilmore (gnu at cygnus.com)
2313 * sparc.h (OP): Avoid signed overflow when shifting to high order bit.
2315 Fri Mar 6 00:22:38 1992 John Gilmore (gnu at cygnus.com)
2317 * mips.h: Make bitfield layout depend on the HOST compiler,
2318 not on the TARGET system.
2322 * i386.h: added inb, inw, outb, outw opcodes, added att syntax for
2323 scmp, slod, smov, ssca, ssto. Curtesy Minh Tran-Le
2326 Thu Jan 30 07:31:44 1992 Steve Chamberlain (sac at rtl.cygnus.com)
2328 * h8300.h: turned op_type enum into #define list
2330 Thu Jan 30 01:07:24 1992 John Gilmore (gnu at cygnus.com)
2332 * sparc.h: Remove "cypress" architecture. Remove "fitox" and
2333 similar instructions -- they've been renamed to "fitoq", etc.
2334 REALLY fix tsubcctv. Fix "fcmpeq" and "fcmpq" which had wrong
2335 number of arguments.
2336 * h8300.h: Remove extra ; which produces compiler warning.
2338 Tue Jan 28 22:59:22 1992 Stu Grossman (grossman at cygnus.com)
2340 * sparc.h: fix opcode for tsubcctv.
2342 Tue Jan 7 17:19:39 1992 K. Richard Pixley (rich at cygnus.com)
2344 * sparc.h: fba and cba are now aliases for fb and cb respectively.
2346 Fri Dec 27 10:55:50 1991 Per Bothner (bothner at cygnus.com)
2348 * sparc.h (nop): Made the 'lose' field be even tighter,
2349 so only a standard 'nop' is disassembled as a nop.
2351 Sun Dec 22 12:18:18 1991 Michael Tiemann (tiemann at cygnus.com)
2353 * sparc.h (nop): Add RD_GO to `lose' so that only %g0 in dest is
2354 disassembled as a nop.
2356 Tue Dec 10 00:22:20 1991 K. Richard Pixley (rich at rtl.cygnus.com)
2358 * sparc.h: fix a typo.
2360 Sat Nov 30 20:40:51 1991 Steve Chamberlain (sac at rtl.cygnus.com)
2362 * a29k.h, arm.h, h8300.h, i386.h, i860.h, i960.h , m68k.h,
2363 m88k.h, mips.h , np1.h, ns32k.h, pn.h, pyr.h, sparc.h, tahoe.h,
2364 vax.h, ChangeLog: renamed from ../<foo>-opcode.h
2368 version-control: never