PR target/69820
* config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
if TARGET_AVX512BW.
* gcc.target/i386/pr69820.c: New test.
From-SVN: r233558
+2016-02-19 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/69820
+ * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
+ if TARGET_AVX512BW.
+
2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* config/s390/vector.md: Add missing commutative operand markers
(define_mode_iterator VI_256 [V32QI V16HI V8SI V4DI])
;; All 512bit vector integer modes
-(define_mode_iterator VI_512 [V64QI V32HI V16SI V8DI])
+(define_mode_iterator VI_512
+ [(V64QI "TARGET_AVX512BW")
+ (V32HI "TARGET_AVX512BW")
+ V16SI V8DI])
;; Various 128bit vector integer mode combinations
(define_mode_iterator VI12_128 [V16QI V8HI])
+2016-02-19 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/69820
+ * gcc.target/i386/pr69820.c: New test.
+
2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
* gcc.target/s390/vector/int128-1.c: New test.
--- /dev/null
+/* PR target/69820 */
+/* { dg-do compile } */
+/* { dg-options "-O3 -mavx512f -mno-avx512bw" } */
+
+int a[100], b[100];
+short c[100];
+
+void
+foo ()
+{
+ int i;
+ for (i = 0; i < 100; ++i)
+ b[i] = a[i] * (_Bool) c[i];
+}