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]

[patch] Fix PR testsuite/28950 revised


The attached patch makes the recommended modification to use
{,r} so that the regex passes on non-Darwin powerpc. The test
case has been checked on powerpc-apple-darwin8.

2006-09-10  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> */



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