More stuff.
git-svn-id: svn://svn.valgrind.org/vex/trunk@64 8f6e269a-dfd6-0310-a8e1-e2731360e62c
diff --git a/priv/main/vex_main.c b/priv/main/vex_main.c
index edd3fcf..52b4537 100644
--- a/priv/main/vex_main.c
+++ b/priv/main/vex_main.c
@@ -94,6 +94,7 @@
IRBB* irbb;
HInstrArray* vcode;
HInstrArray* rcode;
+ Int i;
vassert(vex_initdone);
LibVEX_Clear(False);
@@ -145,6 +146,13 @@
/* Turn it into virtual-registerised code. */
vcode = iselBB ( irbb );
+ vex_printf("\n-------- Virtual registerised code --------\n");
+ for (i = 0; i < vcode->arr_used; i++) {
+ ppInstr(vcode->arr[i]);
+ vex_printf("\n");
+ }
+ vex_printf("\n");
+
/* Register allocate. */
rcode = doRegisterAllocation ( vcode, available_real_regs,
n_available_real_regs,
@@ -152,6 +160,13 @@
genSpill, genReload,
ppInstr, ppReg );
+ vex_printf("\n-------- Post-regalloc code --------\n");
+ for (i = 0; i < rcode->arr_used; i++) {
+ ppInstr(rcode->arr[i]);
+ vex_printf("\n");
+ }
+ vex_printf("\n");
+
/* Assemble, etc. */
LibVEX_Clear(True);