summary refs log tree commit diff
path: root/lisc/lisc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lisc/lisc.h')
-rw-r--r--lisc/lisc.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h
index 2762eb7..9eb541a 100644
--- a/lisc/lisc.h
+++ b/lisc/lisc.h
@@ -230,28 +230,22 @@ enum Op {
 	OStorew,
 	OStoreh,
 	OStoreb,
-#define OStore  OStored
-#define OStore1 OStoreb
-	OLoadl,  /* needs to match OExt (mem.c) */
-	OLoadsw,
+#define isstore(o) (OStored <= o && o <= OStoreb)
+	OLoadsw,  /* needs to match OExt (mem.c) */
 	OLoaduw,
 	OLoadsh,
 	OLoaduh,
 	OLoadsb,
 	OLoadub,
-	OLoadd,
-	OLoads,
-#define OLoad  OLoadl
-#define OLoad1 OLoads
-	OExtl,
+	OLoad,
+#define isload(o) (OLoadsw <= o && o <= OLoad)
 	OExtsw,
 	OExtuw,
 	OExtsh,
 	OExtuh,
 	OExtsb,
 	OExtub,
-#define OExt  OExtl
-#define OExt1 OExtub
+#define isext(o) (OExtsw <= o && o <= OExtub)
 
 	OAlloc,
 	OAlloc1 = OAlloc + NAlign-1,