|
From: <sv...@va...> - 2006-05-25 17:08:15
|
Author: sewardj
Date: 2006-05-25 18:08:03 +0100 (Thu, 25 May 2006)
New Revision: 1625
Log:
Comment-only change.
Modified:
trunk/priv/guest-x86/ghelpers.c
Modified: trunk/priv/guest-x86/ghelpers.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/priv/guest-x86/ghelpers.c 2006-05-25 01:04:05 UTC (rev 1624)
+++ trunk/priv/guest-x86/ghelpers.c 2006-05-25 17:08:03 UTC (rev 1625)
@@ -878,7 +878,7 @@
/*---------------- SUBW ----------------*/
=20
if (isU32(cc_op, X86G_CC_OP_SUBW) && isU32(cond, X86CondZ)) {
- /* byte sub/cmp, then Z --> test dst=3D=3Dsrc */
+ /* word sub/cmp, then Z --> test dst=3D=3Dsrc */
return unop(Iop_1Uto32,
binop(Iop_CmpEQ16,=20
unop(Iop_32to16,cc_dep1),=20
@@ -904,7 +904,7 @@
}
=20
if (isU32(cc_op, X86G_CC_OP_SUBB) && isU32(cond, X86CondNBE)) {
- /* long sub/cmp, then NBE (unsigned greater than)
+ /* byte sub/cmp, then NBE (unsigned greater than)
--> test src <u dst */
/* Note, args are opposite way round from the usual */
return unop(Iop_1Uto32,
@@ -915,9 +915,9 @@
=20
if (isU32(cc_op, X86G_CC_OP_SUBB) && isU32(cond, X86CondS)
&& isU32(cc_dep2, 0)) {
- /* long sub/cmp, then S --> test (dst-0 <s 0)=20
- --> test dst <s 0
- --> (UInt)dst[7]=20
+ /* byte sub/cmp of zero, then S --> test (dst-0 <s 0)=20
+ --> test dst <s 0
+ --> (UInt)dst[7]=20
This is yet another scheme by which gcc figures out if the
top bit of a byte is 1 or 0. See also LOGICB/CondS below. *=
/
/* Note: isU32(cc_dep2, 0) is correct, even though this is
@@ -979,7 +979,7 @@
/*---------------- LOGICW ----------------*/
=20
if (isU32(cc_op, X86G_CC_OP_LOGICW) && isU32(cond, X86CondZ)) {
- /* byte and/or/xor, then Z --> test dst=3D=3D0 */
+ /* word and/or/xor, then Z --> test dst=3D=3D0 */
return unop(Iop_1Uto32,
binop(Iop_CmpEQ32, binop(Iop_And32,cc_dep1,mkU32(0x=
FFFF)),=20
mkU32(0)));
|