Lines Matching refs:dst

893 #define EMIT_DATA_PROCESS_INS(opcode, set_flags, dst, src1, src2) \  argument
894 (0xe0000000 | ((opcode) << 21) | (set_flags) | RD(dst) | RN(src1) | (src2))
897 sljit_s32 dst, sljit_sw dstw,
1013 dst, SLJIT_UNUSED, (compiler->shift_imm << 7) | (opcode << 5) | RM(src2))); \
1014 …return push_inst(compiler, EMIT_DATA_PROCESS_INS(MOV_DP, flags & SET_FLAGS, dst, SLJIT_UNUSED, RM(…
1017dst, SLJIT_UNUSED, (reg_map[(flags & ARGS_SWAPPED) ? src1 : src2] << 8) | (opcode << 5) | 0x10 | R…
1020 sljit_s32 dst, sljit_s32 src1, sljit_s32 src2) in emit_single_op() argument
1025 if (dst != src2) { in emit_single_op()
1028 dst, SLJIT_UNUSED, src2)); in emit_single_op()
1030 return push_inst(compiler, EMIT_DATA_PROCESS_INS(MOV_DP, 0, dst, SLJIT_UNUSED, RM(src2))); in emit_single_op()
1040 return push_inst(compiler, EMIT_DATA_PROCESS_INS(AND_DP, 0, dst, src2, SRC2_IMM | 0xff)); in emit_single_op()
1041 …FAIL_IF(push_inst(compiler, EMIT_DATA_PROCESS_INS(MOV_DP, 0, dst, SLJIT_UNUSED, (24 << 7) | RM(src… in emit_single_op()
1042 …iler, EMIT_DATA_PROCESS_INS(MOV_DP, 0, dst, SLJIT_UNUSED, (24 << 7) | (op == SLJIT_MOV_U8 ? 0x20 :… in emit_single_op()
1044 return push_inst(compiler, (op == SLJIT_MOV_U8 ? UXTB : SXTB) | RD(dst) | RM(src2)); in emit_single_op()
1047 else if (dst != src2) { in emit_single_op()
1050 dst, SLJIT_UNUSED, src2)); in emit_single_op()
1059 …FAIL_IF(push_inst(compiler, EMIT_DATA_PROCESS_INS(MOV_DP, 0, dst, SLJIT_UNUSED, (16 << 7) | RM(src… in emit_single_op()
1060 …iler, EMIT_DATA_PROCESS_INS(MOV_DP, 0, dst, SLJIT_UNUSED, (16 << 7) | (op == SLJIT_MOV_U16 ? 0x20 … in emit_single_op()
1062 return push_inst(compiler, (op == SLJIT_MOV_U16 ? UXTH : SXTH) | RD(dst) | RM(src2)); in emit_single_op()
1065 else if (dst != src2) { in emit_single_op()
1068 dst, SLJIT_UNUSED, src2)); in emit_single_op()
1075 dst, SLJIT_UNUSED, src2)); in emit_single_op()
1077 …return push_inst(compiler, EMIT_DATA_PROCESS_INS(MVN_DP, flags & SET_FLAGS, dst, SLJIT_UNUSED, RM(… in emit_single_op()
1082 FAIL_IF(push_inst(compiler, CLZ | RD(dst) | RM(src2))); in emit_single_op()
1091 dst, src1, (src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1096 dst, src1, (src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1104 dst, src1, (src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1109 dst, src1, (src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1116 return push_inst(compiler, MUL | (reg_map[dst] << 16) | (reg_map[src2] << 8) | reg_map[src1]); in emit_single_op()
1118 …FAIL_IF(push_inst(compiler, SMULL | (reg_map[TMP_REG1] << 16) | (reg_map[dst] << 12) | (reg_map[sr… in emit_single_op()
1121 …_inst(compiler, EMIT_DATA_PROCESS_INS(CMP_DP, SET_FLAGS, SLJIT_UNUSED, TMP_REG1, RM(dst) | 0xfc0)); in emit_single_op()
1125 dst, src1, (src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1129 …return push_inst(compiler, EMIT_DATA_PROCESS_INS(ORR_DP, flags & SET_FLAGS, dst, src1, (src2 & SRC… in emit_single_op()
1133 …return push_inst(compiler, EMIT_DATA_PROCESS_INS(EOR_DP, flags & SET_FLAGS, dst, src1, (src2 & SRC… in emit_single_op()
1441 sljit_s32 dst, sljit_sw dstw, in emit_op() argument
1456 if (SLJIT_UNLIKELY(dst == SLJIT_UNUSED)) in emit_op()
1537 dst_reg = SLOW_IS_REG(dst) ? dst : TMP_REG2; in emit_op()
1540 if (dst & SLJIT_MEM) { in emit_op()
1545 return emit_op_mem(compiler, inp_flags, src2, dst, dstw, TMP_REG2); in emit_op()
1566 if (!(dst & SLJIT_MEM)) in emit_op()
1569 return emit_op_mem(compiler, inp_flags, dst_reg, dst, dstw, TMP_REG1); in emit_op()
1664 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op1() argument
1668 CHECK(check_sljit_emit_op1(compiler, op, dst, dstw, src, srcw)); in sljit_emit_op1()
1669 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_op1()
1672 if (dst == SLJIT_UNUSED && !HAS_FLAGS(op)) { in sljit_emit_op1()
1685 return emit_op(compiler, SLJIT_MOV, ALLOW_ANY_IMM, dst, dstw, TMP_REG1, 0, src, srcw); in sljit_emit_op1()
1688 …return emit_op(compiler, SLJIT_MOV_U8, ALLOW_ANY_IMM | BYTE_DATA, dst, dstw, TMP_REG1, 0, src, (sr… in sljit_emit_op1()
1691 …return emit_op(compiler, SLJIT_MOV_S8, ALLOW_ANY_IMM | SIGNED_DATA | BYTE_DATA, dst, dstw, TMP_REG… in sljit_emit_op1()
1694 …return emit_op(compiler, SLJIT_MOV_U16, ALLOW_ANY_IMM | HALF_DATA, dst, dstw, TMP_REG1, 0, src, (s… in sljit_emit_op1()
1697 …return emit_op(compiler, SLJIT_MOV_S16, ALLOW_ANY_IMM | SIGNED_DATA | HALF_DATA, dst, dstw, TMP_RE… in sljit_emit_op1()
1703 …return emit_op(compiler, SLJIT_MOV, ALLOW_ANY_IMM | WRITE_BACK, dst, dstw, TMP_REG1, 0, src, srcw); in sljit_emit_op1()
1706 …return emit_op(compiler, SLJIT_MOV_U8, ALLOW_ANY_IMM | BYTE_DATA | WRITE_BACK, dst, dstw, TMP_REG1… in sljit_emit_op1()
1709 …return emit_op(compiler, SLJIT_MOV_S8, ALLOW_ANY_IMM | SIGNED_DATA | BYTE_DATA | WRITE_BACK, dst, … in sljit_emit_op1()
1712 …return emit_op(compiler, SLJIT_MOV_U16, ALLOW_ANY_IMM | HALF_DATA | WRITE_BACK, dst, dstw, TMP_REG… in sljit_emit_op1()
1715 …return emit_op(compiler, SLJIT_MOV_S16, ALLOW_ANY_IMM | SIGNED_DATA | HALF_DATA | WRITE_BACK, dst,… in sljit_emit_op1()
1718 return emit_op(compiler, op, ALLOW_ANY_IMM, dst, dstw, TMP_REG1, 0, src, srcw); in sljit_emit_op1()
1725 …return sljit_emit_op2(compiler, SLJIT_SUB | GET_ALL_FLAGS(op), dst, dstw, SLJIT_IMM, 0, src, srcw); in sljit_emit_op1()
1728 return emit_op(compiler, op, 0, dst, dstw, TMP_REG1, 0, src, srcw); in sljit_emit_op1()
1735 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op2() argument
1740 CHECK(check_sljit_emit_op2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
1741 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_op2()
1745 if (dst == SLJIT_UNUSED && !HAS_FLAGS(op)) in sljit_emit_op2()
1755 return emit_op(compiler, op, ALLOW_IMM, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1758 return emit_op(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1761 return emit_op(compiler, op, ALLOW_ANY_IMM, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1768 return emit_op(compiler, op, 0, dst, dstw, TMP_REG1, 0, src1, src1w); in sljit_emit_op2()
1772 return emit_op(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1808 #define EMIT_FPU_OPERATION(opcode, mode, dst, src1, src2) \ argument
1809 ((opcode) | (mode) | ((dst) << 12) | (src1) | ((src2) << 16))
1856 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1_conv_sw_from_f64() argument
1868 if (FAST_IS_REG(dst)) in sljit_emit_fop1_conv_sw_from_f64()
1869 return push_inst(compiler, VMOV | (1 << 20) | RD(dst) | (TMP_FREG1 << 16)); in sljit_emit_fop1_conv_sw_from_f64()
1872 return emit_fop_mem(compiler, 0, TMP_FREG1, dst, dstw); in sljit_emit_fop1_conv_sw_from_f64()
1876 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1_conv_f64_from_sw() argument
1879 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1_conv_f64_from_sw()
1896 if (dst & SLJIT_MEM) in sljit_emit_fop1_conv_f64_from_sw()
1897 return emit_fop_mem(compiler, (op & SLJIT_F32_OP), TMP_FREG1, dst, dstw); in sljit_emit_fop1_conv_f64_from_sw()
1922 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1() argument
1930 SELECT_FOP1_OPERATION_WITH_CHECKS(compiler, op, dst, dstw, src, srcw); in sljit_emit_fop1()
1932 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1()
1963 if (dst & SLJIT_MEM) in sljit_emit_fop1()
1964 return emit_fop_mem(compiler, (op & SLJIT_F32_OP), dst_r, dst, dstw); in sljit_emit_fop1()
1969 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop2() argument
1976 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
1977 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_fop2()
1983 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop2()
2014 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_F32_OP), TMP_FREG1, dst, dstw)); in sljit_emit_fop2()
2027 …BUTE sljit_s32 sljit_emit_fast_enter(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw dstw) in sljit_emit_fast_enter() argument
2030 CHECK(check_sljit_emit_fast_enter(compiler, dst, dstw)); in sljit_emit_fast_enter()
2031 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_fast_enter()
2035 if (FAST_IS_REG(dst)) in sljit_emit_fast_enter()
2036 return push_inst(compiler, EMIT_DATA_PROCESS_INS(MOV_DP, 0, dst, SLJIT_UNUSED, RM(TMP_REG1))); in sljit_emit_fast_enter()
2039 return emit_op_mem(compiler, WORD_DATA, TMP_REG1, dst, dstw, TMP_REG2); in sljit_emit_fast_enter()
2214 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op_flags() argument
2221 CHECK(check_sljit_emit_op_flags(compiler, op, dst, dstw, type)); in sljit_emit_op_flags()
2222 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_op_flags()
2226 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in sljit_emit_op_flags()
2231 if (dst & SLJIT_MEM) in sljit_emit_op_flags()
2232 return emit_op_mem(compiler, WORD_DATA, TMP_REG1, dst, dstw, TMP_REG2); in sljit_emit_op_flags()
2238 if (dst & SLJIT_MEM) in sljit_emit_op_flags()
2239 FAIL_IF(emit_op_mem(compiler, WORD_DATA | LOAD_DATA, TMP_REG1, dst, dstw, TMP_REG2)); in sljit_emit_op_flags()
2246 if (dst & SLJIT_MEM) in sljit_emit_op_flags()
2247 FAIL_IF(emit_op_mem(compiler, WORD_DATA, TMP_REG1, dst, dstw, TMP_REG2)); in sljit_emit_op_flags()
2291 …t sljit_const* sljit_emit_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw dstw, slj… in sljit_emit_const() argument
2297 CHECK_PTR(check_sljit_emit_const(compiler, dst, dstw, init_value)); in sljit_emit_const()
2298 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_const()
2303 reg = SLOW_IS_REG(dst) ? dst : TMP_REG2; in sljit_emit_const()
2313 if (dst & SLJIT_MEM) in sljit_emit_const()
2314 PTR_FAIL_IF(emit_op_mem(compiler, WORD_DATA, TMP_REG2, dst, dstw, TMP_REG1)); in sljit_emit_const()