mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
simplify this code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117771 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e5658fa15e
commit
dba34d874d
@ -744,15 +744,11 @@ bool ARMAsmParser::ParseInstruction(StringRef Name, SMLoc NameLoc,
|
|||||||
.Case("al", ARMCC::AL)
|
.Case("al", ARMCC::AL)
|
||||||
.Default(~0U);
|
.Default(~0U);
|
||||||
|
|
||||||
if (CC != ~0U) {
|
if (CC == ~0U ||
|
||||||
if (CC == ARMCC::LS &&
|
(CC == ARMCC::LS && (Head == "vmls" || Head == "vnmls"))) {
|
||||||
(Head.compare("vmls") == 0 || Head.compare("vnmls") == 0)) {
|
|
||||||
CC = ARMCC::AL;
|
|
||||||
} else {
|
|
||||||
Head = Head.slice(0, Head.size() - 2);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
CC = ARMCC::AL;
|
CC = ARMCC::AL;
|
||||||
|
} else {
|
||||||
|
Head = Head.slice(0, Head.size() - 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
Operands.push_back(ARMOperand::CreateToken(Head, NameLoc));
|
Operands.push_back(ARMOperand::CreateToken(Head, NameLoc));
|
||||||
|
Loading…
Reference in New Issue
Block a user