diff options
author | Jan Beulich <jbeulich@suse.com> | 2022-04-20 16:56:05 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-04-20 16:56:05 +0200 |
commit | 1db5a7fe0be94e839648079f6a7fa24f44310275 (patch) | |
tree | 6fcc5366f085f9c4fa9ca336c1d4ad5c654aaaaa /gas/testsuite | |
parent | 85649ec8eb986d5a66a1d2cb226c331af412bd0e (diff) | |
download | gdb-1db5a7fe0be94e839648079f6a7fa24f44310275.zip gdb-1db5a7fe0be94e839648079f6a7fa24f44310275.tar.gz gdb-1db5a7fe0be94e839648079f6a7fa24f44310275.tar.bz2 |
x86: reject all invalid SAE variants
So far an SAE-only specifier was accepted for static-rounding insns,
while SAE-only insns didn't accept static rounding specifiers. If
anything it would make sense the other way around, allowing SAE-only
insns to have the (ignored) rounding mode specified individually rather
than globally via -mevexrcig=. But for now make things match the SDM.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/i386/inval-avx512f.l | 7 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/inval-avx512f.s | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/inval-avx512f.l b/gas/testsuite/gas/i386/inval-avx512f.l index d45ae25..d46e61a 100644 --- a/gas/testsuite/gas/i386/inval-avx512f.l +++ b/gas/testsuite/gas/i386/inval-avx512f.l @@ -220,6 +220,8 @@ .*:319: Error: .*unsupported broadcast for `vcvtneps2bf16' .*:321: Error: .*vaddps.* .*:322: Error: .*vcmpss.* +.*:324: Error: .*vaddss.* +.*:325: Error: .*vcmpps.* GAS LISTING .* @@ -574,4 +576,9 @@ GAS LISTING .* [ ]*320[ ]* [ ]*321[ ]+vaddps \$0xcc, %zmm0, %zmm0, %zmm0 [ ]*322[ ]+vcmpss \$0, \$0xcc, %xmm0, %xmm0, %k0 +[ ]*323[ ]* +GAS LISTING .* +#... +[ ]*324[ ]+vaddss \{sae\}, %xmm0, %xmm0, %xmm0 +[ ]*325[ ]+vcmpps \$0, \{rn-sae\}, %zmm0, %zmm0, %k0 #pass diff --git a/gas/testsuite/gas/i386/inval-avx512f.s b/gas/testsuite/gas/i386/inval-avx512f.s index 841992b..d9a85e0 100644 --- a/gas/testsuite/gas/i386/inval-avx512f.s +++ b/gas/testsuite/gas/i386/inval-avx512f.s @@ -321,4 +321,7 @@ _start: vaddps $0xcc, %zmm0, %zmm0, %zmm0 vcmpss $0, $0xcc, %xmm0, %xmm0, %k0 + vaddss {sae}, %xmm0, %xmm0, %xmm0 + vcmpps $0, {rn-sae}, %zmm0, %zmm0, %k0 + .p2align 4 |