summary refs log tree commit diff
path: root/lisc/lisc.h
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-22 16:40:52 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-30 13:20:42 -0400
commit97db80da3133cd8d46038e3811a04d340d19ce98 (patch)
treed25d4eb72312073b08bc292ff3cbbfce424705b2 /lisc/lisc.h
parent475e90a3718da063809232c8c6717d7b3c581074 (diff)
downloadroux-97db80da3133cd8d46038e3811a04d340d19ce98.tar.gz
start work on fusing loads in arithmetic
Diffstat (limited to 'lisc/lisc.h')
-rw-r--r--lisc/lisc.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h
index efae900..f5283a8 100644
--- a/lisc/lisc.h
+++ b/lisc/lisc.h
@@ -5,6 +5,7 @@
 #include <string.h>
 
 typedef unsigned int uint;
+typedef unsigned short ushort;
 typedef unsigned long ulong;
 
 typedef struct Bits Bits;
@@ -177,10 +178,14 @@ enum Op {
 	OXSet,
 	OXSet1 = OXSet + NCmp-1,
 	OXTest,
-	OXScale1, /* memory addressing */
-	OXScale2,
-	OXScale3,
-	OXScale4,
+	OXScale01, /* memory addressing */
+	OXScale02,
+	OXScale04,
+	OXScale08,
+	OXScale11,
+	OXScale12,
+	OXScale14,
+	OXScale18,
 	NOp
 };
 
@@ -203,8 +208,8 @@ struct OpDesc {
 };
 
 struct Ins {
-	uint16_t op:15;
-	uint16_t wide:1;
+	ushort op:15;
+	ushort wide:1;
 	Ref to;
 	Ref arg[2];
 };