mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Define a new sub-register index sub_32 for accessing the 32-bit sub-register of
a 64-bit integer register. Move the subreg index definitions to the beginning of the file. llvm-svn: 140319
This commit is contained in:
parent
4a26d03528
commit
eaf1e32694
@ -10,6 +10,11 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Declarations that describe the MIPS register file
|
||||
//===----------------------------------------------------------------------===//
|
||||
let Namespace = "Mips" in {
|
||||
def sub_fpeven : SubRegIndex;
|
||||
def sub_fpodd : SubRegIndex;
|
||||
def sub_32 : SubRegIndex;
|
||||
}
|
||||
|
||||
// We have banks of 32 registers each.
|
||||
class MipsReg<string n> : Register<n> {
|
||||
@ -34,10 +39,6 @@ class FPR<bits<5> num, string n> : MipsReg<n> {
|
||||
}
|
||||
|
||||
// Mips 64-bit (aliased) FPU Registers
|
||||
let Namespace = "Mips" in {
|
||||
def sub_fpeven : SubRegIndex;
|
||||
def sub_fpodd : SubRegIndex;
|
||||
}
|
||||
class AFPR<bits<5> num, string n, list<Register> subregs>
|
||||
: MipsRegWithSubRegs<n, subregs> {
|
||||
let Num = num;
|
||||
|
Loading…
x
Reference in New Issue
Block a user