[pypy-dev] PPC64 JIT test_ppc.py tests fixed and working
David Edelsohn
dje.gcc at gmail.com
Thu Aug 18 21:51:17 CEST 2011
Sven,
With the attached patch, all of the ppc/ppcgen/test/test_ppc.py tests
pass except for test_call_function that I skip while I debug it.
I updated ppc_assembler.py:load_from() to load a full 64 bit value on
64 bit systems. It is not exactly right because I need to fix the
signed offset compensation code, but it allows the test to pass.
The multiply tests were failing because the tests perform a signed
comparison and the result of PPC 32 bit multiply instructions are not
implicitly sign extended. I sign extend the results on PPC64 and they
now pass.
test_load_and_store needs to use load_dword on PPC64 to load the
addresses into r8 and r9.
test_ld needs to allocate a 64 bit long, not a 32 bit int, and the
address needs to be loaded with load_dword.
Thanks, David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ppcjit-diff7
Type: application/octet-stream
Size: 3915 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20110818/d2215d85/attachment-0001.obj>
More information about the pypy-dev
mailing list