forked from OSchip/llvm-project
[X86][AsmParser] Don't allow X86::DX in CheckBaseRegAndIndexRegAndScale.
This was here because out and in instructions allow '(%dx)' even though its not a memory reference. To handle this we build a special operand for the DX register reference before we get to the call to CheckBaseRegAndIndexRegAndScale. So we no longer need this special case. llvm-svn: 350483
This commit is contained in:
parent
b25ced7480
commit
1187991bcf
|
@ -1011,8 +1011,7 @@ static bool CheckBaseRegAndIndexRegAndScale(unsigned BaseReg, unsigned IndexReg,
|
|||
// and then only in non-64-bit modes.
|
||||
if (X86MCRegisterClasses[X86::GR16RegClassID].contains(BaseReg) &&
|
||||
(Is64BitMode || (BaseReg != X86::BX && BaseReg != X86::BP &&
|
||||
BaseReg != X86::SI && BaseReg != X86::DI)) &&
|
||||
BaseReg != X86::DX) {
|
||||
BaseReg != X86::SI && BaseReg != X86::DI))) {
|
||||
ErrMsg = "invalid 16-bit base register";
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue