pike.git / src / code / amd64.c

version» Context lines:

pike.git/src/code/amd64.c:4492:      /* Argument ordering */      #define OP_B_RM 0x00008000 /* B arg before RM arg. */      /* Operand widths */   #define OP_8 0x01000000 /* 8-bit */   #define OP_S8 0x02000000 /* 8-bit sign extended to 16 */      /* ModRM lookup */ - #define OP_OPS 0x10000000 /* Lookup in modrm_ops */ + #define OP_OPS 0x40000000 /* Lookup in modrm_ops */         #define OP_S 0      #define REG (OP_REG)         #define RRM8 (OP_8|OP_RM|OP_B_RM)   #define RMR8 (OP_8|OP_RM)   #define RMR (OP_RM)
pike.git/src/code/amd64.c:4527:   #define ALI8 (OP_IMPLICIT_A|OP_IMM|OP_8)   #define AI (OP_IMPLICIT_A|OP_IMM)   #define RM8OP (OP_RM|OP_8|OP_OPS)   #define RMOP (OP_RM|OP_OPS)   #define RMC8OP (OP_RM|OP_8|OP_OPS|OP_IMPLICIT_C)   #define RMCOP (OP_RM|OP_OPS|OP_IMPLICIT_C)   #define PCREL (OP_PCREL)   #define PCREL8 (OP_PCREL|OP_8)   #define RM (OP_RM)    - static const char *modrm_ops[5][8] = { + static const char *modrm_ops[6][8] = {    /* #0: ALU operations (Opcodes 0x80, 0x81, 0x83). */    {    "add", "or", "adc", "and",    NULL, "sub", NULL, "cmp",    },    /* #1: Shift operations */    {    NULL, NULL, NULL, NULL,    "sal", "shr", NULL, "sar",    },
pike.git/src/code/amd64.c:4565:    NULL, NULL, NULL, NULL,    "bt", "bts", "btr", "btc",    },   };      struct amd64_opcode {    const char *name;    unsigned INT64 flags;   };    - static struct amd64_opcode amd64_opcodes[3][256] = { + static struct amd64_opcode amd64_opcodes[4][256] = {    /* Main table. */   {    /* 0x00 */    { "add", RMR8, }, { "add", RMR, }, { "add", RRM8, }, { "add", RRM, },    { "add", ALI8, }, { "add", AI, }, { NULL, 0, }, { NULL, 0, },    { "or", RMR8, }, { "or", RMR, }, { "or", RRM8, }, { "or", RRM, },    { "or", ALI8, }, { "or", AI, }, { NULL, 0, }, { "F", OP_F, },       /* 0x10 */    { NULL, 0, }, { NULL, 0, }, { NULL, 0, }, { NULL, 0, },