2019-05-24 01:04:36 +08:00
|
|
|
|
/* DO NOT EDIT! -*- buffer-read-only: t -*- vi:set ro: */
|
|
|
|
|
/* Instruction opcode table for bpf.
|
|
|
|
|
|
|
|
|
|
THIS FILE IS MACHINE GENERATED WITH CGEN.
|
|
|
|
|
|
2021-01-01 06:58:58 +08:00
|
|
|
|
Copyright (C) 1996-2021 Free Software Foundation, Inc.
|
2019-05-24 01:04:36 +08:00
|
|
|
|
|
|
|
|
|
This file is part of the GNU Binutils and/or GDB, the GNU debugger.
|
|
|
|
|
|
|
|
|
|
This file is free software; you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
|
the Free Software Foundation; either version 3, or (at your option)
|
|
|
|
|
any later version.
|
|
|
|
|
|
|
|
|
|
It is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
|
ANY WARRANTY; without even the implied warranty of 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.,
|
|
|
|
|
51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "sysdep.h"
|
|
|
|
|
#include "ansidecl.h"
|
|
|
|
|
#include "bfd.h"
|
|
|
|
|
#include "symcat.h"
|
|
|
|
|
#include "bpf-desc.h"
|
|
|
|
|
#include "bpf-opc.h"
|
|
|
|
|
#include "libiberty.h"
|
|
|
|
|
|
|
|
|
|
/* -- opc.c */
|
|
|
|
|
|
|
|
|
|
/* -- asm.c */
|
|
|
|
|
/* The hash functions are recorded here to help keep assembler code out of
|
|
|
|
|
the disassembler and vice versa. */
|
|
|
|
|
|
|
|
|
|
static int asm_hash_insn_p (const CGEN_INSN *);
|
|
|
|
|
static unsigned int asm_hash_insn (const char *);
|
|
|
|
|
static int dis_hash_insn_p (const CGEN_INSN *);
|
|
|
|
|
static unsigned int dis_hash_insn (const char *, CGEN_INSN_INT);
|
|
|
|
|
|
|
|
|
|
/* Instruction formats. */
|
|
|
|
|
|
|
|
|
|
#define F(f) & bpf_cgen_ifld_table[BPF_##f]
|
|
|
|
|
static const CGEN_IFMT ifmt_empty ATTRIBUTE_UNUSED = {
|
|
|
|
|
0, 0, 0x0, { { 0 } }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_addile ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_SRCLE) }, { F (F_OP_CODE) }, { F (F_DSTLE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_addrle ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_SRCLE) }, { F (F_OP_CODE) }, { F (F_DSTLE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_negle ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_SRCLE) }, { F (F_OP_CODE) }, { F (F_DSTLE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_addibe ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_DSTBE) }, { F (F_OP_CODE) }, { F (F_SRCBE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_addrbe ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_DSTBE) }, { F (F_OP_CODE) }, { F (F_SRCBE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_negbe ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_DSTBE) }, { F (F_OP_CODE) }, { F (F_SRCBE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_endlele ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_SRCLE) }, { F (F_OP_CODE) }, { F (F_DSTLE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_endlebe ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_DSTBE) }, { F (F_OP_CODE) }, { F (F_SRCBE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_lddwle ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 128, 0xff, { { F (F_IMM64) }, { F (F_OFFSET16) }, { F (F_SRCLE) }, { F (F_OP_MODE) }, { F (F_OP_SIZE) }, { F (F_DSTLE) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_lddwbe ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 128, 0xff, { { F (F_IMM64) }, { F (F_OFFSET16) }, { F (F_DSTBE) }, { F (F_OP_MODE) }, { F (F_OP_SIZE) }, { F (F_SRCBE) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
2019-07-15 22:00:28 +08:00
|
|
|
|
static const CGEN_IFMT ifmt_ldabsw ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_REGS) }, { F (F_OP_MODE) }, { F (F_OP_SIZE) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-07-15 22:00:28 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_ldindwle ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_SRCLE) }, { F (F_OP_MODE) }, { F (F_OP_SIZE) }, { F (F_DSTLE) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
2019-07-15 22:00:28 +08:00
|
|
|
|
static const CGEN_IFMT ifmt_ldindwbe ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_DSTBE) }, { F (F_OP_MODE) }, { F (F_OP_SIZE) }, { F (F_SRCBE) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_ldxwle ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_SRCLE) }, { F (F_OP_MODE) }, { F (F_OP_SIZE) }, { F (F_DSTLE) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_ldxwbe ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_DSTBE) }, { F (F_OP_MODE) }, { F (F_OP_SIZE) }, { F (F_SRCBE) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_stble ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_SRCLE) }, { F (F_OP_MODE) }, { F (F_OP_SIZE) }, { F (F_DSTLE) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_stbbe ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_DSTBE) }, { F (F_OP_MODE) }, { F (F_OP_SIZE) }, { F (F_SRCBE) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_jeqile ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_SRCLE) }, { F (F_OP_CODE) }, { F (F_DSTLE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_jeqrle ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_SRCLE) }, { F (F_OP_CODE) }, { F (F_DSTLE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_jeqibe ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_DSTBE) }, { F (F_OP_CODE) }, { F (F_SRCBE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_jeqrbe ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_DSTBE) }, { F (F_OP_CODE) }, { F (F_SRCBE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
2020-05-28 22:53:54 +08:00
|
|
|
|
static const CGEN_IFMT ifmt_callle ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_REGS) }, { F (F_OP_CODE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
2020-05-28 22:53:54 +08:00
|
|
|
|
static const CGEN_IFMT ifmt_ja ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_REGS) }, { F (F_OP_CODE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
static const CGEN_IFMT ifmt_exit ATTRIBUTE_UNUSED = {
|
2020-06-04 22:17:07 +08:00
|
|
|
|
64, 64, 0xff, { { F (F_IMM32) }, { F (F_OFFSET16) }, { F (F_REGS) }, { F (F_OP_CODE) }, { F (F_OP_SRC) }, { F (F_OP_CLASS) }, { 0 } }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#undef F
|
|
|
|
|
|
|
|
|
|
#define A(a) (1 << CGEN_INSN_##a)
|
|
|
|
|
#define OPERAND(op) BPF_OPERAND_##op
|
|
|
|
|
#define MNEM CGEN_SYNTAX_MNEMONIC /* syntax value for mnemonic */
|
|
|
|
|
#define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field))
|
|
|
|
|
|
|
|
|
|
/* The instruction table. */
|
|
|
|
|
|
|
|
|
|
static const CGEN_OPCODE bpf_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}},
|
|
|
|
|
/* add $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x7 }
|
|
|
|
|
},
|
|
|
|
|
/* add $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0xf }
|
|
|
|
|
},
|
|
|
|
|
/* add32 $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x4 }
|
|
|
|
|
},
|
|
|
|
|
/* add32 $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0xc }
|
|
|
|
|
},
|
|
|
|
|
/* sub $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x17 }
|
|
|
|
|
},
|
|
|
|
|
/* sub $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x1f }
|
|
|
|
|
},
|
|
|
|
|
/* sub32 $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x14 }
|
|
|
|
|
},
|
|
|
|
|
/* sub32 $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x1c }
|
|
|
|
|
},
|
|
|
|
|
/* mul $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x27 }
|
|
|
|
|
},
|
|
|
|
|
/* mul $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x2f }
|
|
|
|
|
},
|
|
|
|
|
/* mul32 $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x24 }
|
|
|
|
|
},
|
|
|
|
|
/* mul32 $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x2c }
|
|
|
|
|
},
|
|
|
|
|
/* div $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x37 }
|
|
|
|
|
},
|
|
|
|
|
/* div $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x3f }
|
|
|
|
|
},
|
|
|
|
|
/* div32 $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x34 }
|
|
|
|
|
},
|
|
|
|
|
/* div32 $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x3c }
|
|
|
|
|
},
|
|
|
|
|
/* or $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x47 }
|
|
|
|
|
},
|
|
|
|
|
/* or $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x4f }
|
|
|
|
|
},
|
|
|
|
|
/* or32 $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x44 }
|
|
|
|
|
},
|
|
|
|
|
/* or32 $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x4c }
|
|
|
|
|
},
|
|
|
|
|
/* and $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x57 }
|
|
|
|
|
},
|
|
|
|
|
/* and $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x5f }
|
|
|
|
|
},
|
|
|
|
|
/* and32 $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x54 }
|
|
|
|
|
},
|
|
|
|
|
/* and32 $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x5c }
|
|
|
|
|
},
|
|
|
|
|
/* lsh $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x67 }
|
|
|
|
|
},
|
|
|
|
|
/* lsh $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x6f }
|
|
|
|
|
},
|
|
|
|
|
/* lsh32 $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x64 }
|
|
|
|
|
},
|
|
|
|
|
/* lsh32 $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x6c }
|
|
|
|
|
},
|
|
|
|
|
/* rsh $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x77 }
|
|
|
|
|
},
|
|
|
|
|
/* rsh $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x7f }
|
|
|
|
|
},
|
|
|
|
|
/* rsh32 $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x74 }
|
|
|
|
|
},
|
|
|
|
|
/* rsh32 $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x7c }
|
|
|
|
|
},
|
|
|
|
|
/* mod $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x97 }
|
|
|
|
|
},
|
|
|
|
|
/* mod $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x9f }
|
|
|
|
|
},
|
|
|
|
|
/* mod32 $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0x94 }
|
|
|
|
|
},
|
|
|
|
|
/* mod32 $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0x9c }
|
|
|
|
|
},
|
|
|
|
|
/* xor $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0xa7 }
|
|
|
|
|
},
|
|
|
|
|
/* xor $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0xaf }
|
|
|
|
|
},
|
|
|
|
|
/* xor32 $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0xa4 }
|
|
|
|
|
},
|
|
|
|
|
/* xor32 $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0xac }
|
|
|
|
|
},
|
|
|
|
|
/* arsh $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0xc7 }
|
|
|
|
|
},
|
|
|
|
|
/* arsh $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0xcf }
|
|
|
|
|
},
|
|
|
|
|
/* arsh32 $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0xc4 }
|
|
|
|
|
},
|
|
|
|
|
/* arsh32 $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0xcc }
|
|
|
|
|
},
|
2020-09-19 00:56:43 +08:00
|
|
|
|
/* sdiv $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0xe7 }
|
|
|
|
|
},
|
|
|
|
|
/* sdiv $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0xef }
|
|
|
|
|
},
|
|
|
|
|
/* sdiv32 $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0xe4 }
|
|
|
|
|
},
|
|
|
|
|
/* sdiv32 $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0xec }
|
|
|
|
|
},
|
|
|
|
|
/* smod $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0xf7 }
|
|
|
|
|
},
|
|
|
|
|
/* smod $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0xff }
|
|
|
|
|
},
|
|
|
|
|
/* smod32 $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0xf4 }
|
|
|
|
|
},
|
|
|
|
|
/* smod32 $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0xfc }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* neg $dstle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), 0 } },
|
2020-01-30 20:59:04 +08:00
|
|
|
|
& ifmt_negle, { 0x87 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
|
|
|
|
/* neg32 $dstle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), 0 } },
|
2020-01-30 20:59:04 +08:00
|
|
|
|
& ifmt_negle, { 0x84 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
2020-05-28 22:53:54 +08:00
|
|
|
|
/* mov $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0xb7 }
|
|
|
|
|
},
|
|
|
|
|
/* mov $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0xbf }
|
|
|
|
|
},
|
|
|
|
|
/* mov32 $dstle,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addile, { 0xb4 }
|
|
|
|
|
},
|
|
|
|
|
/* mov32 $dstle,$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_addrle, { 0xbc }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* add $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x7 }
|
|
|
|
|
},
|
|
|
|
|
/* add $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0xf }
|
|
|
|
|
},
|
|
|
|
|
/* add32 $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x4 }
|
|
|
|
|
},
|
|
|
|
|
/* add32 $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0xc }
|
|
|
|
|
},
|
|
|
|
|
/* sub $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x17 }
|
|
|
|
|
},
|
|
|
|
|
/* sub $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x1f }
|
|
|
|
|
},
|
|
|
|
|
/* sub32 $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x14 }
|
|
|
|
|
},
|
|
|
|
|
/* sub32 $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x1c }
|
|
|
|
|
},
|
|
|
|
|
/* mul $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x27 }
|
|
|
|
|
},
|
|
|
|
|
/* mul $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x2f }
|
|
|
|
|
},
|
|
|
|
|
/* mul32 $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x24 }
|
|
|
|
|
},
|
|
|
|
|
/* mul32 $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x2c }
|
|
|
|
|
},
|
|
|
|
|
/* div $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x37 }
|
|
|
|
|
},
|
|
|
|
|
/* div $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x3f }
|
|
|
|
|
},
|
|
|
|
|
/* div32 $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x34 }
|
|
|
|
|
},
|
|
|
|
|
/* div32 $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x3c }
|
|
|
|
|
},
|
|
|
|
|
/* or $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x47 }
|
|
|
|
|
},
|
|
|
|
|
/* or $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x4f }
|
|
|
|
|
},
|
|
|
|
|
/* or32 $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x44 }
|
|
|
|
|
},
|
|
|
|
|
/* or32 $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x4c }
|
|
|
|
|
},
|
|
|
|
|
/* and $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x57 }
|
|
|
|
|
},
|
|
|
|
|
/* and $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x5f }
|
|
|
|
|
},
|
|
|
|
|
/* and32 $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x54 }
|
|
|
|
|
},
|
|
|
|
|
/* and32 $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x5c }
|
|
|
|
|
},
|
|
|
|
|
/* lsh $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x67 }
|
|
|
|
|
},
|
|
|
|
|
/* lsh $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x6f }
|
|
|
|
|
},
|
|
|
|
|
/* lsh32 $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x64 }
|
|
|
|
|
},
|
|
|
|
|
/* lsh32 $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x6c }
|
|
|
|
|
},
|
|
|
|
|
/* rsh $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x77 }
|
|
|
|
|
},
|
|
|
|
|
/* rsh $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x7f }
|
|
|
|
|
},
|
|
|
|
|
/* rsh32 $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x74 }
|
|
|
|
|
},
|
|
|
|
|
/* rsh32 $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x7c }
|
|
|
|
|
},
|
|
|
|
|
/* mod $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x97 }
|
|
|
|
|
},
|
|
|
|
|
/* mod $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x9f }
|
|
|
|
|
},
|
|
|
|
|
/* mod32 $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0x94 }
|
|
|
|
|
},
|
|
|
|
|
/* mod32 $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0x9c }
|
|
|
|
|
},
|
|
|
|
|
/* xor $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0xa7 }
|
|
|
|
|
},
|
|
|
|
|
/* xor $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0xaf }
|
|
|
|
|
},
|
|
|
|
|
/* xor32 $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0xa4 }
|
|
|
|
|
},
|
|
|
|
|
/* xor32 $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0xac }
|
|
|
|
|
},
|
|
|
|
|
/* arsh $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0xc7 }
|
|
|
|
|
},
|
|
|
|
|
/* arsh $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0xcf }
|
|
|
|
|
},
|
|
|
|
|
/* arsh32 $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0xc4 }
|
|
|
|
|
},
|
|
|
|
|
/* arsh32 $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0xcc }
|
|
|
|
|
},
|
2020-09-19 00:56:43 +08:00
|
|
|
|
/* sdiv $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0xe7 }
|
|
|
|
|
},
|
|
|
|
|
/* sdiv $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0xef }
|
|
|
|
|
},
|
|
|
|
|
/* sdiv32 $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0xe4 }
|
|
|
|
|
},
|
|
|
|
|
/* sdiv32 $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0xec }
|
|
|
|
|
},
|
|
|
|
|
/* smod $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0xf7 }
|
|
|
|
|
},
|
|
|
|
|
/* smod $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0xff }
|
|
|
|
|
},
|
|
|
|
|
/* smod32 $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0xf4 }
|
|
|
|
|
},
|
|
|
|
|
/* smod32 $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0xfc }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* neg $dstbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), 0 } },
|
2020-01-30 20:59:04 +08:00
|
|
|
|
& ifmt_negbe, { 0x87 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
|
|
|
|
/* neg32 $dstbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), 0 } },
|
2020-01-30 20:59:04 +08:00
|
|
|
|
& ifmt_negbe, { 0x84 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
2020-05-28 22:53:54 +08:00
|
|
|
|
/* mov $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0xb7 }
|
|
|
|
|
},
|
|
|
|
|
/* mov $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0xbf }
|
|
|
|
|
},
|
|
|
|
|
/* mov32 $dstbe,$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_addibe, { 0xb4 }
|
|
|
|
|
},
|
|
|
|
|
/* mov32 $dstbe,$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_addrbe, { 0xbc }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* endle $dstle,$endsize */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (ENDSIZE), 0 } },
|
|
|
|
|
& ifmt_endlele, { 0xd4 }
|
|
|
|
|
},
|
|
|
|
|
/* endbe $dstle,$endsize */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (ENDSIZE), 0 } },
|
|
|
|
|
& ifmt_endlele, { 0xdc }
|
|
|
|
|
},
|
|
|
|
|
/* endle $dstbe,$endsize */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (ENDSIZE), 0 } },
|
|
|
|
|
& ifmt_endlebe, { 0xd4 }
|
|
|
|
|
},
|
|
|
|
|
/* endbe $dstbe,$endsize */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (ENDSIZE), 0 } },
|
|
|
|
|
& ifmt_endlebe, { 0xdc }
|
|
|
|
|
},
|
|
|
|
|
/* lddw $dstle,$imm64 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM64), 0 } },
|
|
|
|
|
& ifmt_lddwle, { 0x18 }
|
|
|
|
|
},
|
|
|
|
|
/* lddw $dstbe,$imm64 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM64), 0 } },
|
|
|
|
|
& ifmt_lddwbe, { 0x18 }
|
|
|
|
|
},
|
2019-07-15 22:00:28 +08:00
|
|
|
|
/* ldabsw $imm32 */
|
2019-05-24 01:04:36 +08:00
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
2019-07-15 22:00:28 +08:00
|
|
|
|
{ { MNEM, ' ', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_ldabsw, { 0x20 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
2019-07-15 22:00:28 +08:00
|
|
|
|
/* ldabsh $imm32 */
|
2019-05-24 01:04:36 +08:00
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
2019-07-15 22:00:28 +08:00
|
|
|
|
{ { MNEM, ' ', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_ldabsw, { 0x28 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
2019-07-15 22:00:28 +08:00
|
|
|
|
/* ldabsb $imm32 */
|
2019-05-24 01:04:36 +08:00
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
2019-07-15 22:00:28 +08:00
|
|
|
|
{ { MNEM, ' ', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_ldabsw, { 0x30 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
2019-07-15 22:00:28 +08:00
|
|
|
|
/* ldabsdw $imm32 */
|
2019-05-24 01:04:36 +08:00
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
2019-07-15 22:00:28 +08:00
|
|
|
|
{ { MNEM, ' ', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_ldabsw, { 0x38 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
/* ldindw $srcle,$imm32 */
|
2019-05-24 01:04:36 +08:00
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
{ { MNEM, ' ', OP (SRCLE), ',', OP (IMM32), 0 } },
|
2019-07-15 22:00:28 +08:00
|
|
|
|
& ifmt_ldindwle, { 0x40 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
/* ldindh $srcle,$imm32 */
|
2019-05-24 01:04:36 +08:00
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
{ { MNEM, ' ', OP (SRCLE), ',', OP (IMM32), 0 } },
|
2019-07-15 22:00:28 +08:00
|
|
|
|
& ifmt_ldindwle, { 0x48 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
/* ldindb $srcle,$imm32 */
|
2019-05-24 01:04:36 +08:00
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
{ { MNEM, ' ', OP (SRCLE), ',', OP (IMM32), 0 } },
|
2019-07-15 22:00:28 +08:00
|
|
|
|
& ifmt_ldindwle, { 0x50 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
/* ldinddw $srcle,$imm32 */
|
2019-05-24 01:04:36 +08:00
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
{ { MNEM, ' ', OP (SRCLE), ',', OP (IMM32), 0 } },
|
2019-07-15 22:00:28 +08:00
|
|
|
|
& ifmt_ldindwle, { 0x58 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
/* ldindw $srcbe,$imm32 */
|
2019-05-24 01:04:36 +08:00
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
{ { MNEM, ' ', OP (SRCBE), ',', OP (IMM32), 0 } },
|
2019-07-15 22:00:28 +08:00
|
|
|
|
& ifmt_ldindwbe, { 0x40 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
/* ldindh $srcbe,$imm32 */
|
2019-05-24 01:04:36 +08:00
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
{ { MNEM, ' ', OP (SRCBE), ',', OP (IMM32), 0 } },
|
2019-07-15 22:00:28 +08:00
|
|
|
|
& ifmt_ldindwbe, { 0x48 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
/* ldindb $srcbe,$imm32 */
|
2019-05-24 01:04:36 +08:00
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
{ { MNEM, ' ', OP (SRCBE), ',', OP (IMM32), 0 } },
|
2019-07-15 22:00:28 +08:00
|
|
|
|
& ifmt_ldindwbe, { 0x50 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
/* ldinddw $srcbe,$imm32 */
|
2019-05-24 01:04:36 +08:00
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
The eBPF non-generic load instructions ldind{b,h,w,dw} and
ldabs{b,h,w,dw} do not take an explicit destination register as an
argument. Instead, they put the loaded value in %r0, implicitly.
This patch fixes the CPU BPF description to not expect a 'dst'
argument in these arguments, regenerates the corresponding files in
opcodes, and updates the impacted GAS tests.
Tested in a x86-64 host.
cpu/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf.cpu (dlsi): ldabs and ldind instructions do not take an
explicit 'dst' argument.
opcodes/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* bpf-desc.c: Regenerate.
* bpf-opc.c: Likewise.
gas/ChangeLog:
2019-07-14 Jose E. Marchesi <jose.marchesi@oracle.com>
* testsuite/gas/bpf/mem.s: Do not use explicit arguments for
ldabs and ldind instructions.
* testsuite/gas/bpf/mem.d: Updated accordingly.
* testsuite/gas/bpf/mem-be.d: Likewise.
2019-07-14 20:45:31 +08:00
|
|
|
|
{ { MNEM, ' ', OP (SRCBE), ',', OP (IMM32), 0 } },
|
2019-07-15 22:00:28 +08:00
|
|
|
|
& ifmt_ldindwbe, { 0x58 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
|
|
|
|
/* ldxw $dstle,[$srcle+$offset16] */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', '[', OP (SRCLE), '+', OP (OFFSET16), ']', 0 } },
|
|
|
|
|
& ifmt_ldxwle, { 0x61 }
|
|
|
|
|
},
|
|
|
|
|
/* ldxh $dstle,[$srcle+$offset16] */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', '[', OP (SRCLE), '+', OP (OFFSET16), ']', 0 } },
|
|
|
|
|
& ifmt_ldxwle, { 0x69 }
|
|
|
|
|
},
|
|
|
|
|
/* ldxb $dstle,[$srcle+$offset16] */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', '[', OP (SRCLE), '+', OP (OFFSET16), ']', 0 } },
|
|
|
|
|
& ifmt_ldxwle, { 0x71 }
|
|
|
|
|
},
|
|
|
|
|
/* ldxdw $dstle,[$srcle+$offset16] */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', '[', OP (SRCLE), '+', OP (OFFSET16), ']', 0 } },
|
|
|
|
|
& ifmt_ldxwle, { 0x79 }
|
|
|
|
|
},
|
|
|
|
|
/* stxw [$dstle+$offset16],$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTLE), '+', OP (OFFSET16), ']', ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_ldxwle, { 0x63 }
|
|
|
|
|
},
|
|
|
|
|
/* stxh [$dstle+$offset16],$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTLE), '+', OP (OFFSET16), ']', ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_ldxwle, { 0x6b }
|
|
|
|
|
},
|
|
|
|
|
/* stxb [$dstle+$offset16],$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTLE), '+', OP (OFFSET16), ']', ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_ldxwle, { 0x73 }
|
|
|
|
|
},
|
|
|
|
|
/* stxdw [$dstle+$offset16],$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTLE), '+', OP (OFFSET16), ']', ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_ldxwle, { 0x7b }
|
|
|
|
|
},
|
|
|
|
|
/* ldxw $dstbe,[$srcbe+$offset16] */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', '[', OP (SRCBE), '+', OP (OFFSET16), ']', 0 } },
|
|
|
|
|
& ifmt_ldxwbe, { 0x61 }
|
|
|
|
|
},
|
|
|
|
|
/* ldxh $dstbe,[$srcbe+$offset16] */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', '[', OP (SRCBE), '+', OP (OFFSET16), ']', 0 } },
|
|
|
|
|
& ifmt_ldxwbe, { 0x69 }
|
|
|
|
|
},
|
|
|
|
|
/* ldxb $dstbe,[$srcbe+$offset16] */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', '[', OP (SRCBE), '+', OP (OFFSET16), ']', 0 } },
|
|
|
|
|
& ifmt_ldxwbe, { 0x71 }
|
|
|
|
|
},
|
|
|
|
|
/* ldxdw $dstbe,[$srcbe+$offset16] */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', '[', OP (SRCBE), '+', OP (OFFSET16), ']', 0 } },
|
|
|
|
|
& ifmt_ldxwbe, { 0x79 }
|
|
|
|
|
},
|
|
|
|
|
/* stxw [$dstbe+$offset16],$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTBE), '+', OP (OFFSET16), ']', ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_ldxwbe, { 0x63 }
|
|
|
|
|
},
|
|
|
|
|
/* stxh [$dstbe+$offset16],$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTBE), '+', OP (OFFSET16), ']', ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_ldxwbe, { 0x6b }
|
|
|
|
|
},
|
|
|
|
|
/* stxb [$dstbe+$offset16],$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTBE), '+', OP (OFFSET16), ']', ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_ldxwbe, { 0x73 }
|
|
|
|
|
},
|
|
|
|
|
/* stxdw [$dstbe+$offset16],$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTBE), '+', OP (OFFSET16), ']', ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_ldxwbe, { 0x7b }
|
|
|
|
|
},
|
|
|
|
|
/* stb [$dstle+$offset16],$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTLE), '+', OP (OFFSET16), ']', ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_stble, { 0x72 }
|
|
|
|
|
},
|
|
|
|
|
/* sth [$dstle+$offset16],$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTLE), '+', OP (OFFSET16), ']', ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_stble, { 0x6a }
|
|
|
|
|
},
|
|
|
|
|
/* stw [$dstle+$offset16],$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTLE), '+', OP (OFFSET16), ']', ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_stble, { 0x62 }
|
|
|
|
|
},
|
|
|
|
|
/* stdw [$dstle+$offset16],$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTLE), '+', OP (OFFSET16), ']', ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_stble, { 0x7a }
|
|
|
|
|
},
|
|
|
|
|
/* stb [$dstbe+$offset16],$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTBE), '+', OP (OFFSET16), ']', ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_stbbe, { 0x72 }
|
|
|
|
|
},
|
|
|
|
|
/* sth [$dstbe+$offset16],$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTBE), '+', OP (OFFSET16), ']', ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_stbbe, { 0x6a }
|
|
|
|
|
},
|
|
|
|
|
/* stw [$dstbe+$offset16],$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTBE), '+', OP (OFFSET16), ']', ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_stbbe, { 0x62 }
|
|
|
|
|
},
|
|
|
|
|
/* stdw [$dstbe+$offset16],$imm32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTBE), '+', OP (OFFSET16), ']', ',', OP (IMM32), 0 } },
|
|
|
|
|
& ifmt_stbbe, { 0x7a }
|
|
|
|
|
},
|
|
|
|
|
/* jeq $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0x15 }
|
|
|
|
|
},
|
|
|
|
|
/* jeq $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0x1d }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jeq32 $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0x16 }
|
|
|
|
|
},
|
|
|
|
|
/* jeq32 $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0x1e }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jgt $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0x25 }
|
|
|
|
|
},
|
|
|
|
|
/* jgt $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0x2d }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jgt32 $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0x26 }
|
|
|
|
|
},
|
|
|
|
|
/* jgt32 $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0x2e }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jge $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0x35 }
|
|
|
|
|
},
|
|
|
|
|
/* jge $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0x3d }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jge32 $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0x36 }
|
|
|
|
|
},
|
|
|
|
|
/* jge32 $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0x3e }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jlt $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0xa5 }
|
|
|
|
|
},
|
|
|
|
|
/* jlt $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0xad }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jlt32 $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0xa6 }
|
|
|
|
|
},
|
|
|
|
|
/* jlt32 $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0xae }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jle $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0xb5 }
|
|
|
|
|
},
|
|
|
|
|
/* jle $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0xbd }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jle32 $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0xb6 }
|
|
|
|
|
},
|
|
|
|
|
/* jle32 $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0xbe }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jset $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0x45 }
|
|
|
|
|
},
|
|
|
|
|
/* jset $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0x4d }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jset32 $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0x46 }
|
|
|
|
|
},
|
|
|
|
|
/* jset32 $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0x4e }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jne $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0x55 }
|
|
|
|
|
},
|
|
|
|
|
/* jne $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0x5d }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jne32 $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0x56 }
|
|
|
|
|
},
|
|
|
|
|
/* jne32 $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0x5e }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jsgt $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0x65 }
|
|
|
|
|
},
|
|
|
|
|
/* jsgt $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0x6d }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jsgt32 $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0x66 }
|
|
|
|
|
},
|
|
|
|
|
/* jsgt32 $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0x6e }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jsge $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0x75 }
|
|
|
|
|
},
|
|
|
|
|
/* jsge $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0x7d }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jsge32 $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0x76 }
|
|
|
|
|
},
|
|
|
|
|
/* jsge32 $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0x7e }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jslt $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0xc5 }
|
|
|
|
|
},
|
|
|
|
|
/* jslt $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0xcd }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jslt32 $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0xc6 }
|
|
|
|
|
},
|
|
|
|
|
/* jslt32 $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0xce }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jsle $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0xd5 }
|
|
|
|
|
},
|
|
|
|
|
/* jsle $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0xdd }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jsle32 $dstle,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqile, { 0xd6 }
|
|
|
|
|
},
|
|
|
|
|
/* jsle32 $dstle,$srcle,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), ',', OP (SRCLE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrle, { 0xde }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jeq $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0x15 }
|
|
|
|
|
},
|
|
|
|
|
/* jeq $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0x1d }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jeq32 $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0x16 }
|
|
|
|
|
},
|
|
|
|
|
/* jeq32 $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0x1e }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jgt $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0x25 }
|
|
|
|
|
},
|
|
|
|
|
/* jgt $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0x2d }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jgt32 $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0x26 }
|
|
|
|
|
},
|
|
|
|
|
/* jgt32 $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0x2e }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jge $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0x35 }
|
|
|
|
|
},
|
|
|
|
|
/* jge $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0x3d }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jge32 $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0x36 }
|
|
|
|
|
},
|
|
|
|
|
/* jge32 $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0x3e }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jlt $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0xa5 }
|
|
|
|
|
},
|
|
|
|
|
/* jlt $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0xad }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jlt32 $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0xa6 }
|
|
|
|
|
},
|
|
|
|
|
/* jlt32 $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0xae }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jle $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0xb5 }
|
|
|
|
|
},
|
|
|
|
|
/* jle $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0xbd }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jle32 $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0xb6 }
|
|
|
|
|
},
|
|
|
|
|
/* jle32 $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0xbe }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jset $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0x45 }
|
|
|
|
|
},
|
|
|
|
|
/* jset $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0x4d }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jset32 $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0x46 }
|
|
|
|
|
},
|
|
|
|
|
/* jset32 $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0x4e }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jne $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0x55 }
|
|
|
|
|
},
|
|
|
|
|
/* jne $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0x5d }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jne32 $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0x56 }
|
|
|
|
|
},
|
|
|
|
|
/* jne32 $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0x5e }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jsgt $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0x65 }
|
|
|
|
|
},
|
|
|
|
|
/* jsgt $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0x6d }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jsgt32 $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0x66 }
|
|
|
|
|
},
|
|
|
|
|
/* jsgt32 $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0x6e }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jsge $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0x75 }
|
|
|
|
|
},
|
|
|
|
|
/* jsge $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0x7d }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jsge32 $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0x76 }
|
|
|
|
|
},
|
|
|
|
|
/* jsge32 $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0x7e }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jslt $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0xc5 }
|
|
|
|
|
},
|
|
|
|
|
/* jslt $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0xcd }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jslt32 $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0xc6 }
|
|
|
|
|
},
|
|
|
|
|
/* jslt32 $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0xce }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
/* jsle $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0xd5 }
|
|
|
|
|
},
|
|
|
|
|
/* jsle $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0xdd }
|
|
|
|
|
},
|
2020-04-16 15:52:57 +08:00
|
|
|
|
/* jsle32 $dstbe,$imm32,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (IMM32), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqibe, { 0xd6 }
|
|
|
|
|
},
|
|
|
|
|
/* jsle32 $dstbe,$srcbe,$disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), ',', OP (SRCBE), ',', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_jeqrbe, { 0xde }
|
|
|
|
|
},
|
2020-05-28 22:53:54 +08:00
|
|
|
|
/* call $disp32 */
|
2019-05-24 01:04:36 +08:00
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
2020-05-28 22:53:54 +08:00
|
|
|
|
{ { MNEM, ' ', OP (DISP32), 0 } },
|
|
|
|
|
& ifmt_callle, { 0x85 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
|
|
|
|
/* call $disp32 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DISP32), 0 } },
|
2020-05-28 22:53:54 +08:00
|
|
|
|
& ifmt_callle, { 0x85 }
|
|
|
|
|
},
|
bpf: add xBPF ISA
This patch adds support for xBPF, another ISA targetting the BPF
virtual architecture. For now, the primary difference between eBPF
and xBPF is that xBPF supports indirect calls through the
'call %reg' form of the call instruction.
bfd/
* archures.c (bfd_mach_xbpf): Define.
* bfd-in2.h: Regenerate.
* cpu-bpf.c (bfd_xbpf_arch) New.
(bfd_bpf_arch) Update next in list field to point to xbpf arch.
cpu/
* bpf.cpu (arch bpf): Add xbpf mach and isas.
(define-xbpf-isa) New pmacro.
(all-isas) Add xbpfle,xbpfbe.
(endian-isas): New pmacro.
(mach xbpf): New.
(model xbpf-def): Likewise.
(h-gpr): Add xbpf mach.
(f-dstle, f-srcle, dstle, srcle): Add xbpfle isa.
(f-dstbe, f-srcbe, dstbe, srcbe): Add xbpfbe isa.
(define-alu-insn-un): Use new endian-isas pmacro.
(define-alu-insn-bin, define-alu-insn-mov): Likewise.
(define-endian-insn, define-lddw): Likewise.
(dlind, dxli, dxsi, dsti): Likewise.
(define-cond-jump-insn, define-call-insn): Likewise.
(define-atomic-insns): Likewise.
gas/
* config/tc-bpf.c: Add option -mxbpf to select xbpf isa.
* testsuite/gas/bpf/indcall-1.d: New file.
* testsuite/gas/bpf/indcall-1.s: Likewise.
* testsuite/gas/bpf/indcall-bad-1.l: Likewise.
* testsuite/gas/bpf/indcall-bad-1.s: Likewise.
* testsuite/gas/bpf/bpf.exp: Run new tests.
opcodes/
* bpf-desc.c: Regenerate.
* bpf-desc.h: Likewise.
* bpf-opc.c: Likewise.
* bpf-opc.h: Likewise.
* disassemble.c (disassemble_init_for_target): Set bits for xBPF
ISA when appropriate.
2020-08-26 21:39:00 +08:00
|
|
|
|
/* call $dstle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTLE), 0 } },
|
|
|
|
|
& ifmt_negle, { 0x8d }
|
|
|
|
|
},
|
|
|
|
|
/* call $dstbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DSTBE), 0 } },
|
|
|
|
|
& ifmt_negbe, { 0x8d }
|
|
|
|
|
},
|
2020-05-28 22:53:54 +08:00
|
|
|
|
/* ja $disp16 */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', OP (DISP16), 0 } },
|
|
|
|
|
& ifmt_ja, { 0x5 }
|
2019-05-24 01:04:36 +08:00
|
|
|
|
},
|
|
|
|
|
/* exit */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, 0 } },
|
|
|
|
|
& ifmt_exit, { 0x95 }
|
|
|
|
|
},
|
|
|
|
|
/* xadddw [$dstle+$offset16],$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTLE), '+', OP (OFFSET16), ']', ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_ldxwle, { 0xdb }
|
|
|
|
|
},
|
|
|
|
|
/* xaddw [$dstle+$offset16],$srcle */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTLE), '+', OP (OFFSET16), ']', ',', OP (SRCLE), 0 } },
|
|
|
|
|
& ifmt_ldxwle, { 0xc3 }
|
|
|
|
|
},
|
|
|
|
|
/* xadddw [$dstbe+$offset16],$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTBE), '+', OP (OFFSET16), ']', ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_ldxwbe, { 0xdb }
|
|
|
|
|
},
|
|
|
|
|
/* xaddw [$dstbe+$offset16],$srcbe */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, ' ', '[', OP (DSTBE), '+', OP (OFFSET16), ']', ',', OP (SRCBE), 0 } },
|
|
|
|
|
& ifmt_ldxwbe, { 0xc3 }
|
|
|
|
|
},
|
2020-05-28 22:53:54 +08:00
|
|
|
|
/* brkpt */
|
|
|
|
|
{
|
|
|
|
|
{ 0, 0, 0, 0 },
|
|
|
|
|
{ { MNEM, 0 } },
|
|
|
|
|
& ifmt_exit, { 0x8c }
|
|
|
|
|
},
|
2019-05-24 01:04:36 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#undef A
|
|
|
|
|
#undef OPERAND
|
|
|
|
|
#undef MNEM
|
|
|
|
|
#undef OP
|
|
|
|
|
|
|
|
|
|
/* Formats for ALIAS macro-insns. */
|
|
|
|
|
|
|
|
|
|
#define F(f) & bpf_cgen_ifld_table[BPF_##f]
|
|
|
|
|
#undef F
|
|
|
|
|
|
|
|
|
|
/* Each non-simple macro entry points to an array of expansion possibilities. */
|
|
|
|
|
|
|
|
|
|
#define A(a) (1 << CGEN_INSN_##a)
|
|
|
|
|
#define OPERAND(op) BPF_OPERAND_##op
|
|
|
|
|
#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_IBASE bpf_cgen_macro_insn_table[] =
|
|
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* The macro instruction opcode table. */
|
|
|
|
|
|
|
|
|
|
static const CGEN_OPCODE bpf_cgen_macro_insn_opcode_table[] =
|
|
|
|
|
{
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#undef A
|
|
|
|
|
#undef OPERAND
|
|
|
|
|
#undef MNEM
|
|
|
|
|
#undef OP
|
|
|
|
|
|
|
|
|
|
#ifndef CGEN_ASM_HASH_P
|
|
|
|
|
#define CGEN_ASM_HASH_P(insn) 1
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#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 (const CGEN_INSN *insn ATTRIBUTE_UNUSED)
|
|
|
|
|
{
|
|
|
|
|
return CGEN_ASM_HASH_P (insn);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static int
|
|
|
|
|
dis_hash_insn_p (const CGEN_INSN *insn)
|
|
|
|
|
{
|
|
|
|
|
/* If building the hash table and the NO-DIS attribute is present,
|
|
|
|
|
ignore. */
|
|
|
|
|
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. */
|
|
|
|
|
|
|
|
|
|
static unsigned int
|
|
|
|
|
asm_hash_insn (const char *mnem)
|
|
|
|
|
{
|
|
|
|
|
return CGEN_ASM_HASH (mnem);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 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 (const char *buf ATTRIBUTE_UNUSED,
|
|
|
|
|
CGEN_INSN_INT value ATTRIBUTE_UNUSED)
|
|
|
|
|
{
|
|
|
|
|
return CGEN_DIS_HASH (buf, value);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Set the recorded length of the insn in the CGEN_FIELDS struct. */
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
|
set_fields_bitsize (CGEN_FIELDS *fields, int size)
|
|
|
|
|
{
|
|
|
|
|
CGEN_FIELDS_BITSIZE (fields) = size;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Function to call before using the operand instance table.
|
|
|
|
|
This plugs the opcode entries and macro instructions into the cpu table. */
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
bpf_cgen_init_opcode_table (CGEN_CPU_DESC cd)
|
|
|
|
|
{
|
|
|
|
|
int i;
|
|
|
|
|
int num_macros = (sizeof (bpf_cgen_macro_insn_table) /
|
|
|
|
|
sizeof (bpf_cgen_macro_insn_table[0]));
|
|
|
|
|
const CGEN_IBASE *ib = & bpf_cgen_macro_insn_table[0];
|
|
|
|
|
const CGEN_OPCODE *oc = & bpf_cgen_macro_insn_opcode_table[0];
|
|
|
|
|
CGEN_INSN *insns = xmalloc (num_macros * sizeof (CGEN_INSN));
|
|
|
|
|
|
|
|
|
|
/* This test has been added to avoid a warning generated
|
|
|
|
|
if memset is called with a third argument of value zero. */
|
|
|
|
|
if (num_macros >= 1)
|
|
|
|
|
memset (insns, 0, num_macros * sizeof (CGEN_INSN));
|
|
|
|
|
for (i = 0; i < num_macros; ++i)
|
|
|
|
|
{
|
|
|
|
|
insns[i].base = &ib[i];
|
|
|
|
|
insns[i].opcode = &oc[i];
|
|
|
|
|
bpf_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;
|
|
|
|
|
|
|
|
|
|
oc = & bpf_cgen_insn_opcode_table[0];
|
|
|
|
|
insns = (CGEN_INSN *) cd->insn_table.init_entries;
|
|
|
|
|
for (i = 0; i < MAX_INSNS; ++i)
|
|
|
|
|
{
|
|
|
|
|
insns[i].opcode = &oc[i];
|
|
|
|
|
bpf_cgen_build_insn_regex (& insns[i]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cd->sizeof_fields = sizeof (CGEN_FIELDS);
|
|
|
|
|
cd->set_fields_bitsize = set_fields_bitsize;
|
|
|
|
|
|
|
|
|
|
cd->asm_hash_p = asm_hash_insn_p;
|
|
|
|
|
cd->asm_hash = asm_hash_insn;
|
|
|
|
|
cd->asm_hash_size = CGEN_ASM_HASH_SIZE;
|
|
|
|
|
|
|
|
|
|
cd->dis_hash_p = dis_hash_insn_p;
|
|
|
|
|
cd->dis_hash = dis_hash_insn;
|
|
|
|
|
cd->dis_hash_size = CGEN_DIS_HASH_SIZE;
|
|
|
|
|
}
|