gcc/
* config/i386/i386.c (ix86_get_mask_mode): Use scalar
modes for 32 and 16 byte boolean vectors when possible.
gcc/testsuite/
* gcc.dg/vect/vect-32-chars.c: New test.
From-SVN: r231553
+2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
+
+ * config/i386/i386.c (ix86_get_mask_mode): Use scalar
+ modes for 32 and 16 byte boolean vectors when possible.
+
2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
PR rtl-optimization/67778
unsigned elem_size = vector_size / nunits;
/* Scalar mask case. */
- if (TARGET_AVX512F && vector_size == 64)
+ if ((TARGET_AVX512F && vector_size == 64)
+ || (TARGET_AVX512VL && (vector_size == 32 || vector_size == 16)))
{
if (elem_size == 4 || elem_size == 8 || TARGET_AVX512BW)
return smallest_mode_for_size (nunits, MODE_INT);
+2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
+
+ * gcc.dg/vect/vect-32-chars.c: New test.
+
2015-12-11 Jan Hubicka <hubicka@ucw.cz>
PR ipa/61886
--- /dev/null
+/* { dg-do compile } */
+/* { dg-additional-options "-mavx512bw -mavx512vl" { target { i?86-*-* x86_64-*-* } } } */
+
+char a[32];
+char b[32];
+char c[32];
+
+void test()
+{
+ int i = 0;
+ for (i = 0; i < 32; i++)
+ if (b[i] > 0)
+ a[i] = c[i];
+}
+
+/* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { target { i?86-*-* x86_64-*-* } } } } */