From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: joel@merlin.gcs.redstone.army.mil Cc: gas2@cygnus.com Subject: Re: PowerPC Instructions Date: Fri, 01 Dec 1995 13:56:00 -0000 Message-id: <199512012156.QAA17270@sanguine.cygnus.com> References: X-SW-Source: 1995/msg00205.html Date: Fri, 1 Dec 1995 15:19:15 -0600 (CST) From: Joel Sherrill 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