public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: Joel Sherrill <joel@OARcorp.com>
To: Ian Lance Taylor <ian@cygnus.com>
Cc: gas2@cygnus.com
Subject: Re: binutils bug you reported (fwd)
Date: Thu, 25 Sep 1997 10:28:00 -0000	[thread overview]
Message-ID: <Pine.BSF.3.96.970925122333.4107B-100000@vespucci.advicom.net> (raw)
In-Reply-To: <199709251700.NAA21402@subrogation.cygnus.com>

On Thu, 25 Sep 1997, Ian Lance Taylor wrote:
> 
>    2. 'tblu.w a0@,d0' won't assemble. The error message tells something about
> 	   'invalid operand'. The table lookup and interpolate opcode  
>    (tbls, tblsn,
> 	   tblu, tblun) allows two types of operands:
> 
> 	     eg:
> 		   tblu.<size>     <ea>,Dx
> 		   tblu.<size>     Dym:Dyn,Dx
> 
> Interesting.  My basic Motorola manual says that tbls does not permits
> a0@, although it does permit a0@-, and that is what gas implements.
> However, the manual also says that tblu permits both a0@ and a0@-, and
> gas does not implement that.


My reading of the 68000 Instruction Set Manual says that it is not
permitted which is consistent with the implementation.  But the CPU32
Reference Manual is pretty clear  in that a0@ is permitted for both
instructions but not a0@- or a0@+.  Sounds like the manual set is very
inconsistent.  It would be interesting to listen to someone at Motorola
squirm. :)

> I checked a CPU32 specific manual, and it says that both instructions
> support a0@, and neither supports a0@-.

That's my interpretation as well.

> I couldn't get any useful information from the Motorola web site.

No Surprise here.  They have a lot of stuff on their site but you can
never find what you are looking for.

> Since a0@- doesn't really make sense for these instructions, I'll
> change gas to not permit a0@-, but to permit a0@, for both.
> 
> Either way, the submitted patch is wrong, since it permits operand
> types which are not actually permitted.

Fine.  It sounds like whoover wrote the patch was not that knowledgeable
but knew there was a problem.  

Thanks.

--joel


      reply	other threads:[~1997-09-25 10:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-25  6:16 Joel Sherrill
1997-09-25 10:00 ` Ian Lance Taylor
1997-09-25 10:28   ` Joel Sherrill [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.BSF.3.96.970925122333.4107B-100000@vespucci.advicom.net \
    --to=joel@oarcorp.com \
    --cc=gas2@cygnus.com \
    --cc=ian@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).