gdabah / distorm

Powerful Disassembler Library For x86/AMD64
Other
1.26k stars 238 forks source link

VTESTPS and VTESTPD are shown as "VPTESTPS" and "VPTESTPD" #41

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 c2 7d 0e 01         
c4 c2 7d 0f 01            

What is the expected output? What do you see instead?
Expect:
VTESTPS YMM0, [ECX]
VTESTPD YMM0, [ECX]

Get:
VPTESTPS YMM0, [ECX]
VPTESTPD YMM0, [ECX]

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 a simple typo of the mnemonic name in x86sets.py.

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

GoogleCodeExporter commented 9 years ago

Original comment by distorm@gmail.com on 4 Mar 2012 at 5:29

GoogleCodeExporter commented 9 years ago
Thx! That looks correct:
$ ./a.out c4 c2 7d 0f 01
   1: (   0) c4c27d0f01               VTESTPD YMM0, [R9]
$ ./a.out c4 c2 7d 0e 01
   1: (   0) c4c27d0e01               VTESTPS YMM0, [R9]

The operand was also wrong before, but I hadn't noticed: I think [R9] is 
correct for "c2" and "01".

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