mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 11:33:24 +02:00
Thumb2 tweak for ccout handling in RSB parsing.
llvm-svn: 146516
This commit is contained in:
parent
13d3509445
commit
b2547b424c
@ -4737,8 +4737,11 @@ bool ARMAsmParser::ParseInstruction(StringRef Name, SMLoc NameLoc,
|
||||
const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op->getImm());
|
||||
if (CE && CE->getValue() == 0 &&
|
||||
(isThumbOne() ||
|
||||
// The cc_out operand matches the IT block.
|
||||
((inITBlock() != CarrySetting) &&
|
||||
// Neither register operand is a high register.
|
||||
(isARMLowRegister(static_cast<ARMOperand*>(Operands[3])->getReg()) &&
|
||||
isARMLowRegister(static_cast<ARMOperand*>(Operands[4])->getReg())))) {
|
||||
isARMLowRegister(static_cast<ARMOperand*>(Operands[4])->getReg()))))){
|
||||
Operands.erase(Operands.begin() + 5);
|
||||
Operands.push_back(ARMOperand::CreateToken("#0", Op->getStartLoc()));
|
||||
delete Op;
|
||||
|
Loading…
Reference in New Issue
Block a user