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()
1659 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_get_register_index(sljit_si reg) in sljit_get_register_index() argument
1661 CHECK_REG_INDEX(check_sljit_get_register_index(reg)); in sljit_get_register_index()
1662 return reg_map[reg]; in sljit_get_register_index()
1665 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_get_float_register_index(sljit_si reg) in sljit_get_float_register_index() argument
1667 CHECK_REG_INDEX(check_sljit_get_float_register_index(reg)); in sljit_get_float_register_index()
1668 return reg; in sljit_get_float_register_index()
2219 sljit_si reg, input_flags; in sljit_emit_op_flags() local
2231 reg = (op < SLJIT_ADD && FAST_IS_REG(dst)) ? dst : TMP_REG2; in sljit_emit_op_flags()
2249 GET_CR_BIT(2, reg); in sljit_emit_op_flags()
2253 GET_CR_BIT(2, reg); in sljit_emit_op_flags()
2254 INVERT_BIT(reg); in sljit_emit_op_flags()
2259 GET_CR_BIT(4 + 0, reg); in sljit_emit_op_flags()
2264 GET_CR_BIT(4 + 0, reg); in sljit_emit_op_flags()
2265 INVERT_BIT(reg); in sljit_emit_op_flags()
2270 GET_CR_BIT(4 + 1, reg); in sljit_emit_op_flags()
2275 GET_CR_BIT(4 + 1, reg); in sljit_emit_op_flags()
2276 INVERT_BIT(reg); in sljit_emit_op_flags()
2280 GET_CR_BIT(0, reg); in sljit_emit_op_flags()
2284 GET_CR_BIT(0, reg); in sljit_emit_op_flags()
2285 INVERT_BIT(reg); in sljit_emit_op_flags()
2289 GET_CR_BIT(1, reg); in sljit_emit_op_flags()
2293 GET_CR_BIT(1, reg); in sljit_emit_op_flags()
2294 INVERT_BIT(reg); in sljit_emit_op_flags()
2299 GET_CR_BIT(3, reg); in sljit_emit_op_flags()
2304 GET_CR_BIT(3, reg); in sljit_emit_op_flags()
2305 INVERT_BIT(reg); in sljit_emit_op_flags()
2309 GET_CR_BIT(4 + 2, reg); in sljit_emit_op_flags()
2313 GET_CR_BIT(4 + 2, reg); in sljit_emit_op_flags()
2314 INVERT_BIT(reg); in sljit_emit_op_flags()
2318 GET_CR_BIT(4 + 3, reg); in sljit_emit_op_flags()
2322 GET_CR_BIT(4 + 3, reg); in sljit_emit_op_flags()
2323 INVERT_BIT(reg); in sljit_emit_op_flags()
2343 if (reg != TMP_REG2) in sljit_emit_op_flags()
2358 sljit_si reg; in sljit_emit_const() local
2368 reg = SLOW_IS_REG(dst) ? dst : TMP_REG2; in sljit_emit_const()
2370 PTR_FAIL_IF(emit_const(compiler, reg, init_value)); in sljit_emit_const()