]> gcc.gnu.org Git - gcc.git/commit
i386: Don't use AVX512F integral masks for V*TImode [PR94438]
authorJakub Jelinek <jakub@redhat.com>
Wed, 8 Apr 2020 16:24:12 +0000 (18:24 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 17 Sep 2020 15:41:00 +0000 (17:41 +0200)
commita82154cdbf3951b1101eba3fc9b73682ef434a57
tree3198af48b44e6a5d6fe2c16839749507dea73521
parente98b12fcc4dc2618ee7ac9298c06b67aaacf9f3c
i386: Don't use AVX512F integral masks for V*TImode [PR94438]

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.

2020-04-08  Jakub Jelinek  <jakub@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.

(cherry picked from commit 8bf5faa9c463f0d53ffe835ba03d4502edfb959d)
gcc/config/i386/i386.c
gcc/testsuite/gcc.target/i386/avx512bw-pr94438.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/avx512vlbw-pr94438.c [new file with mode: 0644]
This page took 0.064394 seconds and 6 git commands to generate.