2002-07-29 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Mon, 29 Jul 2002 23:17:10 +0000 (23:17 +0000)
committerMichael Snyder <msnyder@vmware.com>
Mon, 29 Jul 2002 23:17:10 +0000 (23:17 +0000)
* cp1.c (fp_recip2): Modify initialization expression so that
GCC will recognize it as constant.

sim/mips/ChangeLog
sim/mips/cp1.c

index 9b757823155218ec6643b0ac08c56ef375d050c8..5ff1ef02a37ad7926dc726205c63f7f25733d00b 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-29  Michael Snyder  <msnyder@redhat.com>
+
+       * cp1.c (fp_recip2): Modify initialization expression so that
+       GCC will recognize it as constant.
+
 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
 
        * mdmx.c (SD_): Delete.
index 26249f00bfec21798bf010e6bd4e2d58606573de..ea0f5998115d13f9f7c261aa7ad480531b51e68a 100644 (file)
@@ -1235,7 +1235,7 @@ fp_recip2(sim_cpu *cpu,
 {
   static const unsigned64 one_single = UNSIGNED64 (0x3F800000);
   static const unsigned64 one_double = UNSIGNED64 (0x3FF0000000000000);
-  static const unsigned64 one_ps = (one_single << 32 | one_single);
+  static const unsigned64 one_ps = (UNSIGNED64 (0x3F800000) << 32 | UNSIGNED64 (0x3F800000));
   unsigned64 one;
 
   /* Implemented as nmsub fd, 1, fs, ft.  */
@@ -1333,7 +1333,7 @@ fp_rsqrt2(sim_cpu *cpu,
 {
   static const unsigned64 half_single = UNSIGNED64 (0x3F000000);
   static const unsigned64 half_double = UNSIGNED64 (0x3FE0000000000000);
-  static const unsigned64 half_ps = (half_single << 32 | half_single);
+  static const unsigned64 half_ps = (UNSIGNED64 (0x3F000000) << 32 | UNSIGNED64 (0x3F000000));
   unsigned64 half;
 
   /* Implemented as (nmsub fd, 0.5, fs, ft)/2, where the divide is