I am able to verify that the regex for
gcc/testsuite/gcc.target/powerpc/ppc-and-1.c is 
incorrect as previously diagnosed on the gcc mailing list...

http://gcc.gnu.org/ml/gcc/2006-09/msg00030.html

...and that the following change fixes the problem...

--- gcc-4.2-20060901/gcc/testsuite/gcc.target/powerpc/ppc-and-1.c      
2006-08-13 14:10:07.000000000 -0400
+++ gcc-4.2-20060901.allocate/gcc/testsuite/gcc.target/powerpc/ppc-and-1.c     
2006-09-01 20:10:44.000000000 -0400
@@ -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 <[EMAIL PROTECTED]> */


...with this change this test properly passes at -m64 on Darwin...

Executing on host:
/sw/src/fink.build/gcc4-4.1.999-20060902/darwin_objdir/gcc/xgcc
-B/sw/src/fink.build/gcc4-4.1.999-20060902/darwin_objdir/gcc/
/sw/src/fink.build/
gcc4-4.1.999-20060902/gcc-4.2-20060902/gcc/testsuite/gcc.target/powerpc/ppc-and-1.c
  -O2 -fno-show-column -S  -m64 -o ppc-and-1.s    (timeout = 300)
PASS: gcc.target/powerpc/ppc-and-1.c (test for excess errors)
PASS: gcc.target/powerpc/ppc-and-1.c scan-assembler rlwinm
r[0-9]+,r[0-9]+,0,0,30
PASS: gcc.target/powerpc/ppc-and-1.c scan-assembler rlwinm
r[0-9]+,r[0-9]+,0,29,30
PASS: gcc.target/powerpc/ppc-and-1.c scan-assembler-not rldicr


-- 
           Summary: regex wrong for gcc/testsuite/gcc.target/powerpc/ppc-
                    and-1.c
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: howarth at nitro dot med dot uc dot edu
 GCC build triplet: powerpc-apple-darwin8
  GCC host triplet: powerpc-apple-darwin8
GCC target triplet: powerpc-apple-darwin8


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28950

Reply via email to