summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-08-24 17:53:30 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:32 -0400
commitf6349f4b6e46d5e8cd8ab41953c9e89f8684f5bc (patch)
treeee475be56bd29ff4e159602e19d56bf135a42da2 /lisc
parent5b93eb644a10ec98d3155a05a1a5509b3167700c (diff)
downloadroux-f6349f4b6e46d5e8cd8ab41953c9e89f8684f5bc.tar.gz
get rid of OTrunc
Diffstat (limited to 'lisc')
-rw-r--r--lisc/isel.c4
-rw-r--r--lisc/lisc.h1
-rw-r--r--lisc/parse.c1
3 files changed, 0 insertions, 6 deletions
diff --git a/lisc/isel.c b/lisc/isel.c
index a310d58..795380a 100644
--- a/lisc/isel.c
+++ b/lisc/isel.c
@@ -159,9 +159,6 @@ sel(Ins i, Fn *fn)
 	case OZext:
 		n = 0;
 		goto Emit;
-	case OTrunc:
-		n = 1;
-		goto Emit;
 	case OAdd:
 	case OSub:
 	case OMul:
@@ -262,7 +259,6 @@ flagi(Ins *i0, Ins *i)
 		case OCopy: /* flag-transparent */
 		case OSext:
 		case OZext:
-		case OTrunc:
 		case OStorel:
 		case OStorew:
 		case OStoreb:
diff --git a/lisc/lisc.h b/lisc/lisc.h
index a5312aa..81d3280 100644
--- a/lisc/lisc.h
+++ b/lisc/lisc.h
@@ -113,7 +113,6 @@ enum Op {
 	OAnd,
 	OSext,
 	OZext,
-	OTrunc,
 	OCmp,
 	OCmp1 = OCmp + NCmp-1,
 	OStorel,
diff --git a/lisc/parse.c b/lisc/parse.c
index 94d07ab..1508063 100644
--- a/lisc/parse.c
+++ b/lisc/parse.c
@@ -20,7 +20,6 @@ OpDesc opdesc[NOp] = {
 	[OAnd]    = { "and",    2, 2 },
 	[OSext]   = { "sext",   1, 1 },
 	[OZext]   = { "zext",   1, 1 },
-	[OTrunc]  = { "trunc",  1, 1 },
 	[OStorel] = { "storel", 2, 0 },
 	[OStorew] = { "storew", 2, 0 },
 	[OStores] = { "stores", 2, 0 },