Lines Matching refs:src2

530 	sljit_uw src2;  in inline_set_const()  local
532 src2 = get_imm(new_constant); in inline_set_const()
533 if (src2) { in inline_set_const()
534 *inst = 0xe3a00000 | (ldr_literal & 0xf000) | src2; in inline_set_const()
542 src2 = get_imm(~new_constant); in inline_set_const()
543 if (src2) { in inline_set_const()
544 *inst = 0xe3e00000 | (ldr_literal & 0xf000) | src2; in inline_set_const()
940 sljit_s32 src2, sljit_sw src2w);
1049 SLJIT_ASSERT(!(flags & INV_IMM) && !(src2 & SRC2_IMM)); \
1056 RD(dst) | (compiler->shift_imm << 7) | (opcode << 5) | RM(src2)); \
1057 return push_inst(compiler, MOV | (flags & SET_FLAGS) | RD(dst) | RM(src2)); \
1060 …(reg_map[(flags & ARGS_SWAPPED) ? src1 : src2] << 8) | (opcode << 5) | 0x10 | RM((flags & ARGS_SWA…
1063 sljit_s32 dst, sljit_s32 src1, sljit_s32 src2) in emit_single_op() argument
1068 if (dst != src2) { in emit_single_op()
1069 if (src2 & SRC2_IMM) { in emit_single_op()
1070 return push_inst(compiler, ((flags & INV_IMM) ? MVN : MOV) | RD(dst) | src2); in emit_single_op()
1072 return push_inst(compiler, MOV | RD(dst) | RM(src2)); in emit_single_op()
1082 return push_inst(compiler, AND | RD(dst) | RN(src2) | SRC2_IMM | 0xff); in emit_single_op()
1083 FAIL_IF(push_inst(compiler, MOV | RD(dst) | (24 << 7) | RM(src2))); in emit_single_op()
1086 return push_inst(compiler, (op == SLJIT_MOV_U8 ? UXTB : SXTB) | RD(dst) | RM(src2)); in emit_single_op()
1089 else if (dst != src2) { in emit_single_op()
1090 SLJIT_ASSERT(src2 & SRC2_IMM); in emit_single_op()
1091 return push_inst(compiler, ((flags & INV_IMM) ? MVN : MOV) | RD(dst) | src2); in emit_single_op()
1100 FAIL_IF(push_inst(compiler, MOV | RD(dst) | (16 << 7) | RM(src2))); in emit_single_op()
1103 return push_inst(compiler, (op == SLJIT_MOV_U16 ? UXTH : SXTH) | RD(dst) | RM(src2)); in emit_single_op()
1106 else if (dst != src2) { in emit_single_op()
1107 SLJIT_ASSERT(src2 & SRC2_IMM); in emit_single_op()
1108 return push_inst(compiler, ((flags & INV_IMM) ? MVN : MOV) | RD(dst) | src2); in emit_single_op()
1113 if (src2 & SRC2_IMM) { in emit_single_op()
1114 …return push_inst(compiler, ((flags & INV_IMM) ? MOV : MVN) | (flags & SET_FLAGS) | RD(dst) | src2); in emit_single_op()
1116 return push_inst(compiler, MVN | (flags & SET_FLAGS) | RD(dst) | RM(src2)); in emit_single_op()
1120 SLJIT_ASSERT(!(src2 & SRC2_IMM)); in emit_single_op()
1121 FAIL_IF(push_inst(compiler, CLZ | RD(dst) | RM(src2))); in emit_single_op()
1127 return push_inst(compiler, CMN | SET_FLAGS | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1128 …(compiler, ADD | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1132 …(compiler, ADC | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1137 return push_inst(compiler, CMP | SET_FLAGS | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1139 | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1144 | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1148 SLJIT_ASSERT(!(src2 & SRC2_IMM)); in emit_single_op()
1151 return push_inst(compiler, MUL | (reg_map[dst] << 16) | (reg_map[src2] << 8) | reg_map[src1]); in emit_single_op()
1153 …iler, SMULL | (reg_map[TMP_REG1] << 16) | (reg_map[dst] << 12) | (reg_map[src2] << 8) | reg_map[sr… in emit_single_op()
1160 | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1164 …(compiler, ORR | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1168 …(compiler, EOR | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1469 sljit_s32 src2, sljit_sw src2w) in emit_op() argument
1493 if (src2 & SLJIT_IMM) { in emit_op()
1524 src1 = src2; in emit_op()
1532 src1 = src2; in emit_op()
1541 src1 = src2; in emit_op()
1570 if (FAST_IS_REG(src2)) in emit_op()
1571 return emit_op_mem(compiler, inp_flags, src2, dst, dstw, TMP_REG2); in emit_op()
1574 if (FAST_IS_REG(src2) && dst_reg != TMP_REG2) in emit_op()
1582 if (FAST_IS_REG(src2)) in emit_op()
1583 src2_reg = src2; in emit_op()
1584 else if (src2 & SLJIT_MEM) in emit_op()
1585 FAIL_IF(emit_op_mem(compiler, inp_flags | LOAD_DATA, src2_reg, src2, src2w, TMP_REG2)); in emit_op()
1740 sljit_s32 src2, sljit_sw src2w) in sljit_emit_op2() argument
1743 CHECK(check_sljit_emit_op2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
1746 ADJUST_LOCAL_OFFSET(src2, src2w); in sljit_emit_op2()
1758 return emit_op(compiler, op, ALLOW_IMM, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1761 return emit_op(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1764 return emit_op(compiler, op, ALLOW_ANY_IMM, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1769 if (src2 & SLJIT_IMM) { in sljit_emit_op2()
1775 return emit_op(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1845 #define EMIT_FPU_OPERATION(opcode, mode, dst, src1, src2) \ argument
1846 ((opcode) | (mode) | (freg_map[dst] << 12) | freg_map[src1] | (freg_map[src2] << 16))
1940 sljit_s32 src2, sljit_sw src2w) in sljit_emit_fop1_cmp() argument
1949 if (src2 & SLJIT_MEM) { in sljit_emit_fop1_cmp()
1950 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_F32_OP) | FPU_LOAD, TMP_FREG2, src2, src2w)); in sljit_emit_fop1_cmp()
1951 src2 = TMP_FREG2; in sljit_emit_fop1_cmp()
1954 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VCMP_F32, op & SLJIT_F32_OP, src1, src2, 0))); in sljit_emit_fop1_cmp()
2008 sljit_s32 src2, sljit_sw src2w) in sljit_emit_fop2() argument
2013 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
2016 ADJUST_LOCAL_OFFSET(src2, src2w); in sljit_emit_fop2()
2022 if (src2 & SLJIT_MEM) { in sljit_emit_fop2()
2023 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_F32_OP) | FPU_LOAD, TMP_FREG2, src2, src2w)); in sljit_emit_fop2()
2024 src2 = TMP_FREG2; in sljit_emit_fop2()
2034 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VADD_F32, op & SLJIT_F32_OP, dst_r, src2, src1))); in sljit_emit_fop2()
2038 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VSUB_F32, op & SLJIT_F32_OP, dst_r, src2, src1))); in sljit_emit_fop2()
2042 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VMUL_F32, op & SLJIT_F32_OP, dst_r, src2, src1))); in sljit_emit_fop2()
2046 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VDIV_F32, op & SLJIT_F32_OP, dst_r, src2, src1))); in sljit_emit_fop2()