mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-14 06:37:33 +00:00
Tighten conditional for 'mov' cc_out.
Make sure we only clobber the cc_out operand if it is indeed a default non-setting operand. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135506 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
23336b449e
commit
731f209794
@ -2188,7 +2188,8 @@ bool ARMAsmParser::ParseInstruction(StringRef Name, SMLoc NameLoc,
|
||||
// to check the type of the parsed immediate operand.
|
||||
if (Mnemonic == "mov" && Operands.size() > 4 &&
|
||||
!static_cast<ARMOperand*>(Operands[4])->isARMSOImm() &&
|
||||
static_cast<ARMOperand*>(Operands[4])->isImm0_65535Expr()) {
|
||||
static_cast<ARMOperand*>(Operands[4])->isImm0_65535Expr() &&
|
||||
static_cast<ARMOperand*>(Operands[1])->getReg() == 0) {
|
||||
ARMOperand *Op = static_cast<ARMOperand*>(Operands[1]);
|
||||
Operands.erase(Operands.begin() + 1);
|
||||
delete Op;
|
||||
|
Loading…
x
Reference in New Issue
Block a user