And short immediate instructions use unsigned immediates, not signed.

This commit is contained in:
Michael Meissner 1997-05-10 16:40:21 +00:00
parent f7f90eaaf5
commit 20b2f9bc83
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Sat May 10 12:35:47 1997 Michael Meissner <meissner@cygnus.com>
* insns (and{.tt,.tf,.ft,.ff}): Immediate values are unsigned, not
signed.
Fri May 9 15:47:36 1997 Mike Meissner <meissner@cygnus.com>
* insns (cmp_vals,do_cmp): Produce the correct bits as specified

View File

@ -64,7 +64,7 @@ void::function::do_and:signed32 *rDest, signed32 Source1, signed32 Source2
// and, and.tt
31.Dest,26.Source2,21.0b0010001,14.SignedImmediate::::and.tt i
31.Dest,26.Source2,21.0b0010001,14.UnsignedImmediate::::and.tt i
do_and (_SD, rDest, vSource1, rSource2);
31.Dest,26.Source2,21.0b110010001,12.0,11./,4.Source1::::and.tt r
do_and (_SD, rDest, rSource1, rSource2);
@ -74,7 +74,7 @@ void::function::do_and:signed32 *rDest, signed32 Source1, signed32 Source2
// and.ff
31.Dest,26.Source2,21.0b0011000,14.SignedImmediate::::and.ff i
31.Dest,26.Source2,21.0b0011000,14.UnsignedImmediate::::and.ff i
do_and (_SD, rDest, ~vSource1, ~rSource2);
31.Dest,26.Source2,21.0b110011000,12.0,11./,4.Source1::::and.ff r
do_and (_SD, rDest, ~rSource1, ~rSource2);
@ -84,7 +84,7 @@ void::function::do_and:signed32 *rDest, signed32 Source1, signed32 Source2
// and.ft
31.Dest,26.Source2,21.0b0010100,14.SignedImmediate::::and.ft i
31.Dest,26.Source2,21.0b0010100,14.UnsignedImmediate::::and.ft i
do_and (_SD, rDest, ~vSource1, rSource2);
31.Dest,26.Source2,21.0b110010100,12.0,11./,4.Source1::::and.ft r
do_and (_SD, rDest, ~rSource1, rSource2);
@ -94,7 +94,7 @@ void::function::do_and:signed32 *rDest, signed32 Source1, signed32 Source2
// and.tf
31.Dest,26.Source2,21.0b0010010,14.SignedImmediate::::and.tf i
31.Dest,26.Source2,21.0b0010010,14.UnsignedImmediate::::and.tf i
do_and (_SD, rDest, vSource1, ~rSource2);
31.Dest,26.Source2,21.0b110010010,12.0,11./,4.Source1::::and.tf r
do_and (_SD, rDest, rSource1, ~rSource2);