re PR middle-end/58463 (ICE with -fdump-tree-all-all in vector indexed access)
authorPaulo Matos <pmatos@broadcom.com>
Fri, 27 Sep 2013 14:54:43 +0000 (14:54 +0000)
committerPaulo Matos <pmatos@gcc.gnu.org>
Fri, 27 Sep 2013 14:54:43 +0000 (16:54 +0200)
PR middle-end/58463
        * gcc.dg/pr58463.c: New test.

From-SVN: r202976

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

index 888bb49c6f0dc20844961d45f16af37e6fdaa411..5ed6b470fdda70a683daceef18c03f55f2f2d38c 100644 (file)
@@ -1,3 +1,8 @@
+2013-09-27  Paulo Matos  <pmatos@broadcom.com>
+
+       PR middle-end/58463
+       * gcc.dg/pr58463.c: New test.
+
 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
 
        * cfgloop.h (number_of_loops): Fix typo in check for null.
diff --git a/gcc/testsuite/gcc.dg/pr58463.c b/gcc/testsuite/gcc.dg/pr58463.c
new file mode 100644 (file)
index 0000000..e2b4411
--- /dev/null
@@ -0,0 +1,15 @@
+/* { dg-do compile } */
+/* { dg-options "-fdump-tree-ealias-details -O2" } */
+
+typedef struct
+{
+  int data16;
+}
+list_data;
+void
+fn1 (list_data * p1)
+{
+    p1->data16 = p1->data16 & 1 & p1->data16 >> 1;
+}
+
+/* { dg-final { cleanup-tree-dump "ealias" } } */