Bug 20710 - [libopcodes][x86] libopcodes produces "(bad)" decode for certain sal instructions
Summary: [libopcodes][x86] libopcodes produces "(bad)" decode for certain sal instruct...
Status: RESOLVED INVALID
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.26
: P2 normal
Target Milestone: 2.26
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-17 20:28 UTC by nholcomb
Modified: 2016-10-18 15:54 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nholcomb 2016-10-17 20:28:32 UTC
The following bytes correspond to a 2-byte sal instruction, but libpocodes produces a 1-byte "(bad)" output instead.

Bytes: d2 f0
Expected output: salb %cl, %al
Comment 1 H.J. Lu 2016-10-18 15:54:31 UTC
The MODRM byte, 0xf0, is mod == 3, reg == 6, rm == 0.
reg == 6 is undefined.  sal should be reg == 4.