This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 9/9] Skip or xfail some tests on ia16
- From: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 30 Jul 2007 21:55:18 +0200
- Subject: [PATCH 9/9] Skip or xfail some tests on ia16
- References: <20070730134217.GK25795@sygehus.dk>
This patch disables several tests for features which aren't available on
ia16. I tested it along with patch 8 in this patch set. Ok for trunk?
:ADDPATCH testsuite:
2007-07-30 Rask Ingemann Lambertsen <rask@sygehus.dk>
* gcc.dg/20020312-2.c: Skip test of unsupported feature on ia16.
* gcc.c-torture/compile/20010327-1.c: Likewise.
* gcc.c-torture/compile/20020604-1.c: Likewise.
* gcc.dg/pr27639.c: Likewise.
* gcc.dg/pr19340.c: Likewise.
* gcc.dg/cpp/_Pragma6.c: Likewise.
* gcc.dg/20040813-1.c: Likewise.
* gcc.dg/sibcall-3.c: Xfail on ia16 until sibling calls work.
* gcc.dg/sibcall-4.c: Likewise.
Index: gcc/testsuite/gcc.dg/20020312-2.c
===================================================================
--- gcc/testsuite/gcc.dg/20020312-2.c (revision 126653)
+++ gcc/testsuite/gcc.dg/20020312-2.c (working copy)
@@ -80,6 +80,8 @@ extern void abort (void);
# else
# define PIC_REG "gr17"
#endif
+#elif defined(__ia16__)
+/* No pic register. */
#else
# error "Modify the test for your target."
#endif
Index: gcc/testsuite/gcc.c-torture/compile/20010327-1.c
===================================================================
--- gcc/testsuite/gcc.c-torture/compile/20010327-1.c (revision 126653)
+++ gcc/testsuite/gcc.c-torture/compile/20010327-1.c (working copy)
@@ -1,4 +1,4 @@
-/* { dg-skip-if "non-SI pointers" { m32c-*-* } { "*" } { "" } } */
+/* { dg-skip-if "non-SI pointers" { m32c-*-* ia16-*-* } { "*" } { "" } } */
/* This testcase tests whether GCC can produce static initialized data
that references addresses of size 'unsigned long', even if that's not
Index: gcc/testsuite/gcc.c-torture/compile/20020604-1.c
===================================================================
--- gcc/testsuite/gcc.c-torture/compile/20020604-1.c (revision 126653)
+++ gcc/testsuite/gcc.c-torture/compile/20020604-1.c (working copy)
@@ -1,7 +1,7 @@
/* The array is too big. */
/* { dg-xfail-if "The array too big" { "h8300-*-*" } { "-mno-h" "-mn" } { "" } } */
/* { dg-do assemble { xfail m6811-*-* m6812-*-* } } */
-/* { dg-skip-if "" { m32c-*-* } { } { } } */
+/* { dg-skip-if "" { m32c-*-* ia16-*-* } { } { } } */
/* PR c/6957
This testcase ICEd at -O2 on IA-32, because
Index: gcc/testsuite/gcc.dg/pr27639.c
===================================================================
--- gcc/testsuite/gcc.dg/pr27639.c (revision 126653)
+++ gcc/testsuite/gcc.dg/pr27639.c (working copy)
@@ -1,5 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O2 -std=c99" } */
+/* { dg-skip-if "Array too large" { ia16-*-* } { "*" } { "" } } */
char heap[50000];
Index: gcc/testsuite/gcc.dg/pr19340.c
===================================================================
--- gcc/testsuite/gcc.dg/pr19340.c (revision 126653)
+++ gcc/testsuite/gcc.dg/pr19340.c (working copy)
@@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-options "-O1 -fschedule-insns2 -fsched2-use-traces" } */
-/* { dg-skip-if "No scheduling" { mmix-*-* cris-*-* fido-*-* m68k-*-* m32c-*-* } { "*" } { "" } } */
+/* { dg-skip-if "No scheduling" { mmix-*-* cris-*-* fido-*-* m68k-*-* m32c-*-* ia16-*-* } { "*" } { "" } } */
extern double f (double x);
Index: gcc/testsuite/gcc.dg/cpp/_Pragma6.c
===================================================================
--- gcc/testsuite/gcc.dg/cpp/_Pragma6.c (revision 126653)
+++ gcc/testsuite/gcc.dg/cpp/_Pragma6.c (working copy)
@@ -2,7 +2,7 @@
/* This is supposed to succeed only if
the target defines HANDLE_PRAGMA_PACK_PUSH_POP
and doesn't define HANDLE_PRAGMA_PACK_WITH_EXPANSION. */
-/* { dg-do compile { target { ! { *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf } } } } */
+/* { dg-do compile { target { ! { *-*-solaris2* fido-*-* m68k-*-* sh*-[us]*-elf ia16-*-* } } } } */
#define push bar
#define foo _Pragma ("pack(push)")
Index: gcc/testsuite/gcc.dg/20040813-1.c
===================================================================
--- gcc/testsuite/gcc.dg/20040813-1.c (revision 126653)
+++ gcc/testsuite/gcc.dg/20040813-1.c (working copy)
@@ -2,7 +2,7 @@
/* Contributed by Devang Patel <dpatel@apple.com> */
/* { dg-do compile } */
-/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* *-*-netware* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-sysv5* *-*-vxworks* } { "*" } { "" } } */
+/* { dg-skip-if "No stabs" { mmix-*-* *-*-aix* *-*-netware* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-sysv5* *-*-vxworks* ia16-*-* } { "*" } { "" } } */
/* { dg-options "-gstabs" } */
int
Index: gcc/testsuite/gcc.dg/sibcall-3.c
===================================================================
--- gcc/testsuite/gcc.dg/sibcall-3.c (revision 127048)
+++ gcc/testsuite/gcc.dg/sibcall-3.c (working copy)
@@ -5,7 +5,7 @@
Copyright (C) 2002 Free Software Foundation Inc.
Contributed by Hans-Peter Nilsson <hp@bitrange.com> */
-/* { dg-do run { xfail arc-*-* avr-*-* c4x-*-* cris-*-* h8300-*-* hppa*64*-*-* m32r-*-* m68hc1?-*-* m681?-*-* m680*-*-* m68k-*-* mcore-*-* mn10300-*-* xstormy16-*-* v850*-*-* vax-*-* xtensa-*-* } } */
+/* { dg-do run { xfail arc-*-* avr-*-* c4x-*-* cris-*-* h8300-*-* hppa*64*-*-* ia16-*-* m32r-*-* m68hc1?-*-* m681?-*-* m680*-*-* m68k-*-* mcore-*-* mn10300-*-* xstormy16-*-* v850*-*-* vax-*-* xtensa-*-* } } */
/* -mlongcall disables sibcall patterns. */
/* { dg-skip-if "" { powerpc*-*-* } { "-mlongcall" } { "" } } */
/* { dg-options "-O2 -foptimize-sibling-calls" } */
Index: gcc/testsuite/gcc.dg/sibcall-4.c
===================================================================
--- gcc/testsuite/gcc.dg/sibcall-4.c (revision 127048)
+++ gcc/testsuite/gcc.dg/sibcall-4.c (working copy)
@@ -5,7 +5,7 @@
Copyright (C) 2002 Free Software Foundation Inc.
Contributed by Hans-Peter Nilsson <hp@bitrange.com> */
-/* { dg-do run { xfail arc-*-* avr-*-* c4x-*-* cris-*-* h8300-*-* hppa*64*-*-* m32r-*-* m68hc1?-*-* m681?-*-* m680*-*-* m68k-*-* mcore-*-* mn10300-*-* xstormy16-*-* v850*-*-* vax-*-* xtensa-*-* } } */
+/* { dg-do run { xfail arc-*-* avr-*-* c4x-*-* cris-*-* h8300-*-* hppa*64*-*-* ia16-*-* m32r-*-* m68hc1?-*-* m681?-*-* m680*-*-* m68k-*-* mcore-*-* mn10300-*-* xstormy16-*-* v850*-*-* vax-*-* xtensa-*-* } } */
/* -mlongcall disables sibcall patterns. */
/* { dg-skip-if "" { powerpc*-*-* } { "-mlongcall" } { "" } } */
/* { dg-options "-O2 -foptimize-sibling-calls" } */
--
Rask Ingemann Lambertsen