FEX icon indicating copy to clipboard operation
FEX copied to clipboard

Potential Decoding Failure for instructions prefixed with 0x66

Open simon902 opened this issue 4 months ago • 0 comments

FEX fails to decode certain instructions when they are prefixed with 0x66.

For the affaceted instructions, the 0x66 prefix is not required and does not change their behavior. Real hardware seems to simply ignore the prefix and execute the instruction normally. However, FEX fails in the Frontend decoding phase.

This happens, e.g, because the lookup tables (like H0F38TableOps) do not have an entry for the prefixed version.

The following non-exhaustive list fails to decode with a 0x66 prefix:

  • movnti
  • adox
  • sha1msg1

In contrast, instructions like cvttss2si and movd get decoded fine when prefixed with 0x66.

Related issues: #5667 and #5670.

simon902 avatar Jul 09 '26 14:07 simon902