This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc.target/powerpc directory


This patch creates a gcc.target/powerpc directory for PowerPC
testcases, and moves tests there from gcc.dg.

The following tests are not moved because it seems to me they should
be enabled for all targets rather than being PowerPC-specific:
980523-1.c 980526-1.c switch-1.c.  The following tests are not moved
because it isn't clear to me whether they are really PowerPC-specific
or are generic Darwin tests: darwin-ld-2.c darwin-ld-4.c
lazy-ptr-test.c pragma-darwin.c.  I didn't rename tests to remove
prefixes ppc-* or rs6000-* since I'm not sure whether there is some
distinction between those tests which are ppc-* and those which are
rs6000-*.

Other notes on gcc.target:

* Other targets such as i386 and ia64 have many tests in gcc.dg which
  should probably move to the relevant gcc.target directories.

* There's one test directly in gcc.target/x86_64, which doesn't have
  an x86_64.exp file so probably won't get run; I think it belongs in
  gcc.target/i386 instead.

Tested on powerpc64-unknown-linux-gnu (that the moved tests get run
correctly), and the new harness added to csl-ppc4xx-branch.  OK to
commit the harness and moves to mainline?

2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>

	* gcc.target/powerpc: New directory.
	* gcc.target/powerpc/powerpc.exp: New file.
	* gcc.dg/20020118-1.c, gcc.dg/20030218-1.c, gcc.dg/20030505.c,
	gcc.dg/20040121-1.c, gcc.dg/20040622-1.c, gcc.dg/20041111-1.c,
	gcc.dg/20050603-1.c, gcc.dg/20050603-3.c, gcc.dg/20050830-1.c,
	gcc.dg/980827-1.c, gcc.dg/altivec-1.c, gcc.dg/altivec-10.c,
	gcc.dg/altivec-11.c, gcc.dg/altivec-12.c, gcc.dg/altivec-13.c,
	gcc.dg/altivec-14.c, gcc.dg/altivec-15.c, gcc.dg/altivec-16.c,
	gcc.dg/altivec-17.c, gcc.dg/altivec-18.c, gcc.dg/altivec-19.c,
	gcc.dg/altivec-2.c, gcc.dg/altivec-20.c, gcc.dg/altivec-21.c,
	gcc.dg/altivec-22.c, gcc.dg/altivec-3.c, gcc.dg/altivec-4.c,
	gcc.dg/altivec-5.c, gcc.dg/altivec-6.c, gcc.dg/altivec-7.c,
	gcc.dg/altivec-8.c, gcc.dg/altivec-9.c, gcc.dg/altivec-pr22085.c,
	gcc.dg/altivec-types-1.c, gcc.dg/altivec-types-2.c,
	gcc.dg/altivec-types-3.c, gcc.dg/altivec-types-4.c,
	gcc.dg/altivec-varargs-1.c, gcc.dg/altivec-vec-merge.c,
	gcc.dg/altivec_check.h, gcc.dg/compress-float-ppc-pic.c,
	gcc.dg/compress-float-ppc.c, gcc.dg/darwin-abi-1.c,
	gcc.dg/darwin-abi-2.c, gcc.dg/darwin-bool-1.c,
	gcc.dg/darwin-bool-2.c, gcc.dg/darwin-longdouble.c,
	gcc.dg/darwin-longlong.c, gcc.dg/darwin-misaligned.c,
	gcc.dg/doloop-1.c, gcc.dg/macho-lo-sum.c, gcc.dg/ppc-and-1.c,
	gcc.dg/ppc-bitfield1.c, gcc.dg/ppc-compare-1.c, gcc.dg/ppc-eabi.c,
	gcc.dg/ppc-fmadd-1.c, gcc.dg/ppc-fmadd-2.c, gcc.dg/ppc-fmadd-3.c,
	gcc.dg/ppc-fsel-1.c, gcc.dg/ppc-fsel-2.c, gcc.dg/ppc-fsel-3.c,
	gcc.dg/ppc-ldstruct.c, gcc.dg/ppc-mov-1.c, gcc.dg/ppc-sdata-1.c,
	gcc.dg/ppc-sdata-2.c, gcc.dg/ppc-spe.c, gcc.dg/ppc-spe64-1.c,
	gcc.dg/ppc-stackalign-1.c, gcc.dg/ppc-stfiwx.c,
	gcc.dg/ppc-vector-memcpy.c, gcc.dg/ppc-vector-memset.c,
	gcc.dg/ppc64-abi-1.c, gcc.dg/ppc64-abi-2.c, gcc.dg/ppc64-abi-3.c,
	gcc.dg/ppc64-toc.c, gcc.dg/pr16155.c, gcc.dg/pr16286.c,
	gcc.dg/pr18096-1.c, gcc.dg/rs6000-fpint-2.c,
	gcc.dg/rs6000-fpint.c, gcc.dg/rs6000-ldouble-1.c,
	gcc.dg/rs6000-ldouble-2.c, gcc.dg/rs6000-power2-1.c,
	gcc.dg/rs6000-power2-2.c, gcc.dg/spe1.c,
	gcc.dg/stabs-attrib-vect-darwin.c: Move to gcc.target/powerpc.

diff -rupN GCC.orig/gcc/testsuite/gcc.target/powerpc/powerpc.exp GCC/gcc/testsuite/gcc.target/powerpc/powerpc.exp
--- GCC.orig/gcc/testsuite/gcc.target/powerpc/powerpc.exp	1970-01-01 00:00:00.000000000 +0000
+++ GCC/gcc/testsuite/gcc.target/powerpc/powerpc.exp	2005-11-03 17:47:01.000000000 +0000
@@ -0,0 +1,41 @@
+#   Copyright (C) 2005 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 2 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 this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  
+
+# GCC testsuite that uses the 'dg.exp' driver.
+
+# Exit immediately if this isn't a PowerPC target.
+if { ![istarget powerpc*-*-*] && ![istarget rs6000-*-*] } 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

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]