https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123603
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc
index 6bf4af8bbe3..a5c6d0e848a 100644
--- a/gcc/config/i386/i386.cc
+++ b/gcc/config/i386/i386.cc
@@ -25700,7 +25700,7 @@ ix86_autovectorize_vector_modes (vector_modes *modes,
bool all)
if (TARGET_SSE2)
modes->safe_push (V4QImode);
- return 0;
+ return VECT_COMPARE_COSTS;
}
/* Implemenation of targetm.vectorize.get_mask_mode. */
shows the desired
t.c:3:21: note: ***** Preferring vector mode V8QI to vector mode V4SI
...
t.c:3:21: note: ***** Choosing vector mode V8QI
t.c:3:21: optimized: loop vectorized using 8 byte vectors and unroll factor 1