[pypy-commit] pypy regalloc-playground: fix test

cfbolz pypy.commits at gmail.com
Sun Aug 20 13:09:29 EDT 2017


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: regalloc-playground
Changeset: r92183:39a4798dc769
Date: 2017-08-19 08:56 +0200
http://bitbucket.org/pypy/pypy/changeset/39a4798dc769/

Log:	fix test

diff --git a/rpython/jit/backend/x86/test/test_x86vector.py b/rpython/jit/backend/x86/test/test_x86vector.py
--- a/rpython/jit/backend/x86/test/test_x86vector.py
+++ b/rpython/jit/backend/x86/test/test_x86vector.py
@@ -1,5 +1,6 @@
 import py
 from rpython.jit.backend.x86.regloc import *
+from rpython.jit.backend.llsupport.regalloc import Lifetime
 from rpython.jit.backend.x86.regalloc import (RegAlloc,
         X86FrameManager, X86XMMRegisterManager, X86RegisterManager)
 from rpython.jit.backend.x86.vector_ext import TempVector
@@ -146,9 +147,9 @@
         xrm = self.regalloc.xrm
         xrm.reg_bindings[arg1] = xmm0
         xrm.reg_bindings[arg2] = xmm1
-        xrm.longevity[arg1] = (0,1)
-        xrm.longevity[arg2] = (0,2)
-        xrm.longevity[arg] = (0,3)
+        xrm.longevity[arg1] = Lifetime(0,1)
+        xrm.longevity[arg2] = Lifetime(0,2)
+        xrm.longevity[arg] = Lifetime(0,3)
         fr = xrm.free_regs
         xrm.free_regs = []
         self.regalloc.fm.bindings[arg] = FrameLoc(0, 64, 'f')


More information about the pypy-commit mailing list