[pypy-svn] r67895 - pypy/trunk/pypy/jit/backend/x86

fijal at codespeak.net fijal at codespeak.net
Fri Sep 25 17:55:15 CEST 2009


Author: fijal
Date: Fri Sep 25 17:55:14 2009
New Revision: 67895

Modified:
   pypy/trunk/pypy/jit/backend/x86/ri386.py
   pypy/trunk/pypy/jit/backend/x86/ri386setup.py
Log:
Add two more operations...


Modified: pypy/trunk/pypy/jit/backend/x86/ri386.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/x86/ri386.py	(original)
+++ pypy/trunk/pypy/jit/backend/x86/ri386.py	Fri Sep 25 17:55:14 2009
@@ -28,7 +28,7 @@
         raise TypeError("Float registers should not appear in assembler")
 
 class XMMREG(OPERAND):
-    width = 16
+    width = 8
 
     def __repr__(self):
         return '<XMM(%d)>' % self.op

Modified: pypy/trunk/pypy/jit/backend/x86/ri386setup.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/x86/ri386setup.py	(original)
+++ pypy/trunk/pypy/jit/backend/x86/ri386setup.py	Fri Sep 25 17:55:14 2009
@@ -508,6 +508,12 @@
 MOVSD.mode2(XMMREG, MODRM64, ['\xF2\x0F\x10', register(1, 8), modrm(2)])
 MOVSD.mode2(MODRM64, XMMREG, ['\xF2\x0F\x11', register(2, 8), modrm(1)])
 
+ADDSD = Instruction()
+ADDSD.mode2(XMMREG, MODRM64, ['\xF2\x0F\x58', register(1, 8), modrm(2)])
+
+SUBSD = Instruction()
+SUBSD.mode2(XMMREG, MODRM64, ['\xF2\x0F\x5C', register(1, 8), modrm(2)])
+
 # ------------------------------ end of SSE2 -----------------------------
 
 UD2 = Instruction()      # reserved as an illegal instruction



More information about the Pypy-commit mailing list