From b73aff3657492d5425e780ec650f2c00658a73de Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Thu, 23 Aug 2007 15:03:07 +0200 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 29 +++++++++---- .../{gcc.dg => gcc.target/s390}/20020926-1.c | 2 +- .../{gcc.dg => gcc.target/s390}/20030123-1.c | 2 +- .../{gcc.dg => gcc.target/s390}/20030129-1.c | 2 +- .../{gcc.dg => gcc.target/s390}/20040305-1.c | 2 +- .../{gcc.dg => gcc.target/s390}/20041109-1.c | 2 +- .../{gcc.dg => gcc.target/s390}/20041216-1.c | 2 +- .../{gcc.dg => gcc.target/s390}/20050409-1.c | 2 +- .../{gcc.dg => gcc.target/s390}/20050524-1.c | 2 +- .../{gcc.dg => gcc.target/s390}/20050824-1.c | 2 +- .../{gcc.dg => gcc.target/s390}/pr20927.c | 2 +- .../{gcc.dg => gcc.target/s390}/pr24624.c | 2 +- .../{gcc.dg => gcc.target/s390}/pr27661.c | 2 +- gcc/testsuite/gcc.target/s390/s390.exp | 41 +++++++++++++++++++ 14 files changed, 73 insertions(+), 21 deletions(-) rename gcc/testsuite/{gcc.dg => gcc.target/s390}/20020926-1.c (85%) rename gcc/testsuite/{gcc.dg => gcc.target/s390}/20030123-1.c (88%) rename gcc/testsuite/{gcc.dg => gcc.target/s390}/20030129-1.c (92%) rename gcc/testsuite/{gcc.dg => gcc.target/s390}/20040305-1.c (96%) rename gcc/testsuite/{gcc.dg => gcc.target/s390}/20041109-1.c (90%) rename gcc/testsuite/{gcc.dg => gcc.target/s390}/20041216-1.c (91%) rename gcc/testsuite/{gcc.dg => gcc.target/s390}/20050409-1.c (85%) rename gcc/testsuite/{gcc.dg => gcc.target/s390}/20050524-1.c (93%) rename gcc/testsuite/{gcc.dg => gcc.target/s390}/20050824-1.c (93%) rename gcc/testsuite/{gcc.dg => gcc.target/s390}/pr20927.c (89%) rename gcc/testsuite/{gcc.dg => gcc.target/s390}/pr24624.c (97%) rename gcc/testsuite/{gcc.dg => gcc.target/s390}/pr27661.c (90%) create mode 100644 gcc/testsuite/gcc.target/s390/s390.exp diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 9b17200f3ae..1fb55d54516 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2007-08-23 Uros Bizjak + + * 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 PR tree-optimization/32328 @@ -145,7 +155,7 @@ 2007-03-20 Pawel Sikora - * g++.dg/warn/Wnvdtor-2.C: New testcase. + * g++.dg/warn/Wnvdtor-2.C: New testcase. 2007-08-20 Dorit Nuzman @@ -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 @@ -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 @@ -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 @@ -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 @@ -694,7 +705,7 @@ * gfortran.dg/isnan_1.f90: New test. 2007-08-05 Vladimir Yanovsky - Revital Eres + Revital Eres * gcc.dg/sms-antideps.c: New test. @@ -986,7 +997,7 @@ * gfortran.dg/entry_11.f90: New test. 2007-07-29 Vladimir Yanovsky - Revital Eres + Revital Eres * gfortran.dg/sms-1.f90: New test. @@ -1433,7 +1444,7 @@ 2007-07-16 Sandra Loosemore David Ung - * 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 diff --git a/gcc/testsuite/gcc.dg/20020926-1.c b/gcc/testsuite/gcc.target/s390/20020926-1.c similarity index 85% rename from gcc/testsuite/gcc.dg/20020926-1.c rename to gcc/testsuite/gcc.target/s390/20020926-1.c index 7a8c716dcb2..07106a623a5 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 similarity index 88% rename from gcc/testsuite/gcc.dg/20030123-1.c rename to gcc/testsuite/gcc.target/s390/20030123-1.c index 319e4526a4a..96ac6f76ced 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 similarity index 92% rename from gcc/testsuite/gcc.dg/20030129-1.c rename to gcc/testsuite/gcc.target/s390/20030129-1.c index 0b745a901b1..1cbd8b48297 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 similarity index 96% rename from gcc/testsuite/gcc.dg/20040305-1.c rename to gcc/testsuite/gcc.target/s390/20040305-1.c index d2c4da4296f..a241f041c8f 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 similarity index 90% rename from gcc/testsuite/gcc.dg/20041109-1.c rename to gcc/testsuite/gcc.target/s390/20041109-1.c index 8b072339dd8..bf768439cd1 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 similarity index 91% rename from gcc/testsuite/gcc.dg/20041216-1.c rename to gcc/testsuite/gcc.target/s390/20041216-1.c index 3f892a2e375..492ee6c182b 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 similarity index 85% rename from gcc/testsuite/gcc.dg/20050409-1.c rename to gcc/testsuite/gcc.target/s390/20050409-1.c index be85f71a6b7..4763afad36e 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 similarity index 93% rename from gcc/testsuite/gcc.dg/20050524-1.c rename to gcc/testsuite/gcc.target/s390/20050524-1.c index f15c51d628a..7b94fd0f065 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 similarity index 93% rename from gcc/testsuite/gcc.dg/20050824-1.c rename to gcc/testsuite/gcc.target/s390/20050824-1.c index 4df79fb6ae7..c24e1e26f2d 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 similarity index 89% rename from gcc/testsuite/gcc.dg/pr20927.c rename to gcc/testsuite/gcc.target/s390/pr20927.c index 55cda33e8c4..dbc990f151f 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 similarity index 97% rename from gcc/testsuite/gcc.dg/pr24624.c rename to gcc/testsuite/gcc.target/s390/pr24624.c index fbfab0a6742..bc2070c4b79 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 similarity index 90% rename from gcc/testsuite/gcc.dg/pr27661.c rename to gcc/testsuite/gcc.target/s390/pr27661.c index 7660c822fb9..1ff6dcc7cec 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 00000000000..d693309861e --- /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 +# . + +# 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 -- 2.30.2