From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 513 invoked by alias); 31 Mar 2006 11:21:16 -0000 Received: (qmail 504 invoked by uid 22791); 31 Mar 2006 11:21:16 -0000 X-Spam-Check-By: sourceware.org Received: from lug-owl.de (HELO lug-owl.de) (195.71.106.12) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 31 Mar 2006 11:21:14 +0000 Received: by lug-owl.de (Postfix, from userid 1001) id 0D5C7F003D; Fri, 31 Mar 2006 13:21:11 +0200 (CEST) Date: Fri, 31 Mar 2006 11:44:00 -0000 From: Jan-Benedict Glaw To: Nick Clifton Cc: binutils@sourceware.org, Sergey Ilyevsky Subject: Re: [PR 2494] PDP-11: Wrong opcode for SEC/CLC Message-ID: <20060331112110.GJ22210@lug-owl.de> References: <20060331083601.GG22210@lug-owl.de> <7bf3ae9d0603310312y3cbdaebcv85d04897415d046d@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="07FIeBX8hApXX6Bi" Content-Disposition: inline In-Reply-To: <7bf3ae9d0603310312y3cbdaebcv85d04897415d046d@mail.gmail.com> X-Operating-System: Linux mail 2.6.12.3lug-owl X-gpg-fingerprint: 250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB X-gpg-key: wwwkeys.de.pgp.net X-Echelon-Enable: howto poison arsenous mail psychological biological nuclear warfare test the bombastical terror of flooding the spy listeners explosion sex drugs and rock'n'roll X-TKUeV: howto poison arsenous mail psychological biological nuclear warfare test the bombastical terror of flooding the spy listeners explosion sex drugs and rock'n'roll User-Agent: Mutt/1.5.9i X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00372.txt.bz2 --07FIeBX8hApXX6Bi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2275 Hi Nick! On Fri, 2006-03-31 13:12:21 +0200, Sergey Ilyevsky wro= te: > 2006/3/31, Jan-Benedict Glaw : > > I was asked to have a look at > > http://sourceware.org/bugzilla/show_bug.cgi?id=3D2494 . The bug > > reporter complains about SEC (set carry) being used by his assembler, > > but the final output generates CLC (clear carry.) This preliminary > > patch should fix it, but it's untested (and I'm not actually a PDP11 > > maintainer.) The new opcode was taken out of my "VAX Architecture > > Reference Manual", EY-3459E-DP, 0-932376-86-X, p. 326 (PDP-11 > > Compatibility Mode, Condition Code Operators.) > > > > 2006-03-31 Jan-Benedict Glaw > > > > opcodes/ > > * pdp11-opc.c (pdp11_opcodes): Correct binary representation of= SEC. > > > > diff -Nurp src-binutils-fresh/opcodes/pdp11-opc.c src-binutils-hacked/o= pcodes/pdp11-opc.c > > --- src-binutils-fresh/opcodes/pdp11-opc.c 2005-05-07 09:34:30.000= 000000 +0200 > > +++ src-binutils-hacked/opcodes/pdp11-opc.c 2006-03-31 10:13:39.000= 000000 +0200 > > @@ -50,7 +50,7 @@ const struct pdp11_opcode pdp11_opcodes[ > > { "cl_e", 0x00ae, 0xffff, PDP11_OPCODE_NO_OPS, PDP11_BASIC }, > > { "ccc", 0x00af, 0xffff, PDP11_OPCODE_NO_OPS, PDP11_BASIC }, > > { "se_0", 0x00b0, 0xffff, PDP11_OPCODE_NO_OPS, PDP11_BASIC }, > > - { "sec", 0x00a1, 0xffff, PDP11_OPCODE_NO_OPS, PDP11_BASIC }, > > + { "sec", 0x00b1, 0xffff, PDP11_OPCODE_NO_OPS, PDP11_BASIC }, > > { "sev", 0x00b2, 0xffff, PDP11_OPCODE_NO_OPS, PDP11_BASIC }, > > { "se_3", 0x00b3, 0xffff, PDP11_OPCODE_NO_OPS, PDP11_BASIC }, > > { "sez", 0x00b4, 0xffff, PDP11_OPCODE_NO_OPS, PDP11_BASIC }, > Actually I don't have pdp11 as well ;-) . > I'm using the assembler on i686. > With the patch it works fine. May I check this in under the obvious rule? MfG, JBG --=20 Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 = _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg = _ _ O f=C3=BCr einen Freien Staat voll Freier B=C3=BCrger" | im Internet! | i= m Irak! O O O ret =3D do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA)= ); --07FIeBX8hApXX6Bi Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFELRCmHb1edYOZ4bsRAoMBAKCDDOHqOifXAfzk+VHUaeZIplfl6gCfVpkW begR4GrJooEU3vNv9iXwpAg= =8rEu -----END PGP SIGNATURE----- --07FIeBX8hApXX6Bi--