]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR target/91150 (wrong code with -O -mavx512vbmi due to wrong writemask)
authorJakub Jelinek <jakub@redhat.com>
Thu, 1 Aug 2019 06:29:22 +0000 (08:29 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 1 Aug 2019 06:29:22 +0000 (08:29 +0200)
commit1c0ee8716da2267a45ff65f13a0619740f4daa12
tree1c4bb3b6d95b620e776698a913361a32547aa8aa
parentc327c178f03622ab8d1e06a092c10fcdc7d128b1
backport: re PR target/91150 (wrong code with -O -mavx512vbmi due to wrong writemask)

Backported from mainline
2019-07-30  Jakub Jelinek  <jakub@redhat.com>

PR target/91150
* config/i386/i386.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: r273964
gcc/ChangeLog
gcc/config/i386/i386.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx512bw-pr91150.c [new file with mode: 0644]