Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(643)

Unified Diff: gcc/gcc/testsuite/gcc.dg/graphite/block-0.c

Issue 3050029: [gcc] GCC 4.5.0=>4.5.1 (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/nacl-toolchain.git
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/gomp/flush-2.c ('k') | gcc/gcc/testsuite/gcc.dg/graphite/block-1.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gcc/gcc/testsuite/gcc.dg/graphite/block-0.c
diff --git a/gcc/gcc/testsuite/gcc.dg/graphite/block-0.c b/gcc/gcc/testsuite/gcc.dg/graphite/block-0.c
index 627f044fc14ce57142be3e9f5eb04e5fc12f13bd..af023634226f6b27f38ea62a944f34a668801782 100644
--- a/gcc/gcc/testsuite/gcc.dg/graphite/block-0.c
+++ b/gcc/gcc/testsuite/gcc.dg/graphite/block-0.c
@@ -1,13 +1,16 @@
-/* { dg-options "-O -floop-block -fdump-tree-graphite-all" } */
+#define DEBUG 0
+#if DEBUG
+#include <stdio.h>
+#endif
#define N 1000
+int a[N];
-int toto()
+static int __attribute__((noinline))
+foo (void)
{
int j;
int i;
- int a[N];
- int b[N];
for (i = 0; i < N; i++)
for (j = 0; j < N; j++)
@@ -16,10 +19,27 @@ int toto()
return a[0];
}
-main()
+extern void abort ();
+
+int
+main (void)
{
- return toto();
+ int i, res;
+
+ for (i = 0; i < N; i++)
+ a[i] = i;
+
+ res = foo ();
+
+#if DEBUG
+ fprintf (stderr, "res = %d \n", res);
+#endif
+
+ if (res != 1999)
+ abort ();
+
+ return 0;
}
-/* { dg-final { scan-tree-dump-times "will be loop blocked" 1 "graphite"} } */
+/* { dg-final { scan-tree-dump-times "will be loop blocked" 1 "graphite" { xfail *-*-* } } } */
/* { dg-final { cleanup-tree-dump "graphite" } } */
« no previous file with comments | « gcc/gcc/testsuite/gcc.dg/gomp/flush-2.c ('k') | gcc/gcc/testsuite/gcc.dg/graphite/block-1.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698