This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: CGEN:PATCH:RFA: gas testsuite generator


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]