Lines Matching refs:argw
872 #define OFFSET_CHECK(imm, shift) (!(argw & ~(imm << shift)))
966 sljit_s32 arg, sljit_sw argw, sljit_s32 tmp_reg) in emit_op_mem() argument
976 tmp = get_imm(argw & ~0xfff); in emit_op_mem()
979 …return push_inst32(compiler, sljit_mem32[flags] | MEM_IMM12 | RT4(reg) | RN4(tmp_reg) | (argw & 0x… in emit_op_mem()
982 FAIL_IF(load_immediate(compiler, tmp_reg, argw)); in emit_op_mem()
989 argw &= 0x3; in emit_op_mem()
993 if (!argw && IS_3_LO_REGS(reg, arg, other_r)) in emit_op_mem()
995 …return push_inst32(compiler, sljit_mem32[flags] | RT4(reg) | RN4(arg) | RM4(other_r) | (argw << 4)… in emit_op_mem()
998 if (argw > 0xfff) { in emit_op_mem()
999 tmp = get_imm(argw & ~0xfff); in emit_op_mem()
1003 argw = argw & 0xfff; in emit_op_mem()
1006 else if (argw < -0xff) { in emit_op_mem()
1007 tmp = get_imm(-argw & ~0xff); in emit_op_mem()
1011 argw = -(-argw & 0xff); in emit_op_mem()
1033 … return push_inst16(compiler, sljit_mem16_imm5[flags] | RD3(reg) | RN3(arg) | (argw << (6 - tmp))); in emit_op_mem()
1037 return push_inst16(compiler, STR_SP | ((flags & STORE) ? 0 : 0x800) | RDN3(reg) | (argw >> 2)); in emit_op_mem()
1040 if (argw >= 0 && argw <= 0xfff) in emit_op_mem()
1041 return push_inst32(compiler, sljit_mem32[flags] | MEM_IMM12 | RT4(reg) | RN4(arg) | argw); in emit_op_mem()
1042 else if (argw < 0 && argw >= -0xff) in emit_op_mem()
1043 return push_inst32(compiler, sljit_mem32[flags] | MEM_IMM8 | RT4(reg) | RN4(arg) | -argw); in emit_op_mem()
1047 FAIL_IF(load_immediate(compiler, tmp_reg, argw)); in emit_op_mem()
1533 …_mem(struct sljit_compiler *compiler, sljit_s32 flags, sljit_s32 reg, sljit_s32 arg, sljit_sw argw) in emit_fop_mem() argument
1542 …compiler, ADD_W | RD4(TMP_REG1) | RN4(arg & REG_MASK) | RM4(OFFS_REG(arg)) | ((argw & 0x3) << 6))); in emit_fop_mem()
1544 argw = 0; in emit_fop_mem()
1547 if ((arg & REG_MASK) && (argw & 0x3) == 0) { in emit_fop_mem()
1548 if (!(argw & ~0x3fc)) in emit_fop_mem()
1549 return push_inst32(compiler, inst | 0x800000 | RN4(arg & REG_MASK) | DD4(reg) | (argw >> 2)); in emit_fop_mem()
1550 if (!(-argw & ~0x3fc)) in emit_fop_mem()
1551 return push_inst32(compiler, inst | RN4(arg & REG_MASK) | DD4(reg) | (-argw >> 2)); in emit_fop_mem()
1555 if (emit_set_delta(compiler, TMP_REG1, arg & REG_MASK, argw) != SLJIT_ERR_UNSUPPORTED) { in emit_fop_mem()
1559 imm = get_imm(argw & ~0x3fc); in emit_fop_mem()
1562 return push_inst32(compiler, inst | 0x800000 | RN4(TMP_REG1) | DD4(reg) | ((argw & 0x3fc) >> 2)); in emit_fop_mem()
1564 imm = get_imm(-argw & ~0x3fc); in emit_fop_mem()
1566 argw = -argw; in emit_fop_mem()
1568 return push_inst32(compiler, inst | RN4(TMP_REG1) | DD4(reg) | ((argw & 0x3fc) >> 2)); in emit_fop_mem()
1572 FAIL_IF(load_immediate(compiler, TMP_REG1, argw)); in emit_fop_mem()