OSDN Git Service

* gcc.target/s390: New directory.
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Aug 2007 13:03:07 +0000 (13:03 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Aug 2007 13:03:07 +0000 (13:03 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127738 138bc75d-0d04-0410-961f-82ee72b054a4

14 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/s390/20020926-1.c [moved from gcc/testsuite/gcc.dg/20020926-1.c with 85% similarity]
gcc/testsuite/gcc.target/s390/20030123-1.c [moved from gcc/testsuite/gcc.dg/20030123-1.c with 88% similarity]
gcc/testsuite/gcc.target/s390/20030129-1.c [moved from gcc/testsuite/gcc.dg/20030129-1.c with 92% similarity]
gcc/testsuite/gcc.target/s390/20040305-1.c [moved from gcc/testsuite/gcc.dg/20040305-1.c with 96% similarity]
gcc/testsuite/gcc.target/s390/20041109-1.c [moved from gcc/testsuite/gcc.dg/20041109-1.c with 90% similarity]
gcc/testsuite/gcc.target/s390/20041216-1.c [moved from gcc/testsuite/gcc.dg/20041216-1.c with 91% similarity]
gcc/testsuite/gcc.target/s390/20050409-1.c [moved from gcc/testsuite/gcc.dg/20050409-1.c with 85% similarity]
gcc/testsuite/gcc.target/s390/20050524-1.c [moved from gcc/testsuite/gcc.dg/20050524-1.c with 93% similarity]
gcc/testsuite/gcc.target/s390/20050824-1.c [moved from gcc/testsuite/gcc.dg/20050824-1.c with 93% similarity]
gcc/testsuite/gcc.target/s390/pr20927.c [moved from gcc/testsuite/gcc.dg/pr20927.c with 89% similarity]
gcc/testsuite/gcc.target/s390/pr24624.c [moved from gcc/testsuite/gcc.dg/pr24624.c with 97% similarity]
gcc/testsuite/gcc.target/s390/pr27661.c [moved from gcc/testsuite/gcc.dg/pr27661.c with 90% similarity]
gcc/testsuite/gcc.target/s390/s390.exp [new file with mode: 0644]

index 9b17200..1fb55d5 100644 (file)
@@ -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
 
 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>
 
        * 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>
 
        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>
 
        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>
 
        * 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>
 
        * 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.
 
        * 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.
 
 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>
 
similarity index 85%
rename from gcc/testsuite/gcc.dg/20020926-1.c
rename to gcc/testsuite/gcc.target/s390/20020926-1.c
index 7a8c716..07106a6 100644 (file)
@@ -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)
similarity index 88%
rename from gcc/testsuite/gcc.dg/20030123-1.c
rename to gcc/testsuite/gcc.target/s390/20030123-1.c
index 319e452..96ac6f7 100644 (file)
@@ -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__);
similarity index 92%
rename from gcc/testsuite/gcc.dg/20030129-1.c
rename to gcc/testsuite/gcc.target/s390/20030129-1.c
index 0b745a9..1cbd8b4 100644 (file)
@@ -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);
similarity index 96%
rename from gcc/testsuite/gcc.dg/20040305-1.c
rename to gcc/testsuite/gcc.target/s390/20040305-1.c
index d2c4da4..a241f04 100644 (file)
@@ -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);
similarity index 90%
rename from gcc/testsuite/gcc.dg/20041109-1.c
rename to gcc/testsuite/gcc.target/s390/20041109-1.c
index 8b07233..bf76843 100644 (file)
@@ -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];
similarity index 91%
rename from gcc/testsuite/gcc.dg/20041216-1.c
rename to gcc/testsuite/gcc.target/s390/20041216-1.c
index 3f892a2..492ee6c 100644 (file)
@@ -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)
similarity index 85%
rename from gcc/testsuite/gcc.dg/20050409-1.c
rename to gcc/testsuite/gcc.target/s390/20050409-1.c
index be85f71..4763afa 100644 (file)
@@ -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" } */
 
 
similarity index 93%
rename from gcc/testsuite/gcc.dg/20050524-1.c
rename to gcc/testsuite/gcc.target/s390/20050524-1.c
index f15c51d..7b94fd0 100644 (file)
@@ -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);
similarity index 93%
rename from gcc/testsuite/gcc.dg/20050824-1.c
rename to gcc/testsuite/gcc.target/s390/20050824-1.c
index 4df79fb..c24e1e2 100644 (file)
@@ -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
similarity index 89%
rename from gcc/testsuite/gcc.dg/pr20927.c
rename to gcc/testsuite/gcc.target/s390/pr20927.c
index 55cda33..dbc990f 100644 (file)
@@ -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; };
similarity index 97%
rename from gcc/testsuite/gcc.dg/pr24624.c
rename to gcc/testsuite/gcc.target/s390/pr24624.c
index fbfab0a..bc2070c 100644 (file)
@@ -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;
similarity index 90%
rename from gcc/testsuite/gcc.dg/pr27661.c
rename to gcc/testsuite/gcc.target/s390/pr27661.c
index 7660c82..1ff6dcc 100644 (file)
@@ -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 (file)
index 0000000..d693309
--- /dev/null
@@ -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