public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/28950]  New: regex wrong for gcc/testsuite/gcc.target/powerpc/ppc-and-1.c
@ 2006-09-04 16:14 howarth at nitro dot med dot uc dot edu
  2006-09-10  7:18 ` [Bug testsuite/28950] " echristo at apple dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: howarth at nitro dot med dot uc dot edu @ 2006-09-04 16:14 UTC (permalink / raw)
  To: gcc-bugs

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 <steinmtz@us.ibm.com> */


...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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-09-12  4:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-04 16:14 [Bug testsuite/28950] New: regex wrong for gcc/testsuite/gcc.target/powerpc/ppc-and-1.c howarth at nitro dot med dot uc dot edu
2006-09-10  7:18 ` [Bug testsuite/28950] " echristo at apple dot com
2006-09-10  7:21 ` pinskia at gcc dot gnu dot org
2006-09-10 14:35 ` [Bug testsuite/28950] regex wrong for testing on darwin in gcc/testsuite/gcc.target/powerpc/ppc-and-1.c pinskia at gcc dot gnu dot org
2006-09-12  0:34 ` janis at gcc dot gnu dot org
2006-09-12  0:42 ` janis at gcc dot gnu dot org
2006-09-12  4:06 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).