jit/metainterp/test/test_ajit.py::TestLLtype::()::test_unichar_ord_is_never_signed_on_64bit
self = <rpython.jit.metainterp.test.test_ajit.TestLLtype instance at 0x000001db0c429ce0>
def test_unichar_ord_is_never_signed_on_64bit(self):
import sys
if sys.maxunicode == 0xffff:
py.test.skip("test for 32-bit unicodes")
def f(x):
return ord(rffi.cast(lltype.UniChar, x))
res = self.interp_operations(f, [-1])
if sys.maxint == 2147483647:
assert res == -1
else:
> assert res == 4294967295
E assert 65535 == 4294967295
jit\metainterp\test\test_ajit.py:4642: AssertionError
---------- Captured stdout call ----------
f:
0 int_and %i0, $65535 -> %i0
4 int_return %i0
bh: int_and [-1, 65535] -> 65535
bh: int_return [<BHInterp <JitCode 'f'>>, 65535] -> LeaveFrame!
---------- Captured stderr call ----------
[platform:msg] Updated environment with vsver 160, using x64 True
[rtyper] -=- specialized 4 blocks -=-
[rtyper] -=- specialized 4 more blocks -=-
[backendopt:malloc] starting malloc removal
[backendopt:malloc] removed 0 simple mallocs in total
[backendopt:mergeifblocks] starting to merge if blocks
[rtyper] -=- specialized 2 more blocks -=-
[rtyper] -=- specialized 7 more blocks -=-
[rtyper] -=- specialized 6 more blocks -=-
[rtyper] -=- specialized 19 more blocks -=-
[rtyper] -=- specialized 12 more blocks -=-
[jitcodewriter:info] making JitCodes...
[jitcodewriter:info] There are 1 JitCode instances.
[jitcodewriter:info] There are 0 -live- ops. Size of liveness is 0 bytes
[jitcodewriter] compute_bitstrings:
[jitcodewriter] 0 effectinfos:
[jitcodewriter] 0 descrs for arrays
[jitcodewriter] 0 descrs for fields
[jitcodewriter] 0 descrs for interiorfields
builder: rpython-win-x86-64 build #719*
test: jit/metainterp/test/test_ajit.py::TestLLtype::()::test_unichar_ord_is_never_signed_on_64bit