From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26751 invoked by alias); 16 Feb 2005 21:23:28 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 26715 invoked from network); 16 Feb 2005 21:23:22 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 16 Feb 2005 21:23:22 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j1GLNMmE013051; Wed, 16 Feb 2005 16:23:22 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j1GLNMO24466; Wed, 16 Feb 2005 16:23:22 -0500 Received: from [172.16.26.3] (vpn26-3.sfbay.redhat.com [172.16.26.3]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id j1GLNJ5s020359; Wed, 16 Feb 2005 16:23:20 -0500 Message-ID: <4213B9D1.3010708@redhat.com> Date: Wed, 16 Feb 2005 21:23:00 -0000 From: Dave Brolley User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) MIME-Version: 1.0 To: sid@sources.redhat.com, cgen@sources.redhat.com Subject: [commit] Add some rtl operations to SID Content-Type: multipart/mixed; boundary="------------040908030107080503030905" X-SW-Source: 2005-q1/txt/msg00019.txt.bz2 This is a multi-part message in MIME format. --------------040908030107080503030905 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 112 Hi, I've committed the attached patch which adds some operations that were needed by an internal port. Dave --------------040908030107080503030905 Content-Type: text/plain; name="sid-ops.ChangeLog" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sid-ops.ChangeLog" Content-length: 138 2005-02-16 Dave Brolley * cgen-ops.h (RUNCBIBI): New macro. (ADDOFQI): New function. (SUBOFQI): New function. --------------040908030107080503030905 Content-Type: text/plain; name="sid-ops.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sid-ops.patch.txt" Content-length: 1332 Index: sid/component/cgen-cpu/cgen-ops.h =================================================================== RCS file: /cvs/src/src/sid/component/cgen-cpu/cgen-ops.h,v retrieving revision 1.11 diff -c -p -r1.11 cgen-ops.h *** sid/component/cgen-cpu/cgen-ops.h 13 Jun 2003 19:58:08 -0000 1.11 --- sid/component/cgen-cpu/cgen-ops.h 16 Feb 2005 21:15:43 -0000 *************** namespace cgen { *** 251,256 **** --- 251,257 ---- #define ZEXTSIDI(x) ((DI) (USI) (x)) #define ZEXTDIDI(x) ((UDI) (x)) + #define TRUNCBIBI(x) ((BI) (x)) #define TRUNCQIBI(x) ((BI) (QI) (x)) #define TRUNCQIQI(x) ((QI) (x)) #define TRUNCHIBI(x) ((BI) (HI) (x)) *************** ADDCFDI (DI a, DI b, BI c) *** 407,412 **** --- 408,422 ---- } inline BI + ADDOFQI (QI a, QI b, BI c) + { + QI tmp = ADDQI (a, ADDQI (b, c)); + BI res = (((a < 0) == (b < 0)) + && ((a < 0) != (tmp < 0))); + return res; + } + + inline BI ADDOFHI (HI a, HI b, BI c) { HI tmp = ADDHI (a, ADDHI (b, c)); *************** SUBCFSI (SI a, SI b, BI c) *** 477,482 **** --- 487,501 ---- } inline BI + SUBOFQI (QI a, QI b, BI c) + { + QI tmp = SUBQI (a, ADDQI (b, c)); + BI res = (((a < 0) != (b < 0)) + && ((a < 0) != (tmp < 0))); + return res; + } + + inline BI SUBOFHI (HI a, HI b, BI c) { HI tmp = SUBHI (a, ADDHI (b, c)); --------------040908030107080503030905--