From: Julian Seward Date: Tue, 27 Jan 2015 23:09:23 +0000 (+0000) Subject: Add ILGop_Ident64 to enum type IRLoadGOp so as to make it X-Git-Tag: svn/VALGRIND_3_11_0^2~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=591190dbb61afa941a8006c6d912d9d281d13de3;p=thirdparty%2Fvalgrind.git Add ILGop_Ident64 to enum type IRLoadGOp so as to make it possible to represent 64 bit conditional loads in IR. git-svn-id: svn://svn.valgrind.org/vex/trunk@3074 --- diff --git a/VEX/priv/ir_defs.c b/VEX/priv/ir_defs.c index 9dbe2acab3..5b2b75022b 100644 --- a/VEX/priv/ir_defs.c +++ b/VEX/priv/ir_defs.c @@ -1456,6 +1456,7 @@ void ppIRLoadGOp ( IRLoadGOp cvt ) { switch (cvt) { case ILGop_INVALID: vex_printf("ILGop_INVALID"); break; + case ILGop_Ident64: vex_printf("Ident64"); break; case ILGop_Ident32: vex_printf("Ident32"); break; case ILGop_16Uto32: vex_printf("16Uto32"); break; case ILGop_16Sto32: vex_printf("16Sto32"); break; @@ -3495,6 +3496,8 @@ void typeOfIRLoadGOp ( IRLoadGOp cvt, /*OUT*/IRType* t_res, /*OUT*/IRType* t_arg ) { switch (cvt) { + case ILGop_Ident64: + *t_res = Ity_I64; *t_arg = Ity_I64; break; case ILGop_Ident32: *t_res = Ity_I32; *t_arg = Ity_I32; break; case ILGop_16Uto32: case ILGop_16Sto32: diff --git a/VEX/pub/libvex_ir.h b/VEX/pub/libvex_ir.h index 3c998d04cc..bd97f87102 100644 --- a/VEX/pub/libvex_ir.h +++ b/VEX/pub/libvex_ir.h @@ -2566,6 +2566,7 @@ typedef typedef enum { ILGop_INVALID=0x1D00, + ILGop_Ident64, /* 64 bit, no conversion */ ILGop_Ident32, /* 32 bit, no conversion */ ILGop_16Uto32, /* 16 bit load, Z-widen to 32 */ ILGop_16Sto32, /* 16 bit load, S-widen to 32 */