mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Fix PR9762
Enable the parsing of the operand "cpsr_all" for the ARM msr instruction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132026 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1241,6 +1241,8 @@ tryParseMSRMaskOperand(SmallVectorImpl<MCParsedAsmOperand*> &Operands) {
|
||||
FlagsVal = 0; // No flag
|
||||
}
|
||||
} else if (SpecReg == "cpsr" || SpecReg == "spsr") {
|
||||
if (Flags == "all") // cpsr_all is an alias for cpsr_fc
|
||||
Flags = "fc";
|
||||
for (int i = 0, e = Flags.size(); i != e; ++i) {
|
||||
unsigned Flag = StringSwitch<unsigned>(Flags.substr(i, 1))
|
||||
.Case("c", 1)
|
||||
|
Reference in New Issue
Block a user