FEX
FEX copied to clipboard
Potential Decoding Failure for instructions prefixed with 0x66
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:
movntiadoxsha1msg1
In contrast, instructions like cvttss2si and movd get decoded fine when prefixed with 0x66.
Related issues: #5667 and #5670.