Patchwork [testsuite,RFA] Tweak a few test cases for SH

login
register
mail settings
Submitter Kaz Kojima
Date July 5, 2010, 2:18 p.m.
Message ID <20100705.231850.224205483.kkojima@rr.iij4u.or.jp>
Download mbox | patch
Permalink /patch/57913/
State New
Headers show

Comments

Kaz Kojima - July 5, 2010, 2:18 p.m.
Hi,

SH requires ieee compatible options for a few tests added
recently.  The attached patch is tested on i686-pc-linux-gnu.
OK for trunk?

Regards,
	kaz
--
2010-07-05  Kaz Kojima  <kkojima@gcc.gnu.org>

	* gcc.c-torture/execute/pr44683.x: New.
	* gcc.dg/torture/builtin-cproj-1.c: Add dg-add-options ieee.

Patch

diff -uprN ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.x trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.x
--- ORIG/trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.x	1970-01-01 09:00:00.000000000 +0900
+++ trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.x	2010-06-30 19:09:19.000000000 +0900
@@ -0,0 +1,6 @@ 
+if { [istarget "sh*-*-*"] } {
+	# SH require -mieee for this test.
+	set additional_flags "-mieee"
+}
+
+return 0
diff -uprN ORIG/trunk/gcc/testsuite/gcc.dg/torture/builtin-cproj-1.c trunk/gcc/testsuite/gcc.dg/torture/builtin-cproj-1.c
--- ORIG/trunk/gcc/testsuite/gcc.dg/torture/builtin-cproj-1.c	2010-04-22 09:51:10.000000000 +0900
+++ trunk/gcc/testsuite/gcc.dg/torture/builtin-cproj-1.c	2010-06-30 08:09:20.000000000 +0900
@@ -6,6 +6,7 @@ 
    Origin: Kaveh R. Ghazi,  April 9, 2010.  */
 
 /* { dg-do link } */
+/* { dg-add-options ieee } */
 
 /* All references to link_error should go away at compile-time.  The
    argument is the __LINE__ number.  It appears in the tree dump file