Commits

Armin Rigo committed a0dd643

Translation fixes.

  • Participants
  • Parent commits d6df4d3
  • Branches jit-longlong-2

Comments (0)

Files changed (3)

File pypy/jit/backend/llsupport/descr.py

 class FloatCallDescr(BaseCallDescr):
     _clsname = 'FloatCallDescr'
     _return_type = history.FLOAT
-    call_stub = staticmethod(lambda func, args_i, args_r, args_f: 0.0)
+    call_stub = staticmethod(lambda func,args_i,args_r,args_f: longlong.ZEROF)
     def get_result_size(self, translate_support_code):
         return symbolic.get_size(lltype.Float, translate_support_code)
 

File pypy/jit/backend/x86/regloc.py

 if IS_X86_64:
     def FloatImmedLoc(floatstorage):
         from pypy.rlib.longlong2float import float2longlong
-        value = intmask(float2longlong(floatvalue))
+        value = intmask(float2longlong(floatstorage))
         return ImmedLoc(value)
 
 

File pypy/jit/backend/x86/rx86.py

 
     MOVD_rx = xmminsn('\x66', rex_w, '\x0F\x7E', register(2, 8), register(1), '\xC0')
     MOVD_xr = xmminsn('\x66', rex_w, '\x0F\x6E', register(1, 8), register(2), '\xC0')
-    PMOVMSKB_rx = xmminsn('\x66', rex_w, '\x0F\xD7', register(1, 8), register(2), '\xC0')
 
     # ------------------------------------------------------------
 
 class X86_32_CodeBuilder(AbstractX86CodeBuilder):
     WORD = 4
 
+    PMOVMSKB_rx = xmminsn('\x66', rex_nw, '\x0F\xD7', register(1, 8), register(2), '\xC0')
+
 class X86_64_CodeBuilder(AbstractX86CodeBuilder):
     WORD = 8