[rs6000] Fix PR92566 by checking VECTOR_UNIT_NONE_P
authorKewen Lin <linkw@gcc.gnu.org>
Thu, 28 Nov 2019 06:34:31 +0000 (06:34 +0000)
committerKewen Lin <linkw@gcc.gnu.org>
Thu, 28 Nov 2019 06:34:31 +0000 (06:34 +0000)
commit34b7ae1dd5f0c01036b2a9308baf15329280733e
tree7334ed585a09e6f70e874513c99d7c48e3dcca74
parent9c9cb582fc11b0106be24a3d9f428558aeb7cf45
[rs6000] Fix PR92566 by checking VECTOR_UNIT_NONE_P

As Segher pointed out in PR92566, we shouldn't offer some vector modes which
aren't supported under current setting.  This patch is to make it check by
VECTOR_UNIT_NONE_P which is initialized as current architecture masks.

2019-11-28  Kewen Lin  <linkw@gcc.gnu.org>

    PR target/92566
    * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check by
    VECTOR_UNIT_NONE_P instead.

From-SVN: r278800
gcc/ChangeLog
gcc/config/rs6000/rs6000.c