re PR target/91150 (wrong code with -O -mavx512vbmi due to wrong writemask)
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 Jul 2019 07:13:04 +0000 (09:13 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 30 Jul 2019 07:13:04 +0000 (09:13 +0200)
commitfa2987ed8db073b9d59688363e2dfb6c60f47d70
treebdae53051778481f8c651e293ee50f84cfc142e3
parentb867820937a15b28e063aeec2706e31587f9eaf4
re PR target/91150 (wrong code with -O -mavx512vbmi due to wrong writemask)

PR target/91150
* config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
from unsigned to unsigned HOST_WIDE_INT.  For E_V64QImode cast
comparison to unsigned HOST_WIDE_INT before shifting it left.

* gcc.target/i386/avx512bw-pr91150.c: New test.

From-SVN: r273897
gcc/ChangeLog
gcc/config/i386/i386-expand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx512bw-pr91150.c [new file with mode: 0644]