Skip to content

Commit 4eb72ae

Browse files
authored
Fix Pcmp instruction (#1222)
There's a typo in the disassembler.
1 parent 5f1c142 commit 4eb72ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/x86/x86_disasm.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -999,9 +999,9 @@ let parse_instr mode mem addr =
999999
(Punpck(prefix.mopsize, elemt, order, r, rm, rv), na)
10001000
| 0x64 | 0x65 | 0x66 | 0x74 | 0x75 | 0x76 as o ->
10011001
let r, rm, rv, na = parse_modrm_vec None na in
1002-
let elet = match o land 0x6 with | 0x4 -> reg8_t | 0x5 -> reg16_t | 0x6 -> reg32_t | _ ->
1002+
let elet = match o land 0x0F with | 0x4 -> reg8_t | 0x5 -> reg16_t | 0x6 -> reg32_t | _ ->
10031003
disfailwith "impossible" in
1004-
let bop, bstr = match o land 0x70 with
1004+
let bop, bstr = match o land 0xF0 with
10051005
| 0x70 -> Bil.EQ, "pcmpeq"
10061006
| 0x60 -> Bil.SLT, "pcmpgt"
10071007
| _ -> disfailwith "impossible" in

0 commit comments

Comments
 (0)