Lines Matching refs:src1

1022 #define EMIT_FPU_OPERATION(opcode, mode, dst, src1, src2) \  argument
1023 ((sljit_uw)(opcode) | (sljit_uw)(mode) | VD(dst) | VM(src1) | VN(src2))
1044 sljit_s32 src1, sljit_sw src1w,
1347 SLJIT_ASSERT(src1 == TMP_REG1); \
1356 | RM8((flags & ARGS_SWAPPED) ? src1 : src2) | (sljit_uw)(opcode << 5) \
1357 | 0x10 | RM((flags & ARGS_SWAPPED) ? src2 : src1));
1360 sljit_uw dst, sljit_uw src1, sljit_uw src2) in emit_single_op() argument
1364 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & ARGS_SWAPPED)); in emit_single_op()
1375 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & ARGS_SWAPPED)); in emit_single_op()
1394 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & ARGS_SWAPPED)); in emit_single_op()
1425 return push_inst(compiler, CMN | SET_FLAGS | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1426 …return push_inst(compiler, ADD | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? s… in emit_single_op()
1430 …return push_inst(compiler, ADC | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? s… in emit_single_op()
1436 return push_inst(compiler, CMP | SET_FLAGS | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1439 | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1444 | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1452 return push_inst(compiler, MUL | RN(dst) | RM8(src2) | RM(src1)); in emit_single_op()
1454 FAIL_IF(push_inst(compiler, SMULL | RN(TMP_REG1) | RD(dst) | RM8(src2) | RM(src1))); in emit_single_op()
1461 return push_inst(compiler, TST | SET_FLAGS | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1463 | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1467 …return push_inst(compiler, ORR | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? s… in emit_single_op()
1471 …return push_inst(compiler, EOR | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? s… in emit_single_op()
1771 sljit_s32 src1, sljit_sw src1w, in emit_op() argument
1835 if (src1 & SLJIT_IMM) { in emit_op()
1839 src1 = src2; in emit_op()
1847 src1 = src2; in emit_op()
1856 src1 = src2; in emit_op()
1866 if (FAST_IS_REG(src1)) in emit_op()
1867 src1_reg = src1; in emit_op()
1868 else if (src1 & SLJIT_MEM) { in emit_op()
1869 FAIL_IF(emit_op_mem(compiler, inp_flags | LOAD_DATA, TMP_REG1, src1, src1w, TMP_REG1)); in emit_op()
2045 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2() argument
2049 CHECK(check_sljit_emit_op2(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2051 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_op2()
2059 return emit_op(compiler, op, ALLOW_IMM | ALLOW_NEG_IMM, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2063 return emit_op(compiler, op, ALLOW_IMM, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2066 return emit_op(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2069 return emit_op(compiler, op, ALLOW_ANY_IMM, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2076 return emit_op(compiler, op, 0, dst, dstw, TMP_REG1, 0, src1, src1w); in sljit_emit_op2()
2080 return emit_op(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2088 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2u() argument
2092 CHECK(check_sljit_emit_op2(compiler, op, 1, 0, 0, src1, src1w, src2, src2w)); in sljit_emit_op2u()
2098 return sljit_emit_op2(compiler, op, TMP_REG2, 0, src1, src1w, src2, src2w); in sljit_emit_op2u()
2256 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop1_cmp() argument
2261 if (src1 & SLJIT_MEM) { in sljit_emit_fop1_cmp()
2262 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_32) | FPU_LOAD, TMP_FREG1, src1, src1w)); in sljit_emit_fop1_cmp()
2263 src1 = TMP_FREG1; in sljit_emit_fop1_cmp()
2271 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VCMP_F32, op & SLJIT_32, src1, src2, 0))); in sljit_emit_fop1_cmp()
2324 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop2() argument
2330 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
2332 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_fop2()
2344 if (src1 & SLJIT_MEM) { in sljit_emit_fop2()
2345 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_32) | FPU_LOAD, TMP_FREG1, src1, src1w)); in sljit_emit_fop2()
2346 src1 = TMP_FREG1; in sljit_emit_fop2()
2351 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VADD_F32, op & SLJIT_32, dst_r, src2, src1))); in sljit_emit_fop2()
2355 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VSUB_F32, op & SLJIT_32, dst_r, src2, src1))); in sljit_emit_fop2()
2359 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VMUL_F32, op & SLJIT_32, dst_r, src2, src1))); in sljit_emit_fop2()
2363 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VDIV_F32, op & SLJIT_32, dst_r, src2, src1))); in sljit_emit_fop2()