Lines Matching refs:inst
142 sljit_uw* inst; in push_cpool() local
152 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_cpool()
153 FAIL_IF(!inst); in push_cpool()
155 *inst = 0xff000000 | compiler->cpool_fill; in push_cpool()
158 inst = (sljit_uw*)ensure_buf(compiler, sizeof(sljit_uw)); in push_cpool()
159 FAIL_IF(!inst); in push_cpool()
161 *inst = 0; 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 = *cpool_ptr++; in push_cpool()
177 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_uw inst) in push_inst() argument
187 *ptr = inst; in push_inst()
191 static sljit_s32 push_inst_with_literal(struct sljit_compiler *compiler, sljit_uw inst, sljit_uw li… in push_inst_with_literal() argument
228 SLJIT_ASSERT((inst & 0xfff) == 0); in push_inst_with_literal()
232 *ptr = inst | cpool_index; in push_inst_with_literal()
241 static sljit_s32 push_inst_with_unique_literal(struct sljit_compiler *compiler, sljit_uw inst, slji… in push_inst_with_unique_literal() argument
247 SLJIT_ASSERT(compiler->cpool_fill < CPOOL_SIZE && (inst & 0xfff) == 0); in push_inst_with_unique_literal()
251 *ptr = inst | compiler->cpool_fill; in push_inst_with_unique_literal()
385 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_uw inst) in push_inst() argument
392 *ptr = inst; in push_inst()
465 sljit_uw *inst = (sljit_uw *)ptr[0]; in inline_set_jump_addr() local
468 sljit_sw diff = (sljit_sw)(((sljit_sw)new_addr - (sljit_sw)(inst + 2) - executable_offset) >> 2); in inline_set_jump_addr()
476 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 0); in inline_set_jump_addr()
478 inst[0] = (mov_pc & COND_MASK) | (B - CONDITIONAL) | (diff & 0xffffff); in inline_set_jump_addr()
480 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 1); in inline_set_jump_addr()
481 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
482 SLJIT_CACHE_FLUSH(inst, inst + 1); in inline_set_jump_addr()
486 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 0); in inline_set_jump_addr()
488 inst[0] = (mov_pc & COND_MASK) | (BL - CONDITIONAL) | (diff & 0xffffff); in inline_set_jump_addr()
489 inst[1] = NOP; in inline_set_jump_addr()
491 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 1); in inline_set_jump_addr()
492 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
493 SLJIT_CACHE_FLUSH(inst, inst + 2); in inline_set_jump_addr()
499 ptr = inst + ((mov_pc & 0xfff) >> 2) + 2; in inline_set_jump_addr()
501 ptr = inst + 1; in inline_set_jump_addr()
503 if (*inst != mov_pc) { in inline_set_jump_addr()
505 SLJIT_UPDATE_WX_FLAGS(inst, inst + (!bl ? 1 : 2), 0); in inline_set_jump_addr()
507 inst[0] = mov_pc; in inline_set_jump_addr()
510 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 1); in inline_set_jump_addr()
511 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
512 SLJIT_CACHE_FLUSH(inst, inst + 1); in inline_set_jump_addr()
515 inst[1] = BLX | RM(TMP_REG1); in inline_set_jump_addr()
517 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 1); in inline_set_jump_addr()
518 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
519 SLJIT_CACHE_FLUSH(inst, inst + 2); in inline_set_jump_addr()
535 sljit_uw *inst = (sljit_uw*)jump_ptr; in inline_set_jump_addr()
539 SLJIT_ASSERT((inst[0] & 0xfff00000) == MOVW && (inst[1] & 0xfff00000) == MOVT); in inline_set_jump_addr()
542 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 0); in inline_set_jump_addr()
545 inst[0] = MOVW | (inst[0] & 0xf000) | ((new_addr << 4) & 0xf0000) | (new_addr & 0xfff); in inline_set_jump_addr()
546 inst[1] = MOVT | (inst[1] & 0xf000) | ((new_addr >> 12) & 0xf0000) | ((new_addr >> 16) & 0xfff); in inline_set_jump_addr()
549 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 1); in inline_set_jump_addr()
550 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_jump_addr()
551 SLJIT_CACHE_FLUSH(inst, inst + 2); in inline_set_jump_addr()
562 sljit_uw *inst = (sljit_uw*)ptr[0]; in inline_set_const() local
571 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 0); in inline_set_const()
574 *inst = 0xe3a00000 | (ldr_literal & 0xf000) | src2; in inline_set_const()
577 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 1); in inline_set_const()
578 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
579 SLJIT_CACHE_FLUSH(inst, inst + 1); in inline_set_const()
587 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 0); in inline_set_const()
590 *inst = 0xe3e00000 | (ldr_literal & 0xf000) | src2; in inline_set_const()
593 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 1); in inline_set_const()
594 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
595 SLJIT_CACHE_FLUSH(inst, inst + 1); in inline_set_const()
601 ptr = inst + ((ldr_literal & 0xfff) >> 2) + 2; in inline_set_const()
603 ptr = inst + 1; in inline_set_const()
605 if (*inst != ldr_literal) { in inline_set_const()
607 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 0); in inline_set_const()
610 *inst = ldr_literal; in inline_set_const()
613 SLJIT_UPDATE_WX_FLAGS(inst, inst + 1, 1); in inline_set_const()
614 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
615 SLJIT_CACHE_FLUSH(inst, inst + 1); in inline_set_const()
629 sljit_uw *inst = (sljit_uw*)addr; in inline_set_const()
633 SLJIT_ASSERT((inst[0] & 0xfff00000) == MOVW && (inst[1] & 0xfff00000) == MOVT); in inline_set_const()
636 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 0); in inline_set_const()
639 inst[0] = MOVW | (inst[0] & 0xf000) | ((new_constant << 4) & 0xf0000) | (new_constant & 0xfff); in inline_set_const()
640 …inst[1] = MOVT | (inst[1] & 0xf000) | ((new_constant >> 12) & 0xf0000) | ((new_constant >> 16) & 0… in inline_set_const()
643 SLJIT_UPDATE_WX_FLAGS(inst, inst + 2, 1); in inline_set_const()
644 inst = (sljit_uw *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in inline_set_const()
645 SLJIT_CACHE_FLUSH(inst, inst + 2); in inline_set_const()
1922 #define EMIT_FPU_DATA_TRANSFER(inst, add, base, freg, offs) \ argument
1923 ((inst) | ((add) << 23) | (reg_map[base] << 16) | (freg_map[freg] << 12) | (offs))
1930 sljit_sw inst = VSTR_F32 | (flags & (SLJIT_F32_OP | FPU_LOAD)); in emit_fop_mem() local
1944 return push_inst(compiler, EMIT_FPU_DATA_TRANSFER(inst, 1, arg & REG_MASK, reg, argw >> 2)); in emit_fop_mem()
1946 return push_inst(compiler, EMIT_FPU_DATA_TRANSFER(inst, 0, arg & REG_MASK, reg, (-argw) >> 2)); in emit_fop_mem()
1951 return push_inst(compiler, EMIT_FPU_DATA_TRANSFER(inst, 1, TMP_REG2, reg, (argw & 0x3fc) >> 2)); in emit_fop_mem()
1957 return push_inst(compiler, EMIT_FPU_DATA_TRANSFER(inst, 0, TMP_REG2, reg, (argw & 0x3fc) >> 2)); in emit_fop_mem()
1968 return push_inst(compiler, EMIT_FPU_DATA_TRANSFER(inst, 1, TMP_REG2, reg, 0)); in emit_fop_mem()
2672 sljit_uw is_type1_transfer, inst; in sljit_emit_mem() local
2734 inst = EMIT_DATA_TRANSFER(flags, 1, reg, mem & REG_MASK, RM(OFFS_REG(mem)) | (memw << 7)); in sljit_emit_mem()
2737 inst |= (1 << 25); in sljit_emit_mem()
2740 inst |= (1 << 21); in sljit_emit_mem()
2742 inst ^= (1 << 24); in sljit_emit_mem()
2744 return push_inst(compiler, inst); in sljit_emit_mem()
2747 inst = EMIT_DATA_TRANSFER(flags, 0, reg, mem & REG_MASK, 0); in sljit_emit_mem()
2750 inst |= (1 << 21); in sljit_emit_mem()
2752 inst ^= (1 << 24); in sljit_emit_mem()
2756 inst |= (1 << 23); in sljit_emit_mem()
2760 return push_inst(compiler, inst | memw); in sljit_emit_mem()
2764 inst |= (1 << 23); in sljit_emit_mem()
2768 return push_inst(compiler, inst | TYPE2_TRANSFER_IMM(memw)); in sljit_emit_mem()