PPC: Integrate and enable JIT compiler.

This commit is contained in:
Mike Pall
2011-10-24 16:43:51 +02:00
parent fa9ade356b
commit 0cf8c20be8
7 changed files with 2603 additions and 6 deletions

View File

@@ -526,9 +526,13 @@ again:
idx = emitir(IRT(IR_BAND, IRT_INTP), idx, lj_ir_kintp(J, 1));
sz = lj_ctype_size(cts, (sid = ctype_cid(ct->info)));
idx = crec_reassoc_ofs(J, idx, &ofs, sz);
#if LJ_TARGET_ARM || LJ_TARGET_PPC
/* Hoist base add to allow fusion of index/shift into operands. */
if (LJ_LIKELY(J->flags & JIT_F_OPT_LOOP) && ofs
#if LJ_TARGET_ARM
/* Hoist base add to allow fusion of shifts into operands. */
if (LJ_LIKELY(J->flags & JIT_F_OPT_LOOP) && ofs && (sz == 1 || sz == 4)) {
&& (sz == 1 || sz == 4)
#endif
) {
ptr = emitir(IRT(IR_ADD, IRT_PTR), ptr, lj_ir_kintp(J, ofs));
ofs = 0;
}