]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Ignore redundant REX prefix on 4 byte form of PMOVMSKB. BZ#294736.
authorTom Hughes <tom@compton.nu>
Fri, 24 Feb 2012 12:16:11 +0000 (12:16 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 24 Feb 2012 12:16:11 +0000 (12:16 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@2262

VEX/priv/guest_amd64_toIR.c

index c87cfab169bb3e4279a91c14a380b634feec21e2..b94d0b60a963efd8d473656e756de08cdca2bb9a 100644 (file)
@@ -12100,7 +12100,8 @@ Long dis_ESC_0F__SSE2 ( Bool* decode_OK,
       /* 0F D7 = PMOVMSKB -- extract sign bits from each of 8 lanes in
          mmx(G), turn them into a byte, and put zero-extend of it in
          ireg(G). */
-      if (haveNo66noF2noF3(pfx) && sz == 4) {
+      if (haveNo66noF2noF3(pfx)
+          && (sz == 4 || /* ignore redundant REX.W */ sz == 8)) {
          modrm = getUChar(delta);
          if (epartIsReg(modrm)) {
             do_MMX_preamble();