X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=opcodes%2Flm32-opinst.c;h=6fb699ccdee480f23242fe89e741cdcf61285025;hb=c54a9b56696e584c2b8c7146caac337c063f5516;hp=f6ad59190a507b90c3efba9cc7a84bf1e4431936;hpb=37ec92403b4d32b349d239339a1b829cef29f2a2;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/lm32-opinst.c b/opcodes/lm32-opinst.c index f6ad59190a..6fb699ccde 100644 --- a/opcodes/lm32-opinst.c +++ b/opcodes/lm32-opinst.c @@ -1,8 +1,9 @@ +/* DO NOT EDIT! -*- buffer-read-only: t -*- vi:set ro: */ /* Semantic operand instances for lm32. THIS FILE IS MACHINE GENERATED WITH CGEN. -Copyright 1996-2010 Free Software Foundation, Inc. +Copyright (C) 1996-2020 Free Software Foundation, Inc. This file is part of the GNU Binutils and/or GDB, the GNU debugger. @@ -208,12 +209,26 @@ static const CGEN_OPINST sfmt_bret_ops[] ATTRIBUTE_UNUSED = { { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 } }; +static const CGEN_OPINST sfmt_mvi_ops[] ATTRIBUTE_UNUSED = { + { INPUT, "imm", HW_H_SINT, CGEN_MODE_INT, OP_ENT (IMM), 0, 0 }, + { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 }, + { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 }, + { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 } +}; + static const CGEN_OPINST sfmt_mvui_ops[] ATTRIBUTE_UNUSED = { { INPUT, "lo16", HW_H_UINT, CGEN_MODE_UINT, OP_ENT (LO16), 0, 0 }, { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 }, { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 } }; +static const CGEN_OPINST sfmt_mvhi_ops[] ATTRIBUTE_UNUSED = { + { INPUT, "hi16", HW_H_UINT, CGEN_MODE_UINT, OP_ENT (HI16), 0, 0 }, + { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 }, + { OUTPUT, "r1", HW_H_GR, CGEN_MODE_SI, OP_ENT (R1), 0, 0 }, + { END, (const char *)0, (enum cgen_hw_type)0, (enum cgen_mode)0, (enum cgen_operand_type)0, 0, 0 } +}; + static const CGEN_OPINST sfmt_mva_ops[] ATTRIBUTE_UNUSED = { { INPUT, "gp16", HW_H_SINT, CGEN_MODE_INT, OP_ENT (GP16), 0, 0 }, { INPUT, "r0", HW_H_GR, CGEN_MODE_SI, OP_ENT (R0), 0, 0 }, @@ -421,9 +436,9 @@ static const CGEN_OPINST *lm32_cgen_opinst_table[MAX_INSNS] = { & sfmt_bret_ops[0], & sfmt_bret_ops[0], & sfmt_sextb_ops[0], - & sfmt_addi_ops[0], + & sfmt_mvi_ops[0], & sfmt_mvui_ops[0], - & sfmt_andhii_ops[0], + & sfmt_mvhi_ops[0], & sfmt_mva_ops[0], & sfmt_sextb_ops[0], & sfmt_nop_ops[0], @@ -451,8 +466,7 @@ static const CGEN_OPINST *lm32_cgen_opinst_table[MAX_INSNS] = { /* Function to call before using the operand instance table. */ void -lm32_cgen_init_opinst_table (cd) - CGEN_CPU_DESC cd; +lm32_cgen_init_opinst_table (CGEN_CPU_DESC cd) { int i; const CGEN_OPINST **oi = & lm32_cgen_opinst_table[0];