Commits

Sven Hager committed 440b913

Fixed bug in load_from_addr. It did not do the intended stuff when called with r0.

Comments (0)

Files changed (1)

pypy/jit/backend/ppc/ppcgen/codebuilder.py

 
     def load_from_addr(self, rD, addr):
         if IS_PPC_32:
-            self.addis(rD, 0, ha(addr))
-            self.lwz(rD, rD, la(addr))
+            self.load_imm(rD, addr)
+            self.lwzx(rD.value, 0, rD.value)
         else:
             self.load_word(rD, addr)
             self.ld(rD, rD, 0)