[pypy-dev] PPC JIT test_load_and_store()

Armin Rigo arigo at tunes.org
Thu Aug 18 17:28:26 CEST 2011


Hi David,

On Thu, Aug 18, 2011 at 4:50 PM, David Edelsohn <dje.gcc at gmail.com> wrote:
> r8 and r9 are not initialized and point to whatever locations those
> registers happen to hold.

I think that the test is just wrong...  You need to load explicitly
the address of some CArray in r8 and r9, for example with:

p = lltype.malloc(rffi.CArray(lltype.Signed), 2)
a.load_word(8, rffi.cast(lltype.Signed, p))
a.load_word(9, rffi.cast(lltype.Signed, p) + (4-or-8))


A bientôt,

Armin.


More information about the pypy-dev mailing list