public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [SH] Opcodes/Testsuite patch
@ 2005-01-14 19:21 Andrew STUBBS
  2005-01-17 14:09 ` Nick Clifton
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew STUBBS @ 2005-01-14 19:21 UTC (permalink / raw)
  To: 'Nick Clifton'; +Cc: binutils, Joern RENNECKE

[-- Attachment #1: Type: text/plain, Size: 2243 bytes --]

Hi Nick,

The attached patch (sorry it had to be gzipped due to size) adds a number of
new tests to the gas testsuite for the purpose of testing the instructions
and architectures defined in opcodes/sh-opc.h .

The patch is intended to be applied after the patch in
http://sources.redhat.com/ml/binutils/2005-01/msg00117.html .

I have included the correction I sent previously (in
http://sources.redhat.com/ml/binutils/2005-01/msg00108.html) that was
missing from your patch (I assume you didn't get it till too late).

I have modified the arch.exp test script such that it reads the
architectures and instructions from the source code (a few modifications had
to be made to facilitate this) and then checks that, for each architecture,
all the instructions that should assemble do assemble and that all those
that should not do not.

It also generates assembler files, containing all the valid instructions,
which are compared against those already in the testsuite to ensure that no
more changes can happen by accident. In theory, these files may alter in the
comments (copied from sh-opc.h), or in the ordering of the instructions, but
no instructions should ever need to be added or removed from any given
architecture (unless any more previously hidden instructions are revealed by
Renesas).

The new tests revealed yet another missing edge in the inheritance tree.
This has also been included in the patch.

I also discovered that the mul.l instruction was listed twice, once for sh2
and once (incorrectly) for sh1. I have removed the extra definition.

I have corrected the arch_expected files, where they were still wrong, and
added the sh2a and sh2a-nofpu architectures, which you had missed out
somehow. The linker testsuite has also been updated and needed a small fix
to deal with the relocations in the new files.

I am now happy that your patch and mine combined will fix all our problems.
Obviously, I'm not a maintainer so perhaps Joern should give his OK too. In
any case, if you are submitting the patches don't forget that there are four
new files and that the bfd header files will need regenerating.

Thanks

--
Andrew Stubbs
andrew.stubbs@st.com
andrew.stubbs@superh.com

[-- Attachment #2: sh.testsuite.patch.gz --]
[-- Type: application/octet-stream, Size: 104414 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [SH] Opcodes/Testsuite patch
  2005-01-14 19:21 [SH] Opcodes/Testsuite patch Andrew STUBBS
@ 2005-01-17 14:09 ` Nick Clifton
  2005-01-17 16:03   ` Andrew STUBBS
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Clifton @ 2005-01-17 14:09 UTC (permalink / raw)
  To: Andrew STUBBS; +Cc: binutils, Joern RENNECKE

Hi Andrew,

> The attached patch (sorry it had to be gzipped due to size) adds a number of
> new tests to the gas testsuite for the purpose of testing the instructions
> and architectures defined in opcodes/sh-opc.h .

Thanks - I have now applied this patch and checked it in.

Cheers
   Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [SH] Opcodes/Testsuite patch
  2005-01-17 14:09 ` Nick Clifton
@ 2005-01-17 16:03   ` Andrew STUBBS
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew STUBBS @ 2005-01-17 16:03 UTC (permalink / raw)
  To: 'Nick Clifton'; +Cc: binutils, 'Joern RENNECKE'

> Thanks - I have now applied this patch and checked it in.

Good. Hopefully that's out of the way now.

Now I suppose somebody ought to make the relevant changes to GDB so it can
load these new architectures.

--
Andrew Stubbs
andrew.stubbs@st.com
andrew.stubbs@superh.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-01-17 16:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-14 19:21 [SH] Opcodes/Testsuite patch Andrew STUBBS
2005-01-17 14:09 ` Nick Clifton
2005-01-17 16:03   ` Andrew STUBBS

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).