diff options
author | Jan Beulich <jbeulich@suse.com> | 2024-05-29 10:03:00 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2024-05-29 10:03:00 +0200 |
commit | b83021de7a83a353b5e9ad1ef428aec05846803e (patch) | |
tree | 91d022f8d2ee2dc65187bcb34480ccbb718fbb91 /gas/config | |
parent | 6ccf16c19d318bae09b7b405825285f7579d820f (diff) | |
download | fsf-binutils-gdb-b83021de7a83a353b5e9ad1ef428aec05846803e.zip fsf-binutils-gdb-b83021de7a83a353b5e9ad1ef428aec05846803e.tar.gz fsf-binutils-gdb-b83021de7a83a353b5e9ad1ef428aec05846803e.tar.bz2 |
x86/Intel: warn about undue mnemonic suffixes
Except for very few insns mnemonic suffixes aren't permitted in Intel
syntax. Warn about such for now, indicating that they will be outright
refused down the road.
While fiddling with testcases to address fallout, drop a few things
which should never have been tested as valid Intel syntax.
Also add a previously missing line to simd-suffix.d.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-i386.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 65d9923..9e13f2f 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -9209,6 +9209,19 @@ match_template (char mnem_suffix) affect assembly of the next line of code. */ as_warn (_("stand-alone `%s' prefix"), insn_name (t)); } + + if (intel_syntax && mnem_suffix && !t->opcode_modifier.intelsuffix) + { + static bool noticed; + + as_warn (_("mnemonic suffix used with `%s'"), insn_name (t)); + if (!noticed) + { + noticed = true; + as_warn (_( +"NOTE: Such forms are deprecated and will be rejected by a future version of the assembler")); + } + } } /* Copy the template we found. */ |