Commit 5a7d9d1e by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/69820 (Test miscompiled with -O3 option)

	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
parent d9128d88
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
......
......@@ -522,7 +522,10 @@
(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.
......
/* 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];
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment