]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR tree-optimization/36991 (ICE in remove_useless_stmts_1, at tree-cfg.c:1882)
authorJakub Jelinek <jakub@redhat.com>
Fri, 1 Aug 2008 19:01:33 +0000 (21:01 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 1 Aug 2008 19:01:33 +0000 (21:01 +0200)
2008-08-01  Jakub Jelinek  <jakub@redhat.com>

PR tree-optimization/36991
* gcc.dg/pr36991.c: New test.

From-SVN: r138530

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

index 8d9618f9341405dcafcfb437cddeb83ed6a9e509..4aacfda118d3d9a149c85ab351d1aeb43975c5a7 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-01  Jakub Jelinek  <jakub@redhat.com>
+
+       PR tree-optimization/36991
+       * gcc.dg/pr36991.c: New test.
+
 2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnat.dg/boolean_expr.ad[sb]: Rename to boolean_expr1.ad[sb].
diff --git a/gcc/testsuite/gcc.dg/pr36991.c b/gcc/testsuite/gcc.dg/pr36991.c
new file mode 100644 (file)
index 0000000..d090ba1
--- /dev/null
@@ -0,0 +1,12 @@
+/* PR tree-optimization/36991 */
+/* { dg-do compile } */
+/* { dg-options "-O2" } */
+
+typedef float V __attribute__ ((vector_size (16)));
+typedef union { V v[4][4]; } U;
+
+void
+foo (float x, float y, U *z)
+{
+  z->v[1][0] = z->v[0][1] = (V) { x, y, 0, 0 };
+}