mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +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:
parent
21d378d735
commit
56926a3961
@ -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)
|
||||
|
@ -270,6 +270,9 @@
|
||||
@ CHECK: msr cpsr_fc, r0 @ encoding: [0x00,0xf0,0x29,0xe1]
|
||||
msr cpsr_fc, r0
|
||||
|
||||
@ CHECK: msr cpsr_fc, r0 @ encoding: [0x00,0xf0,0x29,0xe1]
|
||||
msr cpsr_all, r0
|
||||
|
||||
@ CHECK: msr cpsr_fsx, r0 @ encoding: [0x00,0xf0,0x2e,0xe1]
|
||||
msr cpsr_fsx, r0
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user