From: Julian Seward Date: Tue, 26 Apr 2005 01:52:01 +0000 (+0000) Subject: Add 64-bit comparisons. X-Git-Tag: svn/VALGRIND_3_0_1^2~193 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8f483ddc6869ebc77bf7b032fa6f66fb9b52c2a;p=thirdparty%2Fvalgrind.git Add 64-bit comparisons. git-svn-id: svn://svn.valgrind.org/vex/trunk@1141 --- diff --git a/VEX/priv/ir/irdefs.c b/VEX/priv/ir/irdefs.c index 2bc6f69e76..c50b0d1dd7 100644 --- a/VEX/priv/ir/irdefs.c +++ b/VEX/priv/ir/irdefs.c @@ -171,6 +171,11 @@ void ppIROp ( IROp op ) case Iop_CmpLT32U: vex_printf("CmpLT32U"); return; case Iop_CmpLE32U: vex_printf("CmpLE32U"); return; + case Iop_CmpLT64S: vex_printf("CmpLT64S"); return; + case Iop_CmpLE64S: vex_printf("CmpLE64S"); return; + case Iop_CmpLT64U: vex_printf("CmpLT64U"); return; + case Iop_CmpLE64U: vex_printf("CmpLE64U"); return; + case Iop_DivU32: vex_printf("DivU32"); return; case Iop_DivS32: vex_printf("DivS32"); return; @@ -1271,6 +1276,8 @@ void typeOfPrimop ( IROp op, IRType* t_dst, IRType* t_arg1, IRType* t_arg2 ) case Iop_CmpLT32U: case Iop_CmpLE32U: COMPARISON(Ity_I32); case Iop_CmpEQ64: case Iop_CmpNE64: + case Iop_CmpLT64S: case Iop_CmpLE64S: + case Iop_CmpLT64U: case Iop_CmpLE64U: COMPARISON(Ity_I64); case Iop_MullU8: case Iop_MullS8: diff --git a/VEX/pub/libvex_ir.h b/VEX/pub/libvex_ir.h index 41fb51d1d4..8036c7e916 100644 --- a/VEX/pub/libvex_ir.h +++ b/VEX/pub/libvex_ir.h @@ -230,10 +230,10 @@ typedef */ /* Ordering not important after here. */ - Iop_CmpLT32S, - Iop_CmpLE32S, - Iop_CmpLT32U, - Iop_CmpLE32U, + Iop_CmpLT32S, Iop_CmpLT64S, + Iop_CmpLE32S, Iop_CmpLE64S, + Iop_CmpLT32U, Iop_CmpLT64U, + Iop_CmpLE32U, Iop_CmpLE64U, /* Division */ /* TODO: clarify semantics wrt rounding, negative values, whatever */