public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: Dave Brolley <brolley@redhat.com>
To: Dave Brolley <brolley@redhat.com>
Cc: cgen@sources.redhat.com
Subject: Re: [patch][rfa] Add ltu,leu,gtu,geu support for unsigned modes
Date: Tue, 06 May 2003 21:57:00 -0000	[thread overview]
Message-ID: <3EB82FD9.2070904@redhat.com> (raw)
In-Reply-To: <3EB80E66.70402@redhat.com>

Approved by fche and committed.

Dave Brolley wrote:

> Hi,
>
> The attached patch adds support for the unsigned modes (UQI, UHI, USI, 
> UDI, UINT) for the cgen rtl ops ltu, leu, gtu and geu. These calls can 
> be generated by code like
>
> (if (ltu (zext UDI op1) (zext UDI op2 ))(set op3 op1 ))
>
> ok to commit?
>
> Dave
>
>
>------------------------------------------------------------------------
>
>Index: sid/component/cgen-cpu/cgen-ops.h
>===================================================================
>RCS file: /cvs/src/src/sid/component/cgen-cpu/cgen-ops.h,v
>retrieving revision 1.9
>diff -c -p -r1.9 cgen-ops.h
>*** sid/component/cgen-cpu/cgen-ops.h	1 Feb 2002 01:19:43 -0000	1.9
>--- sid/component/cgen-cpu/cgen-ops.h	6 May 2003 19:27:42 -0000
>*************** namespace cgen {
>*** 55,60 ****
>--- 55,64 ----
>  #define LEUQI(x, y) ((UQI) (x) <= (UQI) (y))
>  #define GTUQI(x, y) ((UQI) (x) > (UQI) (y))
>  #define GEUQI(x, y) ((UQI) (x) >= (UQI) (y))
>+ #define LTUUQI(x, y) ((UQI) (x) < (UQI) (y))
>+ #define LEUUQI(x, y) ((UQI) (x) <= (UQI) (y))
>+ #define GTUUQI(x, y) ((UQI) (x) > (UQI) (y))
>+ #define GEUUQI(x, y) ((UQI) (x) >= (UQI) (y))
>  #define ABSQI(x)  ((x) > 0 ? (x) : -(x))
>  
>  #define ADDHI(x, y) ((x) + (y))
>*************** namespace cgen {
>*** 83,88 ****
>--- 87,96 ----
>  #define LEUHI(x, y) ((UHI) (x) <= (UHI) (y))
>  #define GTUHI(x, y) ((UHI) (x) > (UHI) (y))
>  #define GEUHI(x, y) ((UHI) (x) >= (UHI) (y))
>+ #define LTUUHI(x, y) ((UHI) (x) < (UHI) (y))
>+ #define LEUUHI(x, y) ((UHI) (x) <= (UHI) (y))
>+ #define GTUUHI(x, y) ((UHI) (x) > (UHI) (y))
>+ #define GEUUHI(x, y) ((UHI) (x) >= (UHI) (y))
>  #define ABSHI(x)  ((x) > 0 ? (x) : -(x))
>  
>  #define ADDSI(x, y) ((x) + (y))
>*************** namespace cgen {
>*** 111,116 ****
>--- 119,128 ----
>  #define LEUSI(x, y) ((USI) (x) <= (USI) (y))
>  #define GTUSI(x, y) ((USI) (x) > (USI) (y))
>  #define GEUSI(x, y) ((USI) (x) >= (USI) (y))
>+ #define LTUUSI(x, y) ((USI) (x) < (USI) (y))
>+ #define LEUUSI(x, y) ((USI) (x) <= (USI) (y))
>+ #define GTUUSI(x, y) ((USI) (x) > (USI) (y))
>+ #define GEUUSI(x, y) ((USI) (x) >= (USI) (y))
>  #define ABSSI(x)  ((x) > 0 ? (x) : -(x))
>  
>  #define ADDDI(x, y) ((x) + (y))
>*************** namespace cgen {
>*** 139,150 ****
>--- 151,171 ----
>  #define LEUDI(x, y) ((UDI) (x) <= (UDI) (y))
>  #define GTUDI(x, y) ((UDI) (x) > (UDI) (y))
>  #define GEUDI(x, y) ((UDI) (x) >= (UDI) (y))
>+ #define LTUUDI(x, y) ((UDI) (x) < (UDI) (y))
>+ #define LEUUDI(x, y) ((UDI) (x) <= (UDI) (y))
>+ #define GTUUDI(x, y) ((UDI) (x) > (UDI) (y))
>+ #define GEUUDI(x, y) ((UDI) (x) >= (UDI) (y))
>  #define ABSDI(x)  ((x) > 0 ? (x) : -(x))
>  
>  #define LTUINT(x, y) ((UINT) (x) < (UINT) (y))
>  #define LEUINT(x, y) ((UINT) (x) <= (UINT) (y))
>  #define GTUINT(x, y) ((UINT) (x) > (UINT) (y))
>  #define GEUINT(x, y) ((UINT) (x) >= (UINT) (y))
>+ 
>+ #define LTUUINT(x, y) ((UINT) (x) < (UINT) (y))
>+ #define LEUUINT(x, y) ((UINT) (x) <= (UINT) (y))
>+ #define GTUUINT(x, y) ((UINT) (x) > (UINT) (y))
>+ #define GEUUINT(x, y) ((UINT) (x) >= (UINT) (y))
>  
>  // XXX: fill out families of functions
>  #define RORQI(x, y) (SRLQI((x), (y)) | SLLQI((x), 8-(y)))
>


  reply	other threads:[~2003-05-06 21:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-06 19:35 Dave Brolley
2003-05-06 21:57 ` Dave Brolley [this message]
2003-05-06 22:42 ` Ben Elliston
2003-05-08 17:17 ` Doug Evans
2003-05-08 18:18   ` Dave Brolley
2003-05-09 16:17     ` Doug Evans
2003-06-13 20:02     ` Dave Brolley

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=3EB82FD9.2070904@redhat.com \
    --to=brolley@redhat.com \
    --cc=cgen@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).