Author: Richard Plangger <[email protected]>
Branch: vecopt-merge
Changeset: r80196:34775fad7013
Date: 2015-10-14 13:44 +0200
http://bitbucket.org/pypy/pypy/changeset/34775fad7013/
Log: own linux tests fixed
diff --git a/rpython/jit/metainterp/test/test_resoperation.py
b/rpython/jit/metainterp/test/test_resoperation.py
--- a/rpython/jit/metainterp/test/test_resoperation.py
+++ b/rpython/jit/metainterp/test/test_resoperation.py
@@ -95,7 +95,7 @@
VARI = rop.InputArgInt()
VARF = rop.InputArgFloat()
@py.test.mark.parametrize('opnum,args,kwargs',
- [ (rop.rop.INT_SIGNEXT, [VARI, ConstInt(2)], {'from': 8, 'to': 2,
'cast_to': ('i', 2) }),
+ [ (rop.rop.INT_SIGNEXT, [VARI, ConstInt(2)], {'from': INT_WORD, 'to': 2,
'cast_to': ('i', 2) }),
(rop.rop.CAST_FLOAT_TO_INT, [VARF], {'from': 8, 'to': 4}),
(rop.rop.CAST_SINGLEFLOAT_TO_FLOAT, [VARI], {'from': 4, 'to': 8}),
(rop.rop.CAST_FLOAT_TO_SINGLEFLOAT, [VARF], {'from': 8, 'to': 4}),
@@ -112,11 +112,11 @@
op = rop.ResOperation(rop.rop.VEC_UNPACK_I,
[rop.InputArgVector(), ConstInt(0), ConstInt(1)])
assert (op.type, op.datatype, op.bytesize, op.is_vector()) == \
- ('i', 'i', 8, False)
+ ('i', 'i', INT_WORD, False)
op = rop.ResOperation(rop.rop.VEC_UNPACK_I,
[rop.InputArgVector(), ConstInt(0), ConstInt(2)])
assert (op.type, op.datatype, op.bytesize, op.is_vector()) == \
- ('i', 'i', 8, True)
+ ('i', 'i', INT_WORD, True)
def test_load_singlefloat():
descr = ArrayDescr(8,4, None, 'S', concrete_type='f')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit