aboutsummaryrefslogtreecommitdiff
path: root/opcodes/i386-opc.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2023-01-27 09:22:49 +0100
committerJan Beulich <jbeulich@suse.com>2023-01-27 09:22:49 +0100
commitbd78280846e197537cf1ad2a2d52c331be5cb4a2 (patch)
treec148124747dbcafa0aae21fb5232e87cdd97748a /opcodes/i386-opc.h
parentc47b4d71203e8f53d998b891c4c1beaecd43c728 (diff)
downloadbinutils-bd78280846e197537cf1ad2a2d52c331be5cb4a2.zip
binutils-bd78280846e197537cf1ad2a2d52c331be5cb4a2.tar.gz
binutils-bd78280846e197537cf1ad2a2d52c331be5cb4a2.tar.bz2
x86: use ModR/M for FPU insns with operands
This is the correct way of expressing things; encoding the ModR/M byte directly in base_opcode has always been bogus.
Diffstat (limited to 'opcodes/i386-opc.h')
-rw-r--r--opcodes/i386-opc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h
index 6739d49..b092b75 100644
--- a/opcodes/i386-opc.h
+++ b/opcodes/i386-opc.h
@@ -931,8 +931,8 @@ typedef struct insn_template
#define Opcode_D 0x2 /* Direction bit:
set if Reg --> Regmem;
unset if Regmem --> Reg. */
-#define Opcode_FloatR 0x8 /* Bit to swap src/dest for float insns. */
-#define Opcode_FloatD 0x400 /* Direction bit for float insns. */
+#define Opcode_FloatR 0x8 /* ModR/M bit to swap src/dest for float insns. */
+#define Opcode_FloatD 0x4 /* Direction bit for float insns. */
#define Opcode_ExtD 0x1 /* Direction bit for extended opcode space insns. */
#define Opcode_SIMD_IntD 0x10 /* Direction bit for SIMD int insns. */
/* The next value is arbitrary, as long as it's non-zero and distinct