Lines Matching refs:src

1347 	sljit_s32 src, sljit_sw srcw)  in sljit_emit_return_to()  argument
1350 CHECK(check_sljit_emit_return_to(compiler, src, srcw)); in sljit_emit_return_to()
1352 if (src & SLJIT_MEM) { in sljit_emit_return_to()
1353 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_return_to()
1354 FAIL_IF(emit_op_mem(compiler, WORD_SIZE, TMP_REG1, src, srcw, TMP_REG1)); in sljit_emit_return_to()
1355 src = TMP_REG1; in sljit_emit_return_to()
1357 …} else if (src >= SLJIT_FIRST_SAVED_REG && src <= (SLJIT_S0 - SLJIT_KEPT_SAVEDS_COUNT(compiler->op… in sljit_emit_return_to()
1358 FAIL_IF(push_inst(compiler, MOV | RD(TMP_REG1) | RM(src))); in sljit_emit_return_to()
1359 src = TMP_REG1; in sljit_emit_return_to()
1366 return sljit_emit_ijump(compiler, SLJIT_JUMP, src, srcw); in sljit_emit_return_to()
1410 sljit_s32 src, sljit_sw srcw) in sljit_emit_op1() argument
1416 CHECK(check_sljit_emit_op1(compiler, op, dst, dstw, src, srcw)); in sljit_emit_op1()
1418 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_op1()
1425 if (dst_r != TMP_REG1 && FAST_IS_REG(src)) in sljit_emit_op1()
1426 return emit_op_imm(compiler, op | ((op_flags & SLJIT_32) ? INT_OP : 0), dst_r, TMP_REG1, src); in sljit_emit_op1()
1435 if (src == SLJIT_IMM) in sljit_emit_op1()
1440 if (src == SLJIT_IMM) in sljit_emit_op1()
1445 if (src == SLJIT_IMM) in sljit_emit_op1()
1450 if (src == SLJIT_IMM) in sljit_emit_op1()
1455 if (src == SLJIT_IMM) in sljit_emit_op1()
1461 if (src == SLJIT_IMM) in sljit_emit_op1()
1470 if (src == SLJIT_IMM) in sljit_emit_op1()
1472 else if (!(src & SLJIT_MEM)) in sljit_emit_op1()
1473 dst_r = src; in sljit_emit_op1()
1475 FAIL_IF(emit_op_mem(compiler, mem_flags, dst_r, src, srcw, TMP_REG1)); in sljit_emit_op1()
1503 if (src & SLJIT_MEM) { in sljit_emit_op1()
1504 FAIL_IF(emit_op_mem(compiler, mem_flags, TMP_REG2, src, srcw, TMP_REG2)); in sljit_emit_op1()
1505 src = TMP_REG2; in sljit_emit_op1()
1508 emit_op_imm(compiler, flags | op, dst_r, TMP_REG1, src); in sljit_emit_op1()
1648 sljit_s32 src, sljit_sw srcw) in sljit_emit_op_src() argument
1651 CHECK(check_sljit_emit_op_src(compiler, op, src, srcw)); in sljit_emit_op_src()
1652 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_op_src()
1656 if (FAST_IS_REG(src)) in sljit_emit_op_src()
1657 FAIL_IF(push_inst(compiler, MOV | RD(TMP_LR) | RM(src))); in sljit_emit_op_src()
1659 FAIL_IF(emit_op_mem(compiler, WORD_SIZE, TMP_LR, src, srcw, TMP_REG1)); in sljit_emit_op_src()
1681 return emit_op_mem(compiler, WORD_SIZE | SIGNED, op, src, srcw, TMP_REG1); in sljit_emit_op_src()
1791 sljit_s32 src, sljit_sw srcw) in sljit_emit_fop1_conv_sw_from_f64() argument
1799 if (src & SLJIT_MEM) { in sljit_emit_fop1_conv_sw_from_f64()
1800 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_32) ? INT_SIZE : WORD_SIZE, TMP_FREG1, src, srcw)); in sljit_emit_fop1_conv_sw_from_f64()
1801 src = TMP_FREG1; in sljit_emit_fop1_conv_sw_from_f64()
1804 FAIL_IF(push_inst(compiler, (FCVTZS ^ inv_bits) | RD(dst_r) | VN(src))); in sljit_emit_fop1_conv_sw_from_f64()
1813 sljit_s32 src, sljit_sw srcw) in sljit_emit_fop1_conv_f64_from_w() argument
1817 if (src & SLJIT_MEM) { in sljit_emit_fop1_conv_f64_from_w()
1818 emit_op_mem(compiler, (ins & W_OP) ? WORD_SIZE : INT_SIZE, TMP_REG1, src, srcw, TMP_REG1); in sljit_emit_fop1_conv_f64_from_w()
1819 src = TMP_REG1; in sljit_emit_fop1_conv_f64_from_w()
1820 } else if (src == SLJIT_IMM) { in sljit_emit_fop1_conv_f64_from_w()
1822 src = TMP_REG1; in sljit_emit_fop1_conv_f64_from_w()
1825 FAIL_IF(push_inst(compiler, ins | VD(dst_r) | RN(src))); in sljit_emit_fop1_conv_f64_from_w()
1834 sljit_s32 src, sljit_sw srcw) in sljit_emit_fop1_conv_f64_from_sw() argument
1841 if (src == SLJIT_IMM) in sljit_emit_fop1_conv_f64_from_sw()
1845 return sljit_emit_fop1_conv_f64_from_w(compiler, SCVTF ^ inv_bits, dst, dstw, src, srcw); in sljit_emit_fop1_conv_f64_from_sw()
1850 sljit_s32 src, sljit_sw srcw) in sljit_emit_fop1_conv_f64_from_uw() argument
1857 if (src == SLJIT_IMM) in sljit_emit_fop1_conv_f64_from_uw()
1861 return sljit_emit_fop1_conv_f64_from_w(compiler, UCVTF ^ inv_bits, dst, dstw, src, srcw); in sljit_emit_fop1_conv_f64_from_uw()
1892 sljit_s32 src, sljit_sw srcw) in sljit_emit_fop1() argument
1900 SELECT_FOP1_OPERATION_WITH_CHECKS(compiler, op, dst, dstw, src, srcw); in sljit_emit_fop1()
1905 if (src & SLJIT_MEM) { in sljit_emit_fop1()
1906 …r, (GET_OPCODE(op) == SLJIT_CONV_F64_FROM_F32) ? (mem_flags ^ 0x1) : mem_flags, dst_r, src, srcw)); in sljit_emit_fop1()
1907 src = dst_r; in sljit_emit_fop1()
1912 if (src != dst_r) { in sljit_emit_fop1()
1914 FAIL_IF(push_inst(compiler, (FMOV ^ inv_bits) | VD(dst_r) | VN(src))); in sljit_emit_fop1()
1916 dst_r = src; in sljit_emit_fop1()
1920 FAIL_IF(push_inst(compiler, (FNEG ^ inv_bits) | VD(dst_r) | VN(src))); in sljit_emit_fop1()
1923 FAIL_IF(push_inst(compiler, (FABS ^ inv_bits) | VD(dst_r) | VN(src))); in sljit_emit_fop1()
1926 …inst(compiler, FCVT | (sljit_ins)((op & SLJIT_32) ? (1 << 22) : (1 << 15)) | VD(dst_r) | VN(src))); in sljit_emit_fop1()
2211 sljit_s32 src, sljit_sw srcw) in emit_cmp_to0() argument
2217 ADJUST_LOCAL_OFFSET(src, srcw); in emit_cmp_to0()
2224 if (src & SLJIT_MEM) { in emit_cmp_to0()
2225 …PTR_FAIL_IF(emit_op_mem(compiler, inv_bits ? INT_SIZE : WORD_SIZE, TMP_REG1, src, srcw, TMP_REG1)); in emit_cmp_to0()
2226 src = TMP_REG1; in emit_cmp_to0()
2228 else if (src == SLJIT_IMM) { in emit_cmp_to0()
2230 src = TMP_REG1; in emit_cmp_to0()
2233 SLJIT_ASSERT(FAST_IS_REG(src)); in emit_cmp_to0()
2238 PTR_FAIL_IF(push_inst(compiler, (CBZ ^ inv_bits) | (6 << 5) | RT(src))); in emit_cmp_to0()
2245 …s32 sljit_emit_ijump(struct sljit_compiler *compiler, sljit_s32 type, sljit_s32 src, sljit_sw srcw) in sljit_emit_ijump() argument
2250 CHECK(check_sljit_emit_ijump(compiler, type, src, srcw)); in sljit_emit_ijump()
2252 if (src != SLJIT_IMM) { in sljit_emit_ijump()
2253 if (src & SLJIT_MEM) { in sljit_emit_ijump()
2254 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_ijump()
2255 FAIL_IF(emit_op_mem(compiler, WORD_SIZE, TMP_REG1, src, srcw, TMP_REG1)); in sljit_emit_ijump()
2256 src = TMP_REG1; in sljit_emit_ijump()
2258 return push_inst(compiler, ((type >= SLJIT_FAST_CALL) ? BLR : BR) | RN(src)); in sljit_emit_ijump()
2274 sljit_s32 src, sljit_sw srcw) in sljit_emit_icall() argument
2278 CHECK(check_sljit_emit_icall(compiler, type, arg_types, src, srcw)); in sljit_emit_icall()
2280 if (src & SLJIT_MEM) { in sljit_emit_icall()
2281 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_icall()
2282 FAIL_IF(emit_op_mem(compiler, WORD_SIZE, TMP_REG1, src, srcw, TMP_REG1)); in sljit_emit_icall()
2283 src = TMP_REG1; in sljit_emit_icall()
2287 …if (src >= SLJIT_FIRST_SAVED_REG && src <= (SLJIT_S0 - SLJIT_KEPT_SAVEDS_COUNT(compiler->options))… in sljit_emit_icall()
2288 FAIL_IF(push_inst(compiler, MOV | RD(TMP_REG1) | RM(src))); in sljit_emit_icall()
2289 src = TMP_REG1; in sljit_emit_icall()
2297 return sljit_emit_ijump(compiler, type, src, srcw); in sljit_emit_icall()
2750 sljit_s32 src, sljit_sw srcw) in sljit_emit_simd_replicate() argument
2757 CHECK(check_sljit_emit_simd_replicate(compiler, type, freg, src, srcw)); in sljit_emit_simd_replicate()
2759 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_simd_replicate()
2770 if (src & SLJIT_MEM) { in sljit_emit_simd_replicate()
2771 FAIL_IF(sljit_emit_simd_mem_offset(compiler, &src, srcw)); in sljit_emit_simd_replicate()
2778 return push_inst(compiler, LD1R | ins | RN(src) | VT(freg)); in sljit_emit_simd_replicate()
2787 if (src == SLJIT_IMM) in sljit_emit_simd_replicate()
2790 return push_inst(compiler, DUP_e | ins | VD(freg) | VN(src)); in sljit_emit_simd_replicate()
2793 if (src == SLJIT_IMM) { in sljit_emit_simd_replicate()
2806 src = TMP_REG1; in sljit_emit_simd_replicate()
2809 return push_inst(compiler, DUP_g | ins | VD(freg) | RN(src)); in sljit_emit_simd_replicate()
2900 sljit_s32 src, sljit_s32 src_lane_index) in sljit_emit_simd_lane_replicate() argument
2907 CHECK(check_sljit_emit_simd_lane_replicate(compiler, type, freg, src, src_lane_index)); in sljit_emit_simd_lane_replicate()
2923 return push_inst(compiler, DUP_e | ins | VD(freg) | VN(src)); in sljit_emit_simd_lane_replicate()
2928 sljit_s32 src, sljit_sw srcw) in sljit_emit_simd_extend() argument
2935 CHECK(check_sljit_emit_simd_extend(compiler, type, freg, src, srcw)); in sljit_emit_simd_extend()
2937 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_simd_extend()
2948 if (src & SLJIT_MEM) { in sljit_emit_simd_extend()
2949 FAIL_IF(sljit_emit_simd_mem_offset(compiler, &src, srcw)); in sljit_emit_simd_extend()
2952 FAIL_IF(push_inst(compiler, LD1 | ((sljit_ins)elem_size << 10) | RN(src) | VT(freg))); in sljit_emit_simd_extend()
2954 …ompiler, LD1_s | ((sljit_ins)0x2000 << (reg_size - elem2_size + elem_size)) | RN(src) | VT(freg))); in sljit_emit_simd_extend()
2955 src = freg; in sljit_emit_simd_extend()
2960 return push_inst(compiler, FCVTL | (1 << 22) | VD(freg) | VN(src)); in sljit_emit_simd_extend()
2965 | ((sljit_ins)1 << (19 + elem_size)) | VD(freg) | VN(src))); in sljit_emit_simd_extend()
2966 src = freg; in sljit_emit_simd_extend()