Commits

Sven Hager committed 8c66e66

use load instead of lwz/ld and store instead of stw/std

Comments (0)

Files changed (1)

pypy/jit/backend/ppc/ppc_assembler.py

             mc.subf(r.r3.value, r.r3.value, r.r4.value)
             addr = self.cpu.gc_ll_descr.get_malloc_slowpath_addr()
             for reg, ofs in PPCRegisterManager.REGLOC_TO_COPY_AREA_OFS.items():
-                if IS_PPC_32:
-                    mc.stw(reg.value, r.SPP.value, ofs)
-                else:
-                    mc.std(reg.value, r.SPP.value, ofs)
+                mc.store(reg.value, r.SPP.value, ofs)
             mc.call(addr)
             for reg, ofs in PPCRegisterManager.REGLOC_TO_COPY_AREA_OFS.items():
-                if IS_PPC_32:
-                    mc.lwz(reg.value, r.SPP.value, ofs)
-                else:
-                    mc.ld(reg.value, r.SPP.value, ofs)
+                mc.load(reg.value, r.SPP.value, ofs)
 
         mc.cmp_op(0, r.r3.value, 0, imm=True)
         jmp_pos = mc.currpos()
         elif loc.is_reg():
             self.mc.addi(r.SP.value, r.SP.value, -WORD) # decrease stack pointer
             # push value
-            if IS_PPC_32:
-                self.mc.stw(loc.value, r.SP.value, 0)
-            else:
-                self.mc.std(loc.value, r.SP.value, 0)
+            self.mc.store(loc.value, r.SP.value, 0)
         elif loc.is_imm():
             assert 0, "not implemented yet"
         elif loc.is_imm_float():
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.