This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[RFA]: Mark some gcc.c-torture tests as XFAIL for HC11/HC12
- To: gcc-patches at gcc dot gnu dot org
- Subject: [RFA]: Mark some gcc.c-torture tests as XFAIL for HC11/HC12
- From: Stephane Carrez <Stephane dot Carrez at worldnet dot fr>
- Date: Sun, 10 Jun 2001 19:19:51 +0200
Hi!
Several gcc.c-torture tests fail for HC11/HC12:
- 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
- 980223.x fails because it is initializing a static array with
(long) &obj but sizeof(long) == 32 and sizeof(void*) == 16
{same pb on x86 if you write a static array initialized with (long long) &obj}
The patch defines the new *.x files to mark the tests as fail for m6811/m6812 only.
Can you approve this patch?
Thanks,
Stephane
2001-06-10 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().
* gcc.c-torture/execute/980223.x: New file, it fails on targets
with 16-bit pointers (HC11/HC12).
Index: 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 Sun Jun 10 10:10:58 2001
@@ -0,0 +1,8 @@
+# sprintf() does not support %f on m6811/m6812 target.
+
+global target_triplet
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"]} {
+ set torture_execute_xfail "$target_triplet"
+}
+
+return 0
Index: 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 Sun Jun 10 10:10:58 2001
@@ -0,0 +1,8 @@
+# sprintf() does not support %f on m6811/m6812 target.
+
+global target_triplet
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"]} {
+ set torture_execute_xfail "$target_triplet"
+}
+
+return 0
Index: gcc.c-torture/execute/980223.x
===================================================================
RCS file: 980223.x
diff -N 980223.x
--- /dev/null Tue May 5 13:32:27 1998
+++ 980223.x Sun Jun 10 10:10:58 2001
@@ -0,0 +1,9 @@
+# This test doesn't work on targets with 16-bit pointers,
+# it fails with `initializer element is not constant'.
+
+global target_triplet
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"]} {
+ set torture_compile_xfail "$target_triplet"
+}
+
+return 0
Index: 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 Sun Jun 10 10:10:58 2001
@@ -0,0 +1,8 @@
+# pow() is not available on m6811/m6812 target, this test will not link.
+
+global target_triplet
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"]} {
+ set torture_compile_xfail "$target_triplet"
+}
+
+return 0
Index: 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 Sun Jun 10 10:10:58 2001
@@ -0,0 +1,8 @@
+# floor() is not available on m6811/m6812 target, this test will not link.
+
+global target_triplet
+if { [istarget "m6811-*-*"] || [istarget "m6812-*-*"]} {
+ set torture_compile_xfail "$target_triplet"
+}
+
+return 0