Lines Matching refs:sljit_ins
33 typedef sljit_u32 sljit_ins; typedef
54 #define W_OP ((sljit_ins)1 << 31)
55 #define RD(rd) ((sljit_ins)reg_map[rd])
56 #define RT(rt) ((sljit_ins)reg_map[rt])
57 #define RN(rn) ((sljit_ins)reg_map[rn] << 5)
58 #define RT2(rt2) ((sljit_ins)reg_map[rt2] << 10)
59 #define RM(rm) ((sljit_ins)reg_map[rm] << 16)
60 #define VD(vd) ((sljit_ins)freg_map[vd])
61 #define VT(vt) ((sljit_ins)freg_map[vt])
62 #define VT2(vt) ((sljit_ins)freg_map[vt] << 10)
63 #define VN(vn) ((sljit_ins)freg_map[vn] << 5)
64 #define VM(vm) ((sljit_ins)freg_map[vm] << 16)
190 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_ins ins) in push_inst()
192 sljit_ins *ptr = (sljit_ins*)ensure_buf(compiler, sizeof(sljit_ins)); in push_inst()
201 FAIL_IF(push_inst(compiler, MOVZ | RD(dst) | ((sljit_ins)(imm & 0xffff) << 5))); in emit_imm64_const()
202 …FAIL_IF(push_inst(compiler, MOVK | RD(dst) | (((sljit_ins)(imm >> 16) & 0xffff) << 5) | (1 << 21))… in emit_imm64_const()
203 …FAIL_IF(push_inst(compiler, MOVK | RD(dst) | (((sljit_ins)(imm >> 32) & 0xffff) << 5) | (2 << 21))… in emit_imm64_const()
204 return push_inst(compiler, MOVK | RD(dst) | ((sljit_ins)(imm >> 48) << 5) | (3 << 21)); in emit_imm64_const()
207 static SLJIT_INLINE sljit_ins* detect_jump_type(struct sljit_jump *jump, sljit_ins *code_ptr, sljit… in detect_jump_type()
229 jump->addr -= sizeof(sljit_ins); in detect_jump_type()
271 …INLINE sljit_sw mov_addr_get_length(struct sljit_jump *jump, sljit_ins *code_ptr, sljit_ins *code,… in mov_addr_get_length()
315 sljit_ins* buf_ptr = (sljit_ins*)jump->addr; in generate_jump_or_mov_addr()
323 buf_ptr[0] = (buf_ptr[0] & ~(sljit_ins)0xffffe0) | (sljit_ins)((addr & 0x7ffff) << 5); in generate_jump_or_mov_addr()
330 buf_ptr[0] = ((jump->flags & IS_BL) ? BL : B) | (sljit_ins)(addr & 0x3ffffff); in generate_jump_or_mov_addr()
339 …buf_ptr[0] = ADRP | (((sljit_ins)(addr >> 12) & 0x3) << 29) | (((sljit_ins)(addr >> 14) & 0x7ffff)… in generate_jump_or_mov_addr()
340 buf_ptr[1] = ADDI | dst | (dst << 5) | ((sljit_ins)(addr & 0xfff) << 10); in generate_jump_or_mov_addr()
349 …buf_ptr[0] = ADR | (((sljit_ins)addr & 0x3) << 29) | (((sljit_ins)(addr >> 2) & 0x7ffff) << 5) | d… in generate_jump_or_mov_addr()
356 …buf_ptr[0] = ADRP | (((sljit_ins)(addr >> 12) & 0x3) << 29) | (((sljit_ins)(addr >> 14) & 0x7ffff)… in generate_jump_or_mov_addr()
357 buf_ptr[1] = ADDI | dst | (dst << 5) | ((sljit_ins)(addr & 0xfff) << 10); in generate_jump_or_mov_addr()
365 buf_ptr[0] = MOVZ | (((sljit_ins)addr & 0xffff) << 5) | dst; in generate_jump_or_mov_addr()
366 buf_ptr[1] = MOVK | (((sljit_ins)(addr >> 16) & 0xffff) << 5) | (1 << 21) | dst; in generate_jump_or_mov_addr()
368 buf_ptr[2] = MOVK | (((sljit_ins)(addr >> 32) & 0xffff) << 5) | (2 << 21) | dst; in generate_jump_or_mov_addr()
371 buf_ptr[3] = MOVK | ((sljit_ins)((sljit_uw)addr >> 48) << 5) | (3 << 21) | dst; in generate_jump_or_mov_addr()
466 sljit_ins *code; in sljit_generate_code()
467 sljit_ins *code_ptr; in sljit_generate_code()
468 sljit_ins *buf_ptr; in sljit_generate_code()
469 sljit_ins *buf_end; in sljit_generate_code()
484 …code = (sljit_ins*)allocate_executable_memory(compiler->size * sizeof(sljit_ins), options, exec_al… in sljit_generate_code()
499 buf_ptr = (sljit_ins*)buf->memory; in sljit_generate_code()
521 …COND) || ((sljit_uw)code_ptr - jump->addr < (jump->flags >> JUMP_SIZE_SHIFT) * sizeof(sljit_ins))); in sljit_generate_code()
565 compiler->executable_size = (sljit_uw)(code_ptr - code) * sizeof(sljit_ins); in sljit_generate_code()
567 code = (sljit_ins *)SLJIT_ADD_EXEC_OFFSET(code, executable_offset); in sljit_generate_code()
568 code_ptr = (sljit_ins *)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset); in sljit_generate_code()
645 #define LOGICAL_IMM_CHECK (sljit_ins)0x100
647 static sljit_ins logical_imm(sljit_sw imm, sljit_u32 len) in logical_imm()
652 sljit_ins ins; in logical_imm()
718 sljit_ins bitmask; in load_immediate()
722 return push_inst(compiler, MOVZ | RD(dst) | ((sljit_ins)imm << 5)); in load_immediate()
725 return push_inst(compiler, MOVN | RD(dst) | (((sljit_ins)~imm & 0xffff) << 5)); in load_immediate()
729 return push_inst(compiler, MOVZ | RD(dst) | ((sljit_ins)(imm >> 16) << 5) | (1 << 21)); in load_immediate()
731 return push_inst(compiler, (MOVN ^ W_OP) | RD(dst) | (((sljit_ins)~imm & 0xffff) << 5)); in load_immediate()
733 …return push_inst(compiler, (MOVN ^ W_OP) | RD(dst) | (((sljit_ins)~imm & 0xffff0000u) >> (16 - 5))… in load_immediate()
739 FAIL_IF(push_inst(compiler, MOVZ | RD(dst) | (((sljit_ins)imm & 0xffff) << 5))); in load_immediate()
740 …return push_inst(compiler, MOVK | RD(dst) | (((sljit_ins)imm & 0xffff0000u) >> (16 - 5)) | (1 << 2… in load_immediate()
749 …return push_inst(compiler, MOVN | RD(dst) | (((sljit_ins)~imm & 0xffff0000u) >> (16 - 5)) | (1 << … in load_immediate()
751 FAIL_IF(push_inst(compiler, MOVN | RD(dst) | (((sljit_ins)~imm & 0xffff) << 5))); in load_immediate()
752 …return push_inst(compiler, MOVK | RD(dst) | (((sljit_ins)imm & 0xffff0000u) >> (16 - 5)) | (1 << 2… in load_immediate()
778 FAIL_IF(push_inst(compiler, MOVN | RD(dst) | (((sljit_ins)simm & 0xffff) << 5) | (i << 21))); in load_immediate()
781 FAIL_IF(push_inst(compiler, MOVK | RD(dst) | (((sljit_ins)~simm & 0xffff) << 5) | (i << 21))); in load_immediate()
794 FAIL_IF(push_inst(compiler, MOVZ | RD(dst) | (((sljit_ins)simm & 0xffff) << 5) | (i << 21))); in load_immediate()
797 FAIL_IF(push_inst(compiler, MOVK | RD(dst) | (((sljit_ins)simm & 0xffff) << 5) | (i << 21))); in load_immediate()
821 sljit_ins inv_bits = (flags & INT_OP) ? W_OP : 0; in emit_op_imm()
822 sljit_ins inst_bits; in emit_op_imm()
876 return push_inst(compiler, (ADDI ^ inv_bits) | RD(dst) | RN(reg) | ((sljit_ins)imm << 10)); in emit_op_imm()
881 return push_inst(compiler, (SUBI ^ inv_bits) | RD(dst) | RN(reg) | ((sljit_ins)nimm << 10)); in emit_op_imm()
885 …return push_inst(compiler, (ADDI ^ inv_bits) | RD(dst) | RN(reg) | (((sljit_ins)imm >> 12) << 10) … in emit_op_imm()
889 …return push_inst(compiler, (SUBI ^ inv_bits) | RD(dst) | RN(reg) | (((sljit_ins)nimm >> 12) << 10)… in emit_op_imm()
892 …FAIL_IF(push_inst(compiler, (ADDI ^ inv_bits) | RD(dst) | RN(reg) | (((sljit_ins)imm >> 12) << 10)… in emit_op_imm()
893 …return push_inst(compiler, (ADDI ^ inv_bits) | RD(dst) | RN(dst) | (((sljit_ins)imm & 0xfff) << 10… in emit_op_imm()
896 …FAIL_IF(push_inst(compiler, (SUBI ^ inv_bits) | RD(dst) | RN(reg) | (((sljit_ins)nimm >> 12) << 10… in emit_op_imm()
897 …return push_inst(compiler, (SUBI ^ inv_bits) | RD(dst) | RN(dst) | (((sljit_ins)nimm & 0xfff) << 1… in emit_op_imm()
929 inst_bits = (((sljit_ins)-imm & 0x1f) << 16) | ((31 - (sljit_ins)imm) << 10); in emit_op_imm()
932 …inst_bits = ((sljit_ins)1 << 22) | (((sljit_ins)-imm & 0x3f) << 16) | ((63 - (sljit_ins)imm) << 10… in emit_op_imm()
951 inst_bits = ((sljit_ins)imm << 16) | (31 << 10); in emit_op_imm()
954 inst_bits = ((sljit_ins)1 << 22) | ((sljit_ins)imm << 16) | (63 << 10); in emit_op_imm()
968 …r, (EXTR ^ (inv_bits | (inv_bits >> 9))) | RD(dst) | RN(arg1) | RM(arg1) | ((sljit_ins)imm << 10)); in emit_op_imm()
1041 FAIL_IF(push_inst(compiler, (REV16 ^ (sljit_ins)0x80000000) | RD(dst) | RN(arg2))); in emit_op_imm()
1049 FAIL_IF(push_inst(compiler, (REV ^ (sljit_ins)0x80000400) | RD(dst) | RN(arg2))); in emit_op_imm()
1130 #define MEM_SIZE_SHIFT(flags) ((sljit_ins)(flags) & 0x3)
1150 …t(compiler, ADD | RD(tmp_reg) | RN(arg & REG_MASK) | RM(OFFS_REG(arg)) | ((sljit_ins)argw << 10))); in emit_op_mem()
1161 return push_inst(compiler, STRBI | type | RT(reg) | RN(tmp_reg) | ((sljit_ins)argw << 10)); in emit_op_mem()
1167 … return push_inst(compiler, STRBI | type | RT(reg) | RN(arg) | ((sljit_ins)argw << (10 - shift))); in emit_op_mem()
1170 …FAIL_IF(push_inst(compiler, ADDI | (1 << 22) | RD(tmp_reg) | RN(arg) | (((sljit_ins)argw >> 12) <<… in emit_op_mem()
1173 return push_inst(compiler, STRBI | type | RT(reg) | RN(tmp_reg) | ((sljit_ins)argw << 10)); in emit_op_mem()
1176 …FAIL_IF(push_inst(compiler, SUBI | (1 << 22) | RD(tmp_reg) | RN(arg) | (((sljit_ins)(-argw + 0xfff… in emit_op_mem()
1178 return push_inst(compiler, STRBI | type | RT(reg) | RN(tmp_reg) | ((sljit_ins)argw << 10)); in emit_op_mem()
1183 return push_inst(compiler, STURBI | type | RT(reg) | RN(arg) | (((sljit_ins)argw & 0x1ff) << 12)); in emit_op_mem()
1190 …FAIL_IF(push_inst(compiler, ADDI | (1 << 22) | RD(tmp_reg) | RN(arg) | (((sljit_ins)argw >> 12) <<… in emit_op_mem()
1191 …return push_inst(compiler, STURBI | type | RT(reg) | RN(tmp_reg) | (((sljit_ins)argw & 0x1ff) << 1… in emit_op_mem()
1196 …FAIL_IF(push_inst(compiler, SUBI | (1 << 22) | RD(tmp_reg) | RN(arg) | (((sljit_ins)-argw >> 12) <… in emit_op_mem()
1197 …return push_inst(compiler, STURBI | type | RT(reg) | RN(tmp_reg) | (((sljit_ins)argw & 0x1ff) << 1… in emit_op_mem()
1216 sljit_ins offs; in sljit_emit_enter()
1230 | RN(SLJIT_SP) | (sljit_ins)((-(local_size >> 3) & 0x7f) << 15))); in sljit_emit_enter()
1231 offs = (sljit_ins)(local_size - 2 * SSIZE_OF(sw)) << (15 - 3); in sljit_emit_enter()
1236 …FAIL_IF(push_inst(compiler, SUBI | RD(SLJIT_SP) | RN(SLJIT_SP) | ((sljit_ins)saved_regs_size << 10… in sljit_emit_enter()
1237 offs = (sljit_ins)(saved_regs_size - 2 * SSIZE_OF(sw)) << (15 - 3); in sljit_emit_enter()
1251 offs -= (sljit_ins)2 << 15; in sljit_emit_enter()
1261 offs -= (sljit_ins)2 << 15; in sljit_emit_enter()
1274 offs -= (sljit_ins)2 << 15; in sljit_emit_enter()
1284 offs -= (sljit_ins)2 << 15; in sljit_emit_enter()
1333 FAIL_IF(push_inst(compiler, MOVZ | RD(TMP_REG1) | ((((sljit_ins)local_size >> 12) - 1) << 5))); in sljit_emit_enter()
1337 FAIL_IF(push_inst(compiler, B_CC | ((((sljit_ins) -3) & 0x7ffff) << 5) | 0x1 /* not-equal */)); in sljit_emit_enter()
1351 | RN(SLJIT_SP) | (sljit_ins)((-(local_size >> 3) & 0x7f) << 15))); in sljit_emit_enter()
1356 FAIL_IF(push_inst(compiler, SUBI | RD(SLJIT_SP) | RN(SLJIT_SP) | ((sljit_ins)local_size << 10))); in sljit_emit_enter()
1366 …FAIL_IF(push_inst(compiler, SUBI | RD(SLJIT_SP) | RN(SLJIT_SP) | (((sljit_ins)local_size >> 12) <<… in sljit_emit_enter()
1372 … FAIL_IF(push_inst(compiler, SUBI | RD(SLJIT_SP) | RN(SLJIT_SP) | ((sljit_ins)local_size << 10))); in sljit_emit_enter()
1377 | RN(SLJIT_SP) | (sljit_ins)((-(local_size >> 3) & 0x7f) << 15))); in sljit_emit_enter()
1405 sljit_ins offs; in emit_stack_frame_release()
1412 | RN(SLJIT_SP) | ((sljit_ins)(local_size - 512) << (15 - 3)))); in emit_stack_frame_release()
1418 …FAIL_IF(push_inst(compiler, LDRI_POST | RT(TMP_FP) | RN(SLJIT_SP) | ((sljit_ins)(local_size - 512)… in emit_stack_frame_release()
1428 | (((sljit_ins)local_size >> 12) << 10) | (1 << 22))); in emit_stack_frame_release()
1432 FAIL_IF(push_inst(compiler, ADDI | RD(SLJIT_SP) | RN(SLJIT_SP) | ((sljit_ins)local_size << 10))); in emit_stack_frame_release()
1436 offs = (sljit_ins)(local_size - 2 * SSIZE_OF(sw)) << (15 - 3); in emit_stack_frame_release()
1446 offs -= (sljit_ins)2 << 15; in emit_stack_frame_release()
1456 offs -= (sljit_ins)2 << 15; in emit_stack_frame_release()
1469 offs -= (sljit_ins)2 << 15; in emit_stack_frame_release()
1479 offs -= (sljit_ins)2 << 15; in emit_stack_frame_release()
1490 return push_inst(compiler, ADDI | RD(SLJIT_SP) | RN(SLJIT_SP) | (sljit_ins)(local_size << 10)); in emit_stack_frame_release()
1532 sljit_ins inv_bits = (op & SLJIT_32) ? W_OP : 0; in sljit_emit_op0()
1758 sljit_ins inv_bits, imm; in sljit_emit_shift_into()
1787 …| RN(is_left ? src1_reg : src2_reg) | RM(is_left ? src2_reg : src1_reg) | ((sljit_ins)src3w << 10)… in sljit_emit_shift_into()
1803 imm = (sljit_ins)(inv_bits ? ((1 << 16) | (31 << 10)) : ((1 << 16) | (63 << 10) | (1 << 22))); in sljit_emit_shift_into()
1805 imm = (sljit_ins)(inv_bits ? ((31 << 16) | (30 << 10)) : ((63 << 16) | (62 << 10) | (1 << 22))); in sljit_emit_shift_into()
1810 imm = (sljit_ins)(inv_bits ? (4 << 10) : ((5 << 10) | (1 << 22))); in sljit_emit_shift_into()
1907 return push_inst(compiler, *(sljit_ins*)instruction); in sljit_emit_op_custom()
1917 sljit_ins type = (shift << 30); in emit_fop_mem()
1930 …(compiler, ADD | RD(TMP_REG2) | RN(arg & REG_MASK) | RM(OFFS_REG(arg)) | ((sljit_ins)argw << 10))); in emit_fop_mem()
1941 return push_inst(compiler, STR_FI | type | VT(reg) | RN(TMP_REG2) | ((sljit_ins)argw << 10)); in emit_fop_mem()
1946 … return push_inst(compiler, STR_FI | type | VT(reg) | RN(arg) | ((sljit_ins)argw << (10 - shift))); in emit_fop_mem()
1949 …FAIL_IF(push_inst(compiler, ADDI | (1 << 22) | RD(TMP_REG2) | RN(arg) | (((sljit_ins)argw >> 12) <… in emit_fop_mem()
1952 return push_inst(compiler, STR_FI | type | VT(reg) | RN(TMP_REG2) | ((sljit_ins)argw << 10)); in emit_fop_mem()
1957 …return push_inst(compiler, STUR_FI | type | VT(reg) | RN(arg) | (((sljit_ins)argw & 0x1ff) << 12)); in emit_fop_mem()
1968 sljit_ins inv_bits = (op & SLJIT_32) ? (1 << 22) : 0; in sljit_emit_fop1_conv_sw_from_f64()
1985 static sljit_s32 sljit_emit_fop1_conv_f64_from_w(struct sljit_compiler *compiler, sljit_ins ins, in sljit_emit_fop1_conv_f64_from_w()
2010 sljit_ins inv_bits = (op & SLJIT_32) ? (1 << 22) : 0; in sljit_emit_fop1_conv_f64_from_sw()
2026 sljit_ins inv_bits = (op & SLJIT_32) ? (1 << 22) : 0; in sljit_emit_fop1_conv_f64_from_uw()
2043 sljit_ins inv_bits = (op & SLJIT_32) ? (1 << 22) : 0; in sljit_emit_fop1_cmp()
2069 sljit_ins inv_bits; in sljit_emit_fop1()
2100 …FAIL_IF(push_inst(compiler, FCVT | (sljit_ins)((op & SLJIT_32) ? (1 << 22) : (1 << 15)) | VD(dst_r… in sljit_emit_fop1()
2115 sljit_ins inv_bits = (op & SLJIT_32) ? (1 << 22) : 0; in sljit_emit_fop2()
2149 …FAIL_IF(push_inst(compiler, TBZ | ((op & SLJIT_32) ? 0 : ((sljit_ins)1 << 31)) | (0x1f << 19) | (2… in sljit_emit_fop2()
2179 …return push_inst(compiler, (FMOV_I ^ (1 << 22)) | (sljit_ins)((((u.imm >> 24) & 0x80) | ((u.imm >>… in sljit_emit_fset32()
2201 return push_inst(compiler, FMOV_R | RN(TMP_ZERO) | VD(freg) | (sljit_ins)1 << 16); in sljit_emit_fset64()
2207 …return push_inst(compiler, FMOV_I | (sljit_ins)((((u.imm >> 56) & 0x80) | ((u.imm >> 48) & 0x7f)) … in sljit_emit_fset64()
2217 sljit_ins inst; in sljit_emit_fcopy()
2237 static sljit_ins get_cc(struct sljit_compiler *compiler, sljit_s32 type) in get_cc()
2388 sljit_ins inv_bits = (type & SLJIT_32) ? W_OP : 0; in emit_cmp_to0()
2482 sljit_ins cc; in sljit_emit_op_flags()
2530 sljit_ins inv_bits = (type & SLJIT_32) ? W_OP : 0; in sljit_emit_select()
2531 sljit_ins cc; in sljit_emit_select()
2557 sljit_ins inv_bits = (type & SLJIT_32) ? (1 << 22) : 0; in sljit_emit_fselect()
2558 sljit_ins cc; in sljit_emit_fselect()
2594 …mpiler, ADD | RD(TMP_REG1) | RN(mem & REG_MASK) | RM(OFFS_REG(mem)) | ((sljit_ins)(memw & 0x3) << … in sljit_emit_mem()
2607 …FAIL_IF(push_inst(compiler, LDRI | RD(REG_PAIR_SECOND(reg)) | RN(mem & REG_MASK) | ((sljit_ins)mem… in sljit_emit_mem()
2608 …return push_inst(compiler, LDRI | RD(REG_PAIR_FIRST(reg)) | RN(mem & REG_MASK) | ((sljit_ins)(memw… in sljit_emit_mem()
2613 …FAIL_IF(push_inst(compiler, inst | RD(REG_PAIR_FIRST(reg)) | RN(mem & REG_MASK) | ((sljit_ins)memw… in sljit_emit_mem()
2614 …return push_inst(compiler, inst | RD(REG_PAIR_SECOND(reg)) | RN(mem & REG_MASK) | ((sljit_ins)(mem… in sljit_emit_mem()
2618 FAIL_IF(push_inst(compiler, inst | RD(TMP_REG1) | RN(mem & REG_MASK) | ((sljit_ins)memw << 10))); in sljit_emit_mem()
2621 …FAIL_IF(push_inst(compiler, inst | (1 << 22) | RD(TMP_REG1) | RN(mem & REG_MASK) | (((sljit_ins)me… in sljit_emit_mem()
2624 …FAIL_IF(push_inst(compiler, inst | RD(TMP_REG1) | RN(TMP_REG1) | (((sljit_ins)memw & 0xfff) << 10)… in sljit_emit_mem()
2642 …EG_PAIR_FIRST(reg)) | RT2(REG_PAIR_SECOND(reg)) | RN(mem & REG_MASK) | (sljit_ins)((memw & 0x3f8) … in sljit_emit_mem()
2696 …return push_inst(compiler, inst | RT(reg) | RN(mem & REG_MASK) | (sljit_ins)((memw & 0x1ff) << 12)… in sljit_emit_mem_update()
2725 …return push_inst(compiler, inst | VT(freg) | RN(mem & REG_MASK) | (sljit_ins)((memw & 0x1ff) << 12… in sljit_emit_fmem_update()
2730 sljit_ins ins; in sljit_emit_simd_mem_offset()
2735 …mpiler, ADD | RD(TMP_REG2) | RN(mem & REG_MASK) | RM(OFFS_REG(mem)) | ((sljit_ins)(memw & 0x3) << … in sljit_emit_simd_mem_offset()
2765 …FAIL_IF(push_inst(compiler, ins | (1 << 22) | RD(TMP_REG2) | RN(mem) | ((sljit_ins)(memw >> 12) <<… in sljit_emit_simd_mem_offset()
2774 return push_inst(compiler, ins | RD(TMP_REG2) | RN(mem) | ((sljit_ins)memw << 10)); in sljit_emit_simd_mem_offset()
2783 sljit_ins ins; in sljit_emit_simd_mov()
2821 return push_inst(compiler, ins | ((sljit_ins)elem_size << 10) | RN(srcdst) | VT(freg)); in sljit_emit_simd_mov()
2824 static sljit_ins simd_get_imm(sljit_s32 elem_size, sljit_uw value) in simd_get_imm()
2826 sljit_ins result; in simd_get_imm()
2865 return ~(sljit_ins)0; in simd_get_imm()
2912 return ~(sljit_ins)0; in simd_get_imm()
2919 return ~(sljit_ins)0; in simd_get_imm()
2922 return (((sljit_ins)value & 0x1f) << 5) | (((sljit_ins)value & 0xe0) << 11) | result; in simd_get_imm()
2931 sljit_ins ins, imm; in sljit_emit_simd_replicate()
2950 ins = (sljit_ins)elem_size << 10; in sljit_emit_simd_replicate()
2953 ins |= (sljit_ins)1 << 30; in sljit_emit_simd_replicate()
2958 ins = (sljit_ins)1 << (16 + elem_size); in sljit_emit_simd_replicate()
2961 ins |= (sljit_ins)1 << 30; in sljit_emit_simd_replicate()
2965 return push_inst(compiler, MOVI | (ins & ((sljit_ins)1 << 30)) | VD(freg)); in sljit_emit_simd_replicate()
2976 if (imm != ~(sljit_ins)0) { in sljit_emit_simd_replicate()
2977 imm |= ins & ((sljit_ins)1 << 30); in sljit_emit_simd_replicate()
2995 sljit_ins ins; in sljit_emit_simd_lane_mov()
3012 ins = (reg_size == 3) ? 0 : ((sljit_ins)1 << 30); in sljit_emit_simd_lane_mov()
3031 ins = (sljit_ins)0x2000 << elem_size; in sljit_emit_simd_lane_mov()
3034 ins |= (sljit_ins)(((lane_index & 0x8) << 27) | ((lane_index & 0x7) << 10)); in sljit_emit_simd_lane_mov()
3041 …ins = INS_e | ((sljit_ins)1 << (16 + elem_size)) | ((sljit_ins)lane_index << (11 + elem_size)) | V… in sljit_emit_simd_lane_mov()
3043 ins = INS_e | ((((sljit_ins)lane_index << 1) | 1) << (16 + elem_size)) | VD(freg) | VN(srcdst); in sljit_emit_simd_lane_mov()
3063 ins |= (sljit_ins)1 << 30; in sljit_emit_simd_lane_mov()
3070 ins |= (sljit_ins)1 << 30; in sljit_emit_simd_lane_mov()
3072 return push_inst(compiler, ins | ((((sljit_ins)lane_index << 1) | 1) << (16 + elem_size))); in sljit_emit_simd_lane_mov()
3081 sljit_ins ins; in sljit_emit_simd_lane_replicate()
3095 ins = (((sljit_ins)src_lane_index << 1) | 1) << (16 + elem_size); in sljit_emit_simd_lane_replicate()
3098 ins |= (sljit_ins)1 << 30; in sljit_emit_simd_lane_replicate()
3129 FAIL_IF(push_inst(compiler, LD1 | ((sljit_ins)elem_size << 10) | RN(src) | VT(freg))); in sljit_emit_simd_extend()
3131 …FAIL_IF(push_inst(compiler, LD1_s | ((sljit_ins)0x2000 << (reg_size - elem2_size + elem_size)) | R… in sljit_emit_simd_extend()
3142 | ((sljit_ins)1 << (19 + elem_size)) | VD(freg) | VN(src))); in sljit_emit_simd_extend()
3155 sljit_ins ins, imms; in sljit_emit_simd_sign()
3197 …FAIL_IF(push_inst(compiler, XTN | ((sljit_ins)(elem_size - 1) << 22) | VD(TMP_FREG1) | VN(TMP_FREG… in sljit_emit_simd_sign()
3231 sljit_ins ins = 0; in sljit_emit_simd_op2()
3258 ins |= (sljit_ins)1 << 30; in sljit_emit_simd_op2()
3267 sljit_ins ins; in sljit_emit_atomic_load()
3313 sljit_ins ins; in sljit_emit_atomic_store()
3315 sljit_ins cmp = 0; in sljit_emit_atomic_store()
3316 sljit_ins inv_bits = W_OP; in sljit_emit_atomic_store()
3386 sljit_ins ins; in sljit_get_local_base()
3403 FAIL_IF(push_inst(compiler, ins | RD(dst_reg) | RN(SLJIT_SP) | (sljit_ins)(offset << 10))); in sljit_get_local_base()
3405 …FAIL_IF(push_inst(compiler, ins | RD(dst_reg) | RN(SLJIT_SP) | (sljit_ins)((offset & 0xfff000) >> … in sljit_get_local_base()
3409 FAIL_IF(push_inst(compiler, ins | RD(dst_reg) | RN(dst_reg) | (sljit_ins)(offset << 10))); in sljit_get_local_base()
3470 sljit_ins* inst = (sljit_ins*)addr; in sljit_set_jump_addr()
3484 inst = (sljit_ins *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in sljit_set_jump_addr()