[pypy-svn] r72970 - pypy/branch/asmgcc-64/pypy/translator/c/gcc

arigo at codespeak.net arigo at codespeak.net
Sat Mar 27 20:19:18 CET 2010


Author: arigo
Date: Sat Mar 27 20:19:17 2010
New Revision: 72970

Modified:
   pypy/branch/asmgcc-64/pypy/translator/c/gcc/trackgcroot.py
Log:
Fixes for tests.


Modified: pypy/branch/asmgcc-64/pypy/translator/c/gcc/trackgcroot.py
==============================================================================
--- pypy/branch/asmgcc-64/pypy/translator/c/gcc/trackgcroot.py	(original)
+++ pypy/branch/asmgcc-64/pypy/translator/c/gcc/trackgcroot.py	Sat Mar 27 20:19:17 2010
@@ -526,6 +526,8 @@
                           # gcc -fno-unit-at-a-time.
         return self.insns_for_copy(source, target)
 
+    visit_mov = visit_movX
+
     def visit_pushX(self, line):
         match = self.r_unaryinsn.match(line)
         source = match.group(1)
@@ -1522,7 +1524,10 @@
         if loc == LOC_NOWHERE:
             return '?'
         reg = (loc >> 2) - 1
-        return cls.CALLEE_SAVE_REGISTERS[reg]
+        result = cls.CALLEE_SAVE_REGISTERS[reg]
+        if '%' not in result:    # xxx messy, to avoid fixing tons of tests
+            result = '%' + result
+        return result
     else:
         offset = loc & ~ LOC_MASK
         if kind == LOC_EBP_PLUS:
@@ -1534,6 +1539,8 @@
             result = '(%s)' % cls.ESP
         else:
             assert 0, kind
+        if '%' not in result:    # xxx messy, to avoid fixing tons of tests
+            result = result[:1] + '%' + result[1:]
         if offset != 0:
             result = str(offset) + result
         return result



More information about the Pypy-commit mailing list