Lines Matching refs:CHECK_ARGUMENT

254 #define CHECK_ARGUMENT(x) \  macro
292 #define CHECK_ARGUMENT(x) SLJIT_ASSERT(x) macro
628 CHECK_ARGUMENT(!GET_FLAGS(op) || !(op & SLJIT_KEEP_FLAGS)); \
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))); \
666CHECK_ARGUMENT(!(op & (SLJIT_INT_OP | SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJI…
670CHECK_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)); \
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))); \
683CHECK_ARGUMENT(!(op & (SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJIT_SET_C | SLJIT…
698 CHECK_ARGUMENT((p) < SLJIT_R3 || (p) > SLJIT_R6);
704 CHECK_ARGUMENT(compiler->scratches != -1 && compiler->saveds != -1); \
706 CHECK_ARGUMENT((i) == 0); \
710 CHECK_ARGUMENT((i) >= 0 && (i) < compiler->logical_local_size); \
712 CHECK_ARGUMENT((p) & SLJIT_MEM); \
713 CHECK_ARGUMENT(FUNCTION_CHECK_IS_REG_OR_UNUSED((p) & REG_MASK)); \
716 CHECK_ARGUMENT(((p) & REG_MASK) != SLJIT_UNUSED); \
717 CHECK_ARGUMENT(FUNCTION_CHECK_IS_REG(OFFS_REG(p))); \
719 CHECK_ARGUMENT(!((i) & ~0x3)); \
721 CHECK_ARGUMENT(!((p) & ~(SLJIT_MEM | SLJIT_IMM | REG_MASK | OFFS_REG_MASK))); \
725 CHECK_ARGUMENT(compiler->scratches != -1 && compiler->saveds != -1); \
727 CHECK_ARGUMENT((i) == 0); \
729 CHECK_ARGUMENT((i) >= 0 && (i) < compiler->logical_local_size); \
731 CHECK_ARGUMENT((p) & SLJIT_MEM); \
732 CHECK_ARGUMENT(FUNCTION_CHECK_IS_REG_OR_UNUSED((p) & REG_MASK)); \
735 CHECK_ARGUMENT(((p) & REG_MASK) != SLJIT_UNUSED); \
736 CHECK_ARGUMENT(FUNCTION_CHECK_IS_REG(OFFS_REG(p))); \
738 CHECK_ARGUMENT(!((i) & ~0x3)); \
740 CHECK_ARGUMENT(!((p) & ~(SLJIT_MEM | SLJIT_IMM | REG_MASK | OFFS_REG_MASK))); \
744 CHECK_ARGUMENT(compiler->fscratches != -1 && compiler->fsaveds != -1); \
747 CHECK_ARGUMENT(i == 0); \
749 CHECK_ARGUMENT((i) >= 0 && (i) < compiler->logical_local_size); \
751 CHECK_ARGUMENT((p) & SLJIT_MEM); \
752 CHECK_ARGUMENT(FUNCTION_CHECK_IS_REG_OR_UNUSED((p) & REG_MASK)); \
755 CHECK_ARGUMENT(((p) & REG_MASK) != SLJIT_UNUSED); \
756 CHECK_ARGUMENT(FUNCTION_CHECK_IS_REG(OFFS_REG(p))); \
758 CHECK_ARGUMENT(((p) & OFFS_REG_MASK) != TO_OFFS_REG(SLJIT_SP) && !(i & ~0x3)); \
760 CHECK_ARGUMENT(!((p) & ~(SLJIT_MEM | SLJIT_IMM | REG_MASK | OFFS_REG_MASK))); \
765 CHECK_ARGUMENT(!(src & SLJIT_MEM) || (src & REG_MASK) != SLJIT_SP); \
766 CHECK_ARGUMENT(!(dst & SLJIT_MEM) || (dst & REG_MASK) != SLJIT_SP); \
768 CHECK_ARGUMENT((dst & REG_MASK) != (src & REG_MASK) && OFFS_REG(dst) != (src & REG_MASK)); \
914 CHECK_ARGUMENT(compiler->size > 0); in check_sljit_generate_code()
918 CHECK_ARGUMENT(jump->flags & (JUMP_LABEL | JUMP_ADDR)); in check_sljit_generate_code()
932 CHECK_ARGUMENT(!(options & ~SLJIT_DOUBLE_ALIGNMENT)); in check_sljit_emit_enter()
933 CHECK_ARGUMENT(args >= 0 && args <= 3); in check_sljit_emit_enter()
934 CHECK_ARGUMENT(scratches >= 0 && scratches <= SLJIT_NUMBER_OF_REGISTERS); in check_sljit_emit_enter()
935 CHECK_ARGUMENT(saveds >= 0 && saveds <= SLJIT_NUMBER_OF_REGISTERS); in check_sljit_emit_enter()
936 CHECK_ARGUMENT(scratches + saveds <= SLJIT_NUMBER_OF_REGISTERS); in check_sljit_emit_enter()
937 CHECK_ARGUMENT(args <= saveds); in check_sljit_emit_enter()
938 CHECK_ARGUMENT(fscratches >= 0 && fscratches <= SLJIT_NUMBER_OF_FLOAT_REGISTERS); in check_sljit_emit_enter()
939 CHECK_ARGUMENT(fsaveds >= 0 && fsaveds <= SLJIT_NUMBER_OF_FLOAT_REGISTERS); in check_sljit_emit_enter()
940 CHECK_ARGUMENT(fscratches + fsaveds <= SLJIT_NUMBER_OF_FLOAT_REGISTERS); in check_sljit_emit_enter()
941 CHECK_ARGUMENT(local_size >= 0 && local_size <= SLJIT_MAX_LOCAL_SIZE); in check_sljit_emit_enter()
961 CHECK_ARGUMENT(!(options & ~SLJIT_DOUBLE_ALIGNMENT)); in check_sljit_set_context()
962 CHECK_ARGUMENT(args >= 0 && args <= 3); in check_sljit_set_context()
963 CHECK_ARGUMENT(scratches >= 0 && scratches <= SLJIT_NUMBER_OF_REGISTERS); in check_sljit_set_context()
964 CHECK_ARGUMENT(saveds >= 0 && saveds <= SLJIT_NUMBER_OF_REGISTERS); in check_sljit_set_context()
965 CHECK_ARGUMENT(scratches + saveds <= SLJIT_NUMBER_OF_REGISTERS); in check_sljit_set_context()
966 CHECK_ARGUMENT(args <= saveds); in check_sljit_set_context()
967 CHECK_ARGUMENT(fscratches >= 0 && fscratches <= SLJIT_NUMBER_OF_FLOAT_REGISTERS); in check_sljit_set_context()
968 CHECK_ARGUMENT(fsaveds >= 0 && fsaveds <= SLJIT_NUMBER_OF_FLOAT_REGISTERS); in check_sljit_set_context()
969 CHECK_ARGUMENT(fscratches + fsaveds <= SLJIT_NUMBER_OF_FLOAT_REGISTERS); in check_sljit_set_context()
970 CHECK_ARGUMENT(local_size >= 0 && local_size <= SLJIT_MAX_LOCAL_SIZE); in check_sljit_set_context()
983 CHECK_ARGUMENT(compiler->scratches >= 0); in check_sljit_emit_return()
985 CHECK_ARGUMENT(op >= SLJIT_MOV && op <= SLJIT_MOV_P); in check_sljit_emit_return()
989 CHECK_ARGUMENT(src == 0 && srcw == 0); in check_sljit_emit_return()
1038 CHECK_ARGUMENT((op >= SLJIT_BREAKPOINT && op <= SLJIT_LSMUL) in check_sljit_emit_op0()
1040 CHECK_ARGUMENT(op < SLJIT_LUMUL || compiler->scratches >= 2); in check_sljit_emit_op0()
1059 CHECK_ARGUMENT(GET_OPCODE(op) >= SLJIT_MOV && GET_OPCODE(op) <= SLJIT_CLZ); in check_sljit_emit_op1()
1090 CHECK_ARGUMENT(GET_OPCODE(op) >= SLJIT_ADD && GET_OPCODE(op) <= SLJIT_ASHR); in check_sljit_emit_op2()
1116 CHECK_ARGUMENT(reg > 0 && reg <= SLJIT_NUMBER_OF_REGISTERS); in check_sljit_get_register_index()
1125 CHECK_ARGUMENT(reg > 0 && reg <= SLJIT_NUMBER_OF_FLOAT_REGISTERS); in check_sljit_get_float_register_index()
1140 CHECK_ARGUMENT(instruction); in check_sljit_emit_op_custom()
1142 CHECK_ARGUMENT(size > 0 && size < 16); in check_sljit_emit_op_custom()
1144 CHECK_ARGUMENT((size == 2 && (((sljit_sw)instruction) & 0x1) == 0) in check_sljit_emit_op_custom()
1147 CHECK_ARGUMENT(size == 4 && (((sljit_sw)instruction) & 0x3) == 0); in check_sljit_emit_op_custom()
1172 CHECK_ARGUMENT(sljit_is_fpu_available()); in check_sljit_emit_fop1()
1173 CHECK_ARGUMENT(GET_OPCODE(op) >= SLJIT_DMOV && GET_OPCODE(op) <= SLJIT_DABS); in check_sljit_emit_fop1()
1206 CHECK_ARGUMENT(sljit_is_fpu_available()); in check_sljit_emit_fop1_cmp()
1207 CHECK_ARGUMENT(GET_OPCODE(op) == SLJIT_DCMP); in check_sljit_emit_fop1_cmp()
1235 CHECK_ARGUMENT(sljit_is_fpu_available()); in check_sljit_emit_fop1_convw_fromd()
1236 CHECK_ARGUMENT(GET_OPCODE(op) >= SLJIT_CONVW_FROMD && GET_OPCODE(op) <= SLJIT_CONVI_FROMD); in check_sljit_emit_fop1_convw_fromd()
1265 CHECK_ARGUMENT(sljit_is_fpu_available()); in check_sljit_emit_fop1_convd_fromw()
1266 CHECK_ARGUMENT(GET_OPCODE(op) >= SLJIT_CONVD_FROMW && GET_OPCODE(op) <= SLJIT_CONVD_FROMI); in check_sljit_emit_fop1_convd_fromw()
1291 CHECK_ARGUMENT(sljit_is_fpu_available()); in check_sljit_emit_fop2()
1292 CHECK_ARGUMENT(GET_OPCODE(op) >= SLJIT_DADD && GET_OPCODE(op) <= SLJIT_DDIV); in check_sljit_emit_fop2()
1331 CHECK_ARGUMENT(!(type & ~(0xff | SLJIT_REWRITABLE_JUMP | SLJIT_INT_OP))); in check_sljit_emit_jump()
1332 CHECK_ARGUMENT((type & 0xff) >= SLJIT_EQUAL && (type & 0xff) <= SLJIT_CALL3); in check_sljit_emit_jump()
1333 CHECK_ARGUMENT((type & 0xff) < SLJIT_JUMP || !(type & SLJIT_INT_OP)); in check_sljit_emit_jump()
1334CHECK_ARGUMENT((type & 0xff) <= SLJIT_CALL0 || ((type & 0xff) - SLJIT_CALL0) <= compiler->scratche… in check_sljit_emit_jump()
1349 CHECK_ARGUMENT(!(type & ~(0xff | SLJIT_REWRITABLE_JUMP | SLJIT_INT_OP))); in check_sljit_emit_cmp()
1350 CHECK_ARGUMENT((type & 0xff) >= SLJIT_EQUAL && (type & 0xff) <= SLJIT_SIG_LESS_EQUAL); in check_sljit_emit_cmp()
1372 CHECK_ARGUMENT(sljit_is_fpu_available()); in check_sljit_emit_fcmp()
1373 CHECK_ARGUMENT(!(type & ~(0xff | SLJIT_REWRITABLE_JUMP | SLJIT_SINGLE_OP))); in check_sljit_emit_fcmp()
1374 CHECK_ARGUMENT((type & 0xff) >= SLJIT_D_EQUAL && (type & 0xff) <= SLJIT_D_ORDERED); in check_sljit_emit_fcmp()
1399 CHECK_ARGUMENT(type >= SLJIT_JUMP && type <= SLJIT_CALL3); in check_sljit_emit_ijump()
1400 CHECK_ARGUMENT(type <= SLJIT_CALL0 || (type - SLJIT_CALL0) <= compiler->scratches); in check_sljit_emit_ijump()
1419 CHECK_ARGUMENT(!(type & ~(0xff | SLJIT_INT_OP))); in check_sljit_emit_op_flags()
1420 CHECK_ARGUMENT((type & 0xff) >= SLJIT_EQUAL && (type & 0xff) <= SLJIT_D_ORDERED); in check_sljit_emit_op_flags()
1421 CHECK_ARGUMENT(op == SLJIT_MOV || GET_OPCODE(op) == SLJIT_MOV_UI || GET_OPCODE(op) == SLJIT_MOV_SI 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()
1426 CHECK_ARGUMENT(src == SLJIT_UNUSED && srcw == 0); in check_sljit_emit_op_flags()
1428 CHECK_ARGUMENT(src == dst && srcw == dstw); in check_sljit_emit_op_flags()