Lines Matching refs:reg

717 #define INST_CODE_AND_DST(inst, flags, reg) \  argument
718 ((inst) | (((flags) & MEM_MASK) <= GPR_REG ? D(reg) : FD(reg)))
721 #define INST_CODE_AND_DST(inst, flags, reg) \ argument
722 (((inst) & ~(INT_ALIGNED | UPDATE_REQ)) | (((flags) & MEM_MASK) <= GPR_REG ? D(reg) : FD(reg)))
844 static sljit_si getput_arg_fast(struct sljit_compiler *compiler, sljit_si inp_flags, sljit_si reg, … in getput_arg_fast() argument
860 …FAIL_IF(push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(arg & REG_MASK) | B(OFFS_R… in getput_arg_fast()
887 …FAIL_IF(push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(arg & REG_MASK) | IMM(argw… in getput_arg_fast()
943 static sljit_si getput_arg(struct sljit_compiler *compiler, sljit_si inp_flags, sljit_si reg, sljit… in getput_arg() argument
954 tmp_r = ((inp_flags & LOAD_DATA) && ((inp_flags) & MEM_MASK) <= GPR_REG) ? reg : TMP_REG1; in getput_arg()
980 …return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(arg & REG_MASK) | B(tmp_r)); in getput_arg()
1004 if (arg == reg) { in getput_arg()
1005 FAIL_IF(push_inst(compiler, OR | S(reg) | A(tmp_r) | B(reg))); in getput_arg()
1006 reg = tmp_r; in getput_arg()
1025 return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(tmp_r) | IMM(argw)); in getput_arg()
1035 return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(TMP_REG3) | IMM(diff)); in getput_arg()
1048 return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(tmp_r)); in getput_arg()
1055 return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(TMP_REG3) | IMM(diff)); in getput_arg()
1065 …return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(arg & REG_MASK) | B(TMP_REG… in getput_arg()
1077 …return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(arg & REG_MASK) | B(TMP_REG… in getput_arg()
1089 return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(TMP_REG3)); in getput_arg()
1106 return push_inst(compiler, INST_CODE_AND_DST(inst, inp_flags, reg) | A(arg & REG_MASK) | B(tmp_r)); in getput_arg()
1110 …_si emit_op_mem2(struct sljit_compiler *compiler, sljit_si flags, sljit_si reg, sljit_si arg1, slj… in emit_op_mem2() argument
1112 if (getput_arg_fast(compiler, flags, reg, arg1, arg1w)) in emit_op_mem2()
1114 return getput_arg(compiler, flags, reg, arg1, arg1w, arg2, arg2w); in emit_op_mem2()
1658 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_get_register_index(sljit_si reg) in sljit_get_register_index() argument
1660 CHECK_REG_INDEX(check_sljit_get_register_index(reg)); in sljit_get_register_index()
1661 return reg_map[reg]; in sljit_get_register_index()
1664 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_get_float_register_index(sljit_si reg) in sljit_get_float_register_index() argument
1666 CHECK_REG_INDEX(check_sljit_get_float_register_index(reg)); in sljit_get_float_register_index()
1667 return reg; in sljit_get_float_register_index()
2218 sljit_si reg, input_flags; in sljit_emit_op_flags() local
2230 reg = (op < SLJIT_ADD && FAST_IS_REG(dst)) ? dst : TMP_REG2; in sljit_emit_op_flags()
2248 GET_CR_BIT(2, reg); in sljit_emit_op_flags()
2252 GET_CR_BIT(2, reg); in sljit_emit_op_flags()
2253 INVERT_BIT(reg); in sljit_emit_op_flags()
2258 GET_CR_BIT(4 + 0, reg); in sljit_emit_op_flags()
2263 GET_CR_BIT(4 + 0, reg); in sljit_emit_op_flags()
2264 INVERT_BIT(reg); in sljit_emit_op_flags()
2269 GET_CR_BIT(4 + 1, reg); in sljit_emit_op_flags()
2274 GET_CR_BIT(4 + 1, reg); in sljit_emit_op_flags()
2275 INVERT_BIT(reg); in sljit_emit_op_flags()
2279 GET_CR_BIT(0, reg); in sljit_emit_op_flags()
2283 GET_CR_BIT(0, reg); in sljit_emit_op_flags()
2284 INVERT_BIT(reg); in sljit_emit_op_flags()
2288 GET_CR_BIT(1, reg); in sljit_emit_op_flags()
2292 GET_CR_BIT(1, reg); in sljit_emit_op_flags()
2293 INVERT_BIT(reg); in sljit_emit_op_flags()
2298 GET_CR_BIT(3, reg); in sljit_emit_op_flags()
2303 GET_CR_BIT(3, reg); in sljit_emit_op_flags()
2304 INVERT_BIT(reg); in sljit_emit_op_flags()
2308 GET_CR_BIT(4 + 2, reg); in sljit_emit_op_flags()
2312 GET_CR_BIT(4 + 2, reg); in sljit_emit_op_flags()
2313 INVERT_BIT(reg); in sljit_emit_op_flags()
2317 GET_CR_BIT(4 + 3, reg); in sljit_emit_op_flags()
2321 GET_CR_BIT(4 + 3, reg); in sljit_emit_op_flags()
2322 INVERT_BIT(reg); in sljit_emit_op_flags()
2342 if (reg != TMP_REG2) in sljit_emit_op_flags()
2357 sljit_si reg; in sljit_emit_const() local
2367 reg = SLOW_IS_REG(dst) ? dst : TMP_REG2; in sljit_emit_const()
2369 PTR_FAIL_IF(emit_const(compiler, reg, init_value)); in sljit_emit_const()