[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: h8300 assembler
From: |
Nick Clifton |
Subject: |
Re: h8300 assembler |
Date: |
Mon, 07 Jul 2003 10:26:43 +0100 |
User-agent: |
Gnus/5.1001 (Gnus v5.10.1) Emacs/21.2 (gnu/linux) |
Hi Paul,
> This bug was in binutils 2.13.2 and before. It is not present in 2.14
> Can you point me to information on how to write testcases?
The only real information is the test cases themselves.
For example have a look at the gas/testsuite/gas/h8300 directory.
There are lots of files here. The *.s files are the assembler
sources. The *.exp files are the test scripts use to drive the
testsuite.
Typically a new test is added by creating a new *.s file and then
adding a new procedure to h8300.exp to assemble the file and check the
output.
Note - you could also save yourself some time by making use of the
"run_dump_test" procedure that is available. Have a look in
h8300-elf.exp for a few examples of it in use. The difference with
this procedure is that for each test it runs as well as a *.s file
there is also a corresponding *.d file that contains the regular
expressions to match the disassembled output. (eg h8sx_mov_imm.s and
h8sx_mov_imm.d). These can be easier to write and maintain than the
tcl code in the *.exp scripts.
Cheers
Nick