Lines Matching refs:argw
850 #define OFFSET_CHECK(imm, shift) (!(argw & ~(imm << shift)))
944 sljit_s32 arg, sljit_sw argw, sljit_s32 tmp_reg) in emit_op_mem() argument
954 tmp = get_imm(argw & ~0xfff); in emit_op_mem()
957 …return push_inst32(compiler, sljit_mem32[flags] | MEM_IMM12 | RT4(reg) | RN4(tmp_reg) | (argw & 0x… in emit_op_mem()
960 FAIL_IF(load_immediate(compiler, tmp_reg, argw)); in emit_op_mem()
967 argw &= 0x3; in emit_op_mem()
971 if (!argw && IS_3_LO_REGS(reg, arg, other_r)) in emit_op_mem()
973 …return push_inst32(compiler, sljit_mem32[flags] | RT4(reg) | RN4(arg) | RM4(other_r) | (argw << 4)… in emit_op_mem()
976 if (argw > 0xfff) { in emit_op_mem()
977 tmp = get_imm(argw & ~0xfff); in emit_op_mem()
981 argw = argw & 0xfff; in emit_op_mem()
984 else if (argw < -0xff) { in emit_op_mem()
985 tmp = get_imm(-argw & ~0xff); in emit_op_mem()
989 argw = -(-argw & 0xff); in emit_op_mem()
1011 … return push_inst16(compiler, sljit_mem16_imm5[flags] | RD3(reg) | RN3(arg) | (argw << (6 - tmp))); in emit_op_mem()
1015 return push_inst16(compiler, STR_SP | ((flags & STORE) ? 0 : 0x800) | RDN3(reg) | (argw >> 2)); in emit_op_mem()
1018 if (argw >= 0 && argw <= 0xfff) in emit_op_mem()
1019 return push_inst32(compiler, sljit_mem32[flags] | MEM_IMM12 | RT4(reg) | RN4(arg) | argw); in emit_op_mem()
1020 else if (argw < 0 && argw >= -0xff) in emit_op_mem()
1021 return push_inst32(compiler, sljit_mem32[flags] | MEM_IMM8 | RT4(reg) | RN4(arg) | -argw); in emit_op_mem()
1025 FAIL_IF(load_immediate(compiler, tmp_reg, argw)); in emit_op_mem()
1486 …_mem(struct sljit_compiler *compiler, sljit_s32 flags, sljit_s32 reg, sljit_s32 arg, sljit_sw argw) in emit_fop_mem() argument
1495 …compiler, ADD_W | RD4(TMP_REG1) | RN4(arg & REG_MASK) | RM4(OFFS_REG(arg)) | ((argw & 0x3) << 6))); in emit_fop_mem()
1497 argw = 0; in emit_fop_mem()
1500 if ((arg & REG_MASK) && (argw & 0x3) == 0) { in emit_fop_mem()
1501 if (!(argw & ~0x3fc)) in emit_fop_mem()
1502 return push_inst32(compiler, inst | 0x800000 | RN4(arg & REG_MASK) | DD4(reg) | (argw >> 2)); in emit_fop_mem()
1503 if (!(-argw & ~0x3fc)) in emit_fop_mem()
1504 return push_inst32(compiler, inst | RN4(arg & REG_MASK) | DD4(reg) | (-argw >> 2)); in emit_fop_mem()
1508 if (emit_set_delta(compiler, TMP_REG1, arg & REG_MASK, argw) != SLJIT_ERR_UNSUPPORTED) { in emit_fop_mem()
1512 imm = get_imm(argw & ~0x3fc); in emit_fop_mem()
1515 return push_inst32(compiler, inst | 0x800000 | RN4(TMP_REG1) | DD4(reg) | ((argw & 0x3fc) >> 2)); in emit_fop_mem()
1517 imm = get_imm(-argw & ~0x3fc); in emit_fop_mem()
1519 argw = -argw; in emit_fop_mem()
1521 return push_inst32(compiler, inst | RN4(TMP_REG1) | DD4(reg) | ((argw & 0x3fc) >> 2)); in emit_fop_mem()
1525 FAIL_IF(load_immediate(compiler, TMP_REG1, argw)); in emit_fop_mem()