Lines Matching refs:op

79 #define GET_OPCODE(op) \  argument
80 …((op) & ~(SLJIT_INT_OP | SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJIT_SET_C | SLJ…
82 #define GET_FLAGS(op) \ argument
83 ((op) & (SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJIT_SET_C))
85 #define GET_ALL_FLAGS(op) \ argument
86 …((op) & (SLJIT_INT_OP | SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJIT_SET_C | SLJI…
88 #define TYPE_CAST_NEEDED(op) \ argument
89 …(((op) >= SLJIT_MOV_UB && (op) <= SLJIT_MOV_SH) || ((op) >= SLJIT_MOVU_UB && (op) <= SLJIT_MOVU_SH…
628 CHECK_ARGUMENT(!GET_FLAGS(op) || !(op & SLJIT_KEEP_FLAGS)); \
629 switch (GET_OPCODE(op)) { \
638 CHECK_ARGUMENT(!(op & (SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJIT_SET_C))); \
641 CHECK_ARGUMENT(!(op & (SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_C))); \
644 CHECK_ARGUMENT(!(op & (SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_C))); \
647 CHECK_ARGUMENT(!(op & (SLJIT_SET_U | SLJIT_SET_S))); \
653 CHECK_ARGUMENT(!(op & (SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O))); \
666 …CHECK_ARGUMENT(!(op & (SLJIT_INT_OP | SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJI…
670 …CHECK_ARGUMENT(!(op & (SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJIT_SET_C | SLJIT…
675 CHECK_ARGUMENT(!GET_FLAGS(op) || !(op & SLJIT_KEEP_FLAGS)); \
676 switch (GET_OPCODE(op)) { \
678 CHECK_ARGUMENT(!(op & (SLJIT_SET_U | SLJIT_SET_O | SLJIT_SET_C | SLJIT_KEEP_FLAGS))); \
679 CHECK_ARGUMENT((op & (SLJIT_SET_E | SLJIT_SET_S))); \
683 …CHECK_ARGUMENT(!(op & (SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJIT_SET_C | SLJIT…
764 if (GET_OPCODE(op) >= SLJIT_MOVU && GET_OPCODE(op) <= SLJIT_MOVU_P) { \
980 …URN_TYPE check_sljit_emit_return(struct sljit_compiler *compiler, sljit_si op, sljit_si src, sljit… in check_sljit_emit_return() argument
984 if (op != SLJIT_UNUSED) { in check_sljit_emit_return()
985 CHECK_ARGUMENT(op >= SLJIT_MOV && op <= SLJIT_MOV_P); in check_sljit_emit_return()
993 if (op == SLJIT_UNUSED) in check_sljit_emit_return()
996 fprintf(compiler->verbose, " return.%s ", op1_names[op - SLJIT_OP1_BASE]); in check_sljit_emit_return()
1035 …c SLJIT_INLINE CHECK_RETURN_TYPE check_sljit_emit_op0(struct sljit_compiler *compiler, sljit_si op) in check_sljit_emit_op0() argument
1038 CHECK_ARGUMENT((op >= SLJIT_BREAKPOINT && op <= SLJIT_LSMUL) in check_sljit_emit_op0()
1039 || ((op & ~SLJIT_INT_OP) >= SLJIT_UDIVMOD && (op & ~SLJIT_INT_OP) <= SLJIT_SDIVI)); in check_sljit_emit_op0()
1040 CHECK_ARGUMENT(op < SLJIT_LUMUL || compiler->scratches >= 2); in check_sljit_emit_op0()
1044 …fprintf(compiler->verbose, " %s%s\n", !(op & SLJIT_INT_OP) ? "" : "i", op0_names[GET_OPCODE(op) -… in check_sljit_emit_op0()
1049 …c SLJIT_INLINE CHECK_RETURN_TYPE check_sljit_emit_op1(struct sljit_compiler *compiler, sljit_si op, in check_sljit_emit_op1() argument
1059 CHECK_ARGUMENT(GET_OPCODE(op) >= SLJIT_MOV && GET_OPCODE(op) <= SLJIT_CLZ); in check_sljit_emit_op1()
1067 …intf(compiler->verbose, " %s%s%s%s%s%s%s%s ", !(op & SLJIT_INT_OP) ? "" : "i", op1_names[GET_OPCO… in check_sljit_emit_op1()
1068 … !(op & SLJIT_SET_E) ? "" : ".e", !(op & SLJIT_SET_U) ? "" : ".u", !(op & SLJIT_SET_S) ? "" : ".s", in check_sljit_emit_op1()
1069 …!(op & SLJIT_SET_O) ? "" : ".o", !(op & SLJIT_SET_C) ? "" : ".c", !(op & SLJIT_KEEP_FLAGS) ? "" : … in check_sljit_emit_op1()
1079 …c SLJIT_INLINE CHECK_RETURN_TYPE check_sljit_emit_op2(struct sljit_compiler *compiler, sljit_si op, in check_sljit_emit_op2() argument
1090 CHECK_ARGUMENT(GET_OPCODE(op) >= SLJIT_ADD && GET_OPCODE(op) <= SLJIT_ASHR); in check_sljit_emit_op2()
1098 …intf(compiler->verbose, " %s%s%s%s%s%s%s%s ", !(op & SLJIT_INT_OP) ? "" : "i", op2_names[GET_OPCO… in check_sljit_emit_op2()
1099 … !(op & SLJIT_SET_E) ? "" : ".e", !(op & SLJIT_SET_U) ? "" : ".u", !(op & SLJIT_SET_S) ? "" : ".s", in check_sljit_emit_op2()
1100 …!(op & SLJIT_SET_O) ? "" : ".o", !(op & SLJIT_SET_C) ? "" : ".c", !(op & SLJIT_KEEP_FLAGS) ? "" : … in check_sljit_emit_op2()
1162 … SLJIT_INLINE CHECK_RETURN_TYPE check_sljit_emit_fop1(struct sljit_compiler *compiler, sljit_si op, in check_sljit_emit_fop1() argument
1173 CHECK_ARGUMENT(GET_OPCODE(op) >= SLJIT_DMOV && GET_OPCODE(op) <= SLJIT_DABS); in check_sljit_emit_fop1()
1180 if (GET_OPCODE(op) == SLJIT_CONVD_FROMS) in check_sljit_emit_fop1()
1182 (op & SLJIT_SINGLE_OP) ? "s.fromd" : "d.froms"); in check_sljit_emit_fop1()
1184 fprintf(compiler->verbose, " %s%s ", (op & SLJIT_SINGLE_OP) ? "s" : "d", in check_sljit_emit_fop1()
1185 fop1_names[GET_OPCODE(op) - SLJIT_FOP1_BASE]); in check_sljit_emit_fop1()
1196 …IT_INLINE CHECK_RETURN_TYPE check_sljit_emit_fop1_cmp(struct sljit_compiler *compiler, sljit_si op, in check_sljit_emit_fop1_cmp() argument
1207 CHECK_ARGUMENT(GET_OPCODE(op) == SLJIT_DCMP); in check_sljit_emit_fop1_cmp()
1214 …fprintf(compiler->verbose, " %s%s%s%s ", (op & SLJIT_SINGLE_OP) ? "s" : "d", fop1_names[SLJIT_DCM… in check_sljit_emit_fop1_cmp()
1215 (op & SLJIT_SET_E) ? ".e" : "", (op & SLJIT_SET_S) ? ".s" : ""); in check_sljit_emit_fop1_cmp()
1225 …E CHECK_RETURN_TYPE check_sljit_emit_fop1_convw_fromd(struct sljit_compiler *compiler, sljit_si op, in check_sljit_emit_fop1_convw_fromd() argument
1236 CHECK_ARGUMENT(GET_OPCODE(op) >= SLJIT_CONVW_FROMD && GET_OPCODE(op) <= SLJIT_CONVI_FROMD); in check_sljit_emit_fop1_convw_fromd()
1243 fprintf(compiler->verbose, " %s%s.from%s ", fop1_names[GET_OPCODE(op) - SLJIT_FOP1_BASE], in check_sljit_emit_fop1_convw_fromd()
1244 (GET_OPCODE(op) == SLJIT_CONVI_FROMD) ? "i" : "w", in check_sljit_emit_fop1_convw_fromd()
1245 (op & SLJIT_SINGLE_OP) ? "s" : "d"); in check_sljit_emit_fop1_convw_fromd()
1255 …E CHECK_RETURN_TYPE check_sljit_emit_fop1_convd_fromw(struct sljit_compiler *compiler, sljit_si op, in check_sljit_emit_fop1_convd_fromw() argument
1266 CHECK_ARGUMENT(GET_OPCODE(op) >= SLJIT_CONVD_FROMW && GET_OPCODE(op) <= SLJIT_CONVD_FROMI); in check_sljit_emit_fop1_convd_fromw()
1273 fprintf(compiler->verbose, " %s%s.from%s ", fop1_names[GET_OPCODE(op) - SLJIT_FOP1_BASE], in check_sljit_emit_fop1_convd_fromw()
1274 (op & SLJIT_SINGLE_OP) ? "s" : "d", in check_sljit_emit_fop1_convd_fromw()
1275 (GET_OPCODE(op) == SLJIT_CONVD_FROMI) ? "i" : "w"); in check_sljit_emit_fop1_convd_fromw()
1285 … SLJIT_INLINE CHECK_RETURN_TYPE check_sljit_emit_fop2(struct sljit_compiler *compiler, sljit_si op, in check_sljit_emit_fop2() argument
1292 CHECK_ARGUMENT(GET_OPCODE(op) >= SLJIT_DADD && GET_OPCODE(op) <= SLJIT_DDIV); in check_sljit_emit_fop2()
1300 …fprintf(compiler->verbose, " %s%s ", (op & SLJIT_SINGLE_OP) ? "s" : "d", fop2_names[GET_OPCODE(op in check_sljit_emit_fop2()
1413 …IT_INLINE CHECK_RETURN_TYPE check_sljit_emit_op_flags(struct sljit_compiler *compiler, sljit_si op, in check_sljit_emit_op_flags() argument
1421 CHECK_ARGUMENT(op == SLJIT_MOV || GET_OPCODE(op) == SLJIT_MOV_UI || GET_OPCODE(op) == SLJIT_MOV_SI in check_sljit_emit_op_flags()
1422 || (GET_OPCODE(op) >= SLJIT_AND && GET_OPCODE(op) <= SLJIT_XOR)); in check_sljit_emit_op_flags()
1423 CHECK_ARGUMENT((op & (SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJIT_SET_C)) == 0); in check_sljit_emit_op_flags()
1424 CHECK_ARGUMENT((op & (SLJIT_SET_E | SLJIT_KEEP_FLAGS)) != (SLJIT_SET_E | SLJIT_KEEP_FLAGS)); in check_sljit_emit_op_flags()
1425 if (GET_OPCODE(op) < SLJIT_ADD) { in check_sljit_emit_op_flags()
1434 fprintf(compiler->verbose, " flags.%s%s%s%s ", !(op & SLJIT_INT_OP) ? "" : "i", in check_sljit_emit_op_flags()
1435 …GET_OPCODE(op) >= SLJIT_OP2_BASE ? op2_names[GET_OPCODE(op) - SLJIT_OP2_BASE] : op1_names[GET_OPCO… in check_sljit_emit_op_flags()
1436 !(op & SLJIT_SET_E) ? "" : ".e", !(op & SLJIT_KEEP_FLAGS) ? "" : ".k"); in check_sljit_emit_op_flags()
1484 #define SELECT_FOP1_OPERATION_WITH_CHECKS(compiler, op, dst, dstw, src, srcw) \ argument
1487 if (GET_OPCODE(op) >= SLJIT_CONVW_FROMD && GET_OPCODE(op) <= SLJIT_DCMP) { \
1488 if (GET_OPCODE(op) == SLJIT_DCMP) { \
1489 CHECK(check_sljit_emit_fop1_cmp(compiler, op, dst, dstw, src, srcw)); \
1492 return sljit_emit_fop1_cmp(compiler, op, dst, dstw, src, srcw); \
1494 if ((GET_OPCODE(op) | 0x1) == SLJIT_CONVI_FROMD) { \
1495 CHECK(check_sljit_emit_fop1_convw_fromd(compiler, op, dst, dstw, src, srcw)); \
1498 return sljit_emit_fop1_convw_fromd(compiler, op, dst, dstw, src, srcw); \
1500 CHECK(check_sljit_emit_fop1_convd_fromw(compiler, op, dst, dstw, src, srcw)); \
1503 return sljit_emit_fop1_convd_fromw(compiler, op, dst, dstw, src, srcw); \
1505 CHECK(check_sljit_emit_fop1(compiler, op, dst, dstw, src, srcw)); \
1509 static SLJIT_INLINE sljit_si emit_mov_before_return(struct sljit_compiler *compiler, sljit_si op, s… in emit_mov_before_return() argument
1512 if (op == SLJIT_UNUSED) in emit_mov_before_return()
1517 if (src == SLJIT_RETURN_REG && (op == SLJIT_MOV || op == SLJIT_MOV_P)) in emit_mov_before_return()
1520 …if (src == SLJIT_RETURN_REG && (op == SLJIT_MOV || op == SLJIT_MOV_UI || op == SLJIT_MOV_SI || op in emit_mov_before_return()
1528 return sljit_emit_op1(compiler, op, SLJIT_RETURN_REG, 0, src, srcw); in emit_mov_before_return()
1792 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_return(struct sljit_compiler *compiler, sljit_si op, s… in sljit_emit_return() argument
1795 SLJIT_UNUSED_ARG(op); in sljit_emit_return()
1820 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_op0(struct sljit_compiler *compiler, sljit_si op) in sljit_emit_op0() argument
1823 SLJIT_UNUSED_ARG(op); in sljit_emit_op0()
1828 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_op1(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_op1() argument
1833 SLJIT_UNUSED_ARG(op); in sljit_emit_op1()
1842 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_op2(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_op2() argument
1848 SLJIT_UNUSED_ARG(op); in sljit_emit_op2()
1881 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_fop1(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_fop1() argument
1886 SLJIT_UNUSED_ARG(op); in sljit_emit_fop1()
1895 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_fop2(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_fop2() argument
1901 SLJIT_UNUSED_ARG(op); in sljit_emit_fop2()
1979 SLJIT_API_FUNC_ATTRIBUTE sljit_si sljit_emit_op_flags(struct sljit_compiler *compiler, sljit_si op, in sljit_emit_op_flags() argument
1985 SLJIT_UNUSED_ARG(op); in sljit_emit_op_flags()