re PR tree-optimization/71280 (ICE on gcc trunk on knl, wsm, ivb and bdw targets)
authorJakub Jelinek <jakub@redhat.com>
Thu, 26 May 2016 09:29:28 +0000 (11:29 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 26 May 2016 09:29:28 +0000 (11:29 +0200)
PR tree-optimization/71280
* gcc.dg/pr71280.c: New test.

From-SVN: r236767

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr71280.c [new file with mode: 0644]

index 4fc3a5fee7488fe5efc77f9ad2ac23c6f17c4f7c..99beec49569166d057620ac2beb83ba5db79b017 100644 (file)
@@ -1,5 +1,8 @@
 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
 
+       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 (file)
index 0000000..496e3d2
--- /dev/null
@@ -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;
+}