problems about "building a GAS test suite"

龚 源泉 source_kong@hotmail.com
Tue Aug 27 01:45:00 GMT 2002


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



More information about the Cgen mailing list