x86/Intel: fix "near ptr" / "far ptr" handling
authorJan Beulich <jbeulich@suse.com>
Mon, 9 Dec 2019 12:31:07 +0000 (13:31 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 9 Dec 2019 12:31:07 +0000 (13:31 +0100)
commit164d49cb1c9b9f7e2914cf78f64f5f57ceb07dde
tree571ed2970908cb24c1d784d62fec02de5fc24c10
parenta8f4f6b9bc2b1273cfa94fc1f21af7bcf13012d5
x86/Intel: fix "near ptr" / "far ptr" handling

Commit dc2be329b950 ("i386: Only check suffix in instruction mnemonic")
broke rejecting of these for floating point insns. Fix this by setting
the "byte" operand attribute, which will now (again) cause an error.

Furthermore the diagnostic for the "far ptr" case in general and for the
"near ptr" case in the non-float cases became "invalid instruction
suffix" instead of the intended "operand size mismatch". Fix this by
also setting the "tbyte" operand attribute (no insn template accepts
both byte and tbyte operands).
gas/ChangeLog
gas/config/tc-i386-intel.c
gas/testsuite/gas/i386/intelbad.l
gas/testsuite/gas/i386/intelbad.s
This page took 0.02476 seconds and 4 git commands to generate.