public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: Dave Brolley <brolley@redhat.com>
To: sid@sources.redhat.com, cgen@sources.redhat.com
Subject: [commit] Add some rtl operations to SID
Date: Wed, 16 Feb 2005 21:23:00 -0000	[thread overview]
Message-ID: <4213B9D1.3010708@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 112 bytes --]

Hi,

I've committed the attached patch which adds some operations that were 
needed by an internal port.

Dave


[-- Attachment #2: sid-ops.ChangeLog --]
[-- Type: text/plain, Size: 138 bytes --]

2005-02-16  Dave Brolley  <brolley@redhat.com>

	* cgen-ops.h (RUNCBIBI): New macro.
	(ADDOFQI): New function.
	(SUBOFQI): New function.


[-- Attachment #3: sid-ops.patch.txt --]
[-- Type: text/plain, Size: 1332 bytes --]

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));

                 reply	other threads:[~2005-02-16 21:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4213B9D1.3010708@redhat.com \
    --to=brolley@redhat.com \
    --cc=cgen@sources.redhat.com \
    --cc=sid@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).