[PATCH, rs6000] Fix PR92566 by checking VECTOR_UNIT_NONE_P

Segher Boessenkool segher@kernel.crashing.org
Wed Nov 27 18:52:00 GMT 2019

On Wed, Nov 27, 2019 at 02:01:05PM +0800, Kewen.Lin wrote:
> 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.
> Bootstrapped and tested on powerpc64le-linux-gnu.
> Is it ok for trunk?

Okay.  Thanks!


> 2019-11-27  Kewen Lin  <linkw@gcc.gnu.org>
> 	PR tree-optimization/91790
> 	* gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check by
> 	VECTOR_UNIT_NONE_P instead.

More information about the Gcc-patches mailing list