binutils bug you reported (fwd)

Ian Lance Taylor ian@cygnus.com
Thu Sep 25 10:00:00 GMT 1997


   Date: Thu, 25 Sep 1997 07:38:20 -0500 (CDT)
   From: Joel Sherrill <joel@OARcorp.com>

   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.

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

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

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.

Ian



More information about the Gas2 mailing list