public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [gimplefe] Adding more preliminary tests
@ 2012-06-05  3:08 Sandeep Soni
  2012-06-05 13:28 ` Diego Novillo
  0 siblings, 1 reply; 2+ messages in thread
From: Sandeep Soni @ 2012-06-05  3:08 UTC (permalink / raw)
  To: gcc patches; +Cc: Diego Novillo

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.

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>

-- 
Cheers
Sandy

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gimplefe] Adding more preliminary tests
  2012-06-05  3:08 [gimplefe] Adding more preliminary tests Sandeep Soni
@ 2012-06-05 13:28 ` Diego Novillo
  0 siblings, 0 replies; 2+ messages in thread
From: Diego Novillo @ 2012-06-05 13:28 UTC (permalink / raw)
  To: Sandeep Soni; +Cc: gcc patches

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-06-05 13:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-05  3:08 [gimplefe] Adding more preliminary tests Sandeep Soni
2012-06-05 13:28 ` Diego Novillo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).