summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-07-24 09:32:26 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:29 -0400
commit36da4b30cc13f7b482171ac6fff716078dd53009 (patch)
treef6128eb51cfa7f198f9de8d2fd3f69fb56ff0abb
parentdf0836e47565d99632e67f9b9fb62dec52a5b73a (diff)
downloadroux-36da4b30cc13f7b482171ac6fff716078dd53009.tar.gz
test isel
-rw-r--r--lisc/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisc/main.c b/lisc/main.c
index bda7d90..d7a2e36 100644
--- a/lisc/main.c
+++ b/lisc/main.c
@@ -74,11 +74,17 @@ main(int ac, char *av[])
 		pr = 0;
 		break;
 	}
+	case 'i': {
+		fprintf(stderr, "[Testing Instruction Selection]\n");
+		isel(fn);
+		break;
+	}
 	case 's': {
 		Blk *b;
 
 		fprintf(stderr, "[Testing Spilling]\n");
 		debug['S'] = 1;
+		isel(fn);
 		fillrpo(fn);
 		fillpreds(fn);
 		filllive(fn);
@@ -90,7 +96,8 @@ main(int ac, char *av[])
 				b->name, b->loop);
 			dumpss(&b->out, fn->sym, stdout);
 		}
-		pr = 0;
+		printf("\n");
+		pr = 1;
 		break;
 	}
 	default: