The ix86_get_mask_mode hook uses int mask for 512-bit vectors or 128/256-bit
vectors with AVX512VL (that is correct), and only for V*[SD][IF]mode if not
AVX512BW (also correct), but with AVX512BW it would stop checking the
elem_size altogether and pretend the hw has masking support for V*TImode
etc., which it doesn't. That can lead to various ICEs later on.
2020-04-08 Jakub Jelinek <jakub@redhat.com>
PR target/94438
* config/i386/i386.c (ix86_get_mask_mode): Only use int mask for elem_size
1, 2, 4 and 8.
* gcc.target/i386/avx512bw-pr94438.c: New test.
* gcc.target/i386/avx512vlbw-pr94438.c: New test.
+2020-04-08 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/94438
+ * config/i386/i386.c (ix86_get_mask_mode): Only use int mask for elem_size
+ 1, 2, 4 and 8.
+
2020-04-08 Martin Liska <mliska@suse.cz>
PR c++/94314
if ((TARGET_AVX512F && vector_size == 64)
|| (TARGET_AVX512VL && (vector_size == 32 || vector_size == 16)))
{
- if (elem_size == 4 || elem_size == 8 || TARGET_AVX512BW)
+ if (elem_size == 4
+ || elem_size == 8
+ || (TARGET_AVX512BW && (elem_size == 1 || elem_size == 2)))
return smallest_int_mode_for_size (nunits);
}
+2020-04-08 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/94438
+ * gcc.target/i386/avx512bw-pr94438.c: New test.
+ * gcc.target/i386/avx512vlbw-pr94438.c: New test.
+
2020-04-08 Tobias Burnus <tobias@codesourcery.com>
PR fortran/93871
--- /dev/null
+/* PR target/94438 */
+/* { dg-do compile { target int128 } } */
+/* { dg-options "-mavx512bw" } */
+
+typedef __attribute__ ((__vector_size__ (4 * sizeof (__int128)))) __int128 V;
+void bar (V);
+
+void
+foo (V w)
+{
+ V v = 0 <= (0 >= w);
+ bar (v);
+}
--- /dev/null
+/* PR target/94438 */
+/* { dg-do compile { target int128 } } */
+/* { dg-options "-mavx512bw -mavx512vl" } */
+
+typedef __attribute__ ((__vector_size__ (sizeof (__int128)))) __int128 V;
+void bar (V);
+
+void
+foo (V w)
+{
+ V v = 0 <= (0 >= w);
+ bar (v);
+}