]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add 64-bit comparisons.
authorJulian Seward <jseward@acm.org>
Tue, 26 Apr 2005 01:52:01 +0000 (01:52 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 26 Apr 2005 01:52:01 +0000 (01:52 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@1141

VEX/priv/ir/irdefs.c
VEX/pub/libvex_ir.h

index 2bc6f69e76f3014740e2ec5da1938c3e7469439a..c50b0d1dd71f52736235016f9654d315c6c24dba 100644 (file)
@@ -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:
index 41fb51d1d4192bac1b4c4d6416213447a354cd98..8036c7e916cfa6e291d5731ac68685e1d1edb8c5 100644 (file)
@@ -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 */