PR tree-optimization/71280
* gcc.dg/pr71280.c: New test.
From-SVN: r236767
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.
--- /dev/null
+/* 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;
+}