]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Implement DIVPS/DIVPD (Tom Hughes <thh@cyberscience.com>)
authorJulian Seward <jseward@acm.org>
Sun, 12 Oct 2003 08:38:36 +0000 (08:38 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 12 Oct 2003 08:38:36 +0000 (08:38 +0000)
MERGE TO STABLE

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1903

coregrind/vg_to_ucode.c

index c9b1025cd5ab2206c20d7070c513eae1adc4275c..95e9bb10c87a3959237984af2fc86fb4836c5d40 100644 (file)
@@ -3905,6 +3905,20 @@ static Addr disInstr ( UCodeBlock* cb, Addr eip, Bool* isEnd )
       goto decode_success;
    }
 
+   /* DIVPS */
+   /* 0x66: DIVPD */
+   if (insn[0] == 0x0F && insn[1] == 0x5E) {
+      vg_assert(sz == 4 || sz == 2);
+      if (sz == 4) {
+         eip = dis_SSE2_reg_or_mem ( cb, sorb, eip+2, 16, "divps",
+                                         insn[0], insn[1] );
+      } else {
+         eip = dis_SSE3_reg_or_mem ( cb, sorb, eip+2, 16, "divpd",
+                                         0x66, insn[0], insn[1] );
+      }
+      goto decode_success;
+   }
+
    /* 0xF2: SUBSD */
    /* 0xF3: SUBSS */
    if ((insn[0] == 0xF2 || insn[0] == 0xF3)