-/* Generic opcode table support for targets using CGEN. -*- C -*-
- CGEN: Cpu tools GENerator
+/* Instruction opcode table for fr30.
-THIS FILE IS USED TO GENERATE fr30-opc.c.
+THIS FILE IS MACHINE GENERATED WITH CGEN.
-Copyright (C) 1998 Free Software Foundation, Inc.
+Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
-This file is part of the GNU Binutils and GDB, the GNU debugger.
+This file is part of the GNU Binutils and/or GDB, the GNU debugger.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software Foundation, Inc.,
-59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+You should have received a copy of the GNU General Public License along
+with this program; if not, write to the Free Software Foundation, Inc.,
+59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#include "sysdep.h"
-#include <stdio.h>
-#include "ansidecl.h"
-#include "libiberty.h"
-#include "bfd.h"
-#include "symcat.h"
-#include "fr30-opc.h"
-#include "opintl.h"
-
-/* Used by the ifield rtx function. */
-#define FLD(f) (fields->f)
-
-/* The hash functions are recorded here to help keep assembler code out of
- the disassembler and vice versa. */
-
-static int asm_hash_insn_p PARAMS ((const CGEN_INSN *));
-static unsigned int asm_hash_insn PARAMS ((const char *));
-static int dis_hash_insn_p PARAMS ((const CGEN_INSN *));
-static unsigned int dis_hash_insn PARAMS ((const char *, CGEN_INSN_INT));
-
-/* Look up instruction INSN_VALUE and extract its fields.
- INSN, if non-null, is the insn table entry.
- Otherwise INSN_VALUE is examined to compute it.
- LENGTH is the bit length of INSN_VALUE if known, otherwise 0.
- 0 is only valid if `insn == NULL && ! CGEN_INT_INSN_P'.
- If INSN != NULL, LENGTH must be valid.
- ALIAS_P is non-zero if alias insns are to be included in the search.
-
- The result is a pointer to the insn table entry, or NULL if the instruction
- wasn't recognized. */
-
-const CGEN_INSN *
-fr30_cgen_lookup_insn (od, insn, insn_value, length, fields, alias_p)
- CGEN_OPCODE_DESC od;
- const CGEN_INSN *insn;
- CGEN_INSN_BYTES insn_value;
- int length;
- CGEN_FIELDS *fields;
- int alias_p;
-{
- unsigned char buf[CGEN_MAX_INSN_SIZE];
- unsigned char *bufp;
- CGEN_INSN_INT base_insn;
-#if CGEN_INT_INSN_P
- CGEN_EXTRACT_INFO *info = NULL;
-#else
- CGEN_EXTRACT_INFO ex_info;
- CGEN_EXTRACT_INFO *info = &ex_info;
-#endif
-
-#if CGEN_INT_INSN_P
- cgen_put_insn_value (od, buf, length, insn_value);
- bufp = buf;
- base_insn = insn_value; /*???*/
-#else
- ex_info.dis_info = NULL;
- ex_info.insn_bytes = insn_value;
- ex_info.valid = -1;
- base_insn = cgen_get_insn_value (od, buf, length);
- bufp = insn_value;
-#endif
-
- if (!insn)
- {
- const CGEN_INSN_LIST *insn_list;
-
- /* The instructions are stored in hash lists.
- Pick the first one and keep trying until we find the right one. */
-
- insn_list = CGEN_DIS_LOOKUP_INSN (od, bufp, base_insn);
- while (insn_list != NULL)
- {
- insn = insn_list->insn;
-
- if (alias_p
- || ! CGEN_INSN_ATTR (insn, CGEN_INSN_ALIAS))
- {
- /* Basic bit mask must be correct. */
- /* ??? May wish to allow target to defer this check until the
- extract handler. */
- if ((base_insn & CGEN_INSN_BASE_MASK (insn))
- == CGEN_INSN_BASE_VALUE (insn))
- {
- /* ??? 0 is passed for `pc' */
- int elength = (*CGEN_EXTRACT_FN (insn)) (od, insn, info,
- base_insn, fields,
- (bfd_vma) 0);
- if (elength > 0)
- {
- /* sanity check */
- if (length != 0 && length != elength)
- abort ();
- return insn;
- }
- }
- }
-
- insn_list = CGEN_DIS_NEXT_INSN (insn_list);
- }
- }
- else
- {
- /* Sanity check: can't pass an alias insn if ! alias_p. */
- if (! alias_p
- && CGEN_INSN_ATTR (insn, CGEN_INSN_ALIAS))
- abort ();
- /* Sanity check: length must be correct. */
- if (length != CGEN_INSN_BITSIZE (insn))
- abort ();
-
- /* ??? 0 is passed for `pc' */
- length = (*CGEN_EXTRACT_FN (insn)) (od, insn, info, base_insn, fields,
- (bfd_vma) 0);
- /* Sanity check: must succeed.
- Could relax this later if it ever proves useful. */
- if (length == 0)
- abort ();
- return insn;
- }
-
- return NULL;
-}
-
-/* Fill in the operand instances used by INSN whose operands are FIELDS.
- INDICES is a pointer to a buffer of MAX_OPERAND_INSTANCES ints to be filled
- in. */
-
-void
-fr30_cgen_get_insn_operands (od, insn, fields, indices)
- CGEN_OPCODE_DESC od;
- const CGEN_INSN * insn;
- const CGEN_FIELDS * fields;
- int *indices;
-{
- const CGEN_OPERAND_INSTANCE *opinst;
- int i;
-
- for (i = 0, opinst = CGEN_INSN_OPERANDS (insn);
- opinst != NULL
- && CGEN_OPERAND_INSTANCE_TYPE (opinst) != CGEN_OPERAND_INSTANCE_END;
- ++i, ++opinst)
- {
- const CGEN_OPERAND *op = CGEN_OPERAND_INSTANCE_OPERAND (opinst);
- if (op == NULL)
- indices[i] = CGEN_OPERAND_INSTANCE_INDEX (opinst);
- else
- indices[i] = fr30_cgen_get_int_operand (CGEN_OPERAND_INDEX (op),
- fields);
- }
-}
-
-/* Cover function to fr30_cgen_get_insn_operands when either INSN or FIELDS
- isn't known.
- The INSN, INSN_VALUE, and LENGTH arguments are passed to
- fr30_cgen_lookup_insn unchanged.
-
- The result is the insn table entry or NULL if the instruction wasn't
- recognized. */
-
-const CGEN_INSN *
-fr30_cgen_lookup_get_insn_operands (od, insn, insn_value, length, indices)
- CGEN_OPCODE_DESC od;
- const CGEN_INSN *insn;
- CGEN_INSN_BYTES insn_value;
- int length;
- int *indices;
-{
- CGEN_FIELDS fields;
-
- /* Pass non-zero for ALIAS_P only if INSN != NULL.
- If INSN == NULL, we want a real insn. */
- insn = fr30_cgen_lookup_insn (od, insn, insn_value, length, &fields,
- insn != NULL);
- if (! insn)
- return NULL;
-
- fr30_cgen_get_insn_operands (od, insn, &fields, indices);
- return insn;
-}
-/* Attributes. */
-
-static const CGEN_ATTR_ENTRY MACH_attr[] =
-{
- { "base", MACH_BASE },
- { "fr30", MACH_FR30 },
- { "max", MACH_MAX },
- { 0, 0 }
-};
-
-const CGEN_ATTR_TABLE fr30_cgen_hardware_attr_table[] =
-{
- { "CACHE-ADDR", NULL },
- { "FUN-ACCESS", NULL },
- { "PC", NULL },
- { "PROFILE", NULL },
- { 0, 0 }
-};
-
-const CGEN_ATTR_TABLE fr30_cgen_operand_attr_table[] =
-{
- { "ABS-ADDR", NULL },
- { "HASH-PREFIX", NULL },
- { "NEGATIVE", NULL },
- { "PCREL-ADDR", NULL },
- { "RELAX", NULL },
- { "SEM-ONLY", NULL },
- { "SIGN-OPT", NULL },
- { "SIGNED", NULL },
- { "UNSIGNED", NULL },
- { "VIRTUAL", NULL },
- { 0, 0 }
-};
-
-const CGEN_ATTR_TABLE fr30_cgen_insn_attr_table[] =
-{
- { "ALIAS", NULL },
- { "COND-CTI", NULL },
- { "DELAY-SLOT", NULL },
- { "NO-DIS", NULL },
- { "NOT-IN-DELAY-SLOT", NULL },
- { "RELAX", NULL },
- { "RELAXABLE", NULL },
- { "SKIP-CTI", NULL },
- { "UNCOND-CTI", NULL },
- { "VIRTUAL", NULL },
- { 0, 0 }
-};
-
-CGEN_KEYWORD_ENTRY fr30_cgen_opval_h_gr_entries[] =
-{
- { "ac", 13 },
- { "fp", 14 },
- { "sp", 15 },
- { "r0", 0 },
- { "r1", 1 },
- { "r2", 2 },
- { "r3", 3 },
- { "r4", 4 },
- { "r5", 5 },
- { "r6", 6 },
- { "r7", 7 },
- { "r8", 8 },
- { "r9", 9 },
- { "r10", 10 },
- { "r11", 11 },
- { "r12", 12 },
- { "r13", 13 },
- { "r14", 14 },
- { "r15", 15 }
-};
-
-CGEN_KEYWORD fr30_cgen_opval_h_gr =
-{
- & fr30_cgen_opval_h_gr_entries[0],
- 19
-};
-
-CGEN_KEYWORD_ENTRY fr30_cgen_opval_h_cr_entries[] =
-{
- { "cr0", 0 },
- { "cr1", 1 },
- { "cr2", 2 },
- { "cr3", 3 },
- { "cr4", 4 },
- { "cr5", 5 },
- { "cr6", 6 },
- { "cr7", 7 },
- { "cr8", 8 },
- { "cr9", 9 },
- { "cr10", 10 },
- { "cr11", 11 },
- { "cr12", 12 },
- { "cr13", 13 },
- { "cr14", 14 },
- { "cr15", 15 }
-};
-
-CGEN_KEYWORD fr30_cgen_opval_h_cr =
-{
- & fr30_cgen_opval_h_cr_entries[0],
- 16
-};
-
-CGEN_KEYWORD_ENTRY fr30_cgen_opval_h_dr_entries[] =
-{
- { "tbr", 0 },
- { "rp", 1 },
- { "ssp", 2 },
- { "usp", 3 },
- { "mdh", 4 },
- { "mdl", 5 }
-};
-
-CGEN_KEYWORD fr30_cgen_opval_h_dr =
-{
- & fr30_cgen_opval_h_dr_entries[0],
- 6
-};
-
-CGEN_KEYWORD_ENTRY fr30_cgen_opval_h_ps_entries[] =
-{
- { "ps", 0 }
-};
-
-CGEN_KEYWORD fr30_cgen_opval_h_ps =
-{
- & fr30_cgen_opval_h_ps_entries[0],
- 1
-};
-
-CGEN_KEYWORD_ENTRY fr30_cgen_opval_h_r13_entries[] =
-{
- { "r13", 0 }
-};
-
-CGEN_KEYWORD fr30_cgen_opval_h_r13 =
-{
- & fr30_cgen_opval_h_r13_entries[0],
- 1
-};
-
-CGEN_KEYWORD_ENTRY fr30_cgen_opval_h_r14_entries[] =
-{
- { "r14", 0 }
-};
-
-CGEN_KEYWORD fr30_cgen_opval_h_r14 =
-{
- & fr30_cgen_opval_h_r14_entries[0],
- 1
-};
-
-CGEN_KEYWORD_ENTRY fr30_cgen_opval_h_r15_entries[] =
-{
- { "r15", 0 }
-};
-
-CGEN_KEYWORD fr30_cgen_opval_h_r15 =
-{
- & fr30_cgen_opval_h_r15_entries[0],
- 1
-};
-
-
-/* The hardware table. */
-
-#define HW_ENT(n) fr30_cgen_hw_entries[n]
-static const CGEN_HW_ENTRY fr30_cgen_hw_entries[] =
-{
- { HW_H_PC, & HW_ENT (HW_H_PC + 1), "h-pc", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0|(1<<CGEN_HW_PROFILE)|(1<<CGEN_HW_PC), { 0 } } },
- { HW_H_MEMORY, & HW_ENT (HW_H_MEMORY + 1), "h-memory", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0, { 0 } } },
- { HW_H_SINT, & HW_ENT (HW_H_SINT + 1), "h-sint", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0, { 0 } } },
- { HW_H_UINT, & HW_ENT (HW_H_UINT + 1), "h-uint", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0, { 0 } } },
- { HW_H_ADDR, & HW_ENT (HW_H_ADDR + 1), "h-addr", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0, { 0 } } },
- { HW_H_IADDR, & HW_ENT (HW_H_IADDR + 1), "h-iaddr", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0, { 0 } } },
- { HW_H_GR, & HW_ENT (HW_H_GR + 1), "h-gr", CGEN_ASM_KEYWORD, (PTR) & fr30_cgen_opval_h_gr, { 0, 0|(1<<CGEN_HW_CACHE_ADDR)|(1<<CGEN_HW_PROFILE), { 0 } } },
- { HW_H_CR, & HW_ENT (HW_H_CR + 1), "h-cr", CGEN_ASM_KEYWORD, (PTR) & fr30_cgen_opval_h_cr, { 0, 0, { 0 } } },
- { HW_H_DR, & HW_ENT (HW_H_DR + 1), "h-dr", CGEN_ASM_KEYWORD, (PTR) & fr30_cgen_opval_h_dr, { 0, 0|(1<<CGEN_HW_FUN_ACCESS), { 0 } } },
- { HW_H_PS, & HW_ENT (HW_H_PS + 1), "h-ps", CGEN_ASM_KEYWORD, (PTR) & fr30_cgen_opval_h_ps, { 0, 0|(1<<CGEN_HW_FUN_ACCESS), { 0 } } },
- { HW_H_R13, & HW_ENT (HW_H_R13 + 1), "h-r13", CGEN_ASM_KEYWORD, (PTR) & fr30_cgen_opval_h_r13, { 0, 0, { 0 } } },
- { HW_H_R14, & HW_ENT (HW_H_R14 + 1), "h-r14", CGEN_ASM_KEYWORD, (PTR) & fr30_cgen_opval_h_r14, { 0, 0, { 0 } } },
- { HW_H_R15, & HW_ENT (HW_H_R15 + 1), "h-r15", CGEN_ASM_KEYWORD, (PTR) & fr30_cgen_opval_h_r15, { 0, 0, { 0 } } },
- { HW_H_NBIT, & HW_ENT (HW_H_NBIT + 1), "h-nbit", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0, { 0 } } },
- { HW_H_ZBIT, & HW_ENT (HW_H_ZBIT + 1), "h-zbit", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0, { 0 } } },
- { HW_H_VBIT, & HW_ENT (HW_H_VBIT + 1), "h-vbit", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0, { 0 } } },
- { HW_H_CBIT, & HW_ENT (HW_H_CBIT + 1), "h-cbit", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0, { 0 } } },
- { HW_H_IBIT, & HW_ENT (HW_H_IBIT + 1), "h-ibit", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0, { 0 } } },
- { HW_H_SBIT, & HW_ENT (HW_H_SBIT + 1), "h-sbit", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0, { 0 } } },
- { HW_H_CCR, & HW_ENT (HW_H_CCR + 1), "h-ccr", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0|(1<<CGEN_HW_FUN_ACCESS), { 0 } } },
- { HW_H_SCR, & HW_ENT (HW_H_SCR + 1), "h-scr", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0|(1<<CGEN_HW_FUN_ACCESS), { 0 } } },
- { HW_H_ILM, & HW_ENT (HW_H_ILM + 1), "h-ilm", CGEN_ASM_KEYWORD, (PTR) 0, { 0, 0|(1<<CGEN_HW_FUN_ACCESS), { 0 } } },
- { 0 }
-};
-
-/* The instruction field table. */
-
-static const CGEN_IFLD fr30_cgen_ifld_table[] =
-{
- { FR30_F_NIL, "f-nil", 0, 0, 0, 0, { 0, 0, { 0 } } },
- { FR30_F_OP1, "f-op1", 0, 16, 0, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_OP2, "f-op2", 0, 16, 4, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_OP3, "f-op3", 0, 16, 8, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_OP4, "f-op4", 0, 16, 12, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_OP5, "f-op5", 0, 16, 4, 1, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_CC, "f-cc", 0, 16, 4, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_CCC, "f-ccc", 16, 16, 0, 8, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_RJ, "f-Rj", 0, 16, 8, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_RI, "f-Ri", 0, 16, 12, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_RS1, "f-Rs1", 0, 16, 8, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_RS2, "f-Rs2", 0, 16, 12, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_RJC, "f-Rjc", 16, 16, 8, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_RIC, "f-Ric", 16, 16, 12, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_CRJ, "f-CRj", 16, 16, 8, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_CRI, "f-CRi", 16, 16, 12, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_U4, "f-u4", 0, 16, 8, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_U4C, "f-u4c", 0, 16, 12, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_I4, "f-i4", 0, 16, 8, 4, { 0, 0|(1<<CGEN_IFLD_SIGNED), { 0 } } },
- { FR30_F_M4, "f-m4", 0, 16, 8, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_U8, "f-u8", 0, 16, 8, 8, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_I8, "f-i8", 0, 16, 4, 8, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_I20_4, "f-i20-4", 0, 16, 8, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_I20_16, "f-i20-16", 16, 16, 0, 16, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_I32, "f-i32", 16, 32, 0, 32, { 0, 0|(1<<CGEN_IFLD_SIGN_OPT)|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_UDISP6, "f-udisp6", 0, 16, 8, 4, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_DISP8, "f-disp8", 0, 16, 4, 8, { 0, 0|(1<<CGEN_IFLD_SIGNED), { 0 } } },
- { FR30_F_DISP9, "f-disp9", 0, 16, 4, 8, { 0, 0|(1<<CGEN_IFLD_SIGNED), { 0 } } },
- { FR30_F_DISP10, "f-disp10", 0, 16, 4, 8, { 0, 0|(1<<CGEN_IFLD_SIGNED), { 0 } } },
- { FR30_F_S10, "f-s10", 0, 16, 8, 8, { 0, 0|(1<<CGEN_IFLD_SIGNED), { 0 } } },
- { FR30_F_U10, "f-u10", 0, 16, 8, 8, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_REL9, "f-rel9", 0, 16, 8, 8, { 0, 0|(1<<CGEN_IFLD_PCREL_ADDR)|(1<<CGEN_IFLD_SIGNED), { 0 } } },
- { FR30_F_DIR8, "f-dir8", 0, 16, 8, 8, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_DIR9, "f-dir9", 0, 16, 8, 8, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_DIR10, "f-dir10", 0, 16, 8, 8, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_REL12, "f-rel12", 0, 16, 5, 11, { 0, 0|(1<<CGEN_IFLD_PCREL_ADDR)|(1<<CGEN_IFLD_SIGNED), { 0 } } },
- { FR30_F_REGLIST_HI_ST, "f-reglist_hi_st", 0, 16, 8, 8, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_REGLIST_LOW_ST, "f-reglist_low_st", 0, 16, 8, 8, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_REGLIST_HI_LD, "f-reglist_hi_ld", 0, 16, 8, 8, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { FR30_F_REGLIST_LOW_LD, "f-reglist_low_ld", 0, 16, 8, 8, { 0, 0|(1<<CGEN_IFLD_UNSIGNED), { 0 } } },
- { 0 }
-};
-
-/* The operand table. */
-
-#define OPERAND(op) CONCAT2 (FR30_OPERAND_,op)
-#define OP_ENT(op) fr30_cgen_operand_table[OPERAND (op)]
-
-const CGEN_OPERAND fr30_cgen_operand_table[MAX_OPERANDS] =
-{
-/* pc: program counter */
- { "pc", & HW_ENT (HW_H_PC), 0, 0,
- { 0, 0|(1<<CGEN_OPERAND_SEM_ONLY), { 0 } } },
-/* Ri: destination register */
- { "Ri", & HW_ENT (HW_H_GR), 12, 4,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* Rj: source register */
- { "Rj", & HW_ENT (HW_H_GR), 8, 4,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* Ric: target register coproc insn */
- { "Ric", & HW_ENT (HW_H_GR), 12, 4,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* Rjc: source register coproc insn */
- { "Rjc", & HW_ENT (HW_H_GR), 8, 4,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* CRi: coprocessor register */
- { "CRi", & HW_ENT (HW_H_CR), 12, 4,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* CRj: coprocessor register */
- { "CRj", & HW_ENT (HW_H_CR), 8, 4,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* Rs1: dedicated register */
- { "Rs1", & HW_ENT (HW_H_DR), 8, 4,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* Rs2: dedicated register */
- { "Rs2", & HW_ENT (HW_H_DR), 12, 4,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* R13: General Register 13 */
- { "R13", & HW_ENT (HW_H_R13), 0, 0,
- { 0, 0, { 0 } } },
-/* R14: General Register 14 */
- { "R14", & HW_ENT (HW_H_R14), 0, 0,
- { 0, 0, { 0 } } },
-/* R15: General Register 15 */
- { "R15", & HW_ENT (HW_H_R15), 0, 0,
- { 0, 0, { 0 } } },
-/* ps: Program Status register */
- { "ps", & HW_ENT (HW_H_PS), 0, 0,
- { 0, 0, { 0 } } },
-/* u4: 4 bit unsigned immediate */
- { "u4", & HW_ENT (HW_H_UINT), 8, 4,
- { 0, 0|(1<<CGEN_OPERAND_HASH_PREFIX)|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* u4c: 4 bit unsigned immediate */
- { "u4c", & HW_ENT (HW_H_UINT), 12, 4,
- { 0, 0|(1<<CGEN_OPERAND_HASH_PREFIX)|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* u8: 8 bit unsigned immediate */
- { "u8", & HW_ENT (HW_H_UINT), 8, 8,
- { 0, 0|(1<<CGEN_OPERAND_HASH_PREFIX)|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* i8: 8 bit unsigned immediate */
- { "i8", & HW_ENT (HW_H_UINT), 4, 8,
- { 0, 0|(1<<CGEN_OPERAND_HASH_PREFIX)|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* udisp6: 6 bit unsigned immediate */
- { "udisp6", & HW_ENT (HW_H_UINT), 8, 4,
- { 0, 0|(1<<CGEN_OPERAND_HASH_PREFIX)|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* disp8: 8 bit signed immediate */
- { "disp8", & HW_ENT (HW_H_SINT), 4, 8,
- { 0, 0|(1<<CGEN_OPERAND_HASH_PREFIX)|(1<<CGEN_OPERAND_SIGNED), { 0 } } },
-/* disp9: 9 bit signed immediate */
- { "disp9", & HW_ENT (HW_H_SINT), 4, 8,
- { 0, 0|(1<<CGEN_OPERAND_HASH_PREFIX)|(1<<CGEN_OPERAND_SIGNED), { 0 } } },
-/* disp10: 10 bit signed immediate */
- { "disp10", & HW_ENT (HW_H_SINT), 4, 8,
- { 0, 0|(1<<CGEN_OPERAND_HASH_PREFIX)|(1<<CGEN_OPERAND_SIGNED), { 0 } } },
-/* s10: 10 bit signed immediate */
- { "s10", & HW_ENT (HW_H_SINT), 8, 8,
- { 0, 0|(1<<CGEN_OPERAND_HASH_PREFIX)|(1<<CGEN_OPERAND_SIGNED), { 0 } } },
-/* u10: 10 bit unsigned immediate */
- { "u10", & HW_ENT (HW_H_UINT), 8, 8,
- { 0, 0|(1<<CGEN_OPERAND_HASH_PREFIX)|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* i32: 32 bit immediate */
- { "i32", & HW_ENT (HW_H_UINT), 0, 32,
- { 0, 0|(1<<CGEN_OPERAND_HASH_PREFIX)|(1<<CGEN_OPERAND_SIGN_OPT)|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* m4: 4 bit negative immediate */
- { "m4", & HW_ENT (HW_H_SINT), 8, 4,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* i20: 20 bit immediate */
- { "i20", & HW_ENT (HW_H_UINT), 0, 20,
- { 0, 0|(1<<CGEN_OPERAND_HASH_PREFIX)|(1<<CGEN_OPERAND_UNSIGNED)|(1<<CGEN_OPERAND_VIRTUAL), { 0 } } },
-/* dir8: 8 bit direct address */
- { "dir8", & HW_ENT (HW_H_UINT), 8, 8,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* dir9: 9 bit direct address */
- { "dir9", & HW_ENT (HW_H_UINT), 8, 8,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* dir10: 10 bit direct address */
- { "dir10", & HW_ENT (HW_H_UINT), 8, 8,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* label9: 9 bit pc relative address */
- { "label9", & HW_ENT (HW_H_IADDR), 8, 8,
- { 0, 0|(1<<CGEN_OPERAND_PCREL_ADDR)|(1<<CGEN_OPERAND_SIGNED), { 0 } } },
-/* label12: 12 bit pc relative address */
- { "label12", & HW_ENT (HW_H_IADDR), 5, 11,
- { 0, 0|(1<<CGEN_OPERAND_PCREL_ADDR)|(1<<CGEN_OPERAND_SIGNED), { 0 } } },
-/* reglist_low_ld: 8 bit register mask for ldm */
- { "reglist_low_ld", & HW_ENT (HW_H_UINT), 8, 8,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* reglist_hi_ld: 8 bit register mask for ldm */
- { "reglist_hi_ld", & HW_ENT (HW_H_UINT), 8, 8,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* reglist_low_st: 8 bit register mask for ldm */
- { "reglist_low_st", & HW_ENT (HW_H_UINT), 8, 8,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* reglist_hi_st: 8 bit register mask for ldm */
- { "reglist_hi_st", & HW_ENT (HW_H_UINT), 8, 8,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* cc: condition codes */
- { "cc", & HW_ENT (HW_H_UINT), 4, 4,
- { 0, 0|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* ccc: coprocessor calc */
- { "ccc", & HW_ENT (HW_H_UINT), 0, 8,
- { 0, 0|(1<<CGEN_OPERAND_HASH_PREFIX)|(1<<CGEN_OPERAND_UNSIGNED), { 0 } } },
-/* nbit: negative bit */
- { "nbit", & HW_ENT (HW_H_NBIT), 0, 0,
- { 0, 0|(1<<CGEN_OPERAND_SEM_ONLY), { 0 } } },
-/* vbit: overflow bit */
- { "vbit", & HW_ENT (HW_H_VBIT), 0, 0,
- { 0, 0|(1<<CGEN_OPERAND_SEM_ONLY), { 0 } } },
-/* zbit: zero bit */
- { "zbit", & HW_ENT (HW_H_ZBIT), 0, 0,
- { 0, 0|(1<<CGEN_OPERAND_SEM_ONLY), { 0 } } },
-/* cbit: carry bit */
- { "cbit", & HW_ENT (HW_H_CBIT), 0, 0,
- { 0, 0|(1<<CGEN_OPERAND_SEM_ONLY), { 0 } } },
-/* ibit: interrupt bit */
- { "ibit", & HW_ENT (HW_H_IBIT), 0, 0,
- { 0, 0|(1<<CGEN_OPERAND_SEM_ONLY), { 0 } } },
-/* sbit: stack bit */
- { "sbit", & HW_ENT (HW_H_SBIT), 0, 0,
- { 0, 0|(1<<CGEN_OPERAND_SEM_ONLY), { 0 } } },
-/* ccr: condition code bits */
- { "ccr", & HW_ENT (HW_H_CCR), 0, 0,
- { 0, 0|(1<<CGEN_OPERAND_SEM_ONLY), { 0 } } },
-/* scr: system condition bits */
- { "scr", & HW_ENT (HW_H_SCR), 0, 0,
- { 0, 0|(1<<CGEN_OPERAND_SEM_ONLY), { 0 } } },
-/* ilm: condition code bits */
- { "ilm", & HW_ENT (HW_H_ILM), 0, 0,
- { 0, 0|(1<<CGEN_OPERAND_SEM_ONLY), { 0 } } },
-};
-
-/* Operand references. */
-
-#define INPUT CGEN_OPERAND_INSTANCE_INPUT
-#define OUTPUT CGEN_OPERAND_INSTANCE_OUTPUT
-#define COND_REF CGEN_OPERAND_INSTANCE_COND_REF
-
-static const CGEN_OPERAND_INSTANCE fmt_add_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { OUTPUT, "vbit", & HW_ENT (HW_H_VBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "cbit", & HW_ENT (HW_H_CBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_addi_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "u4", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (U4), 0, 0 },
- { OUTPUT, "vbit", & HW_ENT (HW_H_VBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "cbit", & HW_ENT (HW_H_CBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_add2_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "m4", & HW_ENT (HW_H_SINT), CGEN_MODE_SI, & OP_ENT (M4), 0, 0 },
- { OUTPUT, "vbit", & HW_ENT (HW_H_VBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "cbit", & HW_ENT (HW_H_CBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_addc_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "cbit", & HW_ENT (HW_H_CBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "vbit", & HW_ENT (HW_H_VBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "cbit", & HW_ENT (HW_H_CBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_addn_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_addni_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "u4", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (U4), 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_addn2_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "m4", & HW_ENT (HW_H_SINT), CGEN_MODE_SI, & OP_ENT (M4), 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_cmp_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { OUTPUT, "vbit", & HW_ENT (HW_H_VBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "cbit", & HW_ENT (HW_H_CBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_cmpi_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "u4", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (U4), 0, 0 },
- { OUTPUT, "vbit", & HW_ENT (HW_H_VBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "cbit", & HW_ENT (HW_H_CBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_cmp2_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "m4", & HW_ENT (HW_H_SINT), CGEN_MODE_SI, & OP_ENT (M4), 0, 0 },
- { OUTPUT, "vbit", & HW_ENT (HW_H_VBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "cbit", & HW_ENT (HW_H_CBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_and_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_andm_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_USI, & OP_ENT (RI), 0, 0 },
- { INPUT, "h_memory_Ri", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "h_memory_Ri", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_andh_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_USI, & OP_ENT (RI), 0, 0 },
- { INPUT, "h_memory_Ri", & HW_ENT (HW_H_MEMORY), CGEN_MODE_HI, 0, 0, 0 },
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_HI, & OP_ENT (RJ), 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "h_memory_Ri", & HW_ENT (HW_H_MEMORY), CGEN_MODE_HI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_andb_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_USI, & OP_ENT (RI), 0, 0 },
- { INPUT, "h_memory_Ri", & HW_ENT (HW_H_MEMORY), CGEN_MODE_QI, 0, 0, 0 },
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_QI, & OP_ENT (RJ), 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "h_memory_Ri", & HW_ENT (HW_H_MEMORY), CGEN_MODE_QI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_bandl_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_USI, & OP_ENT (RI), 0, 0 },
- { INPUT, "u4", & HW_ENT (HW_H_UINT), CGEN_MODE_QI, & OP_ENT (U4), 0, 0 },
- { INPUT, "h_memory_Ri", & HW_ENT (HW_H_MEMORY), CGEN_MODE_QI, 0, 0, 0 },
- { OUTPUT, "h_memory_Ri", & HW_ENT (HW_H_MEMORY), CGEN_MODE_QI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_btstl_ops[] = {
- { INPUT, "u4", & HW_ENT (HW_H_UINT), CGEN_MODE_QI, & OP_ENT (U4), 0, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_USI, & OP_ENT (RI), 0, 0 },
- { INPUT, "h_memory_Ri", & HW_ENT (HW_H_MEMORY), CGEN_MODE_QI, 0, 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_mul_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "h_dr_5", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 5, 0 },
- { OUTPUT, "h_dr_5", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 5, 0 },
- { OUTPUT, "h_dr_4", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 4, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "vbit", & HW_ENT (HW_H_VBIT), CGEN_MODE_BI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_mulu_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "h_dr_4", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 4, 0 },
- { INPUT, "h_dr_5", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 5, 0 },
- { OUTPUT, "h_dr_5", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 5, 0 },
- { OUTPUT, "h_dr_4", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 4, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "vbit", & HW_ENT (HW_H_VBIT), CGEN_MODE_BI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_mulh_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "h_dr_5", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 5, 0 },
- { OUTPUT, "h_dr_5", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 5, 0 },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_lsl_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, COND_REF },
- { OUTPUT, "cbit", & HW_ENT (HW_H_CBIT), CGEN_MODE_BI, 0, 0, COND_REF },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, COND_REF },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_lsli_ops[] = {
- { INPUT, "u4", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (U4), 0, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, COND_REF },
- { OUTPUT, "cbit", & HW_ENT (HW_H_CBIT), CGEN_MODE_BI, 0, 0, COND_REF },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, COND_REF },
- { OUTPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldi8_ops[] = {
- { INPUT, "i8", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (I8), 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldi20_ops[] = {
- { INPUT, "i20", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (I20), 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldi32_ops[] = {
- { INPUT, "i32", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (I32), 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ld_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_USI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "h_memory_Rj", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_lduh_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_USI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "h_memory_Rj", & HW_ENT (HW_H_MEMORY), CGEN_MODE_UHI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldub_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_USI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "h_memory_Rj", & HW_ENT (HW_H_MEMORY), CGEN_MODE_UQI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldr13_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { INPUT, "h_memory_add__VM_Rj_reg__VM_h_gr_13", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldr13uh_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { INPUT, "h_memory_add__VM_Rj_reg__VM_h_gr_13", & HW_ENT (HW_H_MEMORY), CGEN_MODE_UHI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldr13ub_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { INPUT, "h_memory_add__VM_Rj_reg__VM_h_gr_13", & HW_ENT (HW_H_MEMORY), CGEN_MODE_UQI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldr14_ops[] = {
- { INPUT, "disp10", & HW_ENT (HW_H_SINT), CGEN_MODE_SI, & OP_ENT (DISP10), 0, 0 },
- { INPUT, "h_gr_14", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 14, 0 },
- { INPUT, "h_memory_add__VM_disp10_reg__VM_h_gr_14", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldr14uh_ops[] = {
- { INPUT, "disp9", & HW_ENT (HW_H_SINT), CGEN_MODE_SI, & OP_ENT (DISP9), 0, 0 },
- { INPUT, "h_gr_14", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 14, 0 },
- { INPUT, "h_memory_add__VM_disp9_reg__VM_h_gr_14", & HW_ENT (HW_H_MEMORY), CGEN_MODE_UHI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldr14ub_ops[] = {
- { INPUT, "disp8", & HW_ENT (HW_H_SINT), CGEN_MODE_SI, & OP_ENT (DISP8), 0, 0 },
- { INPUT, "h_gr_14", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 14, 0 },
- { INPUT, "h_memory_add__VM_disp8_reg__VM_h_gr_14", & HW_ENT (HW_H_MEMORY), CGEN_MODE_UQI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldr15_ops[] = {
- { INPUT, "udisp6", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (UDISP6), 0, 0 },
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { INPUT, "h_memory_add__VM_udisp6_reg__VM_h_gr_15", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldr15gr_ops[] = {
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { INPUT, "h_memory_reg__VM_h_gr_15", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { INPUT, "f_Ri", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, 0, 0, COND_REF },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, COND_REF },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldr15dr_ops[] = {
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { INPUT, "h_memory_reg__VM_h_gr_15", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { OUTPUT, "Rs2", & HW_ENT (HW_H_DR), CGEN_MODE_SI, & OP_ENT (RS2), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldr15ps_ops[] = {
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { INPUT, "h_memory_reg__VM_h_gr_15", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "ps", & HW_ENT (HW_H_PS), CGEN_MODE_USI, 0, 0, 0 },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_st_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_USI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "h_memory_Rj", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_sth_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_USI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "h_memory_Rj", & HW_ENT (HW_H_MEMORY), CGEN_MODE_HI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_stb_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_USI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "h_memory_Rj", & HW_ENT (HW_H_MEMORY), CGEN_MODE_QI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_str13_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "h_memory_add__VM_Rj_reg__VM_h_gr_13", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_str13h_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "h_memory_add__VM_Rj_reg__VM_h_gr_13", & HW_ENT (HW_H_MEMORY), CGEN_MODE_HI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_str13b_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "h_memory_add__VM_Rj_reg__VM_h_gr_13", & HW_ENT (HW_H_MEMORY), CGEN_MODE_QI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_str14_ops[] = {
- { INPUT, "disp10", & HW_ENT (HW_H_SINT), CGEN_MODE_SI, & OP_ENT (DISP10), 0, 0 },
- { INPUT, "h_gr_14", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 14, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "h_memory_add__VM_disp10_reg__VM_h_gr_14", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_str14h_ops[] = {
- { INPUT, "disp9", & HW_ENT (HW_H_SINT), CGEN_MODE_SI, & OP_ENT (DISP9), 0, 0 },
- { INPUT, "h_gr_14", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 14, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "h_memory_add__VM_disp9_reg__VM_h_gr_14", & HW_ENT (HW_H_MEMORY), CGEN_MODE_HI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_str14b_ops[] = {
- { INPUT, "disp8", & HW_ENT (HW_H_SINT), CGEN_MODE_SI, & OP_ENT (DISP8), 0, 0 },
- { INPUT, "h_gr_14", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 14, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "h_memory_add__VM_disp8_reg__VM_h_gr_14", & HW_ENT (HW_H_MEMORY), CGEN_MODE_QI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_str15_ops[] = {
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { INPUT, "udisp6", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (UDISP6), 0, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "h_memory_add__VM_reg__VM_h_gr_15_udisp6", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_str15gr_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { OUTPUT, "h_memory_reg__VM_h_gr_15", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_str15dr_ops[] = {
- { INPUT, "Rs2", & HW_ENT (HW_H_DR), CGEN_MODE_SI, & OP_ENT (RS2), 0, 0 },
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { OUTPUT, "h_memory_reg__VM_h_gr_15", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_str15ps_ops[] = {
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { INPUT, "ps", & HW_ENT (HW_H_PS), CGEN_MODE_USI, 0, 0, 0 },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { OUTPUT, "h_memory_reg__VM_h_gr_15", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_mov_ops[] = {
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RJ), 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_movdr_ops[] = {
- { INPUT, "Rs1", & HW_ENT (HW_H_DR), CGEN_MODE_SI, & OP_ENT (RS1), 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_movps_ops[] = {
- { INPUT, "ps", & HW_ENT (HW_H_PS), CGEN_MODE_USI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_mov2dr_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "Rs1", & HW_ENT (HW_H_DR), CGEN_MODE_SI, & OP_ENT (RS1), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_mov2ps_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "ps", & HW_ENT (HW_H_PS), CGEN_MODE_USI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_jmp_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_callr_ops[] = {
- { INPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, 0 },
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "h_dr_1", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 1, 0 },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_call_ops[] = {
- { INPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, 0 },
- { INPUT, "label12", & HW_ENT (HW_H_IADDR), CGEN_MODE_USI, & OP_ENT (LABEL12), 0, 0 },
- { OUTPUT, "h_dr_1", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 1, 0 },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ret_ops[] = {
- { INPUT, "h_dr_1", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 1, 0 },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_int_ops[] = {
- { INPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_SI, 0, 0, 0 },
- { INPUT, "u8", & HW_ENT (HW_H_UINT), CGEN_MODE_SI, & OP_ENT (U8), 0, 0 },
- { OUTPUT, "h_dr_2", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 2, 0 },
- { OUTPUT, "ibit", & HW_ENT (HW_H_IBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "sbit", & HW_ENT (HW_H_SBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_SI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_inte_ops[] = {
- { INPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "h_dr_2", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 2, 0 },
- { OUTPUT, "ibit", & HW_ENT (HW_H_IBIT), CGEN_MODE_BI, 0, 0, 0 },
- { OUTPUT, "ilm", & HW_ENT (HW_H_ILM), CGEN_MODE_UQI, 0, 0, 0 },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_SI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_reti_ops[] = {
- { INPUT, "sbit", & HW_ENT (HW_H_SBIT), CGEN_MODE_BI, 0, 0, 0 },
- { INPUT, "h_dr_2", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 2, COND_REF },
- { INPUT, "h_memory_reg__VM_h_dr_2", & HW_ENT (HW_H_MEMORY), CGEN_MODE_USI, 0, 0, COND_REF },
- { INPUT, "h_dr_3", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 3, COND_REF },
- { INPUT, "h_memory_reg__VM_h_dr_3", & HW_ENT (HW_H_MEMORY), CGEN_MODE_USI, 0, 0, COND_REF },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, COND_REF },
- { OUTPUT, "h_dr_2", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 2, COND_REF },
- { OUTPUT, "ps", & HW_ENT (HW_H_PS), CGEN_MODE_USI, 0, 0, COND_REF },
- { OUTPUT, "h_dr_3", & HW_ENT (HW_H_DR), CGEN_MODE_SI, 0, 3, COND_REF },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_bra_ops[] = {
- { INPUT, "label9", & HW_ENT (HW_H_IADDR), CGEN_MODE_USI, & OP_ENT (LABEL9), 0, COND_REF },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, COND_REF },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_beq_ops[] = {
- { INPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { INPUT, "label9", & HW_ENT (HW_H_IADDR), CGEN_MODE_USI, & OP_ENT (LABEL9), 0, COND_REF },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, COND_REF },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_bc_ops[] = {
- { INPUT, "cbit", & HW_ENT (HW_H_CBIT), CGEN_MODE_BI, 0, 0, 0 },
- { INPUT, "label9", & HW_ENT (HW_H_IADDR), CGEN_MODE_USI, & OP_ENT (LABEL9), 0, COND_REF },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, COND_REF },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_bn_ops[] = {
- { INPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { INPUT, "label9", & HW_ENT (HW_H_IADDR), CGEN_MODE_USI, & OP_ENT (LABEL9), 0, COND_REF },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, COND_REF },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_bv_ops[] = {
- { INPUT, "vbit", & HW_ENT (HW_H_VBIT), CGEN_MODE_BI, 0, 0, 0 },
- { INPUT, "label9", & HW_ENT (HW_H_IADDR), CGEN_MODE_USI, & OP_ENT (LABEL9), 0, COND_REF },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, COND_REF },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_blt_ops[] = {
- { INPUT, "vbit", & HW_ENT (HW_H_VBIT), CGEN_MODE_BI, 0, 0, 0 },
- { INPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { INPUT, "label9", & HW_ENT (HW_H_IADDR), CGEN_MODE_USI, & OP_ENT (LABEL9), 0, COND_REF },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, COND_REF },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ble_ops[] = {
- { INPUT, "vbit", & HW_ENT (HW_H_VBIT), CGEN_MODE_BI, 0, 0, 0 },
- { INPUT, "nbit", & HW_ENT (HW_H_NBIT), CGEN_MODE_BI, 0, 0, 0 },
- { INPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { INPUT, "label9", & HW_ENT (HW_H_IADDR), CGEN_MODE_USI, & OP_ENT (LABEL9), 0, COND_REF },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, COND_REF },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_bls_ops[] = {
- { INPUT, "cbit", & HW_ENT (HW_H_CBIT), CGEN_MODE_BI, 0, 0, 0 },
- { INPUT, "zbit", & HW_ENT (HW_H_ZBIT), CGEN_MODE_BI, 0, 0, 0 },
- { INPUT, "label9", & HW_ENT (HW_H_IADDR), CGEN_MODE_USI, & OP_ENT (LABEL9), 0, COND_REF },
- { OUTPUT, "pc", & HW_ENT (HW_H_PC), CGEN_MODE_USI, 0, 0, COND_REF },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_dmovr13_ops[] = {
- { INPUT, "dir10", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (DIR10), 0, 0 },
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { OUTPUT, "h_memory_dir10", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_dmovr13h_ops[] = {
- { INPUT, "dir9", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (DIR9), 0, 0 },
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { OUTPUT, "h_memory_dir9", & HW_ENT (HW_H_MEMORY), CGEN_MODE_HI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_dmovr13b_ops[] = {
- { INPUT, "dir8", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (DIR8), 0, 0 },
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { OUTPUT, "h_memory_dir8", & HW_ENT (HW_H_MEMORY), CGEN_MODE_QI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_dmovr13pi_ops[] = {
- { INPUT, "dir10", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (DIR10), 0, 0 },
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { INPUT, "h_memory_reg__VM_h_gr_13", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "h_memory_dir10", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_dmovr13pih_ops[] = {
- { INPUT, "dir9", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (DIR9), 0, 0 },
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { INPUT, "h_memory_reg__VM_h_gr_13", & HW_ENT (HW_H_MEMORY), CGEN_MODE_HI, 0, 0, 0 },
- { OUTPUT, "h_memory_dir9", & HW_ENT (HW_H_MEMORY), CGEN_MODE_HI, 0, 0, 0 },
- { OUTPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_dmovr13pib_ops[] = {
- { INPUT, "dir8", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (DIR8), 0, 0 },
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { INPUT, "h_memory_reg__VM_h_gr_13", & HW_ENT (HW_H_MEMORY), CGEN_MODE_QI, 0, 0, 0 },
- { OUTPUT, "h_memory_dir8", & HW_ENT (HW_H_MEMORY), CGEN_MODE_QI, 0, 0, 0 },
- { OUTPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_dmovr15pi_ops[] = {
- { INPUT, "dir10", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (DIR10), 0, 0 },
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { INPUT, "h_memory_reg__VM_h_gr_15", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "h_memory_dir10", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_dmov2r13_ops[] = {
- { INPUT, "dir10", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (DIR10), 0, 0 },
- { INPUT, "h_memory_dir10", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_dmov2r13h_ops[] = {
- { INPUT, "dir9", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (DIR9), 0, 0 },
- { INPUT, "h_memory_dir9", & HW_ENT (HW_H_MEMORY), CGEN_MODE_HI, 0, 0, 0 },
- { OUTPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_dmov2r13b_ops[] = {
- { INPUT, "dir8", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (DIR8), 0, 0 },
- { INPUT, "h_memory_dir8", & HW_ENT (HW_H_MEMORY), CGEN_MODE_QI, 0, 0, 0 },
- { OUTPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_dmov2r13pi_ops[] = {
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { INPUT, "dir10", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (DIR10), 0, 0 },
- { INPUT, "h_memory_dir10", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "h_memory_reg__VM_h_gr_13", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_dmov2r13pih_ops[] = {
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { INPUT, "dir9", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (DIR9), 0, 0 },
- { INPUT, "h_memory_dir9", & HW_ENT (HW_H_MEMORY), CGEN_MODE_HI, 0, 0, 0 },
- { OUTPUT, "h_memory_reg__VM_h_gr_13", & HW_ENT (HW_H_MEMORY), CGEN_MODE_HI, 0, 0, 0 },
- { OUTPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_dmov2r13pib_ops[] = {
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { INPUT, "dir8", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (DIR8), 0, 0 },
- { INPUT, "h_memory_dir8", & HW_ENT (HW_H_MEMORY), CGEN_MODE_QI, 0, 0, 0 },
- { OUTPUT, "h_memory_reg__VM_h_gr_13", & HW_ENT (HW_H_MEMORY), CGEN_MODE_QI, 0, 0, 0 },
- { OUTPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_dmov2r15pd_ops[] = {
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { INPUT, "dir10", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (DIR10), 0, 0 },
- { INPUT, "h_memory_dir10", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { OUTPUT, "h_memory_reg__VM_h_gr_15", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_andccr_ops[] = {
- { INPUT, "ccr", & HW_ENT (HW_H_CCR), CGEN_MODE_UQI, 0, 0, 0 },
- { INPUT, "u8", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (U8), 0, 0 },
- { OUTPUT, "ccr", & HW_ENT (HW_H_CCR), CGEN_MODE_UQI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_stilm_ops[] = {
- { INPUT, "u8", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (U8), 0, 0 },
- { OUTPUT, "ilm", & HW_ENT (HW_H_ILM), CGEN_MODE_UQI, 0, 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_addsp_ops[] = {
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { INPUT, "s10", & HW_ENT (HW_H_SINT), CGEN_MODE_SI, & OP_ENT (S10), 0, 0 },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_extsb_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_QI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_extub_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_UQI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_extsh_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_HI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_extuh_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_UHI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldm0_ops[] = {
- { INPUT, "reglist_low_ld", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (REGLIST_LOW_LD), 0, 0 },
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, COND_REF },
- { INPUT, "h_memory_reg__VM_h_gr_15", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, COND_REF },
- { OUTPUT, "h_gr_0", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 0, COND_REF },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, COND_REF },
- { OUTPUT, "h_gr_1", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 1, COND_REF },
- { OUTPUT, "h_gr_2", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 2, COND_REF },
- { OUTPUT, "h_gr_3", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 3, COND_REF },
- { OUTPUT, "h_gr_4", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 4, COND_REF },
- { OUTPUT, "h_gr_5", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 5, COND_REF },
- { OUTPUT, "h_gr_6", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 6, COND_REF },
- { OUTPUT, "h_gr_7", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 7, COND_REF },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_ldm1_ops[] = {
- { INPUT, "reglist_hi_ld", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (REGLIST_HI_LD), 0, 0 },
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, COND_REF },
- { INPUT, "h_memory_reg__VM_h_gr_15", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, COND_REF },
- { OUTPUT, "h_gr_8", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 8, COND_REF },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, COND_REF },
- { OUTPUT, "h_gr_9", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 9, COND_REF },
- { OUTPUT, "h_gr_10", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 10, COND_REF },
- { OUTPUT, "h_gr_11", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 11, COND_REF },
- { OUTPUT, "h_gr_12", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 12, COND_REF },
- { OUTPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, COND_REF },
- { OUTPUT, "h_gr_14", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 14, COND_REF },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_stm0_ops[] = {
- { INPUT, "reglist_low_st", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (REGLIST_LOW_ST), 0, 0 },
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, COND_REF },
- { INPUT, "h_gr_7", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 7, COND_REF },
- { INPUT, "h_gr_6", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 6, COND_REF },
- { INPUT, "h_gr_5", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 5, COND_REF },
- { INPUT, "h_gr_4", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 4, COND_REF },
- { INPUT, "h_gr_3", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 3, COND_REF },
- { INPUT, "h_gr_2", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 2, COND_REF },
- { INPUT, "h_gr_1", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 1, COND_REF },
- { INPUT, "h_gr_0", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 0, COND_REF },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, COND_REF },
- { OUTPUT, "h_memory_reg__VM_h_gr_15", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, COND_REF },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_stm1_ops[] = {
- { INPUT, "reglist_hi_st", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (REGLIST_HI_ST), 0, 0 },
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, COND_REF },
- { INPUT, "h_gr_14", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 14, COND_REF },
- { INPUT, "h_gr_13", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 13, COND_REF },
- { INPUT, "h_gr_12", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 12, COND_REF },
- { INPUT, "h_gr_11", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 11, COND_REF },
- { INPUT, "h_gr_10", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 10, COND_REF },
- { INPUT, "h_gr_9", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 9, COND_REF },
- { INPUT, "h_gr_8", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 8, COND_REF },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, COND_REF },
- { OUTPUT, "h_memory_reg__VM_h_gr_15", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, COND_REF },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_enter_ops[] = {
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { INPUT, "h_gr_14", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 14, 0 },
- { INPUT, "u10", & HW_ENT (HW_H_UINT), CGEN_MODE_USI, & OP_ENT (U10), 0, 0 },
- { OUTPUT, "h_memory_tmp", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "h_gr_14", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 14, 0 },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_leave_ops[] = {
- { INPUT, "h_gr_14", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 14, 0 },
- { INPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { INPUT, "h_memory_sub__VM_reg__VM_h_gr_15_const__WI_4", & HW_ENT (HW_H_MEMORY), CGEN_MODE_SI, 0, 0, 0 },
- { OUTPUT, "h_gr_15", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 15, 0 },
- { OUTPUT, "h_gr_14", & HW_ENT (HW_H_GR), CGEN_MODE_SI, 0, 14, 0 },
- { 0 }
-};
-
-static const CGEN_OPERAND_INSTANCE fmt_xchb_ops[] = {
- { INPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { INPUT, "Rj", & HW_ENT (HW_H_GR), CGEN_MODE_USI, & OP_ENT (RJ), 0, 0 },
- { INPUT, "h_memory_Rj", & HW_ENT (HW_H_MEMORY), CGEN_MODE_UQI, 0, 0, 0 },
- { OUTPUT, "Ri", & HW_ENT (HW_H_GR), CGEN_MODE_SI, & OP_ENT (RI), 0, 0 },
- { OUTPUT, "h_memory_Rj", & HW_ENT (HW_H_MEMORY), CGEN_MODE_UQI, 0, 0, 0 },
- { 0 }
-};
-
-#undef INPUT
-#undef OUTPUT
-#undef COND_REF
-
-/* Instruction formats. */
-
-#define F(f) & fr30_cgen_ifld_table[CONCAT2 (FR30_,f)]
-
-static const CGEN_IFMT fmt_add = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_addi = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_U4), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_add2 = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_M4), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_addc = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_addn = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_addni = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_U4), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_addn2 = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_M4), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_cmp = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_cmpi = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_U4), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_cmp2 = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_M4), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_and = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_andm = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_andh = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_andb = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_bandl = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_U4), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_btstl = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_U4), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_mul = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_mulu = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_mulh = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_div0s = {
- 16, 16, 0xfff0, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_div3 = {
- 16, 16, 0xffff, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_OP4), 0 }
-};
-
-static const CGEN_IFMT fmt_lsl = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_lsli = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_U4), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_ldi8 = {
- 16, 16, 0xf000, { F (F_OP1), F (F_I8), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_ldi20 = {
- 16, 32, 0xff00, { F (F_OP1), F (F_I20), F (F_OP2), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_ldi32 = {
- 16, 48, 0xfff0, { F (F_OP1), F (F_I32), F (F_OP2), F (F_OP3), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_ld = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_lduh = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_ldub = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_ldr13 = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_ldr13uh = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_ldr13ub = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_ldr14 = {
- 16, 16, 0xf000, { F (F_OP1), F (F_DISP10), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_ldr14uh = {
- 16, 16, 0xf000, { F (F_OP1), F (F_DISP9), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_ldr14ub = {
- 16, 16, 0xf000, { F (F_OP1), F (F_DISP8), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_ldr15 = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_UDISP6), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_ldr15gr = {
- 16, 16, 0xfff0, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_ldr15dr = {
- 16, 16, 0xfff0, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_RS2), 0 }
-};
-
-static const CGEN_IFMT fmt_ldr15ps = {
- 16, 16, 0xffff, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_OP4), 0 }
-};
-
-static const CGEN_IFMT fmt_st = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_sth = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_stb = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_str13 = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_str13h = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_str13b = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_str14 = {
- 16, 16, 0xf000, { F (F_OP1), F (F_DISP10), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_str14h = {
- 16, 16, 0xf000, { F (F_OP1), F (F_DISP9), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_str14b = {
- 16, 16, 0xf000, { F (F_OP1), F (F_DISP8), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_str15 = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_UDISP6), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_str15gr = {
- 16, 16, 0xfff0, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_str15dr = {
- 16, 16, 0xfff0, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_RS2), 0 }
-};
-
-static const CGEN_IFMT fmt_str15ps = {
- 16, 16, 0xffff, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_OP4), 0 }
-};
-
-static const CGEN_IFMT fmt_mov = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_movdr = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RS1), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_movps = {
- 16, 16, 0xfff0, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_mov2dr = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RS1), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_mov2ps = {
- 16, 16, 0xfff0, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_jmp = {
- 16, 16, 0xfff0, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_callr = {
- 16, 16, 0xfff0, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_RI), 0 }
-};
-
-static const CGEN_IFMT fmt_call = {
- 16, 16, 0xf800, { F (F_OP1), F (F_OP5), F (F_REL12), 0 }
-};
-
-static const CGEN_IFMT fmt_ret = {
- 16, 16, 0xffff, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_OP4), 0 }
-};
-
-static const CGEN_IFMT fmt_int = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_U8), 0 }
-};
-
-static const CGEN_IFMT fmt_inte = {
- 16, 16, 0xffff, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_OP4), 0 }
-};
-
-static const CGEN_IFMT fmt_reti = {
- 16, 16, 0xffff, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_OP4), 0 }
-};
-
-static const CGEN_IFMT fmt_bra = {
- 16, 16, 0xff00, { F (F_OP1), F (F_CC), F (F_REL9), 0 }
-};
-
-static const CGEN_IFMT fmt_beq = {
- 16, 16, 0xff00, { F (F_OP1), F (F_CC), F (F_REL9), 0 }
-};
-
-static const CGEN_IFMT fmt_bc = {
- 16, 16, 0xff00, { F (F_OP1), F (F_CC), F (F_REL9), 0 }
-};
-
-static const CGEN_IFMT fmt_bn = {
- 16, 16, 0xff00, { F (F_OP1), F (F_CC), F (F_REL9), 0 }
-};
-
-static const CGEN_IFMT fmt_bv = {
- 16, 16, 0xff00, { F (F_OP1), F (F_CC), F (F_REL9), 0 }
-};
-
-static const CGEN_IFMT fmt_blt = {
- 16, 16, 0xff00, { F (F_OP1), F (F_CC), F (F_REL9), 0 }
-};
+*/
-static const CGEN_IFMT fmt_ble = {
- 16, 16, 0xff00, { F (F_OP1), F (F_CC), F (F_REL9), 0 }
-};
+#include "sysdep.h"
+#include "ansidecl.h"
+#include "bfd.h"
+#include "symcat.h"
+#include "fr30-desc.h"
+#include "fr30-opc.h"
+#include "libiberty.h"
-static const CGEN_IFMT fmt_bls = {
- 16, 16, 0xff00, { F (F_OP1), F (F_CC), F (F_REL9), 0 }
-};
+/* The hash functions are recorded here to help keep assembler code out of
+ the disassembler and vice versa. */
-static const CGEN_IFMT fmt_dmovr13 = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_DIR10), 0 }
-};
+static int asm_hash_insn_p PARAMS ((const CGEN_INSN *));
+static unsigned int asm_hash_insn PARAMS ((const char *));
+static int dis_hash_insn_p PARAMS ((const CGEN_INSN *));
+static unsigned int dis_hash_insn PARAMS ((const char *, CGEN_INSN_INT));
-static const CGEN_IFMT fmt_dmovr13h = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_DIR9), 0 }
-};
+/* Instruction formats. */
-static const CGEN_IFMT fmt_dmovr13b = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_DIR8), 0 }
+#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
+#define F(f) & fr30_cgen_ifld_table[FR30_##f]
+#else
+#define F(f) & fr30_cgen_ifld_table[FR30_/**/f]
+#endif
+static const CGEN_IFMT ifmt_empty = {
+ 0, 0, 0x0, { { 0 } }
};
-static const CGEN_IFMT fmt_dmovr13pi = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_DIR10), 0 }
+static const CGEN_IFMT ifmt_add = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_RJ) }, { F (F_RI) }, { 0 } }
};
-static const CGEN_IFMT fmt_dmovr13pih = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_DIR9), 0 }
+static const CGEN_IFMT ifmt_addi = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_U4) }, { F (F_RI) }, { 0 } }
};
-static const CGEN_IFMT fmt_dmovr13pib = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_DIR8), 0 }
+static const CGEN_IFMT ifmt_add2 = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_M4) }, { F (F_RI) }, { 0 } }
};
-static const CGEN_IFMT fmt_dmovr15pi = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_DIR10), 0 }
+static const CGEN_IFMT ifmt_div0s = {
+ 16, 16, 0xfff0, { { F (F_OP1) }, { F (F_OP2) }, { F (F_OP3) }, { F (F_RI) }, { 0 } }
};
-static const CGEN_IFMT fmt_dmov2r13 = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_DIR10), 0 }
+static const CGEN_IFMT ifmt_div3 = {
+ 16, 16, 0xffff, { { F (F_OP1) }, { F (F_OP2) }, { F (F_OP3) }, { F (F_OP4) }, { 0 } }
};
-static const CGEN_IFMT fmt_dmov2r13h = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_DIR9), 0 }
+static const CGEN_IFMT ifmt_ldi8 = {
+ 16, 16, 0xf000, { { F (F_OP1) }, { F (F_I8) }, { F (F_RI) }, { 0 } }
};
-static const CGEN_IFMT fmt_dmov2r13b = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_DIR8), 0 }
+static const CGEN_IFMT ifmt_ldi20 = {
+ 16, 32, 0xff00, { { F (F_OP1) }, { F (F_I20) }, { F (F_OP2) }, { F (F_RI) }, { 0 } }
};
-static const CGEN_IFMT fmt_dmov2r13pi = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_DIR10), 0 }
+static const CGEN_IFMT ifmt_ldi32 = {
+ 16, 48, 0xfff0, { { F (F_OP1) }, { F (F_I32) }, { F (F_OP2) }, { F (F_OP3) }, { F (F_RI) }, { 0 } }
};
-static const CGEN_IFMT fmt_dmov2r13pih = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_DIR9), 0 }
+static const CGEN_IFMT ifmt_ldr14 = {
+ 16, 16, 0xf000, { { F (F_OP1) }, { F (F_DISP10) }, { F (F_RI) }, { 0 } }
};
-static const CGEN_IFMT fmt_dmov2r13pib = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_DIR8), 0 }
+static const CGEN_IFMT ifmt_ldr14uh = {
+ 16, 16, 0xf000, { { F (F_OP1) }, { F (F_DISP9) }, { F (F_RI) }, { 0 } }
};
-static const CGEN_IFMT fmt_dmov2r15pd = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_DIR10), 0 }
+static const CGEN_IFMT ifmt_ldr14ub = {
+ 16, 16, 0xf000, { { F (F_OP1) }, { F (F_DISP8) }, { F (F_RI) }, { 0 } }
};
-static const CGEN_IFMT fmt_ldres = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_U4), F (F_RI), 0 }
+static const CGEN_IFMT ifmt_ldr15 = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_UDISP6) }, { F (F_RI) }, { 0 } }
};
-static const CGEN_IFMT fmt_copop = {
- 16, 32, 0xfff0, { F (F_OP1), F (F_CCC), F (F_OP2), F (F_OP3), F (F_CRJ), F (F_U4C), F (F_CRI), 0 }
+static const CGEN_IFMT ifmt_ldr15dr = {
+ 16, 16, 0xfff0, { { F (F_OP1) }, { F (F_OP2) }, { F (F_OP3) }, { F (F_RS2) }, { 0 } }
};
-static const CGEN_IFMT fmt_copld = {
- 16, 32, 0xfff0, { F (F_OP1), F (F_CCC), F (F_OP2), F (F_OP3), F (F_RJC), F (F_U4C), F (F_CRI), 0 }
+static const CGEN_IFMT ifmt_movdr = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_RS1) }, { F (F_RI) }, { 0 } }
};
-static const CGEN_IFMT fmt_copst = {
- 16, 32, 0xfff0, { F (F_OP1), F (F_CCC), F (F_OP2), F (F_OP3), F (F_CRJ), F (F_U4C), F (F_RIC), 0 }
+static const CGEN_IFMT ifmt_call = {
+ 16, 16, 0xf800, { { F (F_OP1) }, { F (F_OP5) }, { F (F_REL12) }, { 0 } }
};
-static const CGEN_IFMT fmt_andccr = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_U8), 0 }
+static const CGEN_IFMT ifmt_int = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_U8) }, { 0 } }
};
-static const CGEN_IFMT fmt_stilm = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_U8), 0 }
+static const CGEN_IFMT ifmt_brad = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_CC) }, { F (F_REL9) }, { 0 } }
};
-static const CGEN_IFMT fmt_addsp = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_S10), 0 }
+static const CGEN_IFMT ifmt_dmovr13 = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_DIR10) }, { 0 } }
};
-static const CGEN_IFMT fmt_extsb = {
- 16, 16, 0xfff0, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_RI), 0 }
+static const CGEN_IFMT ifmt_dmovr13h = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_DIR9) }, { 0 } }
};
-static const CGEN_IFMT fmt_extub = {
- 16, 16, 0xfff0, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_RI), 0 }
+static const CGEN_IFMT ifmt_dmovr13b = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_DIR8) }, { 0 } }
};
-static const CGEN_IFMT fmt_extsh = {
- 16, 16, 0xfff0, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_RI), 0 }
+static const CGEN_IFMT ifmt_copop = {
+ 16, 32, 0xfff0, { { F (F_OP1) }, { F (F_CCC) }, { F (F_OP2) }, { F (F_OP3) }, { F (F_CRJ) }, { F (F_U4C) }, { F (F_CRI) }, { 0 } }
};
-static const CGEN_IFMT fmt_extuh = {
- 16, 16, 0xfff0, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_RI), 0 }
+static const CGEN_IFMT ifmt_copld = {
+ 16, 32, 0xfff0, { { F (F_OP1) }, { F (F_CCC) }, { F (F_OP2) }, { F (F_OP3) }, { F (F_RJC) }, { F (F_U4C) }, { F (F_CRI) }, { 0 } }
};
-static const CGEN_IFMT fmt_ldm0 = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_REGLIST_LOW_LD), 0 }
+static const CGEN_IFMT ifmt_copst = {
+ 16, 32, 0xfff0, { { F (F_OP1) }, { F (F_CCC) }, { F (F_OP2) }, { F (F_OP3) }, { F (F_CRJ) }, { F (F_U4C) }, { F (F_RIC) }, { 0 } }
};
-static const CGEN_IFMT fmt_ldm1 = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_REGLIST_HI_LD), 0 }
+static const CGEN_IFMT ifmt_addsp = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_S10) }, { 0 } }
};
-static const CGEN_IFMT fmt_stm0 = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_REGLIST_LOW_ST), 0 }
+static const CGEN_IFMT ifmt_ldm0 = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_REGLIST_LOW_LD) }, { 0 } }
};
-static const CGEN_IFMT fmt_stm1 = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_REGLIST_HI_ST), 0 }
+static const CGEN_IFMT ifmt_ldm1 = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_REGLIST_HI_LD) }, { 0 } }
};
-static const CGEN_IFMT fmt_enter = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_U10), 0 }
+static const CGEN_IFMT ifmt_stm0 = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_REGLIST_LOW_ST) }, { 0 } }
};
-static const CGEN_IFMT fmt_leave = {
- 16, 16, 0xffff, { F (F_OP1), F (F_OP2), F (F_OP3), F (F_OP4), 0 }
+static const CGEN_IFMT ifmt_stm1 = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_REGLIST_HI_ST) }, { 0 } }
};
-static const CGEN_IFMT fmt_xchb = {
- 16, 16, 0xff00, { F (F_OP1), F (F_OP2), F (F_RJ), F (F_RI), 0 }
+static const CGEN_IFMT ifmt_enter = {
+ 16, 16, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_U10) }, { 0 } }
};
#undef F
-#define A(a) (1 << CONCAT2 (CGEN_INSN_,a))
+#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
+#define A(a) (1 << CGEN_INSN_##a)
+#else
+#define A(a) (1 << CGEN_INSN_/**/a)
+#endif
+#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
+#define OPERAND(op) FR30_OPERAND_##op
+#else
+#define OPERAND(op) FR30_OPERAND_/**/op
+#endif
#define MNEM CGEN_SYNTAX_MNEMONIC /* syntax value for mnemonic */
#define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field))
-/* The instruction table.
- This is currently non-static because the simulator accesses it
- directly. */
+/* The instruction table. */
-const CGEN_INSN fr30_cgen_insn_table_entries[MAX_INSNS] =
+static const CGEN_OPCODE fr30_cgen_insn_opcode_table[MAX_INSNS] =
{
/* Special null first entry.
A `num' value of zero is thus invalid.
Also, the special `invalid' insn resides here. */
- { { 0 }, 0 },
+ { { 0, 0, 0, 0 }, {{0}}, 0, {0}},
/* add $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ADD, "add", "add",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_add, { 0xa600 },
- (PTR) & fmt_add_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0xa600 }
},
/* add $u4,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ADDI, "addi", "add",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', OP (RI), 0 } },
- & fmt_addi, { 0xa400 },
- (PTR) & fmt_addi_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0xa400 }
},
/* add2 $m4,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ADD2, "add2", "add2",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (M4), ',', OP (RI), 0 } },
- & fmt_add2, { 0xa500 },
- (PTR) & fmt_add2_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add2, { 0xa500 }
},
/* addc $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ADDC, "addc", "addc",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_addc, { 0xa700 },
- (PTR) & fmt_addc_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0xa700 }
},
/* addn $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ADDN, "addn", "addn",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_addn, { 0xa200 },
- (PTR) & fmt_addn_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0xa200 }
},
/* addn $u4,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ADDNI, "addni", "addn",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', OP (RI), 0 } },
- & fmt_addni, { 0xa000 },
- (PTR) & fmt_addni_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0xa000 }
},
/* addn2 $m4,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ADDN2, "addn2", "addn2",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (M4), ',', OP (RI), 0 } },
- & fmt_addn2, { 0xa100 },
- (PTR) & fmt_addn2_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add2, { 0xa100 }
},
/* sub $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_SUB, "sub", "sub",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_add, { 0xac00 },
- (PTR) & fmt_add_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0xac00 }
},
/* subc $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_SUBC, "subc", "subc",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_addc, { 0xad00 },
- (PTR) & fmt_addc_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0xad00 }
},
/* subn $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_SUBN, "subn", "subn",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_addn, { 0xae00 },
- (PTR) & fmt_addn_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0xae00 }
},
/* cmp $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_CMP, "cmp", "cmp",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_cmp, { 0xaa00 },
- (PTR) & fmt_cmp_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0xaa00 }
},
/* cmp $u4,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_CMPI, "cmpi", "cmp",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', OP (RI), 0 } },
- & fmt_cmpi, { 0xa800 },
- (PTR) & fmt_cmpi_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0xa800 }
},
/* cmp2 $m4,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_CMP2, "cmp2", "cmp2",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (M4), ',', OP (RI), 0 } },
- & fmt_cmp2, { 0xa900 },
- (PTR) & fmt_cmp2_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add2, { 0xa900 }
},
/* and $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_AND, "and", "and",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_and, { 0x8200 },
- (PTR) & fmt_and_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x8200 }
},
/* or $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_OR, "or", "or",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_and, { 0x9200 },
- (PTR) & fmt_and_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x9200 }
},
/* eor $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_EOR, "eor", "eor",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_and, { 0x9a00 },
- (PTR) & fmt_and_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x9a00 }
},
/* and $Rj,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ANDM, "andm", "and",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', '@', OP (RI), 0 } },
- & fmt_andm, { 0x8400 },
- (PTR) & fmt_andm_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x8400 }
},
/* andh $Rj,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ANDH, "andh", "andh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', '@', OP (RI), 0 } },
- & fmt_andh, { 0x8500 },
- (PTR) & fmt_andh_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x8500 }
},
/* andb $Rj,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ANDB, "andb", "andb",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', '@', OP (RI), 0 } },
- & fmt_andb, { 0x8600 },
- (PTR) & fmt_andb_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x8600 }
},
/* or $Rj,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ORM, "orm", "or",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', '@', OP (RI), 0 } },
- & fmt_andm, { 0x9400 },
- (PTR) & fmt_andm_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x9400 }
},
/* orh $Rj,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ORH, "orh", "orh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', '@', OP (RI), 0 } },
- & fmt_andh, { 0x9500 },
- (PTR) & fmt_andh_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x9500 }
},
/* orb $Rj,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ORB, "orb", "orb",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', '@', OP (RI), 0 } },
- & fmt_andb, { 0x9600 },
- (PTR) & fmt_andb_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x9600 }
},
/* eor $Rj,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_EORM, "eorm", "eor",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', '@', OP (RI), 0 } },
- & fmt_andm, { 0x9c00 },
- (PTR) & fmt_andm_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x9c00 }
},
/* eorh $Rj,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_EORH, "eorh", "eorh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', '@', OP (RI), 0 } },
- & fmt_andh, { 0x9d00 },
- (PTR) & fmt_andh_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x9d00 }
},
/* eorb $Rj,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_EORB, "eorb", "eorb",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', '@', OP (RI), 0 } },
- & fmt_andb, { 0x9e00 },
- (PTR) & fmt_andb_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x9e00 }
},
/* bandl $u4,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BANDL, "bandl", "bandl",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', '@', OP (RI), 0 } },
- & fmt_bandl, { 0x8000 },
- (PTR) & fmt_bandl_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0x8000 }
},
/* borl $u4,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BORL, "borl", "borl",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', '@', OP (RI), 0 } },
- & fmt_bandl, { 0x9000 },
- (PTR) & fmt_bandl_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0x9000 }
},
/* beorl $u4,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BEORL, "beorl", "beorl",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', '@', OP (RI), 0 } },
- & fmt_bandl, { 0x9800 },
- (PTR) & fmt_bandl_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0x9800 }
},
/* bandh $u4,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BANDH, "bandh", "bandh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', '@', OP (RI), 0 } },
- & fmt_bandl, { 0x8100 },
- (PTR) & fmt_bandl_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0x8100 }
},
/* borh $u4,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BORH, "borh", "borh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', '@', OP (RI), 0 } },
- & fmt_bandl, { 0x9100 },
- (PTR) & fmt_bandl_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0x9100 }
},
/* beorh $u4,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BEORH, "beorh", "beorh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', '@', OP (RI), 0 } },
- & fmt_bandl, { 0x9900 },
- (PTR) & fmt_bandl_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0x9900 }
},
/* btstl $u4,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BTSTL, "btstl", "btstl",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', '@', OP (RI), 0 } },
- & fmt_btstl, { 0x8800 },
- (PTR) & fmt_btstl_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0x8800 }
},
/* btsth $u4,@$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BTSTH, "btsth", "btsth",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', '@', OP (RI), 0 } },
- & fmt_btstl, { 0x8900 },
- (PTR) & fmt_btstl_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0x8900 }
},
/* mul $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_MUL, "mul", "mul",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_mul, { 0xaf00 },
- (PTR) & fmt_mul_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0xaf00 }
},
/* mulu $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_MULU, "mulu", "mulu",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_mulu, { 0xab00 },
- (PTR) & fmt_mulu_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0xab00 }
},
/* mulh $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_MULH, "mulh", "mulh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_mulh, { 0xbf00 },
- (PTR) & fmt_mulh_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0xbf00 }
},
/* muluh $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_MULUH, "muluh", "muluh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_mulh, { 0xbb00 },
- (PTR) & fmt_mulh_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0xbb00 }
},
/* div0s $Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DIV0S, "div0s", "div0s",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), 0 } },
- & fmt_div0s, { 0x9740 },
- (PTR) 0,
- { 0, 0, { 0 } }
+ & ifmt_div0s, { 0x9740 }
},
/* div0u $Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DIV0U, "div0u", "div0u",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), 0 } },
- & fmt_div0s, { 0x9750 },
- (PTR) 0,
- { 0, 0, { 0 } }
+ & ifmt_div0s, { 0x9750 }
},
/* div1 $Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DIV1, "div1", "div1",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), 0 } },
- & fmt_div0s, { 0x9760 },
- (PTR) 0,
- { 0, 0, { 0 } }
+ & ifmt_div0s, { 0x9760 }
},
/* div2 $Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DIV2, "div2", "div2",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), 0 } },
- & fmt_div0s, { 0x9770 },
- (PTR) 0,
- { 0, 0, { 0 } }
+ & ifmt_div0s, { 0x9770 }
},
/* div3 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DIV3, "div3", "div3",
+ { 0, 0, 0, 0 },
{ { MNEM, 0 } },
- & fmt_div3, { 0x9f60 },
- (PTR) 0,
- { 0, 0, { 0 } }
+ & ifmt_div3, { 0x9f60 }
},
/* div4s */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DIV4S, "div4s", "div4s",
+ { 0, 0, 0, 0 },
{ { MNEM, 0 } },
- & fmt_div3, { 0x9f70 },
- (PTR) 0,
- { 0, 0, { 0 } }
+ & ifmt_div3, { 0x9f70 }
},
/* lsl $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LSL, "lsl", "lsl",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_lsl, { 0xb600 },
- (PTR) & fmt_lsl_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0xb600 }
},
/* lsl $u4,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LSLI, "lsli", "lsl",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', OP (RI), 0 } },
- & fmt_lsli, { 0xb400 },
- (PTR) & fmt_lsli_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0xb400 }
},
/* lsl2 $u4,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LSL2, "lsl2", "lsl2",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', OP (RI), 0 } },
- & fmt_lsli, { 0xb500 },
- (PTR) & fmt_lsli_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0xb500 }
},
/* lsr $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LSR, "lsr", "lsr",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_lsl, { 0xb200 },
- (PTR) & fmt_lsl_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0xb200 }
},
/* lsr $u4,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LSRI, "lsri", "lsr",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', OP (RI), 0 } },
- & fmt_lsli, { 0xb000 },
- (PTR) & fmt_lsli_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0xb000 }
},
/* lsr2 $u4,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LSR2, "lsr2", "lsr2",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', OP (RI), 0 } },
- & fmt_lsli, { 0xb100 },
- (PTR) & fmt_lsli_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0xb100 }
},
/* asr $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ASR, "asr", "asr",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_lsl, { 0xba00 },
- (PTR) & fmt_lsl_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0xba00 }
},
/* asr $u4,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ASRI, "asri", "asr",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', OP (RI), 0 } },
- & fmt_lsli, { 0xb800 },
- (PTR) & fmt_lsli_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0xb800 }
},
/* asr2 $u4,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ASR2, "asr2", "asr2",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', OP (RI), 0 } },
- & fmt_lsli, { 0xb900 },
- (PTR) & fmt_lsli_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0xb900 }
},
/* ldi:8 $i8,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDI8, "ldi8", "ldi:8",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (I8), ',', OP (RI), 0 } },
- & fmt_ldi8, { 0xc000 },
- (PTR) & fmt_ldi8_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_ldi8, { 0xc000 }
},
/* ldi:20 $i20,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDI20, "ldi20", "ldi:20",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (I20), ',', OP (RI), 0 } },
- & fmt_ldi20, { 0x9b00 },
- (PTR) & fmt_ldi20_ops[0],
- { 0, 0|A(NOT_IN_DELAY_SLOT), { 0 } }
+ & ifmt_ldi20, { 0x9b00 }
},
/* ldi:32 $i32,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDI32, "ldi32", "ldi:32",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (I32), ',', OP (RI), 0 } },
- & fmt_ldi32, { 0x9f80 },
- (PTR) & fmt_ldi32_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_ldi32, { 0x9f80 }
},
/* ld @$Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LD, "ld", "ld",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (RJ), ',', OP (RI), 0 } },
- & fmt_ld, { 0x400 },
- (PTR) & fmt_ld_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x400 }
},
/* lduh @$Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDUH, "lduh", "lduh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (RJ), ',', OP (RI), 0 } },
- & fmt_lduh, { 0x500 },
- (PTR) & fmt_lduh_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x500 }
},
/* ldub @$Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDUB, "ldub", "ldub",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (RJ), ',', OP (RI), 0 } },
- & fmt_ldub, { 0x600 },
- (PTR) & fmt_ldub_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x600 }
},
/* ld @($R13,$Rj),$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDR13, "ldr13", "ld",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', '(', OP (R13), ',', OP (RJ), ')', ',', OP (RI), 0 } },
- & fmt_ldr13, { 0x0 },
- (PTR) & fmt_ldr13_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x0 }
},
/* lduh @($R13,$Rj),$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDR13UH, "ldr13uh", "lduh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', '(', OP (R13), ',', OP (RJ), ')', ',', OP (RI), 0 } },
- & fmt_ldr13uh, { 0x100 },
- (PTR) & fmt_ldr13uh_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x100 }
},
/* ldub @($R13,$Rj),$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDR13UB, "ldr13ub", "ldub",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', '(', OP (R13), ',', OP (RJ), ')', ',', OP (RI), 0 } },
- & fmt_ldr13ub, { 0x200 },
- (PTR) & fmt_ldr13ub_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x200 }
},
/* ld @($R14,$disp10),$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDR14, "ldr14", "ld",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', '(', OP (R14), ',', OP (DISP10), ')', ',', OP (RI), 0 } },
- & fmt_ldr14, { 0x2000 },
- (PTR) & fmt_ldr14_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_ldr14, { 0x2000 }
},
/* lduh @($R14,$disp9),$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDR14UH, "ldr14uh", "lduh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', '(', OP (R14), ',', OP (DISP9), ')', ',', OP (RI), 0 } },
- & fmt_ldr14uh, { 0x4000 },
- (PTR) & fmt_ldr14uh_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_ldr14uh, { 0x4000 }
},
/* ldub @($R14,$disp8),$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDR14UB, "ldr14ub", "ldub",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', '(', OP (R14), ',', OP (DISP8), ')', ',', OP (RI), 0 } },
- & fmt_ldr14ub, { 0x6000 },
- (PTR) & fmt_ldr14ub_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_ldr14ub, { 0x6000 }
},
/* ld @($R15,$udisp6),$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDR15, "ldr15", "ld",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', '(', OP (R15), ',', OP (UDISP6), ')', ',', OP (RI), 0 } },
- & fmt_ldr15, { 0x300 },
- (PTR) & fmt_ldr15_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_ldr15, { 0x300 }
},
/* ld @$R15+,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDR15GR, "ldr15gr", "ld",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (R15), '+', ',', OP (RI), 0 } },
- & fmt_ldr15gr, { 0x700 },
- (PTR) & fmt_ldr15gr_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_div0s, { 0x700 }
},
/* ld @$R15+,$Rs2 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDR15DR, "ldr15dr", "ld",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (R15), '+', ',', OP (RS2), 0 } },
- & fmt_ldr15dr, { 0x780 },
- (PTR) & fmt_ldr15dr_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_ldr15dr, { 0x780 }
},
/* ld @$R15+,$ps */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDR15PS, "ldr15ps", "ld",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (R15), '+', ',', OP (PS), 0 } },
- & fmt_ldr15ps, { 0x790 },
- (PTR) & fmt_ldr15ps_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_div3, { 0x790 }
},
/* st $Ri,@$Rj */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ST, "st", "st",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), ',', '@', OP (RJ), 0 } },
- & fmt_st, { 0x1400 },
- (PTR) & fmt_st_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x1400 }
},
/* sth $Ri,@$Rj */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STH, "sth", "sth",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), ',', '@', OP (RJ), 0 } },
- & fmt_sth, { 0x1500 },
- (PTR) & fmt_sth_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x1500 }
},
/* stb $Ri,@$Rj */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STB, "stb", "stb",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), ',', '@', OP (RJ), 0 } },
- & fmt_stb, { 0x1600 },
- (PTR) & fmt_stb_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x1600 }
},
/* st $Ri,@($R13,$Rj) */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STR13, "str13", "st",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), ',', '@', '(', OP (R13), ',', OP (RJ), ')', 0 } },
- & fmt_str13, { 0x1000 },
- (PTR) & fmt_str13_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x1000 }
},
/* sth $Ri,@($R13,$Rj) */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STR13H, "str13h", "sth",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), ',', '@', '(', OP (R13), ',', OP (RJ), ')', 0 } },
- & fmt_str13h, { 0x1100 },
- (PTR) & fmt_str13h_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x1100 }
},
/* stb $Ri,@($R13,$Rj) */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STR13B, "str13b", "stb",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), ',', '@', '(', OP (R13), ',', OP (RJ), ')', 0 } },
- & fmt_str13b, { 0x1200 },
- (PTR) & fmt_str13b_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x1200 }
},
/* st $Ri,@($R14,$disp10) */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STR14, "str14", "st",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), ',', '@', '(', OP (R14), ',', OP (DISP10), ')', 0 } },
- & fmt_str14, { 0x3000 },
- (PTR) & fmt_str14_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_ldr14, { 0x3000 }
},
/* sth $Ri,@($R14,$disp9) */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STR14H, "str14h", "sth",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), ',', '@', '(', OP (R14), ',', OP (DISP9), ')', 0 } },
- & fmt_str14h, { 0x5000 },
- (PTR) & fmt_str14h_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_ldr14uh, { 0x5000 }
},
/* stb $Ri,@($R14,$disp8) */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STR14B, "str14b", "stb",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), ',', '@', '(', OP (R14), ',', OP (DISP8), ')', 0 } },
- & fmt_str14b, { 0x7000 },
- (PTR) & fmt_str14b_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_ldr14ub, { 0x7000 }
},
/* st $Ri,@($R15,$udisp6) */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STR15, "str15", "st",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), ',', '@', '(', OP (R15), ',', OP (UDISP6), ')', 0 } },
- & fmt_str15, { 0x1300 },
- (PTR) & fmt_str15_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_ldr15, { 0x1300 }
},
/* st $Ri,@-$R15 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STR15GR, "str15gr", "st",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), ',', '@', '-', OP (R15), 0 } },
- & fmt_str15gr, { 0x1700 },
- (PTR) & fmt_str15gr_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_div0s, { 0x1700 }
},
/* st $Rs2,@-$R15 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STR15DR, "str15dr", "st",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RS2), ',', '@', '-', OP (R15), 0 } },
- & fmt_str15dr, { 0x1780 },
- (PTR) & fmt_str15dr_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_ldr15dr, { 0x1780 }
},
/* st $ps,@-$R15 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STR15PS, "str15ps", "st",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (PS), ',', '@', '-', OP (R15), 0 } },
- & fmt_str15ps, { 0x1790 },
- (PTR) & fmt_str15ps_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_div3, { 0x1790 }
},
/* mov $Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_MOV, "mov", "mov",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RJ), ',', OP (RI), 0 } },
- & fmt_mov, { 0x8b00 },
- (PTR) & fmt_mov_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x8b00 }
},
/* mov $Rs1,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_MOVDR, "movdr", "mov",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RS1), ',', OP (RI), 0 } },
- & fmt_movdr, { 0xb700 },
- (PTR) & fmt_movdr_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_movdr, { 0xb700 }
},
/* mov $ps,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_MOVPS, "movps", "mov",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (PS), ',', OP (RI), 0 } },
- & fmt_movps, { 0x1710 },
- (PTR) & fmt_movps_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_div0s, { 0x1710 }
},
/* mov $Ri,$Rs1 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_MOV2DR, "mov2dr", "mov",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), ',', OP (RS1), 0 } },
- & fmt_mov2dr, { 0xb300 },
- (PTR) & fmt_mov2dr_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_movdr, { 0xb300 }
},
/* mov $Ri,$ps */
{
- { 1, 1, 1, 1 },
- FR30_INSN_MOV2PS, "mov2ps", "mov",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), ',', OP (PS), 0 } },
- & fmt_mov2ps, { 0x710 },
- (PTR) & fmt_mov2ps_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_div0s, { 0x710 }
},
/* jmp @$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_JMP, "jmp", "jmp",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (RI), 0 } },
- & fmt_jmp, { 0x9700 },
- (PTR) & fmt_jmp_ops[0],
- { 0, 0|A(UNCOND_CTI), { 0 } }
+ & ifmt_div0s, { 0x9700 }
},
/* jmp:d @$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_JMPD, "jmpd", "jmp:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (RI), 0 } },
- & fmt_jmp, { 0x9f00 },
- (PTR) & fmt_jmp_ops[0],
- { 0, 0|A(NOT_IN_DELAY_SLOT)|A(DELAY_SLOT)|A(UNCOND_CTI), { 0 } }
+ & ifmt_div0s, { 0x9f00 }
},
/* call @$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_CALLR, "callr", "call",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (RI), 0 } },
- & fmt_callr, { 0x9710 },
- (PTR) & fmt_callr_ops[0],
- { 0, 0|A(UNCOND_CTI), { 0 } }
+ & ifmt_div0s, { 0x9710 }
},
/* call:d @$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_CALLRD, "callrd", "call:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (RI), 0 } },
- & fmt_callr, { 0x9f10 },
- (PTR) & fmt_callr_ops[0],
- { 0, 0|A(DELAY_SLOT)|A(UNCOND_CTI), { 0 } }
+ & ifmt_div0s, { 0x9f10 }
},
/* call $label12 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_CALL, "call", "call",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL12), 0 } },
- & fmt_call, { 0xd000 },
- (PTR) & fmt_call_ops[0],
- { 0, 0|A(UNCOND_CTI), { 0 } }
+ & ifmt_call, { 0xd000 }
},
/* call:d $label12 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_CALLD, "calld", "call:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL12), 0 } },
- & fmt_call, { 0xd800 },
- (PTR) & fmt_call_ops[0],
- { 0, 0|A(DELAY_SLOT)|A(UNCOND_CTI), { 0 } }
+ & ifmt_call, { 0xd800 }
},
/* ret */
{
- { 1, 1, 1, 1 },
- FR30_INSN_RET, "ret", "ret",
+ { 0, 0, 0, 0 },
{ { MNEM, 0 } },
- & fmt_ret, { 0x9720 },
- (PTR) & fmt_ret_ops[0],
- { 0, 0|A(UNCOND_CTI), { 0 } }
+ & ifmt_div3, { 0x9720 }
},
/* ret:d */
{
- { 1, 1, 1, 1 },
- FR30_INSN_RET_D, "ret:d", "ret:d",
+ { 0, 0, 0, 0 },
{ { MNEM, 0 } },
- & fmt_ret, { 0x9f20 },
- (PTR) & fmt_ret_ops[0],
- { 0, 0|A(DELAY_SLOT)|A(UNCOND_CTI), { 0 } }
+ & ifmt_div3, { 0x9f20 }
},
/* int $u8 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_INT, "int", "int",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U8), 0 } },
- & fmt_int, { 0x1f00 },
- (PTR) & fmt_int_ops[0],
- { 0, 0|A(UNCOND_CTI), { 0 } }
+ & ifmt_int, { 0x1f00 }
},
/* inte */
{
- { 1, 1, 1, 1 },
- FR30_INSN_INTE, "inte", "inte",
+ { 0, 0, 0, 0 },
{ { MNEM, 0 } },
- & fmt_inte, { 0x9f30 },
- (PTR) & fmt_inte_ops[0],
- { 0, 0|A(UNCOND_CTI), { 0 } }
+ & ifmt_div3, { 0x9f30 }
},
/* reti */
{
- { 1, 1, 1, 1 },
- FR30_INSN_RETI, "reti", "reti",
+ { 0, 0, 0, 0 },
{ { MNEM, 0 } },
- & fmt_reti, { 0x9730 },
- (PTR) & fmt_reti_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
- },
-/* bra $label9 */
- {
- { 1, 1, 1, 1 },
- FR30_INSN_BRA, "bra", "bra",
- { { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bra, { 0xe000 },
- (PTR) & fmt_bra_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_div3, { 0x9730 }
},
/* bra:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BRAD, "brad", "bra:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bra, { 0xf000 },
- (PTR) & fmt_bra_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xf000 }
},
-/* bno $label9 */
+/* bra $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BNO, "bno", "bno",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bra, { 0xe100 },
- (PTR) & fmt_bra_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xe000 }
},
/* bno:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BNOD, "bnod", "bno:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bra, { 0xf100 },
- (PTR) & fmt_bra_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xf100 }
},
-/* beq $label9 */
+/* bno $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BEQ, "beq", "beq",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_beq, { 0xe200 },
- (PTR) & fmt_beq_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xe100 }
},
/* beq:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BEQD, "beqd", "beq:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_beq, { 0xf200 },
- (PTR) & fmt_beq_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xf200 }
},
-/* bne $label9 */
+/* beq $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BNE, "bne", "bne",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_beq, { 0xe300 },
- (PTR) & fmt_beq_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xe200 }
},
/* bne:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BNED, "bned", "bne:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_beq, { 0xf300 },
- (PTR) & fmt_beq_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xf300 }
},
-/* bc $label9 */
+/* bne $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BC, "bc", "bc",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bc, { 0xe400 },
- (PTR) & fmt_bc_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xe300 }
},
/* bc:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BCD, "bcd", "bc:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bc, { 0xf400 },
- (PTR) & fmt_bc_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xf400 }
},
-/* bnc $label9 */
+/* bc $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BNC, "bnc", "bnc",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bc, { 0xe500 },
- (PTR) & fmt_bc_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xe400 }
},
/* bnc:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BNCD, "bncd", "bnc:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bc, { 0xf500 },
- (PTR) & fmt_bc_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xf500 }
},
-/* bn $label9 */
+/* bnc $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BN, "bn", "bn",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bn, { 0xe600 },
- (PTR) & fmt_bn_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xe500 }
},
/* bn:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BND, "bnd", "bn:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bn, { 0xf600 },
- (PTR) & fmt_bn_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xf600 }
},
-/* bp $label9 */
+/* bn $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BP, "bp", "bp",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bn, { 0xe700 },
- (PTR) & fmt_bn_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xe600 }
},
/* bp:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BPD, "bpd", "bp:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bn, { 0xf700 },
- (PTR) & fmt_bn_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xf700 }
},
-/* bv $label9 */
+/* bp $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BV, "bv", "bv",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bv, { 0xe800 },
- (PTR) & fmt_bv_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xe700 }
},
/* bv:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BVD, "bvd", "bv:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bv, { 0xf800 },
- (PTR) & fmt_bv_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xf800 }
},
-/* bnv $label9 */
+/* bv $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BNV, "bnv", "bnv",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bv, { 0xe900 },
- (PTR) & fmt_bv_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xe800 }
},
/* bnv:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BNVD, "bnvd", "bnv:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bv, { 0xf900 },
- (PTR) & fmt_bv_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xf900 }
},
-/* blt $label9 */
+/* bnv $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BLT, "blt", "blt",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_blt, { 0xea00 },
- (PTR) & fmt_blt_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xe900 }
},
/* blt:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BLTD, "bltd", "blt:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_blt, { 0xfa00 },
- (PTR) & fmt_blt_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xfa00 }
},
-/* bge $label9 */
+/* blt $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BGE, "bge", "bge",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_blt, { 0xeb00 },
- (PTR) & fmt_blt_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xea00 }
},
/* bge:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BGED, "bged", "bge:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_blt, { 0xfb00 },
- (PTR) & fmt_blt_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xfb00 }
},
-/* ble $label9 */
+/* bge $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BLE, "ble", "ble",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_ble, { 0xec00 },
- (PTR) & fmt_ble_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xeb00 }
},
/* ble:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BLED, "bled", "ble:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_ble, { 0xfc00 },
- (PTR) & fmt_ble_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xfc00 }
},
-/* bgt $label9 */
+/* ble $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BGT, "bgt", "bgt",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_ble, { 0xed00 },
- (PTR) & fmt_ble_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xec00 }
},
/* bgt:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BGTD, "bgtd", "bgt:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_ble, { 0xfd00 },
- (PTR) & fmt_ble_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xfd00 }
},
-/* bls $label9 */
+/* bgt $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BLS, "bls", "bls",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bls, { 0xee00 },
- (PTR) & fmt_bls_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xed00 }
},
/* bls:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BLSD, "blsd", "bls:d",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bls, { 0xfe00 },
- (PTR) & fmt_bls_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xfe00 }
},
-/* bhi $label9 */
+/* bls $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BHI, "bhi", "bhi",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bls, { 0xef00 },
- (PTR) & fmt_bls_ops[0],
- { 0, 0|A(COND_CTI)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xee00 }
},
/* bhi:d $label9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_BHID, "bhid", "bhi:d",
+ { 0, 0, 0, 0 },
+ { { MNEM, ' ', OP (LABEL9), 0 } },
+ & ifmt_brad, { 0xff00 }
+ },
+/* bhi $label9 */
+ {
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (LABEL9), 0 } },
- & fmt_bls, { 0xff00 },
- (PTR) & fmt_bls_ops[0],
- { 0, 0|A(COND_CTI)|A(DELAY_SLOT)|A(COND_CTI), { 0 } }
+ & ifmt_brad, { 0xef00 }
},
/* dmov $R13,@$dir10 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DMOVR13, "dmovr13", "dmov",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (R13), ',', '@', OP (DIR10), 0 } },
- & fmt_dmovr13, { 0x1800 },
- (PTR) & fmt_dmovr13_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_dmovr13, { 0x1800 }
},
/* dmovh $R13,@$dir9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DMOVR13H, "dmovr13h", "dmovh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (R13), ',', '@', OP (DIR9), 0 } },
- & fmt_dmovr13h, { 0x1900 },
- (PTR) & fmt_dmovr13h_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_dmovr13h, { 0x1900 }
},
/* dmovb $R13,@$dir8 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DMOVR13B, "dmovr13b", "dmovb",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (R13), ',', '@', OP (DIR8), 0 } },
- & fmt_dmovr13b, { 0x1a00 },
- (PTR) & fmt_dmovr13b_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_dmovr13b, { 0x1a00 }
},
/* dmov @$R13+,@$dir10 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DMOVR13PI, "dmovr13pi", "dmov",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (R13), '+', ',', '@', OP (DIR10), 0 } },
- & fmt_dmovr13pi, { 0x1c00 },
- (PTR) & fmt_dmovr13pi_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_dmovr13, { 0x1c00 }
},
/* dmovh @$R13+,@$dir9 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DMOVR13PIH, "dmovr13pih", "dmovh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (R13), '+', ',', '@', OP (DIR9), 0 } },
- & fmt_dmovr13pih, { 0x1d00 },
- (PTR) & fmt_dmovr13pih_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_dmovr13h, { 0x1d00 }
},
/* dmovb @$R13+,@$dir8 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DMOVR13PIB, "dmovr13pib", "dmovb",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (R13), '+', ',', '@', OP (DIR8), 0 } },
- & fmt_dmovr13pib, { 0x1e00 },
- (PTR) & fmt_dmovr13pib_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_dmovr13b, { 0x1e00 }
},
/* dmov @$R15+,@$dir10 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DMOVR15PI, "dmovr15pi", "dmov",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (R15), '+', ',', '@', OP (DIR10), 0 } },
- & fmt_dmovr15pi, { 0x1b00 },
- (PTR) & fmt_dmovr15pi_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_dmovr13, { 0x1b00 }
},
/* dmov @$dir10,$R13 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DMOV2R13, "dmov2r13", "dmov",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (DIR10), ',', OP (R13), 0 } },
- & fmt_dmov2r13, { 0x800 },
- (PTR) & fmt_dmov2r13_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_dmovr13, { 0x800 }
},
/* dmovh @$dir9,$R13 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DMOV2R13H, "dmov2r13h", "dmovh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (DIR9), ',', OP (R13), 0 } },
- & fmt_dmov2r13h, { 0x900 },
- (PTR) & fmt_dmov2r13h_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_dmovr13h, { 0x900 }
},
/* dmovb @$dir8,$R13 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DMOV2R13B, "dmov2r13b", "dmovb",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (DIR8), ',', OP (R13), 0 } },
- & fmt_dmov2r13b, { 0xa00 },
- (PTR) & fmt_dmov2r13b_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_dmovr13b, { 0xa00 }
},
/* dmov @$dir10,@$R13+ */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DMOV2R13PI, "dmov2r13pi", "dmov",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (DIR10), ',', '@', OP (R13), '+', 0 } },
- & fmt_dmov2r13pi, { 0xc00 },
- (PTR) & fmt_dmov2r13pi_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_dmovr13, { 0xc00 }
},
/* dmovh @$dir9,@$R13+ */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DMOV2R13PIH, "dmov2r13pih", "dmovh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (DIR9), ',', '@', OP (R13), '+', 0 } },
- & fmt_dmov2r13pih, { 0xd00 },
- (PTR) & fmt_dmov2r13pih_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_dmovr13h, { 0xd00 }
},
/* dmovb @$dir8,@$R13+ */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DMOV2R13PIB, "dmov2r13pib", "dmovb",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (DIR8), ',', '@', OP (R13), '+', 0 } },
- & fmt_dmov2r13pib, { 0xe00 },
- (PTR) & fmt_dmov2r13pib_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_dmovr13b, { 0xe00 }
},
/* dmov @$dir10,@-$R15 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_DMOV2R15PD, "dmov2r15pd", "dmov",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (DIR10), ',', '@', '-', OP (R15), 0 } },
- & fmt_dmov2r15pd, { 0xb00 },
- (PTR) & fmt_dmov2r15pd_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_dmovr13, { 0xb00 }
},
/* ldres @$Ri+,$u4 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDRES, "ldres", "ldres",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (RI), '+', ',', OP (U4), 0 } },
- & fmt_ldres, { 0xbc00 },
- (PTR) 0,
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0xbc00 }
},
/* stres $u4,@$Ri+ */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STRES, "stres", "stres",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4), ',', '@', OP (RI), '+', 0 } },
- & fmt_ldres, { 0xbd00 },
- (PTR) 0,
- { 0, 0, { 0 } }
+ & ifmt_addi, { 0xbd00 }
},
/* copop $u4c,$ccc,$CRj,$CRi */
{
- { 1, 1, 1, 1 },
- FR30_INSN_COPOP, "copop", "copop",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4C), ',', OP (CCC), ',', OP (CRJ), ',', OP (CRI), 0 } },
- & fmt_copop, { 0x9fc0 },
- (PTR) 0,
- { 0, 0, { 0 } }
+ & ifmt_copop, { 0x9fc0 }
},
/* copld $u4c,$ccc,$Rjc,$CRi */
{
- { 1, 1, 1, 1 },
- FR30_INSN_COPLD, "copld", "copld",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4C), ',', OP (CCC), ',', OP (RJC), ',', OP (CRI), 0 } },
- & fmt_copld, { 0x9fd0 },
- (PTR) 0,
- { 0, 0, { 0 } }
+ & ifmt_copld, { 0x9fd0 }
},
/* copst $u4c,$ccc,$CRj,$Ric */
{
- { 1, 1, 1, 1 },
- FR30_INSN_COPST, "copst", "copst",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4C), ',', OP (CCC), ',', OP (CRJ), ',', OP (RIC), 0 } },
- & fmt_copst, { 0x9fe0 },
- (PTR) 0,
- { 0, 0, { 0 } }
+ & ifmt_copst, { 0x9fe0 }
},
/* copsv $u4c,$ccc,$CRj,$Ric */
{
- { 1, 1, 1, 1 },
- FR30_INSN_COPSV, "copsv", "copsv",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U4C), ',', OP (CCC), ',', OP (CRJ), ',', OP (RIC), 0 } },
- & fmt_copst, { 0x9ff0 },
- (PTR) 0,
- { 0, 0, { 0 } }
+ & ifmt_copst, { 0x9ff0 }
},
/* nop */
{
- { 1, 1, 1, 1 },
- FR30_INSN_NOP, "nop", "nop",
+ { 0, 0, 0, 0 },
{ { MNEM, 0 } },
- & fmt_div3, { 0x9fa0 },
- (PTR) 0,
- { 0, 0, { 0 } }
+ & ifmt_div3, { 0x9fa0 }
},
/* andccr $u8 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ANDCCR, "andccr", "andccr",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U8), 0 } },
- & fmt_andccr, { 0x8300 },
- (PTR) & fmt_andccr_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_int, { 0x8300 }
},
/* orccr $u8 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ORCCR, "orccr", "orccr",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U8), 0 } },
- & fmt_andccr, { 0x9300 },
- (PTR) & fmt_andccr_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_int, { 0x9300 }
},
/* stilm $u8 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STILM, "stilm", "stilm",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U8), 0 } },
- & fmt_stilm, { 0x8700 },
- (PTR) & fmt_stilm_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_int, { 0x8700 }
},
/* addsp $s10 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ADDSP, "addsp", "addsp",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (S10), 0 } },
- & fmt_addsp, { 0xa300 },
- (PTR) & fmt_addsp_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_addsp, { 0xa300 }
},
/* extsb $Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_EXTSB, "extsb", "extsb",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), 0 } },
- & fmt_extsb, { 0x9780 },
- (PTR) & fmt_extsb_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_div0s, { 0x9780 }
},
/* extub $Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_EXTUB, "extub", "extub",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), 0 } },
- & fmt_extub, { 0x9790 },
- (PTR) & fmt_extub_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_div0s, { 0x9790 }
},
/* extsh $Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_EXTSH, "extsh", "extsh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), 0 } },
- & fmt_extsh, { 0x97a0 },
- (PTR) & fmt_extsh_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_div0s, { 0x97a0 }
},
/* extuh $Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_EXTUH, "extuh", "extuh",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (RI), 0 } },
- & fmt_extuh, { 0x97b0 },
- (PTR) & fmt_extuh_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_div0s, { 0x97b0 }
},
/* ldm0 ($reglist_low_ld) */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDM0, "ldm0", "ldm0",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '(', OP (REGLIST_LOW_LD), ')', 0 } },
- & fmt_ldm0, { 0x8c00 },
- (PTR) & fmt_ldm0_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_ldm0, { 0x8c00 }
},
/* ldm1 ($reglist_hi_ld) */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LDM1, "ldm1", "ldm1",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '(', OP (REGLIST_HI_LD), ')', 0 } },
- & fmt_ldm1, { 0x8d00 },
- (PTR) & fmt_ldm1_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_ldm1, { 0x8d00 }
},
/* stm0 ($reglist_low_st) */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STM0, "stm0", "stm0",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '(', OP (REGLIST_LOW_ST), ')', 0 } },
- & fmt_stm0, { 0x8e00 },
- (PTR) & fmt_stm0_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_stm0, { 0x8e00 }
},
/* stm1 ($reglist_hi_st) */
{
- { 1, 1, 1, 1 },
- FR30_INSN_STM1, "stm1", "stm1",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '(', OP (REGLIST_HI_ST), ')', 0 } },
- & fmt_stm1, { 0x8f00 },
- (PTR) & fmt_stm1_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_stm1, { 0x8f00 }
},
/* enter $u10 */
{
- { 1, 1, 1, 1 },
- FR30_INSN_ENTER, "enter", "enter",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (U10), 0 } },
- & fmt_enter, { 0xf00 },
- (PTR) & fmt_enter_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_enter, { 0xf00 }
},
/* leave */
{
- { 1, 1, 1, 1 },
- FR30_INSN_LEAVE, "leave", "leave",
+ { 0, 0, 0, 0 },
{ { MNEM, 0 } },
- & fmt_leave, { 0x9f90 },
- (PTR) & fmt_leave_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_div3, { 0x9f90 }
},
/* xchb @$Rj,$Ri */
{
- { 1, 1, 1, 1 },
- FR30_INSN_XCHB, "xchb", "xchb",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', '@', OP (RJ), ',', OP (RI), 0 } },
- & fmt_xchb, { 0x8a00 },
- (PTR) & fmt_xchb_ops[0],
- { 0, 0, { 0 } }
+ & ifmt_add, { 0x8a00 }
},
};
#undef A
+#undef OPERAND
#undef MNEM
#undef OP
-static const CGEN_INSN_TABLE insn_table =
-{
- & fr30_cgen_insn_table_entries[0],
- sizeof (CGEN_INSN),
- MAX_INSNS,
- NULL
-};
-
/* Formats for ALIAS macro-insns. */
-#define F(f) & fr30_cgen_ifld_table[CONCAT2 (FR30_,f)]
-
-static const CGEN_IFMT fmt_ldi8m = {
- 16, 16, 0xf000, { F (F_OP1), F (F_I8), F (F_RI), 0 }
+#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
+#define F(f) & fr30_cgen_ifld_table[FR30_##f]
+#else
+#define F(f) & fr30_cgen_ifld_table[FR30_/**/f]
+#endif
+static const CGEN_IFMT ifmt_ldi8m = {
+ 16, 16, 0xf000, { { F (F_OP1) }, { F (F_I8) }, { F (F_RI) }, { 0 } }
};
-static const CGEN_IFMT fmt_ldi20m = {
- 16, 32, 0xff00, { F (F_OP1), F (F_I20), F (F_OP2), F (F_RI), 0 }
+static const CGEN_IFMT ifmt_ldi20m = {
+ 16, 32, 0xff00, { { F (F_OP1) }, { F (F_OP2) }, { F (F_RI) }, { F (F_I20) }, { 0 } }
};
-static const CGEN_IFMT fmt_ldi32m = {
- 16, 48, 0xfff0, { F (F_OP1), F (F_I32), F (F_OP2), F (F_OP3), F (F_RI), 0 }
+static const CGEN_IFMT ifmt_ldi32m = {
+ 16, 48, 0xfff0, { { F (F_OP1) }, { F (F_OP2) }, { F (F_OP3) }, { F (F_RI) }, { F (F_I32) }, { 0 } }
};
#undef F
/* Each non-simple macro entry points to an array of expansion possibilities. */
-#define A(a) (1 << CONCAT2 (CGEN_INSN_,a))
+#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
+#define A(a) (1 << CGEN_INSN_##a)
+#else
+#define A(a) (1 << CGEN_INSN_/**/a)
+#endif
+#if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
+#define OPERAND(op) FR30_OPERAND_##op
+#else
+#define OPERAND(op) FR30_OPERAND_/**/op
+#endif
#define MNEM CGEN_SYNTAX_MNEMONIC /* syntax value for mnemonic */
#define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field))
/* The macro instruction table. */
-static const CGEN_INSN macro_insn_table_entries[] =
+static const CGEN_IBASE fr30_cgen_macro_insn_table[] =
{
/* ldi8 $i8,$Ri */
{
- { 1, 1, 1, 1 },
- -1, "ldi8m", "ldi8",
+ -1, "ldi8m", "ldi8", 16,
+ { 0|A(NO_DIS)|A(ALIAS), { (1<<MACH_BASE) } }
+ },
+/* ldi20 $i20,$Ri */
+ {
+ -1, "ldi20m", "ldi20", 32,
+ { 0|A(NO_DIS)|A(ALIAS), { (1<<MACH_BASE) } }
+ },
+/* ldi32 $i32,$Ri */
+ {
+ -1, "ldi32m", "ldi32", 48,
+ { 0|A(NO_DIS)|A(ALIAS), { (1<<MACH_BASE) } }
+ },
+};
+
+/* The macro instruction opcode table. */
+
+static const CGEN_OPCODE fr30_cgen_macro_insn_opcode_table[] =
+{
+/* ldi8 $i8,$Ri */
+ {
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (I8), ',', OP (RI), 0 } },
- & fmt_ldi8m, { 0xc000 },
- (PTR) 0,
- { 0, 0|A(NO_DIS)|A(ALIAS), { 0 } }
+ & ifmt_ldi8m, { 0xc000 }
},
/* ldi20 $i20,$Ri */
{
- { 1, 1, 1, 1 },
- -1, "ldi20m", "ldi20",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (I20), ',', OP (RI), 0 } },
- & fmt_ldi20m, { 0x9b00 },
- (PTR) 0,
- { 0, 0|A(NO_DIS)|A(ALIAS), { 0 } }
+ & ifmt_ldi20m, { 0x9b00 }
},
/* ldi32 $i32,$Ri */
{
- { 1, 1, 1, 1 },
- -1, "ldi32m", "ldi32",
+ { 0, 0, 0, 0 },
{ { MNEM, ' ', OP (I32), ',', OP (RI), 0 } },
- & fmt_ldi32m, { 0x9f80 },
- (PTR) 0,
- { 0, 0|A(NO_DIS)|A(ALIAS), { 0 } }
+ & ifmt_ldi32m, { 0x9f80 }
},
};
#undef A
+#undef OPERAND
#undef MNEM
#undef OP
-static const CGEN_INSN_TABLE macro_insn_table =
-{
- & macro_insn_table_entries[0],
- sizeof (CGEN_INSN),
- (sizeof (macro_insn_table_entries) /
- sizeof (macro_insn_table_entries[0])),
- NULL
-};
+#ifndef CGEN_ASM_HASH_P
+#define CGEN_ASM_HASH_P(insn) 1
+#endif
-static void
-init_tables ()
-{
-}
+#ifndef CGEN_DIS_HASH_P
+#define CGEN_DIS_HASH_P(insn) 1
+#endif
/* Return non-zero if INSN is to be added to the hash table.
Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */
static int
asm_hash_insn_p (insn)
- const CGEN_INSN * insn;
+ const CGEN_INSN *insn ATTRIBUTE_UNUSED;
{
return CGEN_ASM_HASH_P (insn);
}
static int
dis_hash_insn_p (insn)
- const CGEN_INSN * insn;
+ const CGEN_INSN *insn;
{
/* If building the hash table and the NO-DIS attribute is present,
ignore. */
- if (CGEN_INSN_ATTR (insn, CGEN_INSN_NO_DIS))
+ if (CGEN_INSN_ATTR_VALUE (insn, CGEN_INSN_NO_DIS))
return 0;
return CGEN_DIS_HASH_P (insn);
}
+#ifndef CGEN_ASM_HASH
+#define CGEN_ASM_HASH_SIZE 127
+#ifdef CGEN_MNEMONIC_OPERANDS
+#define CGEN_ASM_HASH(mnem) (*(unsigned char *) (mnem) % CGEN_ASM_HASH_SIZE)
+#else
+#define CGEN_ASM_HASH(mnem) (*(unsigned char *) (mnem) % CGEN_ASM_HASH_SIZE) /*FIXME*/
+#endif
+#endif
+
+/* It doesn't make much sense to provide a default here,
+ but while this is under development we do.
+ BUFFER is a pointer to the bytes of the insn, target order.
+ VALUE is the first base_insn_bitsize bits as an int in host order. */
+
+#ifndef CGEN_DIS_HASH
+#define CGEN_DIS_HASH_SIZE 256
+#define CGEN_DIS_HASH(buf, value) (*(unsigned char *) (buf))
+#endif
+
/* The result is the hash value of the insn.
Targets are free to override CGEN_{ASM,DIS}_HASH in the .opc file. */
return CGEN_ASM_HASH (mnem);
}
-/* BUF is a pointer to the insn's bytes in target order.
- VALUE is an integer of the first CGEN_BASE_INSN_BITSIZE bits,
- host order. */
+/* BUF is a pointer to the bytes of the insn, target order.
+ VALUE is the first base_insn_bitsize bits as an int in host order. */
static unsigned int
dis_hash_insn (buf, value)
- const char * buf;
- CGEN_INSN_INT value;
+ const char * buf ATTRIBUTE_UNUSED;
+ CGEN_INSN_INT value ATTRIBUTE_UNUSED;
{
return CGEN_DIS_HASH (buf, value);
}
-/* Initialize an opcode table and return a descriptor.
- It's much like opening a file, and must be the first function called. */
-
-CGEN_OPCODE_DESC
-fr30_cgen_opcode_open (mach, endian)
- int mach;
- enum cgen_endian endian;
-{
- CGEN_OPCODE_TABLE * table = (CGEN_OPCODE_TABLE *) xmalloc (sizeof (CGEN_OPCODE_TABLE));
- static int init_p;
-
- if (! init_p)
- {
- init_tables ();
- init_p = 1;
- }
-
- memset (table, 0, sizeof (*table));
-
- CGEN_OPCODE_MACH (table) = mach;
- CGEN_OPCODE_ENDIAN (table) = endian;
- /* FIXME: for the sparc case we can determine insn-endianness statically.
- The worry here is where both data and insn endian can be independently
- chosen, in which case this function will need another argument.
- Actually, will want to allow for more arguments in the future anyway. */
- CGEN_OPCODE_INSN_ENDIAN (table) = endian;
-
- CGEN_OPCODE_HW_LIST (table) = & fr30_cgen_hw_entries[0];
-
- CGEN_OPCODE_IFLD_TABLE (table) = & fr30_cgen_ifld_table[0];
-
- CGEN_OPCODE_OPERAND_TABLE (table) = & fr30_cgen_operand_table[0];
-
- * CGEN_OPCODE_INSN_TABLE (table) = insn_table;
-
- * CGEN_OPCODE_MACRO_INSN_TABLE (table) = macro_insn_table;
+static void set_fields_bitsize PARAMS ((CGEN_FIELDS *, int));
- CGEN_OPCODE_ASM_HASH_P (table) = asm_hash_insn_p;
- CGEN_OPCODE_ASM_HASH (table) = asm_hash_insn;
- CGEN_OPCODE_ASM_HASH_SIZE (table) = CGEN_ASM_HASH_SIZE;
+/* Set the recorded length of the insn in the CGEN_FIELDS struct. */
- CGEN_OPCODE_DIS_HASH_P (table) = dis_hash_insn_p;
- CGEN_OPCODE_DIS_HASH (table) = dis_hash_insn;
- CGEN_OPCODE_DIS_HASH_SIZE (table) = CGEN_DIS_HASH_SIZE;
-
- return (CGEN_OPCODE_DESC) table;
-}
-
-/* Close an opcode table. */
-
-void
-fr30_cgen_opcode_close (desc)
- CGEN_OPCODE_DESC desc;
+static void
+set_fields_bitsize (fields, size)
+ CGEN_FIELDS *fields;
+ int size;
{
- free (desc);
+ CGEN_FIELDS_BITSIZE (fields) = size;
}
-/* Getting values from cgen_fields is handled by a collection of functions.
- They are distinguished by the type of the VALUE argument they return.
- TODO: floating point, inlining support, remove cases where result type
- not appropriate. */
+/* Function to call before using the operand instance table.
+ This plugs the opcode entries and macro instructions into the cpu table. */
-int
-fr30_cgen_get_int_operand (opindex, fields)
- int opindex;
- const CGEN_FIELDS * fields;
+void
+fr30_cgen_init_opcode_table (cd)
+ CGEN_CPU_DESC cd;
{
- int value;
-
- switch (opindex)
+ int i;
+ int num_macros = (sizeof (fr30_cgen_macro_insn_table) /
+ sizeof (fr30_cgen_macro_insn_table[0]));
+ const CGEN_IBASE *ib = & fr30_cgen_macro_insn_table[0];
+ const CGEN_OPCODE *oc = & fr30_cgen_macro_insn_opcode_table[0];
+ CGEN_INSN *insns = (CGEN_INSN *) xmalloc (num_macros * sizeof (CGEN_INSN));
+ memset (insns, 0, num_macros * sizeof (CGEN_INSN));
+ for (i = 0; i < num_macros; ++i)
{
- case FR30_OPERAND_RI :
- value = fields->f_Ri;
- break;
- case FR30_OPERAND_RJ :
- value = fields->f_Rj;
- break;
- case FR30_OPERAND_RIC :
- value = fields->f_Ric;
- break;
- case FR30_OPERAND_RJC :
- value = fields->f_Rjc;
- break;
- case FR30_OPERAND_CRI :
- value = fields->f_CRi;
- break;
- case FR30_OPERAND_CRJ :
- value = fields->f_CRj;
- break;
- case FR30_OPERAND_RS1 :
- value = fields->f_Rs1;
- break;
- case FR30_OPERAND_RS2 :
- value = fields->f_Rs2;
- break;
- case FR30_OPERAND_R13 :
- value = fields->f_nil;
- break;
- case FR30_OPERAND_R14 :
- value = fields->f_nil;
- break;
- case FR30_OPERAND_R15 :
- value = fields->f_nil;
- break;
- case FR30_OPERAND_PS :
- value = fields->f_nil;
- break;
- case FR30_OPERAND_U4 :
- value = fields->f_u4;
- break;
- case FR30_OPERAND_U4C :
- value = fields->f_u4c;
- break;
- case FR30_OPERAND_U8 :
- value = fields->f_u8;
- break;
- case FR30_OPERAND_I8 :
- value = fields->f_i8;
- break;
- case FR30_OPERAND_UDISP6 :
- value = fields->f_udisp6;
- break;
- case FR30_OPERAND_DISP8 :
- value = fields->f_disp8;
- break;
- case FR30_OPERAND_DISP9 :
- value = fields->f_disp9;
- break;
- case FR30_OPERAND_DISP10 :
- value = fields->f_disp10;
- break;
- case FR30_OPERAND_S10 :
- value = fields->f_s10;
- break;
- case FR30_OPERAND_U10 :
- value = fields->f_u10;
- break;
- case FR30_OPERAND_I32 :
- value = fields->f_i32;
- break;
- case FR30_OPERAND_M4 :
- value = fields->f_m4;
- break;
- case FR30_OPERAND_I20 :
- value = fields->f_i20;
- break;
- case FR30_OPERAND_DIR8 :
- value = fields->f_dir8;
- break;
- case FR30_OPERAND_DIR9 :
- value = fields->f_dir9;
- break;
- case FR30_OPERAND_DIR10 :
- value = fields->f_dir10;
- break;
- case FR30_OPERAND_LABEL9 :
- value = fields->f_rel9;
- break;
- case FR30_OPERAND_LABEL12 :
- value = fields->f_rel12;
- break;
- case FR30_OPERAND_REGLIST_LOW_LD :
- value = fields->f_reglist_low_ld;
- break;
- case FR30_OPERAND_REGLIST_HI_LD :
- value = fields->f_reglist_hi_ld;
- break;
- case FR30_OPERAND_REGLIST_LOW_ST :
- value = fields->f_reglist_low_st;
- break;
- case FR30_OPERAND_REGLIST_HI_ST :
- value = fields->f_reglist_hi_st;
- break;
- case FR30_OPERAND_CC :
- value = fields->f_cc;
- break;
- case FR30_OPERAND_CCC :
- value = fields->f_ccc;
- break;
-
- default :
- /* xgettext:c-format */
- fprintf (stderr, _("Unrecognized field %d while getting int operand.\n"),
- opindex);
- abort ();
- }
-
- return value;
-}
-
-bfd_vma
-fr30_cgen_get_vma_operand (opindex, fields)
- int opindex;
- const CGEN_FIELDS * fields;
-{
- bfd_vma value;
+ insns[i].base = &ib[i];
+ insns[i].opcode = &oc[i];
+ fr30_cgen_build_insn_regex (& insns[i]);
+ }
+ cd->macro_insn_table.init_entries = insns;
+ cd->macro_insn_table.entry_size = sizeof (CGEN_IBASE);
+ cd->macro_insn_table.num_init_entries = num_macros;
- switch (opindex)
+ oc = & fr30_cgen_insn_opcode_table[0];
+ insns = (CGEN_INSN *) cd->insn_table.init_entries;
+ for (i = 0; i < MAX_INSNS; ++i)
{
- case FR30_OPERAND_RI :
- value = fields->f_Ri;
- break;
- case FR30_OPERAND_RJ :
- value = fields->f_Rj;
- break;
- case FR30_OPERAND_RIC :
- value = fields->f_Ric;
- break;
- case FR30_OPERAND_RJC :
- value = fields->f_Rjc;
- break;
- case FR30_OPERAND_CRI :
- value = fields->f_CRi;
- break;
- case FR30_OPERAND_CRJ :
- value = fields->f_CRj;
- break;
- case FR30_OPERAND_RS1 :
- value = fields->f_Rs1;
- break;
- case FR30_OPERAND_RS2 :
- value = fields->f_Rs2;
- break;
- case FR30_OPERAND_R13 :
- value = fields->f_nil;
- break;
- case FR30_OPERAND_R14 :
- value = fields->f_nil;
- break;
- case FR30_OPERAND_R15 :
- value = fields->f_nil;
- break;
- case FR30_OPERAND_PS :
- value = fields->f_nil;
- break;
- case FR30_OPERAND_U4 :
- value = fields->f_u4;
- break;
- case FR30_OPERAND_U4C :
- value = fields->f_u4c;
- break;
- case FR30_OPERAND_U8 :
- value = fields->f_u8;
- break;
- case FR30_OPERAND_I8 :
- value = fields->f_i8;
- break;
- case FR30_OPERAND_UDISP6 :
- value = fields->f_udisp6;
- break;
- case FR30_OPERAND_DISP8 :
- value = fields->f_disp8;
- break;
- case FR30_OPERAND_DISP9 :
- value = fields->f_disp9;
- break;
- case FR30_OPERAND_DISP10 :
- value = fields->f_disp10;
- break;
- case FR30_OPERAND_S10 :
- value = fields->f_s10;
- break;
- case FR30_OPERAND_U10 :
- value = fields->f_u10;
- break;
- case FR30_OPERAND_I32 :
- value = fields->f_i32;
- break;
- case FR30_OPERAND_M4 :
- value = fields->f_m4;
- break;
- case FR30_OPERAND_I20 :
- value = fields->f_i20;
- break;
- case FR30_OPERAND_DIR8 :
- value = fields->f_dir8;
- break;
- case FR30_OPERAND_DIR9 :
- value = fields->f_dir9;
- break;
- case FR30_OPERAND_DIR10 :
- value = fields->f_dir10;
- break;
- case FR30_OPERAND_LABEL9 :
- value = fields->f_rel9;
- break;
- case FR30_OPERAND_LABEL12 :
- value = fields->f_rel12;
- break;
- case FR30_OPERAND_REGLIST_LOW_LD :
- value = fields->f_reglist_low_ld;
- break;
- case FR30_OPERAND_REGLIST_HI_LD :
- value = fields->f_reglist_hi_ld;
- break;
- case FR30_OPERAND_REGLIST_LOW_ST :
- value = fields->f_reglist_low_st;
- break;
- case FR30_OPERAND_REGLIST_HI_ST :
- value = fields->f_reglist_hi_st;
- break;
- case FR30_OPERAND_CC :
- value = fields->f_cc;
- break;
- case FR30_OPERAND_CCC :
- value = fields->f_ccc;
- break;
-
- default :
- /* xgettext:c-format */
- fprintf (stderr, _("Unrecognized field %d while getting vma operand.\n"),
- opindex);
- abort ();
- }
-
- return value;
-}
+ insns[i].opcode = &oc[i];
+ fr30_cgen_build_insn_regex (& insns[i]);
+ }
-/* Stuffing values in cgen_fields is handled by a collection of functions.
- They are distinguished by the type of the VALUE argument they accept.
- TODO: floating point, inlining support, remove cases where argument type
- not appropriate. */
+ cd->sizeof_fields = sizeof (CGEN_FIELDS);
+ cd->set_fields_bitsize = set_fields_bitsize;
-void
-fr30_cgen_set_int_operand (opindex, fields, value)
- int opindex;
- CGEN_FIELDS * fields;
- int value;
-{
- switch (opindex)
- {
- case FR30_OPERAND_RI :
- fields->f_Ri = value;
- break;
- case FR30_OPERAND_RJ :
- fields->f_Rj = value;
- break;
- case FR30_OPERAND_RIC :
- fields->f_Ric = value;
- break;
- case FR30_OPERAND_RJC :
- fields->f_Rjc = value;
- break;
- case FR30_OPERAND_CRI :
- fields->f_CRi = value;
- break;
- case FR30_OPERAND_CRJ :
- fields->f_CRj = value;
- break;
- case FR30_OPERAND_RS1 :
- fields->f_Rs1 = value;
- break;
- case FR30_OPERAND_RS2 :
- fields->f_Rs2 = value;
- break;
- case FR30_OPERAND_R13 :
- fields->f_nil = value;
- break;
- case FR30_OPERAND_R14 :
- fields->f_nil = value;
- break;
- case FR30_OPERAND_R15 :
- fields->f_nil = value;
- break;
- case FR30_OPERAND_PS :
- fields->f_nil = value;
- break;
- case FR30_OPERAND_U4 :
- fields->f_u4 = value;
- break;
- case FR30_OPERAND_U4C :
- fields->f_u4c = value;
- break;
- case FR30_OPERAND_U8 :
- fields->f_u8 = value;
- break;
- case FR30_OPERAND_I8 :
- fields->f_i8 = value;
- break;
- case FR30_OPERAND_UDISP6 :
- fields->f_udisp6 = value;
- break;
- case FR30_OPERAND_DISP8 :
- fields->f_disp8 = value;
- break;
- case FR30_OPERAND_DISP9 :
- fields->f_disp9 = value;
- break;
- case FR30_OPERAND_DISP10 :
- fields->f_disp10 = value;
- break;
- case FR30_OPERAND_S10 :
- fields->f_s10 = value;
- break;
- case FR30_OPERAND_U10 :
- fields->f_u10 = value;
- break;
- case FR30_OPERAND_I32 :
- fields->f_i32 = value;
- break;
- case FR30_OPERAND_M4 :
- fields->f_m4 = value;
- break;
- case FR30_OPERAND_I20 :
- fields->f_i20 = value;
- break;
- case FR30_OPERAND_DIR8 :
- fields->f_dir8 = value;
- break;
- case FR30_OPERAND_DIR9 :
- fields->f_dir9 = value;
- break;
- case FR30_OPERAND_DIR10 :
- fields->f_dir10 = value;
- break;
- case FR30_OPERAND_LABEL9 :
- fields->f_rel9 = value;
- break;
- case FR30_OPERAND_LABEL12 :
- fields->f_rel12 = value;
- break;
- case FR30_OPERAND_REGLIST_LOW_LD :
- fields->f_reglist_low_ld = value;
- break;
- case FR30_OPERAND_REGLIST_HI_LD :
- fields->f_reglist_hi_ld = value;
- break;
- case FR30_OPERAND_REGLIST_LOW_ST :
- fields->f_reglist_low_st = value;
- break;
- case FR30_OPERAND_REGLIST_HI_ST :
- fields->f_reglist_hi_st = value;
- break;
- case FR30_OPERAND_CC :
- fields->f_cc = value;
- break;
- case FR30_OPERAND_CCC :
- fields->f_ccc = value;
- break;
-
- default :
- /* xgettext:c-format */
- fprintf (stderr, _("Unrecognized field %d while setting int operand.\n"),
- opindex);
- abort ();
- }
-}
+ cd->asm_hash_p = asm_hash_insn_p;
+ cd->asm_hash = asm_hash_insn;
+ cd->asm_hash_size = CGEN_ASM_HASH_SIZE;
-void
-fr30_cgen_set_vma_operand (opindex, fields, value)
- int opindex;
- CGEN_FIELDS * fields;
- bfd_vma value;
-{
- switch (opindex)
- {
- case FR30_OPERAND_RI :
- fields->f_Ri = value;
- break;
- case FR30_OPERAND_RJ :
- fields->f_Rj = value;
- break;
- case FR30_OPERAND_RIC :
- fields->f_Ric = value;
- break;
- case FR30_OPERAND_RJC :
- fields->f_Rjc = value;
- break;
- case FR30_OPERAND_CRI :
- fields->f_CRi = value;
- break;
- case FR30_OPERAND_CRJ :
- fields->f_CRj = value;
- break;
- case FR30_OPERAND_RS1 :
- fields->f_Rs1 = value;
- break;
- case FR30_OPERAND_RS2 :
- fields->f_Rs2 = value;
- break;
- case FR30_OPERAND_R13 :
- fields->f_nil = value;
- break;
- case FR30_OPERAND_R14 :
- fields->f_nil = value;
- break;
- case FR30_OPERAND_R15 :
- fields->f_nil = value;
- break;
- case FR30_OPERAND_PS :
- fields->f_nil = value;
- break;
- case FR30_OPERAND_U4 :
- fields->f_u4 = value;
- break;
- case FR30_OPERAND_U4C :
- fields->f_u4c = value;
- break;
- case FR30_OPERAND_U8 :
- fields->f_u8 = value;
- break;
- case FR30_OPERAND_I8 :
- fields->f_i8 = value;
- break;
- case FR30_OPERAND_UDISP6 :
- fields->f_udisp6 = value;
- break;
- case FR30_OPERAND_DISP8 :
- fields->f_disp8 = value;
- break;
- case FR30_OPERAND_DISP9 :
- fields->f_disp9 = value;
- break;
- case FR30_OPERAND_DISP10 :
- fields->f_disp10 = value;
- break;
- case FR30_OPERAND_S10 :
- fields->f_s10 = value;
- break;
- case FR30_OPERAND_U10 :
- fields->f_u10 = value;
- break;
- case FR30_OPERAND_I32 :
- fields->f_i32 = value;
- break;
- case FR30_OPERAND_M4 :
- fields->f_m4 = value;
- break;
- case FR30_OPERAND_I20 :
- fields->f_i20 = value;
- break;
- case FR30_OPERAND_DIR8 :
- fields->f_dir8 = value;
- break;
- case FR30_OPERAND_DIR9 :
- fields->f_dir9 = value;
- break;
- case FR30_OPERAND_DIR10 :
- fields->f_dir10 = value;
- break;
- case FR30_OPERAND_LABEL9 :
- fields->f_rel9 = value;
- break;
- case FR30_OPERAND_LABEL12 :
- fields->f_rel12 = value;
- break;
- case FR30_OPERAND_REGLIST_LOW_LD :
- fields->f_reglist_low_ld = value;
- break;
- case FR30_OPERAND_REGLIST_HI_LD :
- fields->f_reglist_hi_ld = value;
- break;
- case FR30_OPERAND_REGLIST_LOW_ST :
- fields->f_reglist_low_st = value;
- break;
- case FR30_OPERAND_REGLIST_HI_ST :
- fields->f_reglist_hi_st = value;
- break;
- case FR30_OPERAND_CC :
- fields->f_cc = value;
- break;
- case FR30_OPERAND_CCC :
- fields->f_ccc = value;
- break;
-
- default :
- /* xgettext:c-format */
- fprintf (stderr, _("Unrecognized field %d while setting vma operand.\n"),
- opindex);
- abort ();
- }
+ cd->dis_hash_p = dis_hash_insn_p;
+ cd->dis_hash = dis_hash_insn;
+ cd->dis_hash_size = CGEN_DIS_HASH_SIZE;
}
-