https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118362

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Stefan Schulze Frielinghaus from comment #1)
> should fix it (maybe a power-of-two check should be added, too).

Only vector modes the backend defines can appear there, and those are all power
of two, aren't they?

VECTOR_MODES (INT, 2);        /*                       V2QI */
VECTOR_MODES (INT, 4);        /*                  V4QI V2HI */
VECTOR_MODES (INT, 8);        /*             V8QI V4HI V2SI */
VECTOR_MODES (INT, 16);       /*       V16QI V8HI V4SI V2DI */
VECTOR_MODES (INT, 32);       /* V32QI V16HI V8SI V4DI V2TI */

VECTOR_MODE (FLOAT, SF, 2);   /* V2SF */
VECTOR_MODE (FLOAT, SF, 4);   /* V4SF */
VECTOR_MODE (FLOAT, SF, 8);   /* V8SF */
VECTOR_MODE (FLOAT, DF, 2);   /* V2DF */
VECTOR_MODE (FLOAT, DF, 4);   /* V4DF */

VECTOR_MODE (INT, QI, 1);     /* V1QI */
VECTOR_MODE (INT, HI, 1);     /* V1HI */
VECTOR_MODE (INT, SI, 1);     /* V1SI */
VECTOR_MODE (INT, DI, 1);     /* V1DI */
VECTOR_MODE (INT, TI, 1);     /* V1TI */

VECTOR_MODE (FLOAT, SF, 1);   /* V1SF */
VECTOR_MODE (FLOAT, DF, 1);   /* V1DF */
VECTOR_MODE (FLOAT, TF, 1);   /* V1TF */

Reply via email to