howardjack / distorm

Automatically exported from code.google.com/p/distorm
GNU General Public License v3.0
0 stars 0 forks source link

"VPCMPESTRI" shown as "VCMPESTRI" #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Disassemble these bytes in 64-bit mode:
c4 e3 79 61 d9 00

What is the expected output? What do you see instead?
Expect: vpcmpestri xmm3, xmm1, 0x0           
Get: vcmpestri xmm3, xmm1, 0x0 

What version of the product are you using? On what operating system?
3.1; Mac 10.6.8

Please provide any additional information below.

Looks like another typo in x86sets.py:

        Set("66, 0f, 3a, 61", ["VCMPESTRI"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
        Set("66, 0f, 3a, 60", ["VPCMPESTRM"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
        Set("66, 0f, 3a, 63", ["VPCMPISTRI"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)
        Set("66, 0f, 3a, 62", ["VPCMPISTRM"], [OPT.XMM, OPT.XMM128, OPT.IMM8], IFlag.MODRM_REQUIRED | IFlag._32BITS | IFlag.PRE_VEX)

Original issue reported on code.google.com by spa...@rotateright.com on 10 Feb 2012 at 5:38

GoogleCodeExporter commented 9 years ago

Original comment by distorm@gmail.com on 2 Mar 2012 at 9:42

GoogleCodeExporter commented 9 years ago
That looks good now:
$ ./a.out c4 e3 79 61 d9 00
   1: (   0) c4e37961d900             VPCMPESTRI XMM3, XMM1, 0x0

Original comment by spa...@rotateright.com on 6 Mar 2012 at 5:15