x86/Intel: correct VFPCLASSP{S,D} handling when displacement is present
authorJan Beulich <jbeulich@suse.com>
Tue, 4 Jan 2022 09:05:53 +0000 (10:05 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 4 Jan 2022 09:05:53 +0000 (10:05 +0100)
commit125ff8197df74cd3108e36d271267c798cd0e15f
tree694afa99f47a2f6212eb1d6ace96a956d7180b6b
parent5ed4d49d107c46670a7994711f0284776a35284e
x86/Intel: correct VFPCLASSP{S,D} handling when displacement is present

fits_in_disp8() can be called before ambiguous operands get resolved
or rejected (in process_suffix()), which requires that i.memshift be
non-negative to avoid an internal error. This case wasn't covered by
6c0946d0d28d ("x86: correct VFPCLASSP{S,D} operand size handling").
gas/config/tc-i386.c
gas/testsuite/gas/i386/avx512dq-inval.s
gas/testsuite/gas/i386/noavx512-2.l
gas/testsuite/gas/i386/noavx512-2.s