Reorder tests poking around in the x86 instruction stream (sigh)
in order to try and avoid segfaults when we back up over a page
boundary.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11761 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/exp-sgcheck/sg_main.c b/exp-sgcheck/sg_main.c
index f125abe..ea384c9 100644
--- a/exp-sgcheck/sg_main.c
+++ b/exp-sgcheck/sg_main.c
@@ -2135,9 +2135,9 @@
 #if defined(VGA_x86)
    { UChar* p = (UChar*)curr_IP;
      // pop %ebp; RET
-     if (p[-1] == 0x5d && p[0] == 0xc3) return;
+     if (p[0] == 0xc3 && p[-1] == 0x5d) return;
      // pop %ebp; RET $imm16
-     if (p[-1] == 0x5d && p[0] == 0xc2) return;
+     if (p[0] == 0xc2 && p[-1] == 0x5d) return;
      // PUSH %EBP; mov %esp,%ebp
      if (p[0] == 0x55 && p[1] == 0x89 && p[2] == 0xe5) return;
    }