This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA]: Mark some gcc.c-torture tests as XFAIL for HC11/HC12


Hi!

Richard Henderson a écrit :
> 
> On Sun, Jun 10, 2001 at 07:19:51PM +0200, Stephane Carrez wrote:
> >   - sprintf() with floating point support (%f) is too large for HC11/HC12
> >     and it is not supported.
> >   - when pow() and floor() are used, the program does not link because it's too big
> 
> You can "return 1" instead of xfail to avoid running the tests at all.
> Which seems like a better choice for these.
> 

Ok. It looks better. 

> >   - 980223.x fails because it is initializing a static array with
> >     (long) &obj but sizeof(long) == 32 and sizeof(void*) == 16
> 
> I suspect that we can use size_t instead and not change the test.
> 
> r~
Ok, it works. But this changes the test. I'll submit a separate patch after 3_0.


Here is the new patch, following your recommendations and without 980223.x.

Is it ok?

	Stephane

2001-06-11  Stephane Carrez  <Stephane.Carrez@worldnet.fr>

	* gcc.c-torture/execute/920501-8.x: New file, sprintf() does not
	support %f for HC11/HC12 targets.
	* gcc.c-torture/execute/930513-1.x: New file, likewise.
	* gcc.c-torture/execute/980709-1.x: New file, pow() is not available
	on HC11/HC12 targets.
	* gcc.c-torture/execute/990826-0.x: New file, likewise for floor().
Index: testsuite/gcc.c-torture/execute/920501-8.x
===================================================================
RCS file: 920501-8.x
diff -N 920501-8.x
--- /dev/null	Tue May  5 13:32:27 1998
+++ 920501-8.x	Mon Jun 11 14:55:42 2001
@@ -0,0 +1,5 @@
+# sprintf() does not support %f on m6811/m6812 target.
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"]} {
+	return 1
+}
+return 0
Index: testsuite/gcc.c-torture/execute/930513-1.x
===================================================================
RCS file: 930513-1.x
diff -N 930513-1.x
--- /dev/null	Tue May  5 13:32:27 1998
+++ 930513-1.x	Mon Jun 11 14:55:42 2001
@@ -0,0 +1,5 @@
+# sprintf() does not support %f on m6811/m6812 target.
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"]} {
+	return 1
+}
+return 0
Index: testsuite/gcc.c-torture/execute/980709-1.x
===================================================================
RCS file: 980709-1.x
diff -N 980709-1.x
--- /dev/null	Tue May  5 13:32:27 1998
+++ 980709-1.x	Mon Jun 11 14:55:42 2001
@@ -0,0 +1,5 @@
+# pow() is not available on m6811/m6812 target, this test will not link.
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"]} {
+	return 1
+}
+return 0
Index: testsuite/gcc.c-torture/execute/990826-0.x
===================================================================
RCS file: 990826-0.x
diff -N 990826-0.x
--- /dev/null	Tue May  5 13:32:27 1998
+++ 990826-0.x	Mon Jun 11 14:55:42 2001
@@ -0,0 +1,5 @@
+# floor() is not available on m6811/m6812 target, this test will not link.
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"]} {
+	return 1
+}
+return 0

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]