Lines Matching refs:inst

151 	sljit_uw* inst;  in push_cpool()  local
161 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_cpool()
162 FAIL_IF(!inst); in push_cpool()
164 *inst = 0xff000000 | compiler->cpool_fill; in push_cpool()
167 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_cpool()
168 FAIL_IF(!inst); in push_cpool()
170 *inst = 0; in push_cpool()
176 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_cpool()
177 FAIL_IF(!inst); in push_cpool()
179 *inst = *cpool_ptr++; in push_cpool()
186 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_uw inst) in push_inst() argument
196 *ptr = inst; in push_inst()
200 static sljit_s32 push_inst_with_literal(struct sljit_compiler *compiler, sljit_uw inst, sljit_uw li… in push_inst_with_literal() argument
237 SLJIT_ASSERT((inst & 0xfff) == 0); in push_inst_with_literal()
241 *ptr = inst | cpool_index; in push_inst_with_literal()
250 static sljit_s32 push_inst_with_unique_literal(struct sljit_compiler *compiler, sljit_uw inst, slji… in push_inst_with_unique_literal() argument
256 SLJIT_ASSERT(compiler->cpool_fill < CPOOL_SIZE && (inst & 0xfff) == 0); in push_inst_with_unique_literal()
260 *ptr = inst | compiler->cpool_fill; in push_inst_with_unique_literal()
394 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_uw inst) in push_inst() argument
401 *ptr = inst; in push_inst()
474 sljit_uw *inst = (sljit_uw *)ptr[0]; in inline_set_jump_addr() local
477 sljit_sw diff = (sljit_sw)(((sljit_sw)new_addr - (sljit_sw)(inst + 2) - executable_offset) >> 2); in inline_set_jump_addr()
485 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 0); in inline_set_jump_addr()
487 inst[0] = (mov_pc & COND_MASK) | (B - CONDITIONAL) | (diff & 0xffffff); in inline_set_jump_addr()
489 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 1); in inline_set_jump_addr()
490 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
491 SLJIT_CACHE_FLUSH(inst, inst + 1); in inline_set_jump_addr()
495 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 0); in inline_set_jump_addr()
497 inst[0] = (mov_pc & COND_MASK) | (BL - CONDITIONAL) | (diff & 0xffffff); in inline_set_jump_addr()
498 inst[1] = NOP; in inline_set_jump_addr()
500 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 1); in inline_set_jump_addr()
501 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
502 SLJIT_CACHE_FLUSH(inst, inst + 2); in inline_set_jump_addr()
508 ptr = inst + ((mov_pc & 0xfff) >> 2) + 2; in inline_set_jump_addr()
510 ptr = inst + 1; in inline_set_jump_addr()
512 if (*inst != mov_pc) { in inline_set_jump_addr()
514 SLJIT_UPDATE_WX_FLAGS(inst, inst + (!bl ? 1 : 2), 0); in inline_set_jump_addr()
516 inst[0] = mov_pc; in inline_set_jump_addr()
519 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 1); in inline_set_jump_addr()
520 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
521 SLJIT_CACHE_FLUSH(inst, inst + 1); in inline_set_jump_addr()
524 inst[1] = BLX | RM(TMP_REG1); in inline_set_jump_addr()
526 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 1); in inline_set_jump_addr()
527 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
528 SLJIT_CACHE_FLUSH(inst, inst + 2); in inline_set_jump_addr()
544 sljit_uw *inst = (sljit_uw*)jump_ptr; in inline_set_jump_addr()
548 SLJIT_ASSERT((inst[0] & 0xfff00000) == MOVW && (inst[1] & 0xfff00000) == MOVT); in inline_set_jump_addr()
551 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 0); in inline_set_jump_addr()
554 inst[0] = MOVW | (inst[0] & 0xf000) | ((new_addr << 4) & 0xf0000) | (new_addr & 0xfff); in inline_set_jump_addr()
555 inst[1] = MOVT | (inst[1] & 0xf000) | ((new_addr >> 12) & 0xf0000) | ((new_addr >> 16) & 0xfff); in inline_set_jump_addr()
558 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 1); in inline_set_jump_addr()
559 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
560 SLJIT_CACHE_FLUSH(inst, inst + 2); in inline_set_jump_addr()
572 sljit_uw *inst = (sljit_uw*)ptr[0]; in inline_set_const() local
581 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 0); in inline_set_const()
584 *inst = 0xe3a00000 | (ldr_literal & 0xf000) | src2; in inline_set_const()
587 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 1); in inline_set_const()
588 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
589 SLJIT_CACHE_FLUSH(inst, inst + 1); in inline_set_const()
597 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 0); in inline_set_const()
600 *inst = 0xe3e00000 | (ldr_literal & 0xf000) | src2; in inline_set_const()
603 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 1); in inline_set_const()
604 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
605 SLJIT_CACHE_FLUSH(inst, inst + 1); in inline_set_const()
611 ptr = inst + ((ldr_literal & 0xfff) >> 2) + 2; in inline_set_const()
613 ptr = inst + 1; in inline_set_const()
615 if (*inst != ldr_literal) { in inline_set_const()
617 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 0); in inline_set_const()
620 *inst = ldr_literal; in inline_set_const()
623 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 1); in inline_set_const()
624 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
625 SLJIT_CACHE_FLUSH(inst, inst + 1); in inline_set_const()
639 sljit_uw *inst = (sljit_uw*)addr; in inline_set_const()
643 SLJIT_ASSERT((inst[0] & 0xfff00000) == MOVW && (inst[1] & 0xfff00000) == MOVT); in inline_set_const()
646 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 0); in inline_set_const()
649 inst[0] = MOVW | (inst[0] & 0xf000) | ((new_constant << 4) & 0xf0000) | (new_constant & 0xfff); in inline_set_const()
650inst[1] = MOVT | (inst[1] & 0xf000) | ((new_constant >> 12) & 0xf0000) | ((new_constant >> 16) & 0… in inline_set_const()
653 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 1); in inline_set_const()
654 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
655 SLJIT_CACHE_FLUSH(inst, inst + 2); in inline_set_const()
2162 #define EMIT_FPU_DATA_TRANSFER(inst, add, base, freg, offs) \ argument
2163 ((inst) | (sljit_uw)((add) << 23) | RN(base) | VD(freg) | (sljit_uw)(offs))
2168 sljit_uw inst = VSTR_F32 | (flags & (SLJIT_32 | FPU_LOAD)); in emit_fop_mem() local
2182 return push_inst(compiler, EMIT_FPU_DATA_TRANSFER(inst, 1, arg & REG_MASK, reg, argw >> 2)); in emit_fop_mem()
2184 return push_inst(compiler, EMIT_FPU_DATA_TRANSFER(inst, 0, arg & REG_MASK, reg, (-argw) >> 2)); in emit_fop_mem()
2189 return push_inst(compiler, EMIT_FPU_DATA_TRANSFER(inst, 1, TMP_REG2, reg, (argw & 0x3fc) >> 2)); in emit_fop_mem()
2195 return push_inst(compiler, EMIT_FPU_DATA_TRANSFER(inst, 0, TMP_REG2, reg, (argw & 0x3fc) >> 2)); in emit_fop_mem()
2206 return push_inst(compiler, EMIT_FPU_DATA_TRANSFER(inst, 1, TMP_REG2, reg, 0)); in emit_fop_mem()
2957 sljit_uw is_type1_transfer, inst; in sljit_emit_mem() local
3020inst = EMIT_DATA_TRANSFER(flags, 1, reg, mem & REG_MASK, RM(OFFS_REG(mem)) | ((sljit_uw)memw << 7)… in sljit_emit_mem()
3023 inst |= (1 << 25); in sljit_emit_mem()
3026 inst |= (1 << 21); in sljit_emit_mem()
3028 inst ^= (1 << 24); in sljit_emit_mem()
3030 return push_inst(compiler, inst); in sljit_emit_mem()
3033 inst = EMIT_DATA_TRANSFER(flags, 0, reg, mem & REG_MASK, 0); in sljit_emit_mem()
3036 inst |= (1 << 21); in sljit_emit_mem()
3038 inst ^= (1 << 24); in sljit_emit_mem()
3042 inst |= (1 << 23); in sljit_emit_mem()
3046 return push_inst(compiler, inst | (sljit_uw)memw); in sljit_emit_mem()
3050 inst |= (1 << 23); in sljit_emit_mem()
3054 return push_inst(compiler, inst | TYPE2_TRANSFER_IMM((sljit_uw)memw)); in sljit_emit_mem()