From: Julian Seward Date: Sat, 3 Jul 2004 19:52:16 +0000 (+0000) Subject: Track recent reg-alloc changes. X-Git-Tag: svn/VALGRIND_3_0_1^2~1288 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02fc8e76c46938e91224327a4d0a98a96ce0d0f3;p=thirdparty%2Fvalgrind.git Track recent reg-alloc changes. git-svn-id: svn://svn.valgrind.org/vex/trunk@46 --- diff --git a/VEX/test_main.c b/VEX/test_main.c index 7a1a92c790..99a8d7d9a5 100644 --- a/VEX/test_main.c +++ b/VEX/test_main.c @@ -69,7 +69,7 @@ int main ( void ) ppIRBB(stdout, bb); printf("\n"); - if (1) + if (0) vcode = iselBB_X86Instr(bb); else { @@ -84,6 +84,7 @@ int main ( void ) HReg edx = hregX86_EDX(); HReg ebp = hregX86_EBP(); vcode = newHInstrArray(); + vcode->n_vregs = 4; addHInstr(vcode, X86Instr_Alu32R(Xalu_MOV, X86RMI_Imm(0x10001), vr0)); @@ -130,7 +131,7 @@ int main ( void ) rcode = doRegisterAllocation(vcode, - rregs_to_use, 4, /* rregs */ + rregs_to_use, 3, /* rregs */ isMove_X86Instr, getRegUsage_X86Instr, mapRegs_X86Instr,