public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Testsuite regular expression question
@ 2009-10-26 23:35 Steve Ellcey
  2009-10-27 10:38 ` Kaveh R. GHAZI
  2009-10-27 12:03 ` Andreas Schwab
  0 siblings, 2 replies; 8+ messages in thread
From: Steve Ellcey @ 2009-10-26 23:35 UTC (permalink / raw)
  To: gcc; +Cc: janis187


I am looking at a failure of gcc.dg/debug/dwarf2/inline2.c on IA64
HP-UX.  The problem I have is with the assembler scan:

/* { dg-final { scan-assembler-times "byte.*?0x3.*? DW_AT_inline" 3 } } */

IA64 HP-UX is using 'data1' instead of 'byte' in the output.  Now that
should be easy to fix and if I change the string to:

/* { dg-final { scan-assembler-times "data1.*?0x3.*? DW_AT_inline" 3 } } */

I do get this test to pass.  But other systems are using 'byte' so of
course I need to allow for either byte or data1.  I have tried:

/* { dg-final { scan-assembler-times "(byte|data1).*?0x3.*? DW_AT_inline" 3 } } */

/* { dg-final { scan-assembler-times "(byte\|data1).*?0x3.*? DW_AT_inline" 3 } } */

/* { dg-final { scan-assembler-times "\(byte\|data1\).*?0x3.*? DW_AT_inline" 3 } } */

And various other escapes, parenthesis, etc but cannot get any of them
to work.  Does anyone know what this RE should look like to allow 'byte'
or 'data1' in the string?  It seems to break as soon as I introduce
parenthesis anywhere in the RE.

Steve Ellcey
sje@cup.hp.com

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

end of thread, other threads:[~2009-10-27 19:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-26 23:35 Testsuite regular expression question Steve Ellcey
2009-10-27 10:38 ` Kaveh R. GHAZI
2009-10-27 17:00   ` Steve Ellcey
2009-10-27 17:13     ` Andreas Schwab
2009-10-27 17:22       ` Steve Ellcey
2009-10-27 20:18         ` Andreas Schwab
2009-10-27 17:16   ` Steve Ellcey
2009-10-27 12:03 ` Andreas Schwab

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