This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
[patch]: Add RORHI, ROLHI
- From: Dave Brolley <brolley at redhat dot com>
- To: sid at sources dot redhat dot com
- Date: Tue, 18 Dec 2001 20:08:51 -0500
- Subject: [patch]: Add RORHI, ROLHI
Hi,
I've committed this simple patch which adds RORHI and ROLHI operations
to the cgen rtl language.
Dave
2001-12-18 Dave Brolley <brolley@redhat.com>
* cgen-ops.h (ROLHI): New macro.
(RORHI): New macro.
Index: sid/component/cgen-cpu/cgen-ops.h
===================================================================
RCS file: /cvs/src/src/sid/component/cgen-cpu/cgen-ops.h,v
retrieving revision 1.7
diff -c -p -r1.7 cgen-ops.h
*** sid/component/cgen-cpu/cgen-ops.h 2001/12/17 20:35:09 1.7
--- sid/component/cgen-cpu/cgen-ops.h 2001/12/19 01:04:22
*************** namespace cgen {
*** 149,154 ****
--- 149,156 ----
// XXX: fill out families of functions
#define RORQI(x, y) (SRLQI((x), (y)) | SLLQI((x), 8-(y)))
#define ROLQI(x, y) (SLLQI((x), (y)) | SRLQI((x), 8-(y)))
+ #define RORHI(x, y) (SRLHI((x), (y)) | SLLHI((x), 16-(y)))
+ #define ROLHI(x, y) (SLLHI((x), (y)) | SRLHI((x), 16-(y)))
#define RORSI(x, y) (SRLSI((x), (y)) | SLLSI((x), 32-(y)))
#define ROLSI(x, y) (SLLSI((x), (y)) | SRLSI((x), 32-(y)))
#define JOINSIDI(x, y) (MAKEDI(x, y))