aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-01-04 10:05:53 +0100
committerJan Beulich <jbeulich@suse.com>2022-01-04 10:05:53 +0100
commit125ff8197df74cd3108e36d271267c798cd0e15f (patch)
tree694afa99f47a2f6212eb1d6ace96a956d7180b6b /gas/testsuite
parent5ed4d49d107c46670a7994711f0284776a35284e (diff)
downloadgdb-125ff8197df74cd3108e36d271267c798cd0e15f.zip
gdb-125ff8197df74cd3108e36d271267c798cd0e15f.tar.gz
gdb-125ff8197df74cd3108e36d271267c798cd0e15f.tar.bz2
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").
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/i386/avx512dq-inval.s2
-rw-r--r--gas/testsuite/gas/i386/noavx512-2.l4
-rw-r--r--gas/testsuite/gas/i386/noavx512-2.s2
3 files changed, 4 insertions, 4 deletions
diff --git a/gas/testsuite/gas/i386/avx512dq-inval.s b/gas/testsuite/gas/i386/avx512dq-inval.s
index 36ee3b8..d47ae54 100644
--- a/gas/testsuite/gas/i386/avx512dq-inval.s
+++ b/gas/testsuite/gas/i386/avx512dq-inval.s
@@ -24,7 +24,7 @@ _start:
vcvtuqq2ps xmm0, [rax]
vfpclasspd k0, [eax], 0
- vfpclassps k0, [eax], 0
+ vfpclassps k0, [eax+1], 0
.att_syntax prefix
diff --git a/gas/testsuite/gas/i386/noavx512-2.l b/gas/testsuite/gas/i386/noavx512-2.l
index 56d1aaa..7bc4502 100644
--- a/gas/testsuite/gas/i386/noavx512-2.l
+++ b/gas/testsuite/gas/i386/noavx512-2.l
@@ -104,7 +104,7 @@ GAS LISTING .*
[ ]*[1-9][0-9]*[ ]+\.intel_syntax noprefix
[ ]*[1-9][0-9]*[ ]+\?\?\?\? 62F3FD48 vfpclasspd k0, \[eax], 0
[ ]*[1-9][0-9]*[ ]+660000
-[ ]*[1-9][0-9]*[ ]+\?\?\?\? 62F37D48 vfpclassps k0, \[eax], 0
-[ ]*[1-9][0-9]*[ ]+660000
+[ ]*[1-9][0-9]*[ ]+\?\?\?\? 62F37D48 vfpclassps k0, \[eax\+0x80], 0
+[ ]*[1-9][0-9]*[ ]+66400200 ?
[ ]*[1-9][0-9]*[ ]+
#pass
diff --git a/gas/testsuite/gas/i386/noavx512-2.s b/gas/testsuite/gas/i386/noavx512-2.s
index 437dc04..d974bcf 100644
--- a/gas/testsuite/gas/i386/noavx512-2.s
+++ b/gas/testsuite/gas/i386/noavx512-2.s
@@ -52,6 +52,6 @@
.intel_syntax noprefix
vfpclasspd k0, [eax], 0
- vfpclassps k0, [eax], 0
+ vfpclassps k0, [eax+0x80], 0
.p2align 4