diff mbox

[5/5] Integrate openscop tests in graphite testsuite.

Message ID 1282069224-21268-6-git-send-email-sebpop@gmail.com
State New
Headers show

Commit Message

Sebastian Pop Aug. 17, 2010, 6:20 p.m. UTC
2010-08-17  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
	    Sebastian Pop  <sebastian.pop@amd.com>

	* gcc.dg/graphite/graphite.exp: Add test rules for openscop read/write.
	Call remove-build-file to clean up the generated *.graphite files.
---
 gcc/ChangeLog.graphite                     |   10 ++++++++--
 gcc/testsuite/gcc.dg/graphite/graphite.exp |    6 ++++++
 2 files changed, 14 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 29619f7..2cdde16 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,4 +1,10 @@ 
-2010-08-14  Riyadh Baghdadi <baghdadi.mr@gmail.com>
+2010-08-17  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
+	    Sebastian Pop  <sebastian.pop@amd.com>
+
+	* gcc.dg/graphite/graphite.exp: Add test rules for openscop read/write.
+	Call remove-build-file to clean up the generated *.graphite files.
+
+2010-08-17  Riyadh Baghdadi <baghdadi.mr@gmail.com>
 
 	* doc/invoke.texi (debugging options): Update documentation.
 	(-floop-interchange): Same.
@@ -7,7 +13,7 @@ 
 	(-fgraphite-read): Add documentation.
 	(-fgraphite-write): Same.
 
-2010-08-14  Riyadh Baghdadi <baghdadi.mr@gmail.com>
+2010-08-17  Riyadh Baghdadi <baghdadi.mr@gmail.com>
 
 	* toplev.c (process_options): Disable graphite loop optimization
 	options when -fgraphite-read flag is used.
diff --git a/gcc/testsuite/gcc.dg/graphite/graphite.exp b/gcc/testsuite/gcc.dg/graphite/graphite.exp
index e6cdf12..5265a61 100644
--- a/gcc/testsuite/gcc.dg/graphite/graphite.exp
+++ b/gcc/testsuite/gcc.dg/graphite/graphite.exp
@@ -44,6 +44,7 @@  set run_id_files      [lsort [glob -nocomplain $srcdir/$subdir/run-id-*.c ] ]
 set interchange_files [lsort [glob -nocomplain $srcdir/$subdir/interchange-*.c ] ]
 set block_files       [lsort [glob -nocomplain $srcdir/$subdir/block-*.c ] ]
 set vect_files        [lsort [glob -nocomplain $srcdir/$subdir/vect-*.c ] ]
+set openscop_id_files [lsort [glob -nocomplain $srcdir/$subdir/run-id-?.c ] ]
 
 # Tests to be compiled.
 set dg-do-what-default compile
@@ -56,6 +57,11 @@  set dg-do-what-default run
 dg-runtest $run_id_files      "" "-O2 -fgraphite-identity"
 dg-runtest $interchange_files "" "-O2 -floop-interchange -fno-loop-block -fno-loop-strip-mine -ffast-math -fdump-tree-graphite-all"
 dg-runtest $block_files       "" "-O2 -floop-block -fno-loop-strip-mine -fno-loop-interchange -ffast-math -fdump-tree-graphite-all"
+dg-runtest $openscop_id_files "" "-O2 -fgraphite -floop-block -fgraphite-write"
+dg-runtest $openscop_id_files "" "-O2 -fgraphite -fgraphite-read"
+
+# Clean up.
+remove-build-file "*.graphite"
 
 # The default action for the rest of the files is 'compile'.
 set dg-do-what-default compile