This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
[sim/mips] Fixes to MOVZ.fmt and MOVN.fmt
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [sim/mips] Fixes to MOVZ.fmt and MOVN.fmt
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 03 Jul 2000 13:44:45 +1000
Just FYI,
Andrew
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].
Index: mips.igen
===================================================================
RCS file: /cvs/src/src/sim/mips/mips.igen,v
retrieving revision 1.5
diff -p -r1.5 mips.igen
*** mips.igen 2000/06/23 12:39:41 1.5
--- mips.igen 2000/07/03 03:42:00
***************
*** 3283,3298 ****
010001,10,3.FMT,5.RT,5.FS,5.FD,010011:COP1:32::MOVN.fmt
*mipsIV:
*vr5000:
{
! unsigned32 instruction = instruction_0;
! int destreg = ((instruction >> 6) & 0x0000001F);
! int fs = ((instruction >> 11) & 0x0000001F);
! int format = ((instruction >> 21) & 0x00000007);
! {
! StoreFPR(destreg,format,ValueFPR(fs,format));
! }
}
--- 3283,3296 ----
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:
*vr5000:
{
! if (GPR[RT] != 0)
! StoreFPR (FD, FMT, ValueFPR (FS, FMT));
! else
! StoreFPR (FD, FMT, ValueFPR (FD, FMT));
}
***************
*** 3308,3320 ****
*mipsIV:
*vr5000:
{
! unsigned32 instruction = instruction_0;
! int destreg = ((instruction >> 6) & 0x0000001F);
! int fs = ((instruction >> 11) & 0x0000001F);
! int format = ((instruction >> 21) & 0x00000007);
! {
! StoreFPR(destreg,format,ValueFPR(fs,format));
! }
}
--- 3306,3315 ----
*mipsIV:
*vr5000:
{
! if (GPR[RT] == 0)
! StoreFPR (FD, FMT, ValueFPR (FS, FMT));
! else
! StoreFPR (FD, FMT, ValueFPR (FD, FMT));
}