Limit mask of vec_merge to HOST_BITS_PER_WIDE_INT
authorH.J. Lu <hongjiu.lu@intel.com>
Thu, 18 Oct 2018 21:29:55 +0000 (21:29 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Thu, 18 Oct 2018 21:29:55 +0000 (14:29 -0700)
commit28dd75a330e7cc929a6be489ea3c252dd4a8bd8a
treed9b332802b405d6535065c2a11ff02798b0534dd
parent9a91ed2a2ebf5d38b9a47cb7a154592fca582e5f
Limit mask of vec_merge to HOST_BITS_PER_WIDE_INT

Since mask of vec_merge is in HOST_WIDE_INT, HOST_BITS_PER_WIDE_INT is
the maximum number of vector elements.

* simplify-rtx.c (simplify_subreg): Limit mask of vec_merge to
HOST_BITS_PER_WIDE_INT.
(test_vector_ops_duplicate): Likewise.

From-SVN: r265290
gcc/ChangeLog
gcc/simplify-rtx.c