From: Paul Floyd Date: Mon, 16 Sep 2024 06:07:15 +0000 (+0200) Subject: Comments: update comments added for Bug 492663 X-Git-Tag: VALGRIND_3_24_0~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=508c6f6376193cc2a824f9237c1107d60c9eebc0;p=thirdparty%2Fvalgrind.git Comments: update comments added for Bug 492663 --- diff --git a/VEX/priv/guest_amd64_helpers.c b/VEX/priv/guest_amd64_helpers.c index 9997b4266..b4e37fcbd 100644 --- a/VEX/priv/guest_amd64_helpers.c +++ b/VEX/priv/guest_amd64_helpers.c @@ -1143,7 +1143,7 @@ IRExpr* guest_amd64_spechelper ( const HChar* function_name, /* 4, */ if (isU64(cc_op, AMD64G_CC_OP_ADDL) && isU64(cond, AMD64CondZ)) { - /* long long add, then Z --> test ((int)(dst+src) == 0) */ + /* long add, then Z --> test ((int)(dst+src) == 0) */ return unop(Iop_1Uto64, binop(Iop_CmpEQ32, unop(Iop_64to32, binop(Iop_Add64, cc_dep1, cc_dep2)), @@ -1181,7 +1181,7 @@ IRExpr* guest_amd64_spechelper ( const HChar* function_name, /* 4, */ if (isU64(cc_op, AMD64G_CC_OP_ADDW) && isU64(cond, AMD64CondZ)) { - /* long long add, then Z --> test ((short)(dst+src) == 0) */ + /* word add, then Z --> test ((short)(dst+src) == 0) */ return unop(Iop_1Uto64, binop(Iop_CmpEQ16, unop(Iop_64to16, binop(Iop_Add64, cc_dep1, cc_dep2)), @@ -1192,7 +1192,7 @@ IRExpr* guest_amd64_spechelper ( const HChar* function_name, /* 4, */ if (isU64(cc_op, AMD64G_CC_OP_ADDB) && isU64(cond, AMD64CondZ)) { - /* long long add, then Z --> test ((char)(dst+src) == 0) */ + /* byte add, then Z --> test ((char)(dst+src) == 0) */ return unop(Iop_1Uto64, binop(Iop_CmpEQ8, unop(Iop_64to8, binop(Iop_Add64, cc_dep1, cc_dep2)), @@ -1307,7 +1307,7 @@ IRExpr* guest_amd64_spechelper ( const HChar* function_name, binop(Iop_CmpLE64S, cc_dep1, cc_dep2)); } if (isU64(cc_op, AMD64G_CC_OP_SUBQ) && isU64(cond, AMD64CondNLE)) { - /* long sub/cmp, then NLE (signed greater than) + /* long long sub/cmp, then NLE (signed greater than) --> test !(dst <=s src) --> test (dst >s src) --> test (src