x86: don't mistake ordinary immediates for SAE / rounding control
authorJan Beulich <jbeulich@suse.com>
Tue, 19 Apr 2022 07:26:17 +0000 (09:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 19 Apr 2022 07:26:17 +0000 (09:26 +0200)
commit2aaee75f81a130011c96a0ab38475dba894114c3
treeaced5b0455f404a30127ca6f2db2a9e48e59543e
parentbb80cf5b42aea267fe575f006a2a5f720825b77b
x86: don't mistake ordinary immediates for SAE / rounding control

The way SAE templates are constructed was always puzzling me (including
the need for separate templates in the first place), and expressing the
extzra attribute via Imm8 actually has a bad effect: Ordinary immediates
would also be accepted, leading to an extra byte being added after the
instruction (i.e. generating bad code). Before re-working this (in
particular to accept proper Intel syntax there), fix the immediate issue
by adding the so far missing check.
gas/config/tc-i386.c
gas/testsuite/gas/i386/inval-avx512f.l
gas/testsuite/gas/i386/inval-avx512f.s