aboutsummaryrefslogtreecommitdiff
path: root/gas/ChangeLog
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2019-12-09 13:31:07 +0100
committerJan Beulich <jbeulich@suse.com>2019-12-09 13:31:07 +0100
commit164d49cb1c9b9f7e2914cf78f64f5f57ceb07dde (patch)
tree571ed2970908cb24c1d784d62fec02de5fc24c10 /gas/ChangeLog
parenta8f4f6b9bc2b1273cfa94fc1f21af7bcf13012d5 (diff)
downloadfsf-binutils-gdb-164d49cb1c9b9f7e2914cf78f64f5f57ceb07dde.zip
fsf-binutils-gdb-164d49cb1c9b9f7e2914cf78f64f5f57ceb07dde.tar.gz
fsf-binutils-gdb-164d49cb1c9b9f7e2914cf78f64f5f57ceb07dde.tar.bz2
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).
Diffstat (limited to 'gas/ChangeLog')
-rw-r--r--gas/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 54ede43..f198b01 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,6 +1,14 @@
2019-12-09 Jan Beulich <jbeulich@suse.com>
* config/tc-i386-intel.c (i386_intel_operand): Set "byte"
+ attribute suffix instead of suffix for floating point insns when
+ handling O_near_ptr / O_far_ptr.
+ * testsuite/gas/i386/intelbad.s: Add FPU tests.
+ * testsuite/gas/i386/intelbad.l: Adjust expectations.
+
+2019-12-09 Jan Beulich <jbeulich@suse.com>
+
+ * config/tc-i386-intel.c (i386_intel_operand): Set "byte"
attribute suffix instead of suffix uniformly for insns not
possibly accepting "tbyte ptr" explicitly.