This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PowerPC Instructions


   Date: Fri, 1 Dec 1995 15:19:15 -0600 (CST)
   From: Joel Sherrill <joel@merlin.gcs.redstone.army.mil>

   I have a user submitted port of RTEMS to the PowerPC (IBM 403) and it uses
   some instructions (or alternate names) he added to his local gas.  I am
   using binutils 2.6 configured for powerpc-elf.  I know of the following
   based on the error messages: 

   /usr1/tmp/cca004pL.s: Assembler messages:
   /usr1/tmp/cca004pL.s:54: Error: Unrecognized opcode: `mtsprg3'
   /usr1/tmp/cca004pL.s:56: Error: Unrecognized opcode: `mtsprg2'
   /usr1/tmp/cca004pL.s:131: Error: Unrecognized opcode: `mtexier'
   /usr1/tmp/cca004pL.s:137: Error: Unrecognized opcode: `mttsr'
   /usr1/tmp/cca004pL.s:143: Error: Unrecognized opcode: `mttsr'

These are all ``move to special register'' instructions.  If you can
find out the appropriate special register number, it should be
possible to replace them all with the mtspr instruction.

Incidentally, gas already supports mtsprg with two operands.  I don't
know what the other two are.

If these are standard instructions for the 403, then you should patch
opcodes/ppc-opc.c and send in the patch.  Look for mtmq to see the
mtspr variants.

Ian