https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92760
--- Comment #2 from Kewen Lin <linkw at gcc dot gnu.org> --- Author: linkw Date: Wed Dec 4 05:10:46 2019 New Revision: 278955 URL: https://gcc.gnu.org/viewcvs?rev=278955&root=gcc&view=rev Log: [rs6000] Fix PR92760 by checking VECTOR_MEM_NONE_P instead PR92760 exposed one issue that VECTOR_UNIT_NONE_P (V2DImode) is true on Power7 then we won't return it as preferred_simd_mode but ISA 2.06 (Power7) does introduce partial support on vector doubleword (very limitted) and more basic support origins from ISA 2.07 (Power8) though. To make vectorizer still leverage those few but available V2DImode related instructions, we need to claim it's available on VSX (Power7 and up). gcc/ChangeLog PR target/92760 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P. Modified: trunk/gcc/ChangeLog trunk/gcc/config/rs6000/rs6000.c