This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [patch] opcodes/sparc-opc.c
- To: David Taylor <taylor at cygnus dot com>
- Subject: Re: [patch] opcodes/sparc-opc.c
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Tue, 11 Jul 2000 19:53:14 +0200
- Cc: binutils at sourceware dot cygnus dot com, Bill Clarke <llib at computer dot org>
- References: <200007111616.MAA26033@texas.cygnus.com>
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
On Tue, Jul 11, 2000 at 12:16:24PM -0400, David Taylor wrote:
> Well, not actually a patch, but it's obvious from his description how
> to change the offending two lines of opcodes/sparc-opc.c.
Here is a patch, it is an obvious typo, ok to commit?
Actually, if noone else is interested in maintaining SPARC port in binutils, I
could do that.
2000-07-11 Jakub Jelinek <jakub@redhat.com>
* sparc-opc.c (sparc_opcodes): popc has 0 in rs1, not rs2.
Reported by Bill Clarke <llib@computer.org>.
--- opcodes/sparc-opc.c.jj Fri Apr 14 06:16:58 2000
+++ opcodes/sparc-opc.c Tue Jul 11 19:30:44 2000
@@ -755,8 +755,8 @@ const struct sparc_opcode sparc_opcodes[
{ "scan", F3(2, 0x2c, 0), F3(~2, ~0x2c, ~0)|ASI(~0), "1,2,d", 0, sparclet|sparclite },
{ "scan", F3(2, 0x2c, 1), F3(~2, ~0x2c, ~1), "1,i,d", 0, sparclet|sparclite },
-{ "popc", F3(2, 0x2e, 0), F3(~2, ~0x2e, ~0)|RS2_G0|ASI(~0),"2,d", 0, v9 },
-{ "popc", F3(2, 0x2e, 1), F3(~2, ~0x2e, ~1)|RS2_G0, "i,d", 0, v9 },
+{ "popc", F3(2, 0x2e, 0), F3(~2, ~0x2e, ~0)|RS1_G0|ASI(~0),"2,d", 0, v9 },
+{ "popc", F3(2, 0x2e, 1), F3(~2, ~0x2e, ~1)|RS1_G0, "i,d", 0, v9 },
{ "clr", F3(2, 0x02, 0), F3(~2, ~0x02, ~0)|RD_G0|RS1_G0|ASI_RS2(~0), "d", F_ALIAS, v6 }, /* or %g0,%g0,d */
{ "clr", F3(2, 0x02, 1), F3(~2, ~0x02, ~1)|RS1_G0|SIMM13(~0), "d", F_ALIAS, v6 }, /* or %g0,0,d */
Jakub