[PATCH v2] x86: reject further invalid AVX-512 masking constructs
H.J. Lu
hjl.tools@gmail.com
Thu Nov 23 13:07:00 GMT 2017
On Thu, Nov 23, 2017 at 2:09 AM, Jan Beulich <JBeulich@suse.com> wrote:
> 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/
> 2017-11-23 Jan Beulich <jbeulich@suse.com>
>
> * config/tc-i386.c (check_VecOperations): Check register type
> for masking. Quote the actual register name in the respective
> diagnostic. Check {z} wasn't specified on its own.
> * testsuite/gas/i386/inval-avx512f.s,
> testsuite/gas/i386/x86-64-inval-avx512f.s: Add further bad
> masking tests.
> * testsuite/gas/i386/inval-avx512f.l,
> testsuite/gas/i386/x86-64-inval-avx512f.l: Adjust expectations.
This is OK.
Thanks.
--
H.J.
More information about the Binutils
mailing list