mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
MSR (Move to Special Register from ARM core register) requires a mask to specify
what fields of the CPSR or SPSR are affected. llvm-svn: 98085
This commit is contained in:
parent
f33a8c5ab6
commit
7cca4927aa
@ -2844,29 +2844,29 @@ def MRSsys : ABI<0b0001,(outs GPR:$dst),(ins), NoItinerary,"mrs","\t$dst, spsr",
|
||||
let Inst{7-4} = 0b0000;
|
||||
}
|
||||
|
||||
// FIXME: mask is ignored for the time being.
|
||||
def MSR : ABI<0b0001,(outs),(ins GPR:$src), NoItinerary, "msr", "\tcpsr, $src",
|
||||
def MSR : ABI<0b0001, (outs), (ins GPR:$src, i32imm:$mask), NoItinerary, "msr",
|
||||
"\tcpsr${mask:msr}, $src",
|
||||
[/* For disassembly only; pattern left blank */]> {
|
||||
let Inst{23-20} = 0b0010;
|
||||
let Inst{7-4} = 0b0000;
|
||||
}
|
||||
|
||||
// FIXME: mask is ignored for the time being.
|
||||
def MSRi : ABI<0b0011,(outs),(ins so_imm:$a), NoItinerary, "msr", "\tcpsr, $a",
|
||||
def MSRi : ABI<0b0011, (outs), (ins so_imm:$a, i32imm:$mask), NoItinerary,"msr",
|
||||
"\tcpsr${mask:msr}, $a",
|
||||
[/* For disassembly only; pattern left blank */]> {
|
||||
let Inst{23-20} = 0b0010;
|
||||
let Inst{7-4} = 0b0000;
|
||||
}
|
||||
|
||||
// FIXME: mask is ignored for the time being.
|
||||
def MSRsys : ABI<0b0001,(outs),(ins GPR:$src),NoItinerary,"msr","\tspsr, $src",
|
||||
def MSRsys : ABI<0b0001, (outs), (ins GPR:$src, i32imm:$mask),NoItinerary,"msr",
|
||||
"\tspsr${mask:msr}, $src",
|
||||
[/* For disassembly only; pattern left blank */]> {
|
||||
let Inst{23-20} = 0b0110;
|
||||
let Inst{7-4} = 0b0000;
|
||||
}
|
||||
|
||||
// FIXME: mask is ignored for the time being.
|
||||
def MSRsysi : ABI<0b0011,(outs),(ins so_imm:$a),NoItinerary,"msr","\tspsr, $a",
|
||||
def MSRsysi : ABI<0b0011,(outs),(ins so_imm:$a, i32imm:$mask),NoItinerary,"msr",
|
||||
"\tspsr${mask:msr}, $a",
|
||||
[/* For disassembly only; pattern left blank */]> {
|
||||
let Inst{23-20} = 0b0110;
|
||||
let Inst{7-4} = 0b0000;
|
||||
|
@ -2637,9 +2637,9 @@ def t2MRSsys : T2I<(outs GPR:$dst), (ins), NoItinerary, "mrs", "\t$dst, spsr",
|
||||
let Inst{12} = 0;
|
||||
}
|
||||
|
||||
// FIXME: mask is ignored for the time being.
|
||||
// Rn = Inst{19-16}
|
||||
def t2MSR : T2I<(outs), (ins GPR:$src), NoItinerary, "msr", "\tcpsr, $src",
|
||||
def t2MSR : T2I<(outs), (ins GPR:$src, i32imm:$mask), NoItinerary, "msr",
|
||||
"\tcpsr${mask:msr}, $src",
|
||||
[/* For disassembly only; pattern left blank */]> {
|
||||
let Inst{31-27} = 0b11110;
|
||||
let Inst{26} = 0;
|
||||
@ -2649,9 +2649,9 @@ def t2MSR : T2I<(outs), (ins GPR:$src), NoItinerary, "msr", "\tcpsr, $src",
|
||||
let Inst{12} = 0;
|
||||
}
|
||||
|
||||
// FIXME: mask is ignored for the time being.
|
||||
// Rn = Inst{19-16}
|
||||
def t2MSRsys : T2I<(outs), (ins GPR:$src), NoItinerary, "msr", "\tspsr, $src",
|
||||
def t2MSRsys : T2I<(outs), (ins GPR:$src, i32imm:$mask), NoItinerary, "msr",
|
||||
"\tspsr${mask:msr}, $src",
|
||||
[/* For disassembly only; pattern left blank */]> {
|
||||
let Inst{31-27} = 0b11110;
|
||||
let Inst{26} = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user