Commits

Armin Rigo committed 3a0ef8f

Fix the test on 64-bit

  • Participants
  • Parent commits f6c9256

Comments (0)

Files changed (2)

rpython/jit/codewriter/longlong.py

     getrealfloat    = lambda x: x
     gethash         = compute_hash
     gethash_fast    = longlong2float.float2longlong
+    extract_bits    = longlong2float.float2longlong
     is_longlong     = lambda TYPE: False
 
     # -------------------------------------
     getrealfloat    = longlong2float.longlong2float
     gethash         = lambda xll: rarithmetic.intmask(xll - (xll >> 32))
     gethash_fast    = gethash
+    extract_bits    = lambda x: x
     is_longlong     = lambda TYPE: (TYPE is lltype.SignedLongLong or
                                     TYPE is lltype.UnsignedLongLong)
 

rpython/jit/metainterp/history.py

 
     def same_constant(self, other):
         if isinstance(other, ConstFloat):
-            return self.value == other.value
+            return (longlong.extract_bits(self.value) ==
+                    longlong.extract_bits(other.value))
         return False
 
     def nonnull(self):