diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-02-02 07:46:05 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-02-02 07:46:05 +0000 |
commit | 8e92e85ac7b5a1c9174f141284a7745b871fcd21 (patch) | |
tree | f155bece8bbb48b362cc8a4c8581b15b3fde53af /llvm/utils/TableGen/X86RecognizableInstr.cpp | |
parent | d402df3ce8a2de6ce523845e48925579e03b82c3 (diff) | |
download | bcm5719-llvm-8e92e85ac7b5a1c9174f141284a7745b871fcd21.tar.gz bcm5719-llvm-8e92e85ac7b5a1c9174f141284a7745b871fcd21.zip |
Simplify some code since VEX and EVEX instructions never have HasOpSizePrefix.
llvm-svn: 200625
Diffstat (limited to 'llvm/utils/TableGen/X86RecognizableInstr.cpp')
-rw-r--r-- | llvm/utils/TableGen/X86RecognizableInstr.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/llvm/utils/TableGen/X86RecognizableInstr.cpp b/llvm/utils/TableGen/X86RecognizableInstr.cpp index e0306ac74f6..6527fb6d417 100644 --- a/llvm/utils/TableGen/X86RecognizableInstr.cpp +++ b/llvm/utils/TableGen/X86RecognizableInstr.cpp @@ -310,7 +310,7 @@ InstructionContext RecognizableInstr::insnContext() const { } // VEX_L & VEX_W if (HasVEX_LPrefix && HasVEX_WPrefix) { - if (HasOpSizePrefix || OpPrefix == X86Local::PD) + if (OpPrefix == X86Local::PD) insnContext = EVEX_KB(IC_EVEX_L_W_OPSIZE); else if (OpPrefix == X86Local::XS) insnContext = EVEX_KB(IC_EVEX_L_W_XS); @@ -320,7 +320,7 @@ InstructionContext RecognizableInstr::insnContext() const { insnContext = EVEX_KB(IC_EVEX_L_W); } else if (HasVEX_LPrefix) { // VEX_L - if (HasOpSizePrefix || OpPrefix == X86Local::PD) + if (OpPrefix == X86Local::PD) insnContext = EVEX_KB(IC_EVEX_L_OPSIZE); else if (OpPrefix == X86Local::XS) insnContext = EVEX_KB(IC_EVEX_L_XS); @@ -331,7 +331,7 @@ InstructionContext RecognizableInstr::insnContext() const { } else if (HasEVEX_L2Prefix && HasVEX_WPrefix) { // EVEX_L2 & VEX_W - if (HasOpSizePrefix || OpPrefix == X86Local::PD) + if (OpPrefix == X86Local::PD) insnContext = EVEX_KB(IC_EVEX_L2_W_OPSIZE); else if (OpPrefix == X86Local::XS) insnContext = EVEX_KB(IC_EVEX_L2_W_XS); @@ -341,7 +341,7 @@ InstructionContext RecognizableInstr::insnContext() const { insnContext = EVEX_KB(IC_EVEX_L2_W); } else if (HasEVEX_L2Prefix) { // EVEX_L2 - if (HasOpSizePrefix || OpPrefix == X86Local::PD) + if (OpPrefix == X86Local::PD) insnContext = EVEX_KB(IC_EVEX_L2_OPSIZE); else if (OpPrefix == X86Local::XD) insnContext = EVEX_KB(IC_EVEX_L2_XD); @@ -352,7 +352,7 @@ InstructionContext RecognizableInstr::insnContext() const { } else if (HasVEX_WPrefix) { // VEX_W - if (HasOpSizePrefix || OpPrefix == X86Local::PD) + if (OpPrefix == X86Local::PD) insnContext = EVEX_KB(IC_EVEX_W_OPSIZE); else if (OpPrefix == X86Local::XS) insnContext = EVEX_KB(IC_EVEX_W_XS); @@ -362,7 +362,7 @@ InstructionContext RecognizableInstr::insnContext() const { insnContext = EVEX_KB(IC_EVEX_W); } // No L, no W - else if (HasOpSizePrefix || OpPrefix == X86Local::PD) + else if (OpPrefix == X86Local::PD) insnContext = EVEX_KB(IC_EVEX_OPSIZE); else if (OpPrefix == X86Local::XD) insnContext = EVEX_KB(IC_EVEX_XD); @@ -373,7 +373,7 @@ InstructionContext RecognizableInstr::insnContext() const { /// eof EVEX } else if (Encoding == X86Local::VEX || Encoding == X86Local::XOP) { if (HasVEX_LPrefix && HasVEX_WPrefix) { - if (HasOpSizePrefix || OpPrefix == X86Local::PD) + if (OpPrefix == X86Local::PD) insnContext = IC_VEX_L_W_OPSIZE; else if (OpPrefix == X86Local::XS) insnContext = IC_VEX_L_W_XS; @@ -381,11 +381,11 @@ InstructionContext RecognizableInstr::insnContext() const { insnContext = IC_VEX_L_W_XD; else insnContext = IC_VEX_L_W; - } else if ((HasOpSizePrefix || OpPrefix == X86Local::PD) && HasVEX_LPrefix) + } else if (OpPrefix == X86Local::PD && HasVEX_LPrefix) insnContext = IC_VEX_L_OPSIZE; - else if ((HasOpSizePrefix || OpPrefix == X86Local::PD) && HasVEX_WPrefix) + else if (OpPrefix == X86Local::PD && HasVEX_WPrefix) insnContext = IC_VEX_W_OPSIZE; - else if (HasOpSizePrefix || OpPrefix == X86Local::PD) + else if (OpPrefix == X86Local::PD) insnContext = IC_VEX_OPSIZE; else if (HasVEX_LPrefix && OpPrefix == X86Local::XS) insnContext = IC_VEX_L_XS; |