Lines Matching refs:addr
336 inst = (sljit_ins *)jump->addr; in detect_jump_type()
354 jump->addr -= sizeof(sljit_ins); in detect_jump_type()
360 jump->addr -= 2 * sizeof(sljit_ins); in detect_jump_type()
376 jump->addr -= sizeof(sljit_ins); in detect_jump_type()
382 …if ((jump->flags & IS_MOVABLE) && (target_addr & ~0xfffffff) == ((jump->addr + 2 * sizeof(sljit_in… in detect_jump_type()
391 else if ((target_addr & ~0xfffffff) == ((jump->addr + 3 * sizeof(sljit_ins)) & ~0xfffffff)) { in detect_jump_type()
397 jump->addr += sizeof(sljit_ins); in detect_jump_type()
403 if ((jump->flags & IS_MOVABLE) && (target_addr & ~0xfffffff) == (jump->addr & ~0xfffffff)) { in detect_jump_type()
407 jump->addr -= sizeof(sljit_ins); in detect_jump_type()
411 if ((target_addr & ~0xfffffff) == ((jump->addr + sizeof(sljit_ins)) & ~0xfffffff)) { in detect_jump_type()
473 sljit_uw addr = put_label->label->addr; in put_label_set() local
474 sljit_ins *inst = (sljit_ins *)put_label->addr; in put_label_set()
478 SLJIT_ASSERT(addr < 0x80000000l); in put_label_set()
479 inst[0] = LUI | T(reg) | IMM(addr >> 16); in put_label_set()
482 SLJIT_ASSERT(addr < 0x800000000000l); in put_label_set()
483 inst[0] = LUI | T(reg) | IMM(addr >> 32); in put_label_set()
484 inst[1] = ORI | S(reg) | T(reg) | IMM((addr >> 16) & 0xffff); in put_label_set()
489 inst[0] = LUI | T(reg) | IMM(addr >> 48); in put_label_set()
490 inst[1] = ORI | S(reg) | T(reg) | IMM((addr >> 32) & 0xffff); in put_label_set()
492 inst[3] = ORI | S(reg) | T(reg) | IMM((addr >> 16) & 0xffff); in put_label_set()
497 inst[1] = ORI | S(reg) | T(reg) | IMM(addr & 0xffff); in put_label_set()
512 sljit_uw addr; in sljit_generate_code() local
544 SLJIT_ASSERT(!jump || jump->addr >= word_count); in sljit_generate_code()
545 SLJIT_ASSERT(!const_ || const_->addr >= word_count); in sljit_generate_code()
546 SLJIT_ASSERT(!put_label || put_label->addr >= word_count); in sljit_generate_code()
550 label->addr = (sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
554 if (jump && jump->addr == word_count) { in sljit_generate_code()
556 jump->addr = (sljit_uw)(code_ptr - 3); in sljit_generate_code()
558 jump->addr = (sljit_uw)(code_ptr - 7); in sljit_generate_code()
563 if (const_ && const_->addr == word_count) { in sljit_generate_code()
564 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code()
567 if (put_label && put_label->addr == word_count) { in sljit_generate_code()
569 put_label->addr = (sljit_uw)code_ptr; in sljit_generate_code()
586 label->addr = (sljit_uw)code_ptr; in sljit_generate_code()
600 addr = (jump->flags & JUMP_LABEL) ? jump->u.label->addr : jump->u.target; in sljit_generate_code()
601 buf_ptr = (sljit_ins *)jump->addr; in sljit_generate_code()
604 …addr = (sljit_sw)(addr - ((sljit_uw)SLJIT_ADD_EXEC_OFFSET(buf_ptr, executable_offset) + sizeof(slj… in sljit_generate_code()
605 SLJIT_ASSERT((sljit_sw)addr <= SIMM_MAX && (sljit_sw)addr >= SIMM_MIN); in sljit_generate_code()
606 buf_ptr[0] = (buf_ptr[0] & 0xffff0000) | (addr & 0xffff); in sljit_generate_code()
610 …SLJIT_ASSERT((addr & ~0xfffffff) == (((sljit_uw)SLJIT_ADD_EXEC_OFFSET(buf_ptr, executable_offset) … in sljit_generate_code()
611 buf_ptr[0] |= (addr >> 2) & 0x03ffffff; in sljit_generate_code()
617 buf_ptr[0] = (buf_ptr[0] & 0xffff0000) | ((addr >> 16) & 0xffff); in sljit_generate_code()
618 buf_ptr[1] = (buf_ptr[1] & 0xffff0000) | (addr & 0xffff); in sljit_generate_code()
621 SLJIT_ASSERT(addr <= 0x7fffffff); in sljit_generate_code()
622 buf_ptr[0] = (buf_ptr[0] & 0xffff0000) | ((addr >> 16) & 0xffff); in sljit_generate_code()
623 buf_ptr[1] = (buf_ptr[1] & 0xffff0000) | (addr & 0xffff); in sljit_generate_code()
626 SLJIT_ASSERT(addr <= 0x7fffffffffffl); in sljit_generate_code()
627 buf_ptr[0] = (buf_ptr[0] & 0xffff0000) | ((addr >> 32) & 0xffff); in sljit_generate_code()
628 buf_ptr[1] = (buf_ptr[1] & 0xffff0000) | ((addr >> 16) & 0xffff); in sljit_generate_code()
629 buf_ptr[3] = (buf_ptr[3] & 0xffff0000) | (addr & 0xffff); in sljit_generate_code()
632 buf_ptr[0] = (buf_ptr[0] & 0xffff0000) | ((addr >> 48) & 0xffff); in sljit_generate_code()
633 buf_ptr[1] = (buf_ptr[1] & 0xffff0000) | ((addr >> 32) & 0xffff); in sljit_generate_code()
634 buf_ptr[3] = (buf_ptr[3] & 0xffff0000) | ((addr >> 16) & 0xffff); in sljit_generate_code()
635 buf_ptr[5] = (buf_ptr[5] & 0xffff0000) | (addr & 0xffff); in sljit_generate_code()
645 addr = put_label->label->addr; in sljit_generate_code()
646 buf_ptr = (sljit_ins *)put_label->addr; in sljit_generate_code()
649 buf_ptr[0] |= (addr >> 16) & 0xffff; in sljit_generate_code()
650 buf_ptr[1] |= addr & 0xffff; in sljit_generate_code()
1910 jump->addr = compiler->size; in sljit_emit_jump()
2048 jump->addr = compiler->size; in sljit_emit_cmp()
2092 jump->addr = compiler->size; in sljit_emit_ijump()