mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-04 07:32:13 +00:00
Fix mov.d out register by using the FFR register class directly
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94914 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
90cfc130d6
commit
5e194602a4
@ -113,7 +113,6 @@ let ft = 0 in {
|
|||||||
defm ROUND_W : FFR1_1<0b001100, "round.w">;
|
defm ROUND_W : FFR1_1<0b001100, "round.w">;
|
||||||
defm TRUNC_W : FFR1_1<0b001101, "trunc.w">;
|
defm TRUNC_W : FFR1_1<0b001101, "trunc.w">;
|
||||||
defm CVTW : FFR1_1<0b100100, "cvt.w">;
|
defm CVTW : FFR1_1<0b100100, "cvt.w">;
|
||||||
defm FMOV : FFR1_1<0b000110, "mov">;
|
|
||||||
|
|
||||||
defm FABS : FFR1_2<0b000101, "abs", fabs>;
|
defm FABS : FFR1_2<0b000101, "abs", fabs>;
|
||||||
defm FNEG : FFR1_2<0b000111, "neg", fneg>;
|
defm FNEG : FFR1_2<0b000111, "neg", fneg>;
|
||||||
@ -173,6 +172,11 @@ let fd = 0 in {
|
|||||||
"mtc1 $rt, $fs", []>;
|
"mtc1 $rt, $fs", []>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def FMOV_S32 : FFR<0x11, 0b000110, 0x0, (outs FGR32:$fd), (ins FGR32:$fs),
|
||||||
|
"mov.s $fd, $fs", []>;
|
||||||
|
def FMOV_D32 : FFR<0x11, 0b000110, 0x1, (outs AFGR64:$fd), (ins AFGR64:$fs),
|
||||||
|
"mov.d $fd, $fs", []>;
|
||||||
|
|
||||||
/// Floating Point Memory Instructions
|
/// Floating Point Memory Instructions
|
||||||
let Predicates = [IsNotSingleFloat, IsNotMipsI] in {
|
let Predicates = [IsNotSingleFloat, IsNotMipsI] in {
|
||||||
def LDC1 : FFI<0b110101, (outs AFGR64:$ft), (ins mem:$addr),
|
def LDC1 : FFI<0b110101, (outs AFGR64:$ft), (ins mem:$addr),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user