On Mon, Jul 24, 2017 at 04:06:45PM -0400, Michael Meissner wrote:
> > > +/* { dg-final { scan-assembler-times {\mfctidz\M|\mxscvdpsxds\M} 2 } } */
> > 
> > You could write   {\m(fctidz|xscvdpsxds)\M}  which may be easier to read.
> > Come to think of it, we could do e.g. {\m(lwz)\M} as well.  Not sure
> > which is nicer.
> > 
> > Looks good, please commit!  Thanks again,
> 
> I wasn't sure which form of regex (shell, grep, egrep) was used, and what
> levels of quoting was needed, so I wrote it the other way.

Neither.  "man re_syntax" (or google for "tcl re_syntax" if your system
is lacking in manpages).

Since you have it inside {}, you need no quoting at all (see "man tcl")
(well, you need to take care of unmatched { and }, but only unmatched
ones).


Segher

Reply via email to