For MADD et.al. instructions sign extend 32 bit result assigned to a
authorAndrew Cagney <cagney@redhat.com>
Sat, 13 Dec 1997 04:23:31 +0000 (04:23 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 13 Dec 1997 04:23:31 +0000 (04:23 +0000)
register.

sim/mips/ChangeLog
sim/mips/vr5400.igen

index 2a0d05c22481fd23003650fa7a35335197f079ba..2dd25208bd35f077bf65dde912ad07f76791c2ff 100644 (file)
@@ -1,4 +1,11 @@
 start-sanitize-vr5400
+Sat Dec 13 15:18:51 1997  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * vr5400.igen (Low32Bits, High32Bits): Sign extend extracted 32
+       bit values.
+
+end-sanitize-vr5400
+start-sanitize-vr5400
 Fri Dec 12 12:26:07 1997  Jeffrey A Law  (law@cygnus.com)
 
        * configure.in (sim_igen_filter): Multi-sim vr5000 - vr5000 or
index ade64ada3e69566772f81cc67d02aff92990c61d..2e77ea2c31efe61d175f8b02b25c60deea481f0b 100644 (file)
 
 :function:::unsigned64:Low32Bits:unsigned64 value
 {
-  unsigned64 result = VL4_8 (value);
+  unsigned64 result = (signed64) (signed32) VL4_8 (value);
   return result;
 }
 
 :function:::unsigned64:High32Bits:unsigned64 value
 {
-  unsigned64 result = VH4_8 (value);
+  unsigned64 result = (signed64) (signed32) VH4_8 (value);
   return result;
 }