This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix PR testsuite/28950 revised
- From: howarth at bromo dot msbb dot uc dot edu (Jack Howarth)
- To: howarth at bromo dot msbb dot uc dot edu, pinskia at physics dot uc dot edu
- Cc: gcc-patches at gcc dot gnu dot org, jakub at redhat dot com, janis187 at us dot ibm dot com, schwab at suse dot de
- Date: Mon, 11 Sep 2006 18:15:27 -0400 (EDT)
- Subject: Re: [patch] Fix PR testsuite/28950 revised
Okay the following patch now works fine on Darwin PPC...
------------------------------------------------------------------------------------
2006-09-11 Jack Howarth <howarth@bromo.med.uc.edu>
PR testsuite/28950
* gcc.target/powerpc/ppc-and-1.c: Fix regex as Darwin
assembler expects GPR references to be prefixed with 'r'.
Index: gcc/testsuite/gcc.target/powerpc/ppc-and-1.c
===================================================================
--- gcc/testsuite/gcc.target/powerpc/ppc-and-1.c (revision 116801)
+++ gcc/testsuite/gcc.target/powerpc/ppc-and-1.c (working copy)
@@ -1,8 +1,8 @@
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-options "-O2" } */
-/* { dg-final { scan-assembler "rlwinm \[0-9\]+,\[0-9\]+,0,0,30" } } */
-/* { dg-final { scan-assembler "rlwinm \[0-9\]+,\[0-9\]+,0,29,30" } } */
+/* { dg-final { scan-assembler "rlwinm r?\[0-9\]+,r?\[0-9\]+,0,0,30" } } */
+/* { dg-final { scan-assembler "rlwinm r?\[0-9\]+,r?\[0-9\]+,0,29,30" } } */
/* { dg-final { scan-assembler-not "rldicr" } } */
/* Origin:Pete Steinmetz <steinmtz@us.ibm.com> */
--------------------------------------------------------------------------------------
This produces the results...
make check-gcc RUNTESTFLAGS="--target_board=unix'{-m32,-m64}' powerpc.exp=ppc-and-1*"
test -d testsuite || mkdir testsuite
test -d testsuite/gcc || mkdir testsuite/gcc
(rootme=`${PWDCMD-pwd}`; export rootme; \
srcdir=`cd ../../gcc-4.2-20060910/gcc; ${PWDCMD-pwd}` ; export srcdir ; \
cd testsuite/gcc; \
rm -f tmp-site.exp; \
sed '/set tmpdir/ s|testsuite|testsuite/gcc|' \
< ../../site.exp > tmp-site.exp; \
/bin/sh ${srcdir}/../move-if-change tmp-site.exp site.exp; \
EXPECT=`if [ -f ${rootme}/../expect/expect ] ; then echo ${rootme}/../expect/expect ; else echo expect ; fi` ; export EXPECT ; \
if [ -f ${rootme}/../expect/expect ] ; then \
TCL_LIBRARY=`cd .. ; cd ${srcdir}/../tcl/library ; ${PWDCMD-pwd}` ; \
export TCL_LIBRARY ; fi ; \
`if [ -f ${srcdir}/../dejagnu/runtest ] ; then echo ${srcdir}/../dejagnu/runtest ; else echo runtest; fi` --tool gcc --target_board=unix'{-m32,-m64}' powerpc.exp=ppc-and-1*)
WARNING: Couldn't find the global config file.
Test Run By root on Mon Sep 11 18:11:56 2006
Native configuration is powerpc-apple-darwin8
=== gcc tests ===
Schedule of variations:
unix/-m32
unix/-m64
Running target unix/-m32
Using /sw/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /sw/share/dejagnu/config/unix.exp as generic interface file for target.
Using /sw/src/fink.build/gcc4-4.1.999-20060910/gcc-4.2-20060910/gcc/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /sw/src/fink.build/gcc4-4.1.999-20060910/gcc-4.2-20060910/gcc/testsuite/gcc.target/powerpc/powerpc.exp ...
=== gcc Summary for unix/-m32 ===
# of unsupported tests 1
Running target unix/-m64
Using /sw/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /sw/share/dejagnu/config/unix.exp as generic interface file for target.
Using /sw/src/fink.build/gcc4-4.1.999-20060910/gcc-4.2-20060910/gcc/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /sw/src/fink.build/gcc4-4.1.999-20060910/gcc-4.2-20060910/gcc/testsuite/gcc.target/powerpc/powerpc.exp ...
=== gcc Summary for unix/-m64 ===
# of expected passes 4
=== gcc Summary ===
# of expected passes 4
# of unsupported tests 1
/sw/src/fink.build/gcc4-4.1.999-20060910/darwin_objdir/gcc/xgcc version 4.2.0 20060911 (experimental)