]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix incorrect register-number constraint check for LDAEX{,B,H,D}
authorJulian Seward <jseward@acm.org>
Wed, 19 Oct 2016 07:39:22 +0000 (07:39 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 19 Oct 2016 07:39:22 +0000 (07:39 +0000)
introduced in r3248.  Spotted by Clang-3.8.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3272

VEX/priv/guest_arm_toIR.c

index 6ce200603cee0cd4d8c90a9d674032c8b4a8b497..4b571070b920ff0bb64de3f36c44c8a3bf1a0a29 100644 (file)
@@ -13329,7 +13329,7 @@ static Bool decode_V8_instruction (
            if (szBlg2 < 3) {
               if (! (tt != 15 && nn != 15)) gate = False;
            } else {
-              if (! (tt & 1) == 0 && tt != 14 && nn != 15) gate = False;
+              if (! ((tt & 1) == 0 && tt != 14 && nn != 15)) gate = False;
               vassert(tt2 == 16/*invalid*/);
               tt2 = tt + 1;
            }