HomePhabricator

[X86] Don't disassemble wbinvd with 0xf2 or 0x66 prefix.

Authored by craig.topper on Oct 25 2020, 8:40 PM.

Description

[X86] Don't disassemble wbinvd with 0xf2 or 0x66 prefix.

The 0xf3 prefix has been defined as wbnoinvd on Icelake Server. So
the prefix isn't ignored by the CPU. AMD documentation suggests that
wbnoinvd is treated as wbinvd on older processors. Intel documentation
is not clear. Perhaps 0xf2 and 0x66 are treated the same, but its
not documented.

This patch changes TB to PS in the td file so 0xf2 and 0x66 will
be treated as errors. This matches versions of objdump after
wbnoinvd was added.

Details

Committed
craig.topperOct 25 2020, 8:56 PM
Parents
rG180548c5c784: [X86] VEX/EVEX prefix doesn't work for inline assembly.
Branches
Unknown
Tags
Unknown