From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1022 invoked by alias); 3 May 2013 07:26:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 941 invoked by uid 89); 3 May 2013 07:26:24 -0000 X-Spam-SWARE-Status: No, score=-4.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 03 May 2013 07:26:23 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1UYANp-00023j-9l from Hafiz_Abid@mentor.com ; Fri, 03 May 2013 00:26:21 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 3 May 2013 00:26:21 -0700 Received: from abidh-ubunto1104 (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server (TLS) id 14.2.247.3; Fri, 3 May 2013 08:26:19 +0100 Date: Fri, 03 May 2013 07:26:00 -0000 From: "Abid, Hafiz" Subject: Re: [patch, sim] Add isel instruction To: Mike Frysinger CC: Joel Brobecker , In-Reply-To: <201304301309.48611.vapier@gentoo.org> (from vapier@gentoo.org on Tue Apr 30 18:09:41 2013) Message-ID: <1367565979.5163.0@abidh-ubunto1104> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; delsp=Yes; format=Flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-SW-Source: 2013-05/txt/msg00047.txt.bz2 On 30/04/13 18:09:41, Mike Frysinger wrote: > On Tuesday 30 April 2013 07:12:35 Abid, Hafiz wrote: > > On 30/04/13 12:05:14, Joel Brobecker wrote: > > > > Thansk for lettting me know. If this is urgent for you then I=20=20 > can > > > > revert as it may take me some time to find a fix. > > > > > > Do you have an idea of what "some time" would mean? > > > > By the end of this week. >=20 > i'm fine with that ... if it goes longer, then let's punt it > -mike It looks that isel was already supported in the simulator for the e500.=20= =20 The duplication caused the error that Joel observed. I will revert now=20=20 with the following. Thanks, Abid sim/ppc/ChangeLog: 2013-05-03 Hafiz Abid Qadeer revert: 2013-04-19 Nathan Froyd * ppc-instructions (isel): New instruction. diff --git a/sim/ppc/ppc-instructions b/sim/ppc/ppc-instructions index d76a765..1b8fd89 100644 --- a/sim/ppc/ppc-instructions +++ b/sim/ppc/ppc-instructions @@ -3455,19 +3455,6 @@=20=20 void::function::invalid_zero_divide_operation:cpu *proces PPC_INSN_MFCR(RT_BITMASK); # -# I.3.3.15 Fixed-Point Select -# - -0.31,6.RT,11.RA,16.RB,21.BF,26.15,31./:A::isel:Integer Select - unsigned_word a; - if (RA_is_0) a =3D 0; - else a =3D *rA; - if (CR & (1 << (31 - BF))) - *rT =3D a; - else - *rT =3D *rB; - -#