On Fri, 2020-04-03 at 00:26 +0200, Jakub Jelinek wrote:
> Hi!
> 
> The ix86_get_mask_mode hook uses int mask for 512-bit vectors or 128/256-bit
> vectors with AVX512VL (that is correct), and only for V*[SD][IF]mode if not
> AVX512BW (also correct), but with AVX512BW it would stop checking the
> elem_size altogether and pretend the hw has masking support for V*TImode
> etc., which it doesn't.  That can lead to various ICEs later on.
> 
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
> trunk?
> 
> 2020-04-02  Jakub Jelinek  <ja...@redhat.com>
> 
>       PR target/94438
>       * config/i386/i386.c (ix86_get_mask_mode): Only use int mask for
> elem_size
>       1, 2, 4 and 8.
> 
>       * gcc.target/i386/avx512bw-pr94438.c: New test.
>       * gcc.target/i386/avx512vlbw-pr94438.c: New test.
OK
jeff
> 

Reply via email to