mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
[mips] Increase the number of floating point control registers available to 32.
Create a dedicated register class for floating point condition code registers and move FCC0 from register class CCR to the new register class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185373 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ae99e41ff4
commit
db8e0bbedb
@ -248,8 +248,9 @@ let Namespace = "Mips" in {
|
|||||||
def LO64 : RegisterWithSubRegs<"lo", [LO]>;
|
def LO64 : RegisterWithSubRegs<"lo", [LO]>;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Status flags register
|
// FP control registers.
|
||||||
def FCR31 : Register<"31">;
|
foreach I = 0-31 in
|
||||||
|
def FCR#I : MipsReg<#I, ""#I>;
|
||||||
|
|
||||||
// fcc0 register
|
// fcc0 register
|
||||||
def FCC0 : MipsReg<0, "fcc0">;
|
def FCC0 : MipsReg<0, "fcc0">;
|
||||||
@ -357,8 +358,12 @@ def AFGR64 : RegisterClass<"Mips", [f64], 64, (add
|
|||||||
|
|
||||||
def FGR64 : RegisterClass<"Mips", [f64], 64, (sequence "D%u_64", 0, 31)>;
|
def FGR64 : RegisterClass<"Mips", [f64], 64, (sequence "D%u_64", 0, 31)>;
|
||||||
|
|
||||||
// Condition Register for floating point operations
|
// FP control registers.
|
||||||
def CCR : RegisterClass<"Mips", [i32], 32, (add FCR31,FCC0)>, Unallocatable;
|
def CCR : RegisterClass<"Mips", [i32], 32, (sequence "FCR%u", 0, 31)>,
|
||||||
|
Unallocatable;
|
||||||
|
|
||||||
|
// FP condition code registers.
|
||||||
|
def FCC : RegisterClass<"Mips", [i32], 32, (add FCC0)>, Unallocatable;
|
||||||
|
|
||||||
// Hi/Lo Registers
|
// Hi/Lo Registers
|
||||||
def LORegs : RegisterClass<"Mips", [i32], 32, (add LO)>;
|
def LORegs : RegisterClass<"Mips", [i32], 32, (add LO)>;
|
||||||
|
@ -158,8 +158,8 @@
|
|||||||
# CHECK: ceil.w.s $f6, $f7
|
# CHECK: ceil.w.s $f6, $f7
|
||||||
0x46 0x00 0x39 0x8e
|
0x46 0x00 0x39 0x8e
|
||||||
|
|
||||||
# CHECK: cfc1 $6, $fcc0
|
# CHECK: cfc1 $6, $7
|
||||||
0x44 0x46 0x08 0x00
|
0x44 0x46 0x38 0x00
|
||||||
|
|
||||||
# CHECK: clo $6, $7
|
# CHECK: clo $6, $7
|
||||||
0x70 0xe6 0x30 0x21
|
0x70 0xe6 0x30 0x21
|
||||||
@ -167,8 +167,8 @@
|
|||||||
# CHECK: clz $6, $7
|
# CHECK: clz $6, $7
|
||||||
0x70 0xe6 0x30 0x20
|
0x70 0xe6 0x30 0x20
|
||||||
|
|
||||||
# CHECK: ctc1 $6, $fcc0
|
# CHECK: ctc1 $6, $7
|
||||||
0x44 0xc6 0x08 0x00
|
0x44 0xc6 0x38 0x00
|
||||||
|
|
||||||
# CHECK: cvt.d.s $f6, $f7
|
# CHECK: cvt.d.s $f6, $f7
|
||||||
0x46 0x00 0x39 0xa1
|
0x46 0x00 0x39 0xa1
|
||||||
|
@ -158,8 +158,8 @@
|
|||||||
# CHECK: ceil.w.s $f6, $f7
|
# CHECK: ceil.w.s $f6, $f7
|
||||||
0x8e 0x39 0x00 0x46
|
0x8e 0x39 0x00 0x46
|
||||||
|
|
||||||
# CHECK: cfc1 $6, $fcc0
|
# CHECK: cfc1 $6, $7
|
||||||
0x00 0x08 0x46 0x44
|
0x00 0x38 0x46 0x44
|
||||||
|
|
||||||
# CHECK: clo $6, $7
|
# CHECK: clo $6, $7
|
||||||
0x21 0x30 0xe6 0x70
|
0x21 0x30 0xe6 0x70
|
||||||
@ -167,8 +167,8 @@
|
|||||||
# CHECK: clz $6, $7
|
# CHECK: clz $6, $7
|
||||||
0x20 0x30 0xe6 0x70
|
0x20 0x30 0xe6 0x70
|
||||||
|
|
||||||
# CHECK: ctc1 $6, $fcc0
|
# CHECK: ctc1 $6, $7
|
||||||
0x00 0x08 0xc6 0x44
|
0x00 0x38 0xc6 0x44
|
||||||
|
|
||||||
# CHECK: cvt.d.s $f6, $f7
|
# CHECK: cvt.d.s $f6, $f7
|
||||||
0xa1 0x39 0x00 0x46
|
0xa1 0x39 0x00 0x46
|
||||||
|
@ -158,8 +158,8 @@
|
|||||||
# CHECK: ceil.w.s $f6, $f7
|
# CHECK: ceil.w.s $f6, $f7
|
||||||
0x46 0x00 0x39 0x8e
|
0x46 0x00 0x39 0x8e
|
||||||
|
|
||||||
# CHECK: cfc1 $6, $fcc0
|
# CHECK: cfc1 $6, $7
|
||||||
0x44 0x46 0x08 0x00
|
0x44 0x46 0x38 0x00
|
||||||
|
|
||||||
# CHECK: clo $6, $7
|
# CHECK: clo $6, $7
|
||||||
0x70 0xe6 0x30 0x21
|
0x70 0xe6 0x30 0x21
|
||||||
@ -167,8 +167,8 @@
|
|||||||
# CHECK: clz $6, $7
|
# CHECK: clz $6, $7
|
||||||
0x70 0xe6 0x30 0x20
|
0x70 0xe6 0x30 0x20
|
||||||
|
|
||||||
# CHECK: ctc1 $6, $fcc0
|
# CHECK: ctc1 $6, $7
|
||||||
0x44 0xc6 0x08 0x00
|
0x44 0xc6 0x38 0x00
|
||||||
|
|
||||||
# CHECK: cvt.d.s $f6, $f7
|
# CHECK: cvt.d.s $f6, $f7
|
||||||
0x46 0x00 0x39 0xa1
|
0x46 0x00 0x39 0xa1
|
||||||
|
@ -158,8 +158,8 @@
|
|||||||
# CHECK: ceil.w.s $f6, $f7
|
# CHECK: ceil.w.s $f6, $f7
|
||||||
0x8e 0x39 0x00 0x46
|
0x8e 0x39 0x00 0x46
|
||||||
|
|
||||||
# CHECK: cfc1 $6, $fcc0
|
# CHECK: cfc1 $6, $7
|
||||||
0x00 0x08 0x46 0x44
|
0x00 0x38 0x46 0x44
|
||||||
|
|
||||||
# CHECK: clo $6, $7
|
# CHECK: clo $6, $7
|
||||||
0x21 0x30 0xe6 0x70
|
0x21 0x30 0xe6 0x70
|
||||||
@ -167,8 +167,8 @@
|
|||||||
# CHECK: clz $6, $7
|
# CHECK: clz $6, $7
|
||||||
0x20 0x30 0xe6 0x70
|
0x20 0x30 0xe6 0x70
|
||||||
|
|
||||||
# CHECK: ctc1 $6, $fcc0
|
# CHECK: ctc1 $6, $7
|
||||||
0x00 0x08 0xc6 0x44
|
0x00 0x38 0xc6 0x44
|
||||||
|
|
||||||
# CHECK: cvt.d.s $f6, $f7
|
# CHECK: cvt.d.s $f6, $f7
|
||||||
0xa1 0x39 0x00 0x46
|
0xa1 0x39 0x00 0x46
|
||||||
|
Loading…
Reference in New Issue
Block a user