Lines Matching refs:sljit_s32
204 static sljit_s32 push_inst(struct sljit_compiler *compiler, sljit_ins ins, sljit_s32 delay_slot)
216 static SLJIT_INLINE sljit_ins invert_branch(sljit_s32 flags)
541 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_enter(struct sljit_compiler *compiler,
542 sljit_s32 options, sljit_s32 args, sljit_s32 scratches, sljit_s32 saveds,
543 sljit_s32 fscratches, sljit_s32 fsaveds, sljit_s32 local_size)
546 sljit_s32 i, tmp, offs;
578 offs -= (sljit_s32)(sizeof(sljit_sw));
583 offs -= (sljit_s32)(sizeof(sljit_sw));
597 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_set_context(struct sljit_compiler *compiler,
598 sljit_s32 options, sljit_s32 args, sljit_s32 scratches, sljit_s32 saveds,
599 sljit_s32 fscratches, sljit_s32 fsaveds, sljit_s32 local_size)
614 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_return(struct sljit_compiler *compiler, sljit_s32 op, sljit_s32 src, sljit_sw srcw)
616 sljit_s32 local_size, i, tmp, offs;
634 FAIL_IF(push_inst(compiler, STACK_LOAD | base | TA(RETURN_ADDR_REG) | IMM(local_size - (sljit_s32)sizeof(sljit_sw)), RETURN_ADDR_REG));
635 offs = local_size - (sljit_s32)GET_SAVED_REGISTERS_SIZE(compiler->scratches, compiler->saveds, 1);
640 offs += (sljit_s32)(sizeof(sljit_sw));
646 offs += (sljit_s32)(sizeof(sljit_sw));
701 static sljit_s32 getput_arg_fast(struct sljit_compiler *compiler, sljit_s32 flags, sljit_s32 reg_ar, sljit_s32 arg, sljit_sw argw)
719 static sljit_s32 can_cache(sljit_s32 arg, sljit_sw argw, sljit_s32 next_arg, sljit_sw next_argw)
742 static sljit_s32 getput_arg(struct sljit_compiler *compiler, sljit_s32 flags, sljit_s32 reg_ar, sljit_s32 arg, sljit_sw argw, sljit_s32 next_arg, sljit_sw next_argw)
744 sljit_s32 tmp_ar, base, delay_slot;
881 static SLJIT_INLINE sljit_s32 emit_op_mem(struct sljit_compiler *compiler, sljit_s32 flags, sljit_s32 reg_ar, sljit_s32 arg, sljit_sw argw)
890 static SLJIT_INLINE sljit_s32 emit_op_mem2(struct sljit_compiler *compiler, sljit_s32 flags, sljit_s32 reg, sljit_s32 arg1, sljit_sw arg1w, sljit_s32 arg2, sljit_sw arg2w)
897 static sljit_s32 emit_op(struct sljit_compiler *compiler, sljit_s32 op, sljit_s32 flags,
898 sljit_s32 dst, sljit_sw dstw,
899 sljit_s32 src1, sljit_sw src1w,
900 sljit_s32 src2, sljit_sw src2w)
906 sljit_s32 dst_r = TMP_REG2;
907 sljit_s32 src1_r;
909 sljit_s32 sugg_src2_r = TMP_REG2;
1032 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_op0(struct sljit_compiler *compiler, sljit_s32 op)
1035 sljit_s32 int_op = op & SLJIT_I32_OP;
1082 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_op1(struct sljit_compiler *compiler, sljit_s32 op,
1083 sljit_s32 dst, sljit_sw dstw,
1084 sljit_s32 src, sljit_sw srcw)
1089 sljit_s32 flags = 0;
1101 srcw = (sljit_s32)srcw;
1121 return emit_op(compiler, SLJIT_MOV_S32, INT_DATA | SIGNED_DATA, dst, dstw, TMP_REG1, 0, src, (src & SLJIT_IMM) ? (sljit_s32)srcw : srcw);
1151 return emit_op(compiler, SLJIT_MOV_S32, INT_DATA | SIGNED_DATA | WRITE_BACK, dst, dstw, TMP_REG1, 0, src, (src & SLJIT_IMM) ? (sljit_s32)srcw : srcw);
1183 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_op2(struct sljit_compiler *compiler, sljit_s32 op,
1184 sljit_s32 dst, sljit_sw dstw,
1185 sljit_s32 src1, sljit_sw src1w,
1186 sljit_s32 src2, sljit_sw src2w)
1191 sljit_s32 flags = 0;
1204 src1w = (sljit_s32)src1w;
1206 src2w = (sljit_s32)src2w;
1251 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_get_register_index(sljit_s32 reg)
1257 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_get_float_register_index(sljit_s32 reg)
1263 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_op_custom(struct sljit_compiler *compiler,
1264 void *instruction, sljit_s32 size)
1276 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_is_fpu_available(void)
1292 static SLJIT_INLINE sljit_s32 sljit_emit_fop1_conv_sw_from_f64(struct sljit_compiler *compiler, sljit_s32 op,
1293 sljit_s32 dst, sljit_sw dstw,
1294 sljit_s32 src, sljit_sw srcw)
1299 sljit_s32 flags = (GET_OPCODE(op) == SLJIT_CONV_SW_FROM_F64) << 21;
1325 static SLJIT_INLINE sljit_s32 sljit_emit_fop1_conv_f64_from_sw(struct sljit_compiler *compiler, sljit_s32 op,
1326 sljit_s32 dst, sljit_sw dstw,
1327 sljit_s32 src, sljit_sw srcw)
1332 sljit_s32 flags = (GET_OPCODE(op) == SLJIT_CONV_F64_FROM_SW) << 21;
1335 sljit_s32 dst_r = FAST_IS_REG(dst) ? (dst << 1) : TMP_FREG1;
1346 srcw = (sljit_s32)srcw;
1363 static SLJIT_INLINE sljit_s32 sljit_emit_fop1_cmp(struct sljit_compiler *compiler, sljit_s32 op,
1364 sljit_s32 src1, sljit_sw src1w,
1365 sljit_s32 src2, sljit_sw src2w)
1402 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_fop1(struct sljit_compiler *compiler, sljit_s32 op,
1403 sljit_s32 dst, sljit_sw dstw,
1404 sljit_s32 src, sljit_sw srcw)
1406 sljit_s32 dst_r;
1453 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_fop2(struct sljit_compiler *compiler, sljit_s32 op,
1454 sljit_s32 dst, sljit_sw dstw,
1455 sljit_s32 src1, sljit_sw src1w,
1456 sljit_s32 src2, sljit_sw src2w)
1458 sljit_s32 dst_r, flags = 0;
1539 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_fast_enter(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw dstw)
1556 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_fast_return(struct sljit_compiler *compiler, sljit_s32 src, sljit_sw srcw)
1620 SLJIT_API_FUNC_ATTRIBUTE struct sljit_jump* sljit_emit_jump(struct sljit_compiler *compiler, sljit_s32 type)
1624 sljit_s32 flags = 0;
1625 sljit_s32 delay_check = UNMOVABLE_INS;
1736 SLJIT_API_FUNC_ATTRIBUTE struct sljit_jump* sljit_emit_cmp(struct sljit_compiler *compiler, sljit_s32 type,
1737 sljit_s32 src1, sljit_sw src1w,
1738 sljit_s32 src2, sljit_sw src2w)
1741 sljit_s32 flags;
1857 SLJIT_API_FUNC_ATTRIBUTE struct sljit_jump* sljit_emit_fcmp(struct sljit_compiler *compiler, sljit_s32 type,
1858 sljit_s32 src1, sljit_sw src1w,
1859 sljit_s32 src2, sljit_sw src2w)
1863 sljit_s32 if_true;
1946 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_ijump(struct sljit_compiler *compiler, sljit_s32 type, sljit_s32 src, sljit_sw srcw)
1948 sljit_s32 src_r = TMP_REG2;
2004 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_op_flags(struct sljit_compiler *compiler, sljit_s32 op,
2005 sljit_s32 dst, sljit_sw dstw,
2006 sljit_s32 src, sljit_sw srcw,
2007 sljit_s32 type)
2009 sljit_s32 sugg_dst_ar, dst_ar;
2010 sljit_s32 flags = GET_ALL_FLAGS(op);
2014 sljit_s32 mem_type = (op & SLJIT_I32_OP) ? (INT_DATA | SIGNED_DATA) : WORD_DATA;
2118 SLJIT_API_FUNC_ATTRIBUTE struct sljit_const* sljit_emit_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw dstw, sljit_sw init_value)
2121 sljit_s32 reg;