From: Jakub Jelinek Date: Thu, 26 May 2016 09:29:28 +0000 (+0200) Subject: re PR tree-optimization/71280 (ICE on gcc trunk on knl, wsm, ivb and bdw targets) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1875b9a02d4e9da706729f73691e32ef8ace858f;p=gcc.git re PR tree-optimization/71280 (ICE on gcc trunk on knl, wsm, ivb and bdw targets) PR tree-optimization/71280 * gcc.dg/pr71280.c: New test. From-SVN: r236767 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4fc3a5fee74..99beec49569 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2016-05-26 Jakub Jelinek + PR tree-optimization/71280 + * gcc.dg/pr71280.c: New test. + * gcc.target/i386/avx512vl-vcvtps2ph-3.c: New test. * gcc.target/i386/avx512bw-vpalignr-4.c: New test. diff --git a/gcc/testsuite/gcc.dg/pr71280.c b/gcc/testsuite/gcc.dg/pr71280.c new file mode 100644 index 00000000000..496e3d269ed --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr71280.c @@ -0,0 +1,15 @@ +/* PR tree-optimization/71280 */ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ + +extern char v[]; + +int +foo () +{ + int k = 0; + typedef char T[64]; + for (int i = 0; i < 64; i++) + k += (*(T *) &v[0])[i]; + return k; +}