Lines Matching refs:src2
574 sljit_uw src2; in inline_set_const() local
578 src2 = get_imm(new_constant); in inline_set_const()
579 if (src2) { in inline_set_const()
584 *inst = 0xe3a00000 | (ldr_literal & 0xf000) | src2; in inline_set_const()
594 src2 = get_imm(~new_constant); in inline_set_const()
595 if (src2) { in inline_set_const()
600 *inst = 0xe3e00000 | (ldr_literal & 0xf000) | src2; in inline_set_const()
1022 #define EMIT_FPU_OPERATION(opcode, mode, dst, src1, src2) \ argument
1023 ((sljit_uw)(opcode) | (sljit_uw)(mode) | VD(dst) | VM(src1) | VN(src2))
1045 sljit_s32 src2, sljit_sw src2w);
1345 SLJIT_ASSERT(!(flags & INV_IMM) && !(src2 & SRC2_IMM)); \
1352 RD(dst) | (compiler->shift_imm << 7) | (opcode << 5) | RM(src2)); \
1353 return push_inst(compiler, MOV | (flags & SET_FLAGS) | RD(dst) | RM(src2)); \
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
1365 if (dst != src2) { in emit_single_op()
1366 if (src2 & SRC2_IMM) { in emit_single_op()
1367 return push_inst(compiler, ((flags & INV_IMM) ? MVN : MOV) | RD(dst) | src2); in emit_single_op()
1369 return push_inst(compiler, MOV | RD(dst) | RM(src2)); in emit_single_op()
1379 return push_inst(compiler, AND | RD(dst) | RN(src2) | SRC2_IMM | 0xff); in emit_single_op()
1380 FAIL_IF(push_inst(compiler, MOV | RD(dst) | (24 << 7) | RM(src2))); in emit_single_op()
1383 return push_inst(compiler, (op == SLJIT_MOV_U8 ? UXTB : SXTB) | RD(dst) | RM(src2)); in emit_single_op()
1386 else if (dst != src2) { in emit_single_op()
1387 SLJIT_ASSERT(src2 & SRC2_IMM); in emit_single_op()
1388 return push_inst(compiler, ((flags & INV_IMM) ? MVN : MOV) | RD(dst) | src2); in emit_single_op()
1397 FAIL_IF(push_inst(compiler, MOV | RD(dst) | (16 << 7) | RM(src2))); in emit_single_op()
1400 return push_inst(compiler, (op == SLJIT_MOV_U16 ? UXTH : SXTH) | RD(dst) | RM(src2)); in emit_single_op()
1403 else if (dst != src2) { in emit_single_op()
1404 SLJIT_ASSERT(src2 & SRC2_IMM); in emit_single_op()
1405 return push_inst(compiler, ((flags & INV_IMM) ? MVN : MOV) | RD(dst) | src2); in emit_single_op()
1410 if (src2 & SRC2_IMM) in emit_single_op()
1411 …return push_inst(compiler, ((flags & INV_IMM) ? MOV : MVN) | (flags & SET_FLAGS) | RD(dst) | src2); in emit_single_op()
1413 return push_inst(compiler, MVN | (flags & SET_FLAGS) | RD(dst) | RM(src2)); in emit_single_op()
1417 SLJIT_ASSERT(!(src2 & SRC2_IMM)); in emit_single_op()
1418 FAIL_IF(push_inst(compiler, CLZ | RD(dst) | RM(src2))); 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 …(compiler, ADD | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1430 …(compiler, ADC | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); 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()
1448 SLJIT_ASSERT(!(src2 & SRC2_IMM)); 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 …(compiler, ORR | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1471 …(compiler, EOR | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1772 sljit_s32 src2, sljit_sw src2w) in emit_op() argument
1815 if (src2 & SLJIT_IMM) { in emit_op()
1839 src1 = src2; in emit_op()
1847 src1 = src2; in emit_op()
1856 src1 = src2; in emit_op()
1885 if (FAST_IS_REG(src2)) in emit_op()
1886 return emit_op_mem(compiler, inp_flags, src2, dst, dstw, TMP_REG2); in emit_op()
1889 if (FAST_IS_REG(src2) && dst_reg != TMP_REG2) in emit_op()
1897 if (FAST_IS_REG(src2)) in emit_op()
1898 src2_reg = src2; in emit_op()
1899 else if (src2 & SLJIT_MEM) in emit_op()
1900 FAIL_IF(emit_op_mem(compiler, inp_flags | LOAD_DATA, src2_reg, src2, src2w, TMP_REG2)); in emit_op()
2046 sljit_s32 src2, sljit_sw src2w) in sljit_emit_op2() argument
2049 CHECK(check_sljit_emit_op2(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2052 ADJUST_LOCAL_OFFSET(src2, src2w); 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()
2074 if (src2 & SLJIT_IMM) { in sljit_emit_op2()
2080 return emit_op(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2089 sljit_s32 src2, sljit_sw src2w) 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()
2257 sljit_s32 src2, sljit_sw src2w) in sljit_emit_fop1_cmp() argument
2266 if (src2 & SLJIT_MEM) { in sljit_emit_fop1_cmp()
2267 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_32) | FPU_LOAD, TMP_FREG2, src2, src2w)); in sljit_emit_fop1_cmp()
2268 src2 = TMP_FREG2; 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()
2325 sljit_s32 src2, sljit_sw src2w) in sljit_emit_fop2() argument
2330 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
2333 ADJUST_LOCAL_OFFSET(src2, src2w); in sljit_emit_fop2()
2339 if (src2 & SLJIT_MEM) { in sljit_emit_fop2()
2340 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_32) | FPU_LOAD, TMP_FREG2, src2, src2w)); in sljit_emit_fop2()
2341 src2 = TMP_FREG2; 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()