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:
Akira Hatanaka 2011-09-22 17:57:32 +00:00
parent a58fde665a
commit 79a45a839c
1 changed files with 5 additions and 4 deletions

View File

@ -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;