aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUros Bizjak <uros@gcc.gnu.org>2007-08-23 15:03:07 +0200
committerUros Bizjak <uros@gcc.gnu.org>2007-08-23 15:03:07 +0200
commitb73aff3657492d5425e780ec650f2c00658a73de (patch)
treeac65269600d8683d641718fd2b8ccced85f3298d
parent0cb58062b7fd2307ba67cdc32ad4113bea2265f3 (diff)
downloadgcc-b73aff3657492d5425e780ec650f2c00658a73de.zip
gcc-b73aff3657492d5425e780ec650f2c00658a73de.tar.gz
gcc-b73aff3657492d5425e780ec650f2c00658a73de.tar.bz2
s390: New directory.
* gcc.target/s390: New directory. * gcc.target/s390/s390.exp: New file. * gcc.dg/20020926-1.c, gcc.dg/20030123-1.c, gcc.dg/20030129-1.c, gcc.dg/20040305-1.c, gcc.dg/20041109-1.c, gcc.dg/20041216-1.c, gcc.dg/20050409-1.c, gcc.dg/20050524-1.c, gcc.dg/20050824-1.c, gcc.dg/pr20927.c, gcc.dg/pr24624.c, gcc.dg/pr27661.c: Move to gcc.target/s390 directory. From-SVN: r127738
-rw-r--r--gcc/testsuite/ChangeLog29
-rw-r--r--gcc/testsuite/gcc.target/s390/20020926-1.c (renamed from gcc/testsuite/gcc.dg/20020926-1.c)2
-rw-r--r--gcc/testsuite/gcc.target/s390/20030123-1.c (renamed from gcc/testsuite/gcc.dg/20030123-1.c)2
-rw-r--r--gcc/testsuite/gcc.target/s390/20030129-1.c (renamed from gcc/testsuite/gcc.dg/20030129-1.c)2
-rw-r--r--gcc/testsuite/gcc.target/s390/20040305-1.c (renamed from gcc/testsuite/gcc.dg/20040305-1.c)2
-rw-r--r--gcc/testsuite/gcc.target/s390/20041109-1.c (renamed from gcc/testsuite/gcc.dg/20041109-1.c)2
-rw-r--r--gcc/testsuite/gcc.target/s390/20041216-1.c (renamed from gcc/testsuite/gcc.dg/20041216-1.c)2
-rw-r--r--gcc/testsuite/gcc.target/s390/20050409-1.c (renamed from gcc/testsuite/gcc.dg/20050409-1.c)2
-rw-r--r--gcc/testsuite/gcc.target/s390/20050524-1.c (renamed from gcc/testsuite/gcc.dg/20050524-1.c)2
-rw-r--r--gcc/testsuite/gcc.target/s390/20050824-1.c (renamed from gcc/testsuite/gcc.dg/20050824-1.c)2
-rw-r--r--gcc/testsuite/gcc.target/s390/pr20927.c (renamed from gcc/testsuite/gcc.dg/pr20927.c)2
-rw-r--r--gcc/testsuite/gcc.target/s390/pr24624.c (renamed from gcc/testsuite/gcc.dg/pr24624.c)2
-rw-r--r--gcc/testsuite/gcc.target/s390/pr27661.c (renamed from gcc/testsuite/gcc.dg/pr27661.c)2
-rw-r--r--gcc/testsuite/gcc.target/s390/s390.exp41
14 files changed, 73 insertions, 21 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9b17200..1fb55d5 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,13 @@
+2007-08-23 Uros Bizjak <ubizjak@gmail.com>
+
+ * gcc.target/s390: New directory.
+ * gcc.target/s390/s390.exp: New file.
+ * gcc.dg/20020926-1.c, gcc.dg/20030123-1.c, gcc.dg/20030129-1.c,
+ gcc.dg/20040305-1.c, gcc.dg/20041109-1.c, gcc.dg/20041216-1.c,
+ gcc.dg/20050409-1.c, gcc.dg/20050524-1.c, gcc.dg/20050824-1.c,
+ gcc.dg/pr20927.c, gcc.dg/pr24624.c, gcc.dg/pr27661.c: Move to
+ gcc.target/s390 directory.
+
2007-08-23 Richard Guenther <rguenther@suse.de>
PR tree-optimization/32328
@@ -145,7 +155,7 @@
2007-03-20 Pawel Sikora <pluto@pld-linux.org>
- * g++.dg/warn/Wnvdtor-2.C: New testcase.
+ * g++.dg/warn/Wnvdtor-2.C: New testcase.
2007-08-20 Dorit Nuzman <dorit@il.ibm.com>
@@ -204,7 +214,7 @@
* gcc.dg/vect/vect-outer-6.c: New test.
* gcc.dg/vect/vect-outer-fir.c: New test.
* gcc.dg/vect/vect-outer-fir-lb.c: New test.
- * gcc.dg/vect/costmodel/ppc/costmodel-vect-outer-fir.c: New test.
+ * gcc.dg/vect/costmodel/ppc/costmodel-vect-outer-fir.c: New test.
2007-08-19 Dorit Nuzman <dorit@il.ibm.com>
@@ -254,7 +264,8 @@
versioning for aliasing).
* testsuite/gcc.dg/vect/vect-35.c: Likewise.
- * testsuite/gcc.dg/vect/vect-iv-6.c: Fix test for vect_no_align targets.
+ * testsuite/gcc.dg/vect/vect-iv-6.c: Fix test for vect_no_align
+ targets.
* testsuite/gcc.dg/vect/vect-multitypes-11.c: Likewise.
2007-08-18 Tom Tromey <tromey@redhat.com>
@@ -580,8 +591,8 @@
PR middle-end/32813
* gfortran.fortran-torture/compile/emptyif-1.f90: New test.
- * lib/fortran-torture.exp (fortran-torture): Use TORTURE_OPTIONS instead
- of just -O.
+ * lib/fortran-torture.exp (fortran-torture): Use TORTURE_OPTIONS
+ instead of just -O.
2007-08-08 Richard Sandiford <richard@codesourcery.com>
@@ -631,7 +642,7 @@
* gfortran.dg/vect-5.f90: Likewise.
* lib/target-supports.exp (check_effective_target_natural_alignment):
Return false for darwin.
- (check_effective_target_vector_alignment_reachable_for_double): New.
+ (check_effective_target_vector_alignment_reachable_for_double): New.
2007-08-07 Andreas Krebbel <krebbel1@de.ibm.com>
@@ -694,7 +705,7 @@
* gfortran.dg/isnan_1.f90: New test.
2007-08-05 Vladimir Yanovsky <yanov@il.ibm.com>
- Revital Eres <eres@il.ibm.com>
+ Revital Eres <eres@il.ibm.com>
* gcc.dg/sms-antideps.c: New test.
@@ -986,7 +997,7 @@
* gfortran.dg/entry_11.f90: New test.
2007-07-29 Vladimir Yanovsky <yanov@il.ibm.com>
- Revital Eres <eres@il.ibm.com>
+ Revital Eres <eres@il.ibm.com>
* gfortran.dg/sms-1.f90: New test.
@@ -1433,7 +1444,7 @@
2007-07-16 Sandra Loosemore <sandra@codesourcery.com>
David Ung <davidu@mips.com>
- * gcc.target/mips/mips-sched-madd.c: New test case.
+ * gcc.target/mips/mips-sched-madd.c: New test case.
2007-07-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
diff --git a/gcc/testsuite/gcc.dg/20020926-1.c b/gcc/testsuite/gcc.target/s390/20020926-1.c
index 7a8c716..07106a6 100644
--- a/gcc/testsuite/gcc.dg/20020926-1.c
+++ b/gcc/testsuite/gcc.target/s390/20020926-1.c
@@ -1,7 +1,7 @@
/* Make sure that LEGITIMIZE_ADDRESS is called to handle
negative displacements. */
-/* { dg-do compile { target s390-*-* } } */
+/* { dg-do compile } */
/* { dg-options "-O2 -mesa" } */
int test (int *addr)
diff --git a/gcc/testsuite/gcc.dg/20030123-1.c b/gcc/testsuite/gcc.target/s390/20030123-1.c
index 319e452..96ac6f7 100644
--- a/gcc/testsuite/gcc.dg/20030123-1.c
+++ b/gcc/testsuite/gcc.target/s390/20030123-1.c
@@ -1,6 +1,6 @@
/* This used to ICE due to a reload bug on s390*. */
-/* { dg-do compile { target s390*-*-* } } */
+/* { dg-do compile } */
/* { dg-options "-O2 -fno-omit-frame-pointer" } */
extern void *alloca (__SIZE_TYPE__);
diff --git a/gcc/testsuite/gcc.dg/20030129-1.c b/gcc/testsuite/gcc.target/s390/20030129-1.c
index 0b745a9..1cbd8b4 100644
--- a/gcc/testsuite/gcc.dg/20030129-1.c
+++ b/gcc/testsuite/gcc.target/s390/20030129-1.c
@@ -1,6 +1,6 @@
/* This used to ICE due to a reload bug on s390*. */
-/* { dg-do compile { target s390*-*-* } } */
+/* { dg-do compile } */
/* { dg-options "-O2" } */
int f (unsigned int);
diff --git a/gcc/testsuite/gcc.dg/20040305-1.c b/gcc/testsuite/gcc.target/s390/20040305-1.c
index d2c4da4..a241f04 100644
--- a/gcc/testsuite/gcc.dg/20040305-1.c
+++ b/gcc/testsuite/gcc.target/s390/20040305-1.c
@@ -5,7 +5,7 @@
reordering which leads to an insn with wrong alias info.
The scheduler afterwards exchanges the mvc and st instructions
not recognizing the anti dependence. */
-/* { dg-do run { target s390-*-* } } */
+/* { dg-do run } */
/* { dg-options "-O3 -mtune=z990 -fno-inline" } */
extern void exit (int);
diff --git a/gcc/testsuite/gcc.dg/20041109-1.c b/gcc/testsuite/gcc.target/s390/20041109-1.c
index 8b07233..bf76843 100644
--- a/gcc/testsuite/gcc.dg/20041109-1.c
+++ b/gcc/testsuite/gcc.target/s390/20041109-1.c
@@ -1,6 +1,6 @@
/* This used to ICE due to a literal pool handling bug on s390x. */
-/* { dg-do compile { target s390*-*-* } } */
+/* { dg-do compile } */
/* { dg-options "-O2 -fno-omit-frame-pointer" } */
static struct table { int x; } table[3];
diff --git a/gcc/testsuite/gcc.dg/20041216-1.c b/gcc/testsuite/gcc.target/s390/20041216-1.c
index 3f892a2..492ee6c 100644
--- a/gcc/testsuite/gcc.dg/20041216-1.c
+++ b/gcc/testsuite/gcc.target/s390/20041216-1.c
@@ -2,7 +2,7 @@
because stabs referred to an optimized-away literal pool
entry. */
-/* { dg-do run { target s390*-*-* } } */
+/* { dg-do run } */
/* { dg-options "-O2 -fno-omit-frame-pointer -gstabs" } */
int main (void)
diff --git a/gcc/testsuite/gcc.dg/20050409-1.c b/gcc/testsuite/gcc.target/s390/20050409-1.c
index be85f71..4763afa 100644
--- a/gcc/testsuite/gcc.dg/20050409-1.c
+++ b/gcc/testsuite/gcc.target/s390/20050409-1.c
@@ -1,6 +1,6 @@
/* This used to ICE due to a regmove problem on s390. */
-/* { dg-do compile { target s390*-*-* } } */
+/* { dg-do compile } */
/* { dg-options "-O2" } */
diff --git a/gcc/testsuite/gcc.dg/20050524-1.c b/gcc/testsuite/gcc.target/s390/20050524-1.c
index f15c51d..7b94fd0 100644
--- a/gcc/testsuite/gcc.dg/20050524-1.c
+++ b/gcc/testsuite/gcc.target/s390/20050524-1.c
@@ -1,7 +1,7 @@
/* This test case used to abort due to a reload bug with
elimination offsets. */
-/* { dg-do run { target s390*-*-* } } */
+/* { dg-do run } */
/* { dg-options "-O2 -mpacked-stack" } */
extern void abort (void);
diff --git a/gcc/testsuite/gcc.dg/20050824-1.c b/gcc/testsuite/gcc.target/s390/20050824-1.c
index 4df79fb..c24e1e2 100644
--- a/gcc/testsuite/gcc.dg/20050824-1.c
+++ b/gcc/testsuite/gcc.target/s390/20050824-1.c
@@ -1,7 +1,7 @@
/* Make sure that the S/390 specific shift_count_operand
predicate work properly. */
-/* { dg-do compile { target s390*-*-* } } */
+/* { dg-do compile } */
/* { dg-options "-O3" } */
unsigned long long
diff --git a/gcc/testsuite/gcc.dg/pr20927.c b/gcc/testsuite/gcc.target/s390/pr20927.c
index 55cda33..dbc990f 100644
--- a/gcc/testsuite/gcc.dg/pr20927.c
+++ b/gcc/testsuite/gcc.target/s390/pr20927.c
@@ -1,6 +1,6 @@
/* This caused an ICE on s390x due to a reload inheritance bug. */
-/* { dg-do compile { target s390*-*-* } } */
+/* { dg-do compile } */
/* { dg-options "-O2" } */
struct point { double x, y; };
diff --git a/gcc/testsuite/gcc.dg/pr24624.c b/gcc/testsuite/gcc.target/s390/pr24624.c
index fbfab0a..bc2070c 100644
--- a/gcc/testsuite/gcc.dg/pr24624.c
+++ b/gcc/testsuite/gcc.target/s390/pr24624.c
@@ -1,6 +1,6 @@
/* This used to ICE due to a backend problem on s390. */
-/* { dg-do compile { target s390*-*-* } } */
+/* { dg-do compile } */
/* { dg-options "-O1 -mpacked-stack" } */
typedef unsigned int __u32;
diff --git a/gcc/testsuite/gcc.dg/pr27661.c b/gcc/testsuite/gcc.target/s390/pr27661.c
index 7660c82..1ff6dcc 100644
--- a/gcc/testsuite/gcc.dg/pr27661.c
+++ b/gcc/testsuite/gcc.target/s390/pr27661.c
@@ -1,6 +1,6 @@
/* This used to ICE on s390 due to a reload bug. */
-/* { dg-do compile { target s390*-*-* } } */
+/* { dg-do compile } */
/* { dg-options "-O2 -march=z990 -ftracer" } */
extern int memcmp (const void *s1, const void *s2, unsigned long n);
diff --git a/gcc/testsuite/gcc.target/s390/s390.exp b/gcc/testsuite/gcc.target/s390/s390.exp
new file mode 100644
index 0000000..d693309
--- /dev/null
+++ b/gcc/testsuite/gcc.target/s390/s390.exp
@@ -0,0 +1,41 @@
+# Copyright (C) 2007 Free Software Foundation, Inc.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GCC; see the file COPYING3. If not see
+# <http://www.gnu.org/licenses/>.
+
+# GCC testsuite that uses the `dg.exp' driver.
+
+# Exit immediately if this isn't a s390 target.
+if ![istarget s390*-*-*] then {
+ return
+}
+
+# Load support procs.
+load_lib gcc-dg.exp
+
+# If a testcase doesn't have special options, use these.
+global DEFAULT_CFLAGS
+if ![info exists DEFAULT_CFLAGS] then {
+ set DEFAULT_CFLAGS " -ansi -pedantic-errors"
+}
+
+# Initialize `dg'.
+dg-init
+
+# Main loop.
+dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cS\]]] \
+ "" $DEFAULT_CFLAGS
+
+# All done.
+dg-finish