Lines Matching refs:memw
3632 static sljit_s32 update_mem_addr(struct sljit_compiler *compiler, sljit_s32 *mem, sljit_sw *memw, s… in update_mem_addr() argument
3635 sljit_sw argw = *memw; in update_mem_addr()
3645 *memw = 0; in update_mem_addr()
3663 *memw = argw - (sljit_sw)tmp; in update_mem_addr()
3664 SLJIT_ASSERT(*memw >= -mask && *memw <= max_offset); in update_mem_addr()
3674 *memw = argw + (sljit_sw)tmp; in update_mem_addr()
3675 SLJIT_ASSERT(*memw >= -mask && *memw <= max_offset); in update_mem_addr()
3684 *memw = argw - (sljit_sw)tmp; in update_mem_addr()
3696 sljit_s32 mem, sljit_sw memw) in sljit_emit_mem() argument
3701 CHECK(check_sljit_emit_mem(compiler, type, reg, mem, memw)); in sljit_emit_mem()
3704 return sljit_emit_mem_unaligned(compiler, type, reg, mem, memw); in sljit_emit_mem()
3706 ADJUST_LOCAL_OFFSET(mem, memw); in sljit_emit_mem()
3708 FAIL_IF(update_mem_addr(compiler, &mem, &memw, 0xfff - 4)); in sljit_emit_mem()
3714 …FAIL_IF(emit_op_mem(compiler, WORD_SIZE | LOAD_DATA, REG_PAIR_SECOND(reg), SLJIT_MEM1(mem), memw +… in sljit_emit_mem()
3715 …return emit_op_mem(compiler, WORD_SIZE | LOAD_DATA, REG_PAIR_FIRST(reg), SLJIT_MEM1(mem), memw, TM… in sljit_emit_mem()
3721 FAIL_IF(emit_op_mem(compiler, flags, REG_PAIR_FIRST(reg), SLJIT_MEM1(mem), memw, TMP_REG1)); in sljit_emit_mem()
3722 …return emit_op_mem(compiler, flags, REG_PAIR_SECOND(reg), SLJIT_MEM1(mem), memw + SSIZE_OF(sw), TM… in sljit_emit_mem()
3727 sljit_s32 mem, sljit_sw memw) in sljit_emit_mem_update() argument
3733 CHECK(check_sljit_emit_mem_update(compiler, type, reg, mem, memw)); in sljit_emit_mem_update()
3773 if (!is_type1_transfer && memw != 0) in sljit_emit_mem_update()
3777 if (memw > 4095 || memw < -4095) in sljit_emit_mem_update()
3779 } else if (memw > 255 || memw < -255) in sljit_emit_mem_update()
3787 memw &= 0x3; in sljit_emit_mem_update()
3789 …inst = EMIT_DATA_TRANSFER(flags, 1, reg, mem & REG_MASK, RM(OFFS_REG(mem)) | ((sljit_ins)memw << 7… in sljit_emit_mem_update()
3810 if (memw >= 0) in sljit_emit_mem_update()
3813 memw = -memw; in sljit_emit_mem_update()
3815 return push_inst(compiler, inst | (sljit_ins)memw); in sljit_emit_mem_update()
3818 if (memw >= 0) in sljit_emit_mem_update()
3821 memw = -memw; in sljit_emit_mem_update()
3823 return push_inst(compiler, inst | TYPE2_TRANSFER_IMM((sljit_ins)memw)); in sljit_emit_mem_update()
3828 sljit_s32 mem, sljit_sw memw) in sljit_emit_fmem() argument
3831 CHECK(check_sljit_emit_fmem(compiler, type, freg, mem, memw)); in sljit_emit_fmem()
3834 …iler, ((type ^ SLJIT_32) & SLJIT_32) | ((type & SLJIT_MEM_STORE) ? 0 : FPU_LOAD), freg, mem, memw); in sljit_emit_fmem()
3840 return emit_op_mem(compiler, WORD_SIZE, TMP_REG2, mem, memw, TMP_REG1); in sljit_emit_fmem()
3842 FAIL_IF(update_mem_addr(compiler, &mem, &memw, 0xfff - 4)); in sljit_emit_fmem()
3845 FAIL_IF(emit_op_mem(compiler, WORD_SIZE, TMP_REG2, mem, memw, TMP_REG1)); in sljit_emit_fmem()
3847 return emit_op_mem(compiler, WORD_SIZE, TMP_REG2, mem, memw + 4, TMP_REG1); in sljit_emit_fmem()
3851 FAIL_IF(emit_op_mem(compiler, WORD_SIZE | LOAD_DATA, TMP_REG2, mem, memw, TMP_REG1)); in sljit_emit_fmem()
3855 FAIL_IF(update_mem_addr(compiler, &mem, &memw, 0xfff - 4)); in sljit_emit_fmem()
3858 FAIL_IF(emit_op_mem(compiler, WORD_SIZE | LOAD_DATA, TMP_REG2, mem, memw, TMP_REG1)); in sljit_emit_fmem()
3859 FAIL_IF(emit_op_mem(compiler, WORD_SIZE | LOAD_DATA, TMP_REG1, mem, memw + 4, TMP_REG1)); in sljit_emit_fmem()
3863 …_s32 sljit_emit_simd_mem_offset(struct sljit_compiler *compiler, sljit_s32 *mem_ptr, sljit_sw memw) in sljit_emit_simd_mem_offset() argument
3870 …ler, ADD | RD(TMP_REG1) | RN(mem & REG_MASK) | RM(OFFS_REG(mem)) | ((sljit_ins)(memw & 0x3) << 7)); in sljit_emit_simd_mem_offset()
3875 return load_immediate(compiler, TMP_REG1, (sljit_uw)memw); in sljit_emit_simd_mem_offset()
3880 if (memw == 0) { in sljit_emit_simd_mem_offset()
3886 imm = get_imm((sljit_uw)(memw < 0 ? -memw : memw)); in sljit_emit_simd_mem_offset()
3889 return push_inst(compiler, ((memw < 0) ? SUB : ADD) | RD(TMP_REG1) | RN(mem) | imm); in sljit_emit_simd_mem_offset()
3891 FAIL_IF(load_immediate(compiler, TMP_REG1, (sljit_uw)memw)); in sljit_emit_simd_mem_offset()