x86: reject further invalid AVX-512 masking constructs
authorJan Beulich <jbeulich@novell.com>
Fri, 24 Nov 2017 07:42:57 +0000 (08:42 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Nov 2017 07:42:57 +0000 (08:42 +0100)
commit6d2cd6b2084d980a4baf5b4bdce8499c2295a672
treed1fef500dc1380901d2bf94be2c00d52f4061035
parentac465521a50102d589a6a05a1e722dfa349d3181
x86: reject further invalid AVX-512 masking constructs

For one the register type used for masking should be validated. And then
we shouldn't accept input producing encodings which will #UD when
executed, as is the case when EVEX.Z is set while EVEX.AAA is zero.
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/inval-avx512f.l
gas/testsuite/gas/i386/inval-avx512f.s
gas/testsuite/gas/i386/x86-64-inval-avx512f.l
gas/testsuite/gas/i386/x86-64-inval-avx512f.s