Lines Matching refs:sljit_ins

34 typedef sljit_u32 sljit_ins;  typedef
51 static void ppc_cache_flush(sljit_ins *from, sljit_ins *to) in ppc_cache_flush()
118 #define D(d) ((sljit_ins)reg_map[d] << 21)
119 #define S(s) ((sljit_ins)reg_map[s] << 21)
120 #define A(a) ((sljit_ins)reg_map[a] << 16)
121 #define B(b) ((sljit_ins)reg_map[b] << 11)
122 #define C(c) ((sljit_ins)reg_map[c] << 6)
123 #define FD(fd) ((sljit_ins)freg_map[fd] << 21)
124 #define FS(fs) ((sljit_ins)freg_map[fs] << 21)
125 #define FA(fa) ((sljit_ins)freg_map[fa] << 16)
126 #define FB(fb) ((sljit_ins)freg_map[fb] << 11)
127 #define FC(fc) ((sljit_ins)freg_map[fc] << 6)
128 #define IMM(imm) ((sljit_ins)(imm) & 0xffff)
129 #define CRD(d) ((sljit_ins)(d) << 21)
135 #define RC(flags) ((sljit_ins)((flags) & ALT_SET_FLAGS) >> 10)
136 #define HI(opcode) ((sljit_ins)(opcode) << 26)
137 #define LO(opcode) ((sljit_ins)(opcode) << 1)
257 #define RLWI_SH(sh) ((sljit_ins)(sh) << 11)
258 #define RLWI_MBE(mb, me) (((sljit_ins)(mb) << 6) | ((sljit_ins)(me) << 1))
259 #define RLDI_SH(sh) ((((sljit_ins)(sh) & 0x1f) << 11) | (((sljit_ins)(sh) & 0x20) >> 4))
260 #define RLDI_MB(mb) ((((sljit_ins)(mb) & 0x1f) << 6) | ((sljit_ins)(mb) & 0x20))
304 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_ins ins) in push_inst()
306 sljit_ins *ptr = (sljit_ins*)ensure_buf(compiler, sizeof(sljit_ins)); in push_inst()
313 static SLJIT_INLINE sljit_ins* detect_jump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit… in detect_jump_type()
365 jump->addr += sizeof(sljit_ins); in detect_jump_type()
402 static SLJIT_INLINE sljit_sw mov_addr_get_length(struct sljit_jump *jump, sljit_ins *code, sljit_sw… in mov_addr_get_length()
435 sljit_ins *ins = (sljit_ins*)jump->addr; in generate_jump_or_mov_addr()
444 ins[0] = BCx | ((sljit_ins)addr & 0xfffc) | (ins[0] & 0x03ff0001); in generate_jump_or_mov_addr()
447 ins[0] = BCx | ((sljit_ins)addr & 0xfffc) | 0x2 | ((*ins) & 0x03ff0001); in generate_jump_or_mov_addr()
455 ins[0] = Bx | ((sljit_ins)addr & 0x03fffffc) | (ins[0] & 0x1); in generate_jump_or_mov_addr()
458 ins[0] = Bx | ((sljit_ins)addr & 0x03fffffc) | 0x2 | (ins[0] & 0x1); in generate_jump_or_mov_addr()
590 sljit_ins *code; in sljit_generate_code()
591 sljit_ins *code_ptr; in sljit_generate_code()
592 sljit_ins *buf_ptr; in sljit_generate_code()
593 sljit_ins *buf_end; in sljit_generate_code()
610 …iler->size += (compiler->size & 0x1) + (sizeof(struct sljit_function_context) / sizeof(sljit_ins)); in sljit_generate_code()
612 compiler->size += (sizeof(struct sljit_function_context) / sizeof(sljit_ins)); in sljit_generate_code()
615 …code = (sljit_ins*)allocate_executable_memory(compiler->size * sizeof(sljit_ins), options, exec_al… in sljit_generate_code()
630 buf_ptr = (sljit_ins*)buf->memory; in sljit_generate_code()
653 …_ASSERT(((sljit_uw)code_ptr - jump->addr <= (jump->flags >> JUMP_SIZE_SHIFT) * sizeof(sljit_ins))); in sljit_generate_code()
692 … code <= (sljit_sw)(compiler->size - (sizeof(struct sljit_function_context) / sizeof(sljit_ins)))); in sljit_generate_code()
706 code = (sljit_ins *)SLJIT_ADD_EXEC_OFFSET(code, executable_offset); in sljit_generate_code()
716 code_ptr = (sljit_ins *)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
722 …compiler->executable_size = (sljit_uw)(code_ptr - code) * sizeof(sljit_ins) + sizeof(struct sljit_… in sljit_generate_code()
725 compiler->executable_size = (sljit_uw)(code_ptr - code) * sizeof(sljit_ins); in sljit_generate_code()
1096 ((sljit_ins)(inst) | (sljit_ins)(((flags) & MEM_MASK) <= GPR_REG ? D(reg) : FD(reg)))
1100 …(((sljit_ins)(inst) & ~(sljit_ins)INT_ALIGNED) | (sljit_ins)(((flags) & MEM_MASK) <= GPR_REG ? D(r…
1103 static const sljit_ins data_transfer_insts[64 + 16] = {
1168 static const sljit_ins updated_data_transfer_insts[64] = {
1239 sljit_ins inst; in emit_op_mem()
1746 compiler->imm = (sljit_ins)src2w & 0xffff; in sljit_emit_op2()
1750 compiler->imm = (sljit_ins)src1w & 0xffff; in sljit_emit_op2()
1754 compiler->imm = (sljit_ins)(src2w >> 16) & 0xffff; in sljit_emit_op2()
1758 compiler->imm = (sljit_ins)(src1w >> 16) & 0xffff; in sljit_emit_op2()
1763 compiler->imm = (sljit_ins)src2w & 0xffffffff; in sljit_emit_op2()
1767 compiler->imm = (sljit_ins)src1w & 0xffffffff; in sljit_emit_op2()
1775 compiler->imm = (sljit_ins)src2w & 0xffff; in sljit_emit_op2()
1779 compiler->imm = (sljit_ins)src1w & 0xffff; in sljit_emit_op2()
1787 compiler->imm = (sljit_ins)src2w & 0xffff; in sljit_emit_op2()
1791 compiler->imm = (sljit_ins)src1w & 0xffff; in sljit_emit_op2()
1807 compiler->imm = (sljit_ins)src2w & 0xffff; in sljit_emit_op2()
1814 compiler->imm = (sljit_ins)src2w; in sljit_emit_op2()
1822 compiler->imm = (sljit_ins)src2w & 0xffff; in sljit_emit_op2()
1830 compiler->imm = (sljit_ins)src2w & 0xffff; in sljit_emit_op2()
1840 compiler->imm = (sljit_ins)(-src2w) & 0xffff; in sljit_emit_op2()
1845 compiler->imm = (sljit_ins)src1w & 0xffff; in sljit_emit_op2()
1851 compiler->imm = (sljit_ins)((-src2w) >> 16) & 0xffff; in sljit_emit_op2()
1856 compiler->imm = (sljit_ins)-src2w; in sljit_emit_op2()
1875 compiler->imm = (sljit_ins)src2w & 0xffff; in sljit_emit_op2()
1879 compiler->imm = (sljit_ins)src1w & 0xffff; in sljit_emit_op2()
1900 compiler->imm = (sljit_ins)src2w; in sljit_emit_op2()
1904 compiler->imm = (sljit_ins)src1w; in sljit_emit_op2()
1908 compiler->imm = (sljit_ins)(src2w >> 16) & 0xffff; in sljit_emit_op2()
1912 compiler->imm = (sljit_ins)(src1w >> 16) & 0xffff; in sljit_emit_op2()
1919 compiler->imm = (sljit_ins)src2w; in sljit_emit_op2()
1923 compiler->imm = (sljit_ins)src1w; in sljit_emit_op2()
1942 compiler->imm = (sljit_ins)src2w; in sljit_emit_op2()
2171 return push_inst(compiler, *(sljit_ins*)instruction); in sljit_emit_op_custom()
2178 #define SELECT_FOP(op, single, double) ((sljit_ins)((op & SLJIT_32) ? single : double))
2416 static sljit_ins get_bo_bi_flags(struct sljit_compiler *compiler, sljit_s32 type) in get_bo_bi_flags()
2502 sljit_ins bo_bi_flags; in sljit_emit_jump()
2798 sljit_ins *ptr; in sljit_emit_select()
2836 ptr = (sljit_ins*)ensure_buf(compiler, sizeof(sljit_ins)); in sljit_emit_select()
2851 …*ptr = BCx | get_bo_bi_flags(compiler, (type ^ 0x1) & ~SLJIT_32) | (sljit_ins)((compiler->size - s… in sljit_emit_select()
2860 sljit_ins *ptr; in sljit_emit_fselect()
2882 ptr = (sljit_ins*)ensure_buf(compiler, sizeof(sljit_ins)); in sljit_emit_fselect()
2891 …*ptr = BCx | get_bo_bi_flags(compiler, (type ^ 0x1) & ~SLJIT_32) | (sljit_ins)((compiler->size - s… in sljit_emit_fselect()
2913 sljit_ins inst; in sljit_emit_mem()
2960 inst &= (sljit_ins)~INT_ALIGNED; in sljit_emit_mem()
2979 sljit_ins inst; in sljit_emit_mem_update()
3075 sljit_ins inst; in sljit_emit_fmem_update()
3145 PTR_FAIL_IF(push_inst(compiler, (sljit_ins)dst_r)); in sljit_emit_mov_addr()