* Re: problems about "building a GAS test suite"
[not found] <002c01c24dd0$2ef01ee0$7f6f0e0a@gongyq>
@ 2002-08-27 7:17 ` Frank Ch. Eigler
0 siblings, 0 replies; 3+ messages in thread
From: Frank Ch. Eigler @ 2002-08-27 7:17 UTC (permalink / raw)
To: gongyq; +Cc: cgen
Hi -
On Tue, Aug 27, 2002 at 09:46:45PM +0800, gongyq wrote:
> [...]
> > % make ARCH=m32r ISA=m32r gas-test
>
> First, when I run make gas-test, I follow the rule you mention above.
> But the generated "gas-build.sh" file includes the following lines:
> [...]
> add:
> add fp,fp
> .text
> .global add3
> add3:
> add3 fp,fp,00
> .text
> .global and
> [...]
> Does this seem reasonable? (for you convenience I send you the file to check.)
I'll assume they're okay for now: you have other problems:
> [...]
> second, would you please tell me explicitly how to configure the assembler
> (you know, I use gas) for target(in my case, it might be m32r), because it
> isn't mentioned in the CGEN manual? Is it like this:
> "configure --target=m32r"? But when I try to configure in this way, I
> get many errors when I run make in the build directory, so I can't get
> the file "as-new".
Well, you need to overcome this problem. A properly target assembler is
essential to making progress: it is a prerequisite to building a new
test suite. Check out a copy of the whole binutils+cgen kit from the
sources.redhat.com /cvs/src repository, configure a build tree with
"--target=m32r", then run "make". Please report any build failures
if you cannot solve them by yourself.
- FChE
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: problems about "building a GAS test suite"
2002-08-27 1:45 龚 源泉
@ 2002-08-27 3:46 ` Frank Ch. Eigler
0 siblings, 0 replies; 3+ messages in thread
From: Frank Ch. Eigler @ 2002-08-27 3:46 UTC (permalink / raw)
To: ¹¨ ԴȪ; +Cc: cgen
Hi -
On Tue, Aug 27, 2002 at 04:45:39PM +0800, ¹¨ ôê wrote:
> [...]
> GAS test suite following the CGEN manual(take m32r for example):
> 1.cd to the CGEN build directory
> 2.make gas-test
For this step, it's important to ensure that cgen will pick the
right cpu model for generating the subsequent tests. For the
m32r, you may need to say
% make ARCH=m32r ISA=m32r gas-test
> [...]
> allinsn.s: Assembler messages:
> allinsn.s:8: Error: too many memory references for `add'
> allinsn.s:12: Error: no such instruction: `add3 fp,fp,00'
> allinsn.s:16: Error: too many memory references for `and'
> allinsn.s:20: Error: no such instruction: `and3 fp,fp,0'
> [...]
Very strange: I don't see any public cpu models that include an
"add3" instruction. Could you forward a copy of the generated
allinsn.s file?
Also, are you sure that the assembler being used is an assembler
configured for this same target?
- FChE
^ permalink raw reply [flat|nested] 3+ messages in thread
* problems about "building a GAS test suite"
@ 2002-08-27 1:45 龚 源泉
2002-08-27 3:46 ` Frank Ch. Eigler
0 siblings, 1 reply; 3+ messages in thread
From: 龚 源泉 @ 2002-08-27 1:45 UTC (permalink / raw)
To: cgen
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 2496 bytes --]
Dear Mr Ben,
Sorry for bothering you again, but I think I've met a big problem.
When I was building a
GAS test suite following the CGEN manual(take m32r for example):
1.cd to the CGEN build directory
2.make gas-test At this point two files have been created in the CGEN build
directory:
`gas-allinsn.exp' and `gas-build.sh'. The `gas-build.sh' script normally
requires one command
line argument: the location of your `gas' build directory. If this argument
is omitted, the
script searches in `../gas' automatically.
3.Copy `gas-allinsn.exp' to
`toplevel/gas/testsuite/gas/<arch>/allinsn.exp'.
4.sh gas-build.sh At this point directory tmpdir contains two files:
`allinsn.s' and
`allinsn.d'. File `allinsn.d' usually needs a bit of massaging.
5.Copy `tmpdir/allinsn.[sd]' to `toplevel/gas/testsuite/gas/<arch>'
6.Run make check in the `gas' build directory and massage things until
you're satisfied the
files are correct.
7.Check files into CVS.
I went through the first 3 steps successfully. In step 4, when I run "sh
gas-build.sh (the
directory where gas is build)", I got such error mssages:
allinsn.s: Assembler messages:
allinsn.s:8: Error: too many memory references for `add'
allinsn.s:12: Error: no such instruction: `add3 fp,fp,00'
allinsn.s:16: Error: too many memory references for `and'
allinsn.s:20: Error: no such instruction: `and3 fp,fp,0'
allinsn.s:24: Error: too many memory references for `or'
allinsn.s:28: Error: no such instruction: `or3 fp,fp,00'
allinsn.s:32: Error: too many memory references for `xor'
allinsn.s:36: Error: no such instruction: `xor3 fp,fp,0'
allinsn.s:40: Error: no such instruction: `addi fp,0'
allinsn.s:44: Error: no such instruction: `addv fp,fp'
allinsn.s:48: Error: no such instruction: `addv3 fp,fp,0'
...
I checked the file "gas-build.sh", it's head writes
#/bin/sh
# Generate test result data for m32r GAS testing.
# This script is machine generated.
# It is intended to be run in the testsuite source directory.
It sound's that the instructions given in this file should be m32r's
instructions, but why the
above message shows "no such instruction", where on earth does the
contradiction lie?
I'm very anxious to know the answer, thank you!
yours:Jacky
_________________________________________________________________
ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£http://www.hotmail.com/cn
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-08-27 14:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <002c01c24dd0$2ef01ee0$7f6f0e0a@gongyq>
2002-08-27 7:17 ` problems about "building a GAS test suite" Frank Ch. Eigler
2002-08-27 1:45 龚 源泉
2002-08-27 3:46 ` Frank Ch. Eigler
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).