summaryrefslogtreecommitdiff
path: root/opcodes/i386-tbl.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-11-24 09:34:52 +0100
committerJan Beulich <jbeulich@suse.com>2022-11-24 09:34:52 +0100
commitc9f5b96bdab031e9520d98e01ee1bef1ffd3b961 (patch)
tree7bf77e81e28c7d8fda786174240f22c2166d057c /opcodes/i386-tbl.h
parentbde9f9d7e978b190ff6fc7207e2fe293d7c989a7 (diff)
downloadbinutils-gdb-c9f5b96bdab031e9520d98e01ee1bef1ffd3b961.tar.gz
x86: correct handling of LAR and LSL
Both uniformly only ever take 16-bit memory operands while at the same time requiring matching (in size) register operands, which then also should disassemble that way. This in particular requires splitting each of the templates for the assembler and separating decode of the register and memory forms in the disassembler.
Diffstat (limited to 'opcodes/i386-tbl.h')
-rw-r--r--opcodes/i386-tbl.h34
1 files changed, 32 insertions, 2 deletions
diff --git a/opcodes/i386-tbl.h b/opcodes/i386-tbl.h
index c463db9d3cc..a9bc69643e1 100644
--- a/opcodes/i386-tbl.h
+++ b/opcodes/i386-tbl.h
@@ -5364,6 +5364,21 @@ const insn_template i386_optab[] =
{ { 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0,
0, 0, 0, 0, 1, 0 } } } },
{ "lar", 0x02, 2, None,
+ { 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0 },
+ { { 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+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