Fix MOVN.fmt and MOVZ.fmt, need to test GPR[RT].
This commit is contained in:
parent
70bcb1452f
commit
80ee11fa0e
@ -1,3 +1,8 @@
|
|||||||
|
Mon Jul 3 11:13:20 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
|
From Jason Eckhardt:
|
||||||
|
* mips.igen (MOVZ.fmt, MOVN.fmt): Move conditional on GPR[RT].
|
||||||
|
|
||||||
Tue Jun 13 20:52:07 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
Tue Jun 13 20:52:07 2000 Andrew Cagney <cagney@b1.cygnus.com>
|
||||||
|
|
||||||
* mips.igen (MxC1, DMxC1): Fix printf formatting.
|
* mips.igen (MxC1, DMxC1): Fix printf formatting.
|
||||||
|
@ -3283,16 +3283,14 @@
|
|||||||
|
|
||||||
|
|
||||||
010001,10,3.FMT,5.RT,5.FS,5.FD,010011:COP1:32::MOVN.fmt
|
010001,10,3.FMT,5.RT,5.FS,5.FD,010011:COP1:32::MOVN.fmt
|
||||||
|
"movn.%s<FMT> f<FD>, f<FS>, r<RT>"
|
||||||
*mipsIV:
|
*mipsIV:
|
||||||
*vr5000:
|
*vr5000:
|
||||||
{
|
{
|
||||||
unsigned32 instruction = instruction_0;
|
if (GPR[RT] != 0)
|
||||||
int destreg = ((instruction >> 6) & 0x0000001F);
|
StoreFPR (FD, FMT, ValueFPR (FS, FMT));
|
||||||
int fs = ((instruction >> 11) & 0x0000001F);
|
else
|
||||||
int format = ((instruction >> 21) & 0x00000007);
|
StoreFPR (FD, FMT, ValueFPR (FD, FMT));
|
||||||
{
|
|
||||||
StoreFPR(destreg,format,ValueFPR(fs,format));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -3308,13 +3306,10 @@
|
|||||||
*mipsIV:
|
*mipsIV:
|
||||||
*vr5000:
|
*vr5000:
|
||||||
{
|
{
|
||||||
unsigned32 instruction = instruction_0;
|
if (GPR[RT] == 0)
|
||||||
int destreg = ((instruction >> 6) & 0x0000001F);
|
StoreFPR (FD, FMT, ValueFPR (FS, FMT));
|
||||||
int fs = ((instruction >> 11) & 0x0000001F);
|
else
|
||||||
int format = ((instruction >> 21) & 0x00000007);
|
StoreFPR (FD, FMT, ValueFPR (FD, FMT));
|
||||||
{
|
|
||||||
StoreFPR(destreg,format,ValueFPR(fs,format));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user