Lines Matching refs:sljit_uw
59 #define NEGATE(uimm) ((sljit_uw)-(sljit_sw)(uimm))
237 …JIT_INLINE sljit_s32 emit_imm32_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_uw imm) in emit_imm32_const()
245 static SLJIT_INLINE void modify_imm32_const(sljit_u16 *inst, sljit_uw new_imm) in modify_imm32_const()
382 sljit_uw half_count; in sljit_generate_code()
383 sljit_uw next_addr; in sljit_generate_code()
422 label->addr = ((sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset)) | 0x1; in sljit_generate_code()
423 label->size = (sljit_uw)(code_ptr - code); in sljit_generate_code()
427 jump->addr = (sljit_uw)code_ptr - ((jump->flags & IS_COND) ? 10 : 8); in sljit_generate_code()
432 const_->addr = (sljit_uw)code_ptr; in sljit_generate_code()
437 put_label->addr = (sljit_uw)code_ptr; in sljit_generate_code()
450 label->addr = ((sljit_uw)SLJIT_ADD_EXEC_OFFSET(code_ptr, executable_offset)) | 0x1; in sljit_generate_code()
451 label->size = (sljit_uw)(code_ptr - code); in sljit_generate_code()
475 compiler->executable_size = (sljit_uw)(code_ptr - code) * sizeof(sljit_u16); in sljit_generate_code()
484 return (void*)((sljit_uw)code | 0x1); in sljit_generate_code()
515 static sljit_uw get_imm(sljit_uw imm) in get_imm()
564 static sljit_s32 load_immediate(struct sljit_compiler *compiler, sljit_s32 dst, sljit_uw imm) in load_immediate()
566 sljit_uw tmp; in load_immediate()
596 …_imm(struct sljit_compiler *compiler, sljit_s32 flags, sljit_s32 dst, sljit_uw arg1, sljit_uw arg2) in emit_op_imm()
602 sljit_uw imm, imm2; in emit_op_imm()
1015 sljit_uw imm; in emit_set_delta()
1020 imm = get_imm((sljit_uw)value); in emit_set_delta()
1028 imm = get_imm((sljit_uw)value); in emit_set_delta()
1039 sljit_uw imm, tmp; in emit_op_mem()
1045 imm = get_imm((sljit_uw)argw & ~(sljit_uw)0xfff); in emit_op_mem()
1051 FAIL_IF(load_immediate(compiler, tmp_reg, (sljit_uw)argw)); in emit_op_mem()
1070 imm = get_imm((sljit_uw)(argw & ~0xfff)); in emit_op_mem()
1078 tmp = (sljit_uw)((-argw + 0xfff) & ~0xfff); in emit_op_mem()
1079 SLJIT_ASSERT(tmp >= (sljit_uw)-argw); in emit_op_mem()
1124 FAIL_IF(load_immediate(compiler, tmp_reg, (sljit_uw)argw)); in emit_op_mem()
1143 sljit_uw offset; in sljit_emit_enter()
1144 sljit_uw imm = 0; in sljit_emit_enter()
1159 imm |= (sljit_uw)1 << reg_map[i]; in sljit_emit_enter()
1162 imm |= (sljit_uw)1 << reg_map[i]; in sljit_emit_enter()
1179 …FAIL_IF(push_inst32(compiler, VPUSH | DD4(SLJIT_FS0) | ((sljit_uw)SLJIT_NUMBER_OF_SAVED_FLOAT_REGI… in sljit_emit_enter()
1182 FAIL_IF(push_inst32(compiler, VPUSH | DD4(SLJIT_FS0) | ((sljit_uw)fsaveds << 1))); in sljit_emit_enter()
1184 …FAIL_IF(push_inst32(compiler, VPUSH | DD4(fscratches) | ((sljit_uw)(fscratches - (SLJIT_FIRST_SAVE… in sljit_emit_enter()
1213 | (float_arg_count << 12) | ((offset + (sljit_uw)size - 4 * sizeof(sljit_sw)) >> 2))); in sljit_emit_enter()
1222 | (float_arg_count << 12) | ((offset + (sljit_uw)size - 4 * sizeof(sljit_sw)) >> 2))); in sljit_emit_enter()
1240 | ((offset + (sljit_uw)size - 4 * sizeof(sljit_sw)) >> 2))); in sljit_emit_enter()
1243 | ((offset + (sljit_uw)size - 4 * sizeof(sljit_sw))))); in sljit_emit_enter()
1289 SLJIT_ASSERT((sljit_uw)(remap_ptr - remap) <= sizeof(remap)); in sljit_emit_enter()
1313 FAIL_IF(load_immediate(compiler, TMP_REG2, ((sljit_uw)local_size >> 12) - 1)); in sljit_emit_enter()
1328 FAIL_IF(push_inst16(compiler, SUB_SP_I | ((sljit_uw)local_size >> 2))); in sljit_emit_enter()
1330 FAIL_IF(emit_op_imm(compiler, SLJIT_SUB | ARG2_IMM, SLJIT_SP, SLJIT_SP, (sljit_uw)local_size)); in sljit_emit_enter()
1334 …FAIL_IF(push_inst32(compiler, LDRI | 0x500 | RT4(TMP_REG1) | RN4(SLJIT_SP) | (sljit_uw)local_size)… in sljit_emit_enter()
1338 FAIL_IF(push_inst16(compiler, SUB_SP_I | ((sljit_uw)local_size >> 2))); in sljit_emit_enter()
1340 FAIL_IF(emit_op_imm(compiler, SLJIT_SUB | ARG2_IMM, SLJIT_SP, SLJIT_SP, (sljit_uw)local_size)); in sljit_emit_enter()
1366 static sljit_s32 emit_add_sp(struct sljit_compiler *compiler, sljit_uw imm) in emit_add_sp()
1368 sljit_uw imm2; in emit_add_sp()
1391 sljit_uw reg_list = 0; in emit_stack_frame_release()
1401 FAIL_IF(emit_add_sp(compiler, (sljit_uw)local_size)); in emit_stack_frame_release()
1404 …FAIL_IF(push_inst32(compiler, VPOP | DD4(SLJIT_FS0) | ((sljit_uw)SLJIT_NUMBER_OF_SAVED_FLOAT_REGIS… in emit_stack_frame_release()
1407 …FAIL_IF(push_inst32(compiler, VPOP | DD4(fscratches) | ((sljit_uw)(fscratches - (SLJIT_FIRST_SAVED… in emit_stack_frame_release()
1409 FAIL_IF(push_inst32(compiler, VPOP | DD4(SLJIT_FS0) | ((sljit_uw)fsaveds << 1))); in emit_stack_frame_release()
1429 reg_list |= (sljit_uw)1 << reg_map[i]; in emit_stack_frame_release()
1437 reg_list |= (sljit_uw)1 << reg_map[i]; in emit_stack_frame_release()
1442 reg_list |= (sljit_uw)1 << reg_map[TMP_REG2]; in emit_stack_frame_release()
1482 FAIL_IF(emit_add_sp(compiler, (sljit_uw)(local_size - frame_size))); in emit_stack_frame_release()
1503 FAIL_IF(emit_add_sp(compiler, (sljit_uw)local_size)); in emit_stack_frame_release()
1515 reg_list |= (sljit_uw)1 << reg_map[lr_dst]; in emit_stack_frame_release()
1591 sljit_uw saved_reg_list[3]; in sljit_emit_op0()
1592 sljit_uw saved_reg_count; in sljit_emit_op0()
1733 FAIL_IF(emit_op_imm(compiler, SLJIT_MOV | ARG2_IMM, dst_r, TMP_REG2, (sljit_uw)srcw)); in sljit_emit_op1()
1738 return emit_op_imm(compiler, op, dst_r, TMP_REG2, (sljit_uw)src); in sljit_emit_op1()
1755 emit_op_imm(compiler, flags | op, dst_r, TMP_REG2, (sljit_uw)src); in sljit_emit_op1()
1800 emit_op_imm(compiler, flags | GET_OPCODE(op), dst_reg, (sljit_uw)src1w, (sljit_uw)src2w); in sljit_emit_op2()
1853 FAIL_IF(load_immediate(compiler, TMP_REG1, (sljit_uw)src1w)); in sljit_emit_shift_into()
1943 sljit_uw imm; in emit_fop_mem()
1950 …, ADD_W | RD4(TMP_REG1) | RN4(arg & REG_MASK) | RM4(OFFS_REG(arg)) | (((sljit_uw)argw & 0x3) << 6)… in emit_fop_mem()
1957 …return push_inst32(compiler, inst | 0x800000 | RN4(arg & REG_MASK) | DD4(reg) | ((sljit_uw)argw >>… in emit_fop_mem()
1959 return push_inst32(compiler, inst | RN4(arg & REG_MASK) | DD4(reg) | ((sljit_uw)-argw >> 2)); in emit_fop_mem()
1968 imm = get_imm((sljit_uw)argw & ~(sljit_uw)0x3fc); in emit_fop_mem()
1971 …return push_inst32(compiler, inst | 0x800000 | RN4(TMP_REG1) | DD4(reg) | (((sljit_uw)argw & 0x3fc… in emit_fop_mem()
1974 imm = get_imm((sljit_uw)-argw & ~(sljit_uw)0x3fc); in emit_fop_mem()
1978 return push_inst32(compiler, inst | RN4(TMP_REG1) | DD4(reg) | (((sljit_uw)argw & 0x3fc) >> 2)); in emit_fop_mem()
1982 FAIL_IF(load_immediate(compiler, TMP_REG1, (sljit_uw)argw)); in emit_fop_mem()
2023 FAIL_IF(load_immediate(compiler, TMP_REG1, (sljit_uw)srcw)); in sljit_emit_fop1_conv_f64_from_sw()
2169 static sljit_uw get_cc(struct sljit_compiler *compiler, sljit_s32 type) in get_cc()
2353 offset = ((offset - 4 * sizeof(sljit_sw)) + 0x7) & ~(sljit_uw)0x7; in softfloat_call_with_args()
2564 jump->u.target = (sljit_uw)srcw; in sljit_emit_ijump()
2718 sljit_uw cc, tmp; in sljit_emit_cmov()
2730 tmp = (sljit_uw) srcw; in sljit_emit_cmov()
2739 tmp = get_imm((sljit_uw)srcw); in sljit_emit_cmov()
2745 tmp = get_imm(~(sljit_uw)srcw); in sljit_emit_cmov()
2753 tmp = (sljit_uw) srcw; in sljit_emit_cmov()
2765 sljit_uw imm, tmp; in sljit_emit_mem()
2776 imm = get_imm((sljit_uw)((memw + 0x1000) & ~0xfff)); in sljit_emit_mem()
2781 imm = get_imm((sljit_uw)(memw & ~0xfff)); in sljit_emit_mem()
2788 FAIL_IF(load_immediate(compiler, TMP_REG1, (sljit_uw)memw)); in sljit_emit_mem()
2795 …r, ADD_W | RD4(TMP_REG1) | RN4(mem & REG_MASK) | RM4(OFFS_REG(mem)) | ((sljit_uw)(memw & 0x3) << 6… in sljit_emit_mem()
2801 tmp = (sljit_uw)((-memw + 0x7ff) & ~0x7ff); in sljit_emit_mem()
2803 tmp = (sljit_uw)((-memw + 0xfff) & ~0xfff); in sljit_emit_mem()
2805 SLJIT_ASSERT(tmp >= (sljit_uw)-memw); in sljit_emit_mem()
2813 FAIL_IF(load_immediate(compiler, TMP_REG1, (sljit_uw)memw)); in sljit_emit_mem()
2821 imm = get_imm((sljit_uw)((memw + 0x1000) & ~0xfff)); in sljit_emit_mem()
2826 imm = get_imm((sljit_uw)(memw & ~0xfff)); in sljit_emit_mem()
2836 FAIL_IF(load_immediate(compiler, TMP_REG1, (sljit_uw)memw)); in sljit_emit_mem()
2862 tmp = (sljit_uw)(memw & 0x7fc); in sljit_emit_mem()
2863 imm = get_imm((sljit_uw)((memw + (tmp <= 0x400 ? 0 : 0x400)) & ~0x3fc)); in sljit_emit_mem()
2866 FAIL_IF(load_immediate(compiler, TMP_REG1, (sljit_uw)memw)); in sljit_emit_mem()
2882 …r, ADD_W | RD4(TMP_REG1) | RN4(mem & REG_MASK) | RM4(OFFS_REG(mem)) | ((sljit_uw)(memw & 0x3) << 6… in sljit_emit_mem()
2890 tmp = (sljit_uw)(-memw & 0x7fc); in sljit_emit_mem()
2891 imm = get_imm((sljit_uw)((-memw + (tmp <= 0x400 ? 0 : 0x400)) & ~0x3fc)); in sljit_emit_mem()
2902 FAIL_IF(load_immediate(compiler, TMP_REG1, (sljit_uw)memw)); in sljit_emit_mem()
2910 tmp = (sljit_uw)(memw & 0x7fc); in sljit_emit_mem()
2911 imm = get_imm((sljit_uw)((memw + (tmp <= 0x400 ? 0 : 0x400)) & ~0x3fc)); in sljit_emit_mem()
2922 FAIL_IF(load_immediate(compiler, TMP_REG1, (sljit_uw)memw)); in sljit_emit_mem()
2997 sljit_uw imm; in update_mem_addr()
3003 …r, ADD_W | RD4(TMP_REG1) | RN4(arg & REG_MASK) | RM4(OFFS_REG(arg)) | ((sljit_uw)(argw & 0x3) << 6… in update_mem_addr()
3015 imm = get_imm((sljit_uw)(-argw & ~0xff)); in update_mem_addr()
3022 imm = get_imm((sljit_uw)(argw & ~0xfff)); in update_mem_addr()
3029 imm = get_imm((sljit_uw)((argw | 0xfff) + 1)); in update_mem_addr()
3038 imm = (sljit_uw)(argw & ~0xfff); in update_mem_addr()
3107 PTR_FAIL_IF(emit_imm32_const(compiler, dst_r, (sljit_uw)init_value)); in sljit_emit_const()
3135 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_jump_addr(sljit_uw addr, sljit_uw new_target, sljit_sw exec… in sljit_set_jump_addr()
3147 SLJIT_API_FUNC_ATTRIBUTE void sljit_set_const(sljit_uw addr, sljit_sw new_constant, sljit_sw execut… in sljit_set_const()
3149 sljit_set_jump_addr(addr, (sljit_uw)new_constant, executable_offset); in sljit_set_const()