]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fast-track another case in calculate_eflags_c (needs verification).
authorJulian Seward <jseward@acm.org>
Wed, 20 Oct 2004 23:42:56 +0000 (23:42 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 20 Oct 2004 23:42:56 +0000 (23:42 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@395

VEX/priv/guest-x86/ghelpers.c

index 66e63b5a933a6e665343f18c27e2641897db54dc..a3d3d2dad383736246430967ad45f7c923f0a68e 100644 (file)
@@ -498,6 +498,8 @@ static UInt calculate_eflags_c ( UInt cc_op, UInt cc_src, UInt cc_dst )
       return 0;
    if (cc_op == CC_OP_DECL)
       return cc_src;
+   if (cc_op == CC_OP_SUBL)
+      return ( ((UInt)cc_src) < ((UInt)cc_dst) ) & CC_MASK_C;
 
 #  if PROFILE_EFLAGS
    if (!initted)