This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: CGEN:PATCH:RFA: gas testsuite generator
- To: cgen at sources dot redhat dot com
- Subject: Re: CGEN:PATCH:RFA: gas testsuite generator
- From: Dave Brolley <brolley at redhat dot com>
- Date: Fri, 06 Oct 2000 13:11:42 -0400
- Organization: Red Hat Canada, Inc
- References: <39DCFAF0.E3E8F251@redhat.com>
Approved by Frank Eigler and Doug Evans and committed.
Dave
Dave Brolley wrote:
>
> Hi,
>
> The attached patch adds escapes for [ and ] characters in the
> regular expressions which are used to compare the disassembly of
> the cgen-generated allinsn testcase. It makes comparison for
> insns like
>
> ld r1,@[sp+10]
>
> proceed correctly.
>
> OK to commit?
>
> Dave
>
> -----------------------------------------------------------------
> 2000-10-05 Dave Brolley <brolley@redhat.com>
>
> * gas-test.scm (gentest): Generate backslashes before '[' and ']'
> characters in the regular expression.
>
> -----------------------------------------------------------------
> Index: cgen/gas-test.scm
> ===================================================================
> RCS file: /cvs/cvsfiles/devo/cgen/gas-test.scm,v
> retrieving revision 1.25
> diff -c -p -r1.25 gas-test.scm
> *** gas-test.scm 2000/07/27 04:53:31 1.25
> --- gas-test.scm 2000/10/05 20:29:39
> *************** function gentest {
> *** 190,196 ****
> echo \"#objdump: -dr\" >>${1}.d
> echo \"#name: $1\" >>${1}.d
> $BUILD/../binutils/objdump -dr a.out | \
> ! sed -e 's/(/\\\\(/g' -e 's/)/\\\\)/g' -e 's/[+]/\\\\+/g' -e 's/[*]/\\\*/g' | \
> sed -e 's/^.*file format.*$/.*: +file format .*/' \
> >>${1}.d
> rm -f a.out
> --- 190,201 ----
> echo \"#objdump: -dr\" >>${1}.d
> echo \"#name: $1\" >>${1}.d
> $BUILD/../binutils/objdump -dr a.out | \
> ! sed -e 's/(/\\\\(/g' \
> ! -e 's/)/\\\\)/g' \
> ! -e 's/\\[/\\\\\\[/g' \
> ! -e 's/\\]/\\\\\\]/g' \
> ! -e 's/[+]/\\\\+/g' \
> ! -e 's/[*]/\\\\*/g' | \
> sed -e 's/^.*file format.*$/.*: +file format .*/' \
> >>${1}.d
> rm -f a.out