mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140319 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
711395527e
commit
95a091a0b6
@ -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…
Reference in New Issue
Block a user