Patchwork [gimplefe] Adding more preliminary tests

login
register
mail settings
Submitter Sandeep Soni
Date June 5, 2012, 3:08 a.m.
Message ID <CANY-sXXMR3xpj9gmYu2EC_1cJjUOXFmBzJo0qSs-To6O1eQO8A@mail.gmail.com>
Download mbox | patch
Permalink /patch/162960/
State New
Headers show

Comments

Sandeep Soni - June 5, 2012, 3:08 a.m.
Hi,

I have added some more preliminary tests for the gimple front end..
These are really simple individual statement tests which have helped
me get a hang of the testing mechanism in gcc. I will be adding a few
more tests tonight.

At this point, make check-gimple passes 7 cases and fails one. I will
fix up the bug in a later patch tonight.

Here is the output of make check-gimple

		=== gimple tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file
for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /home/sandeep/gimple-front-end/gcc/testsuite/config/default.exp
as tool-and-target-specific interface file.
Running /home/sandeep/gimple-front-end/gcc/testsuite/gimple.dg/dg.exp ...
FAIL: gimple.dg/20120605-2.gimple  -O  (test for excess errors)

		=== gimple Summary ===

# of expected passes		7
# of unexpected failures	1
/home/sandeep/gimple_build/gcc/testsuite/gimple/../../xgcc  version
4.8.0-gimplefe 20120524 (experimental) (GCC)

make[1]: [check-parallel-gimple] Error 1 (ignored)
make[1]: Leaving directory `/home/sandeep/gimple_build/gcc'


Here is the changeLog.in testsuite/ChangeLog.gimplefe

2012-06-05  Sandeep Soni  <soni.sandeepb@gmail.com>
          *gimple.dg/20120604-1.gimple : New.
          *gimple.dg/20120604-2.gimple : New.
          *gimple.dg/20120605-1.gimple: New.
          *gimple.dg/20120605-2.gimple: New.
Diego Novillo - June 5, 2012, 1:27 p.m.
On 12-06-04 23:08 , Sandeep Soni wrote:
> Hi,
>
> I have added some more preliminary tests for the gimple front end..
> These are really simple individual statement tests which have helped
> me get a hang of the testing mechanism in gcc. I will be adding a few
> more tests tonight.

Sounds good.

> At this point, make check-gimple passes 7 cases and fails one. I will
> fix up the bug in a later patch tonight.

For now, you can commit the tests that are working.  Hold on to the 
failing test until you have a patch fixing the failure (this way, your 
fix is committed together with the test case).


Diego.

Patch

Index: gcc/testsuite/gimple.dg/20120604-1.gimple
===================================================================
--- gcc/testsuite/gimple.dg/20120604-1.gimple	(revision 0)
+++ gcc/testsuite/gimple.dg/20120604-1.gimple	(revision 0)
@@ -0,0 +1 @@ 
+gimple_cond<eq_expr,a,b,<tlabel>,<flabel>>
Index: gcc/testsuite/gimple.dg/20120604-2.gimple
===================================================================
--- gcc/testsuite/gimple.dg/20120604-2.gimple	(revision 0)
+++ gcc/testsuite/gimple.dg/20120604-2.gimple	(revision 0)
@@ -0,0 +1 @@ 
+gimple_cond<modify_expr,a,3,<tlabel>,<flabel>> /* { dg-error
"Unsupported gimple_cond expression" } */
Index: gcc/testsuite/gimple.dg/20120605-1.gimple
===================================================================
--- gcc/testsuite/gimple.dg/20120605-1.gimple	(revision 0)
+++ gcc/testsuite/gimple.dg/20120605-1.gimple	(revision 0)
@@ -0,0 +1 @@ 
+gimple_switch <a, default: <default_label>, case 1: <first_label>,
case 2: <second_label>, case 3: <third_label>>
Index: gcc/testsuite/gimple.dg/20120605-2.gimple
===================================================================
--- gcc/testsuite/gimple.dg/20120605-2.gimple	(revision 0)
+++ gcc/testsuite/gimple.dg/20120605-2.gimple	(revision 0)
@@ -0,0 +1 @@ 
+gimple_call<foo,return_var,1,2>