[pypy-svn] r18693 - pypy/dist/pypy/translator/asm/ppcgen

mwh at codespeak.net mwh at codespeak.net
Sun Oct 16 17:50:15 CEST 2005


Author: mwh
Date: Sun Oct 16 17:50:11 2005
New Revision: 18693

Modified:
   pypy/dist/pypy/translator/asm/ppcgen/ppc_assembler.py
Log:
implement srwi -- Shift Right Word Immediate


Modified: pypy/dist/pypy/translator/asm/ppcgen/ppc_assembler.py
==============================================================================
--- pypy/dist/pypy/translator/asm/ppcgen/ppc_assembler.py	(original)
+++ pypy/dist/pypy/translator/asm/ppcgen/ppc_assembler.py	Sun Oct 16 17:50:11 2005
@@ -508,6 +508,9 @@
     def slwi(self, rA, rS, n):
         self.rlwinm(rA, rS, n, 0, 31-n)
 
+    def srwi(self, rA, rS, n):
+        self.rlwinm(rA, rS, 32-n, n, 31)
+
     def inslwi(self, rA, rS, n, b):
         self.rwlimi(rA, rS, 32-b, b, b + n -1)
 



More information about the Pypy-commit mailing list