Define a new sub-register index sub_32 for accessing the 32-bit sub-register of
authorAkira Hatanaka <ahatanak@gmail.com>
Thu, 22 Sep 2011 17:57:32 +0000 (17:57 +0000)
committerAkira Hatanaka <ahatanak@gmail.com>
Thu, 22 Sep 2011 17:57:32 +0000 (17:57 +0000)
a 64-bit integer register. Move the subreg index definitions to the beginning
of the file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140319 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Mips/MipsRegisterInfo.td

index de0ccbb4fd5104611c5d1af691ca37e5ce48b9ab..62210210dd9cc359d416f9afc553ef2a38b8ccc1 100644 (file)
 //===----------------------------------------------------------------------===//
 //  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;