From edd67638687a06788c8c69c75e139bca8f94f1a3 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 31 Mar 2023 08:18:58 +0200 Subject: x86: introduce .insn directive For starters this deals with only very basic constructs. --- opcodes/i386-gen.c | 3 +++ opcodes/i386-mnem.h | 1 + opcodes/i386-tbl.h | 1 + 3 files changed, 5 insertions(+) (limited to 'opcodes') diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c index 76ccd32a97b..489ae3429c9 100644 --- a/opcodes/i386-gen.c +++ b/opcodes/i386-gen.c @@ -1814,6 +1814,9 @@ process_i386_opcodes (FILE *table) l = l1; } + fprintf (table, " \"\\0\"\".insn\"\n"); + fprintf (fp, "#define MN__insn %#x\n", offs + 1); + fprintf (table, ";\n"); fclose (fp); diff --git a/opcodes/i386-mnem.h b/opcodes/i386-mnem.h index 4ca786a1957..3e0af793fa8 100644 --- a/opcodes/i386-mnem.h +++ b/opcodes/i386-mnem.h @@ -2339,3 +2339,4 @@ extern const char i386_mnemonics[]; #define MN__rex_ 0x469c #define MN__evex_ 0x46a2 #define MN__vex_ 0x46a9 +#define MN__insn 0x46af diff --git a/opcodes/i386-tbl.h b/opcodes/i386-tbl.h index bc830af8640..ed7c43c8e4d 100644 --- a/opcodes/i386-tbl.h +++ b/opcodes/i386-tbl.h @@ -60199,6 +60199,7 @@ const char i386_mnemonics[] = "\0""{rex}" "\0""{evex}" "\0""{vex}" + "\0"".insn" ; /* i386 register table. */ -- cgit v1.2.1