forked from OSchip/llvm-project
[X86][TableGen] Add a missing error check to make sure EVEX instructions use one PS/PD/XS/XD prefixes.
llvm-svn: 329048
This commit is contained in:
parent
c01e47b43f
commit
7d522b6eee
|
@ -243,8 +243,12 @@ InstructionContext RecognizableInstr::insnContext() const {
|
||||||
insnContext = EVEX_KB(IC_EVEX_XD);
|
insnContext = EVEX_KB(IC_EVEX_XD);
|
||||||
else if (OpPrefix == X86Local::XS)
|
else if (OpPrefix == X86Local::XS)
|
||||||
insnContext = EVEX_KB(IC_EVEX_XS);
|
insnContext = EVEX_KB(IC_EVEX_XS);
|
||||||
else
|
else if (OpPrefix == X86Local::PS)
|
||||||
insnContext = EVEX_KB(IC_EVEX);
|
insnContext = EVEX_KB(IC_EVEX);
|
||||||
|
else {
|
||||||
|
errs() << "Instruction does not use a prefix: " << Name << "\n";
|
||||||
|
llvm_unreachable("Invalid prefix");
|
||||||
|
}
|
||||||
/// eof EVEX
|
/// eof EVEX
|
||||||
} else if (Encoding == X86Local::VEX || Encoding == X86Local::XOP) {
|
} else if (Encoding == X86Local::VEX || Encoding == X86Local::XOP) {
|
||||||
if (HasVEX_LPrefix && VEX_WPrefix == X86Local::VEX_W1) {
|
if (HasVEX_LPrefix && VEX_WPrefix == X86Local::VEX_W1) {
|
||||||
|
|
Loading…
Reference in New Issue