Author: Richard Plangger <[email protected]>
Branch: vecopt
Changeset: r77864:b41e4cb3e026
Date: 2015-06-04 14:53 +0200
http://bitbucket.org/pypy/pypy/changeset/b41e4cb3e026/
Log: added missing vec counters to jitprof test
diff --git a/rpython/jit/backend/x86/regalloc.py
b/rpython/jit/backend/x86/regalloc.py
--- a/rpython/jit/backend/x86/regalloc.py
+++ b/rpython/jit/backend/x86/regalloc.py
@@ -1632,6 +1632,17 @@
size = op.result.getsize()
self.perform(op, [resloc, imm(size)], resloc)
+ def consider_vec_int_expand(self, op):
+ arg = op.getarg(0)
+ if isinstance(arg, Const):
+ resloc = self.xrm.expand_int(op.result, arg)
+ return
+ args = op.getarglist()
+ resloc = self.xrm.force_result_in_reg(op.result, arg, args)
+ assert isinstance(op.result, BoxVector)
+ size = op.result.getsize()
+ self.perform(op, [resloc, imm(size)], resloc)
+
def consider_vec_int_signext(self, op):
args = op.getarglist()
resloc = self.xrm.force_result_in_reg(op.result, op.getarg(0), args)
diff --git a/rpython/jit/metainterp/test/test_jitprof.py
b/rpython/jit/metainterp/test/test_jitprof.py
--- a/rpython/jit/metainterp/test/test_jitprof.py
+++ b/rpython/jit/metainterp/test/test_jitprof.py
@@ -54,7 +54,7 @@
assert profiler.events == expected
assert profiler.times == [2, 1]
assert profiler.counters == [1, 1, 3, 3, 2, 15, 2, 0, 0, 0, 0,
- 0, 0, 0, 0, 0]
+ 0, 0, 0, 0, 0, 0, 0]
def test_simple_loop_with_call(self):
@dont_look_inside
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit