From 1875b9a02d4e9da706729f73691e32ef8ace858f Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 26 May 2016 11:29:28 +0200 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 3 +++ gcc/testsuite/gcc.dg/pr71280.c | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/pr71280.c 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; +} -- 2.30.2