Lines Matching refs:sljit_ins

79 typedef sljit_u32 sljit_ins;  typedef
127 #define S(s) ((sljit_ins)reg_map[s] << 21)
128 #define T(t) ((sljit_ins)reg_map[t] << 16)
129 #define D(d) ((sljit_ins)reg_map[d] << 11)
130 #define FT(t) ((sljit_ins)freg_map[t] << 16)
131 #define FS(s) ((sljit_ins)freg_map[s] << 11)
132 #define FD(d) ((sljit_ins)freg_map[d] << 6)
134 #define SA(s) ((sljit_ins)(s) << 21)
135 #define TA(t) ((sljit_ins)(t) << 16)
136 #define DA(d) ((sljit_ins)(d) << 11)
137 #define IMM(imm) ((sljit_ins)(imm) & 0xffff)
138 #define SH_IMM(imm) ((sljit_ins)(imm) << 6)
142 #define HI(opcode) ((sljit_ins)(opcode) << 26)
143 #define LO(opcode) ((sljit_ins)(opcode))
463 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_ins ins, sljit_s32 delay_slot) in push_inst()
465 sljit_ins *ptr = (sljit_ins*)ensure_buf(compiler, sizeof(sljit_ins)); in push_inst()
467 || (sljit_ins)delay_slot == ((ins >> 11) & 0x1f) in push_inst()
468 || (sljit_ins)delay_slot == ((ins >> 16) & 0x1f)); in push_inst()
476 static SLJIT_INLINE sljit_ins invert_branch(sljit_uw flags) in invert_branch()
487 static SLJIT_INLINE sljit_ins* detect_jump_type(struct sljit_jump *jump, sljit_ins *code, sljit_sw … in detect_jump_type()
491 sljit_ins *inst; in detect_jump_type()
492 sljit_ins saved_inst; in detect_jump_type()
494 inst = (sljit_ins *)jump->addr; in detect_jump_type()
528 jump->addr -= sizeof(sljit_ins); in detect_jump_type()
534 jump->addr -= 2 * sizeof(sljit_ins); in detect_jump_type()
549 jump->addr -= sizeof(sljit_ins); in detect_jump_type()
555 …E) && (target_addr & ~(sljit_uw)0xfffffff) == ((jump->addr + 2 * sizeof(sljit_ins)) & ~(sljit_uw)0… in detect_jump_type()
564 …else if ((target_addr & ~(sljit_uw)0xfffffff) == ((jump->addr + 3 * sizeof(sljit_ins)) & ~(sljit_u… in detect_jump_type()
570 jump->addr += sizeof(sljit_ins); in detect_jump_type()
580 jump->addr -= sizeof(sljit_ins); in detect_jump_type()
584 …if ((target_addr & ~(sljit_uw)0xfffffff) == ((jump->addr + sizeof(sljit_ins)) & ~(sljit_uw)0xfffff… in detect_jump_type()
638 static SLJIT_INLINE sljit_sw mov_addr_get_length(struct sljit_jump *jump, sljit_ins *code, sljit_sw… in mov_addr_get_length()
666 sljit_ins *ins = (sljit_ins*)jump->addr; in load_addr_to_reg()
700 sljit_ins *code; in sljit_generate_code()
701 sljit_ins *code_ptr; in sljit_generate_code()
702 sljit_ins *buf_ptr; in sljit_generate_code()
703 sljit_ins *buf_end; in sljit_generate_code()
716 …code = (sljit_ins*)allocate_executable_memory(compiler->size * sizeof(sljit_ins), options, exec_al… in sljit_generate_code()
729 buf_ptr = (sljit_ins*)buf->memory; in sljit_generate_code()
798 buf_ptr = (sljit_ins *)jump->addr; in sljit_generate_code()
801 …_sw)(addr - (sljit_uw)SLJIT_ADD_EXEC_OFFSET(buf_ptr, executable_offset) - sizeof(sljit_ins)) >> 2); in sljit_generate_code()
803 buf_ptr[0] = (buf_ptr[0] & 0xffff0000) | ((sljit_ins)addr & 0xffff); in sljit_generate_code()
808 …== (((sljit_uw)SLJIT_ADD_EXEC_OFFSET(buf_ptr, executable_offset) + sizeof(sljit_ins)) & ~(sljit_uw… in sljit_generate_code()
809 buf_ptr[0] |= (sljit_ins)(addr >> 2) & 0x03ffffff; in sljit_generate_code()
821 compiler->executable_size = (sljit_uw)(code_ptr - code) * sizeof(sljit_ins); in sljit_generate_code()
823 code = (sljit_ins *)SLJIT_ADD_EXEC_OFFSET(code, executable_offset); in sljit_generate_code()
824 code_ptr = (sljit_ins *)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
916 …mit_stack_frame_release(struct sljit_compiler *compiler, sljit_s32 frame_size, sljit_ins *ins_ptr);
934 sljit_ins base; in sljit_emit_enter()
1164 …emit_stack_frame_release(struct sljit_compiler *compiler, sljit_s32 frame_size, sljit_ins *ins_ptr) in emit_stack_frame_release()
1248 sljit_ins ins; in sljit_emit_return_void()
1262 sljit_ins ins; in sljit_emit_return_to()
1302 static const sljit_ins data_transfer_insts[16 + 4] = {
1552 sljit_ins word_size = (op & SLJIT_32) ? 32 : 64; in emit_clz_ctz()
1554 sljit_ins word_size = 32; in emit_clz_ctz()
1699 sljit_ins op_imm, op_v; in emit_single_op()
1701 sljit_ins ins, op_dimm, op_dimm32, op_dv; in emit_single_op()
2159 …FAIL_IF(push_inst(compiler, op_imm | T(src1) | DA(OTHER_FLAG) | (((sljit_ins)src2 & 0x1f) << 6), O… in emit_single_op()
2167 …FAIL_IF(push_inst(compiler, op_imm | T(src1) | D(dst) | (((sljit_ins)src2 & 0x1f) << 6), DR(dst))); in emit_single_op()
2173 …FAIL_IF(push_inst(compiler, op_imm | T(src1) | DA(OTHER_FLAG) | ((sljit_ins)src2 << 6), OTHER_FLAG… in emit_single_op()
2177 …FAIL_IF(push_inst(compiler, op_imm | T(src1) | D(dst) | (((sljit_ins)src2 & 0x1f) << 6), DR(dst))); in emit_single_op()
2646 …D, D32, W) (((op & SLJIT_32) ? (W) : ((src2w) < 32) ? (D) : (D32)) | (((sljit_ins)src2w & 0x1f) <<…
2648 #define SELECT_OP3(op, src2w, D, D32, W) ((W) | ((sljit_ins)(src2w) << 6))
2676 sljit_ins ins1, ins2, ins3; in sljit_emit_shift_into()
2740 …FAIL_IF(push_inst(compiler, XORI | S(src3) | T(TMP_REG2) | ((sljit_ins)bit_length - 1), DR(TMP_REG… in sljit_emit_shift_into()
2834 return push_inst(compiler, *(sljit_ins*)instruction, UNMOVABLE_INS); in sljit_emit_op_custom()
2842 #define FMT(op) (FMT_S | (~(sljit_ins)op & SLJIT_32) << (21 - (5 + 3)))
2901 …FAIL_IF(push_inst(compiler, CVT_S_S | flags | (4 << 21) | ((~(sljit_ins)op & SLJIT_32) >> 8) | FS(… in sljit_emit_fop1_conv_f64_from_sw()
2943 …FAIL_IF(push_inst(compiler, CVT_S_S | flags | (4 << 21) | ((~(sljit_ins)op & SLJIT_32) >> 8) | FS(… in sljit_emit_fop1_conv_f64_from_uw()
3002 …FAIL_IF(push_inst(compiler, CVT_S_S | flags | (4 << 21) | ((~(sljit_ins)op & SLJIT_32) >> 8) | FS(… in sljit_emit_fop1_conv_f64_from_uw()
3023 …FAIL_IF(push_inst(compiler, CVT_S_S | flags | (4 << 21) | ((~(sljit_ins)op & SLJIT_32) >> 8) | FS(… in sljit_emit_fop1_conv_f64_from_uw()
3035 sljit_ins inst; in sljit_emit_fop1_cmp()
3120 …FAIL_IF(push_inst(compiler, CVT_S_S | (sljit_ins)((op & SLJIT_32) ? 1 : (1 << 21)) | FS(src) | FD(… in sljit_emit_fop1()
3290 sljit_ins inst; in sljit_emit_jump()
3407 sljit_ins inst; in sljit_emit_cmp()
3683 static sljit_ins get_select_cc(sljit_s32 type, sljit_s32 is_float) in get_select_cc()
3741 sljit_ins mov_ins = (type & SLJIT_32) ? ADDU : DADDU; in sljit_emit_select()
3744 sljit_ins mov_ins = ADDU; in sljit_emit_select()
3955 sljit_ins ins; in sljit_emit_mem()
3957 sljit_ins ins_right; in sljit_emit_mem()
4248 PTR_FAIL_IF(push_inst(compiler, (sljit_ins)dst_r, UNMOVABLE_INS)); in sljit_emit_mov_addr()