From: Julian Seward Date: Sun, 12 Oct 2003 08:38:36 +0000 (+0000) Subject: Implement DIVPS/DIVPD (Tom Hughes ) X-Git-Tag: svn/VALGRIND_2_1_0~145 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ffd1422161cc252b375b9a23e1be5100b762b20;p=thirdparty%2Fvalgrind.git Implement DIVPS/DIVPD (Tom Hughes ) MERGE TO STABLE git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1903 --- diff --git a/coregrind/vg_to_ucode.c b/coregrind/vg_to_ucode.c index c9b1025cd5..95e9bb10c8 100644 --- a/coregrind/vg_to_ucode.c +++ b/coregrind/vg_to_ucode.c @@ -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)