Lines Matching refs:SLJIT_ASSERT

485 	SLJIT_ASSERT(size <= 256);  in ensure_buf()
504 SLJIT_ASSERT(size <= 256); in ensure_abuf()
588 SLJIT_ASSERT(!GET_FLAGS(op) || !(op & SLJIT_KEEP_FLAGS)); \
598 SLJIT_ASSERT(!(op & (SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJIT_SET_C))); \
601 SLJIT_ASSERT(!(op & (SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_C))); \
604 SLJIT_ASSERT(!(op & (SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_C))); \
607 SLJIT_ASSERT(!(op & (SLJIT_SET_U | SLJIT_SET_S))); \
613 SLJIT_ASSERT(!(op & (SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O))); \
626SLJIT_ASSERT(!(op & (SLJIT_INT_OP | SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJIT_…
630SLJIT_ASSERT(!(op & (SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJIT_SET_C | SLJIT_K…
635 SLJIT_ASSERT(!GET_FLAGS(op) || !(op & SLJIT_KEEP_FLAGS)); \
638 SLJIT_ASSERT(!(op & (SLJIT_SET_U | SLJIT_SET_O | SLJIT_SET_C | SLJIT_KEEP_FLAGS))); \
639 SLJIT_ASSERT((op & (SLJIT_SET_E | SLJIT_SET_S))); \
643SLJIT_ASSERT(!(op & (SLJIT_SET_E | SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJIT_SET_C | SLJIT_K…
654 SLJIT_ASSERT((p) < SLJIT_R3 || (p) > SLJIT_R6);
660 SLJIT_ASSERT(compiler->scratches != -1 && compiler->saveds != -1); \
662 SLJIT_ASSERT((i) == 0 && (p) != SLJIT_UNUSED); \
666 SLJIT_ASSERT((i) >= 0 && (i) < compiler->logical_local_size); \
668 SLJIT_ASSERT(FUNCTION_CHECK_IS_REG((p) & REG_MASK)); \
671 SLJIT_ASSERT(FUNCTION_CHECK_IS_REG(OFFS_REG(p))); \
673 SLJIT_ASSERT(!((i) & ~0x3)); \
675 SLJIT_ASSERT(!((p) & ~(SLJIT_MEM | SLJIT_IMM | REG_MASK | OFFS_REG_MASK))); \
681 SLJIT_ASSERT(compiler->scratches != -1 && compiler->saveds != -1); \
683 SLJIT_ASSERT((i) == 0); \
685 SLJIT_ASSERT((i) >= 0 && (i) < compiler->logical_local_size); \
687 SLJIT_ASSERT(FUNCTION_CHECK_IS_REG((p) & REG_MASK)); \
690 SLJIT_ASSERT(FUNCTION_CHECK_IS_REG(OFFS_REG(p))); \
692 SLJIT_ASSERT(!((i) & ~0x3)); \
694 SLJIT_ASSERT(!((p) & ~(SLJIT_MEM | SLJIT_IMM | REG_MASK | OFFS_REG_MASK))); \
700 SLJIT_ASSERT(compiler->fscratches != -1 && compiler->fsaveds != -1); \
703 SLJIT_ASSERT(i == 0); \
705 SLJIT_ASSERT((i) >= 0 && (i) < compiler->logical_local_size); \
707 SLJIT_ASSERT(FUNCTION_CHECK_IS_REG((p) & REG_MASK)); \
710 SLJIT_ASSERT(FUNCTION_CHECK_IS_REG(OFFS_REG(p))); \
712 SLJIT_ASSERT(((p) & OFFS_REG_MASK) != TO_OFFS_REG(SLJIT_SP) && !(i & ~0x3)); \
714 SLJIT_ASSERT(OFFS_REG(p) == 0); \
715 SLJIT_ASSERT(!((p) & ~(SLJIT_MEM | SLJIT_IMM | REG_MASK | OFFS_REG_MASK))); \
722 SLJIT_ASSERT(!(src & SLJIT_MEM) || (src & REG_MASK) != SLJIT_SP); \
723 SLJIT_ASSERT(!(dst & SLJIT_MEM) || (dst & REG_MASK) != SLJIT_SP); \
725 SLJIT_ASSERT((dst & REG_MASK) != (src & REG_MASK) && OFFS_REG(dst) != (src & REG_MASK)); \
863 SLJIT_ASSERT(compiler->size > 0); in check_sljit_generate_code()
868 SLJIT_ASSERT(jump->flags & (JUMP_LABEL | JUMP_ADDR)); in check_sljit_generate_code()
888 SLJIT_ASSERT(options == 0); in check_sljit_emit_enter()
889 SLJIT_ASSERT(args >= 0 && args <= 3); in check_sljit_emit_enter()
890 SLJIT_ASSERT(scratches >= 0 && scratches <= SLJIT_NUMBER_OF_REGISTERS); in check_sljit_emit_enter()
891 SLJIT_ASSERT(saveds >= 0 && saveds <= SLJIT_NUMBER_OF_REGISTERS); in check_sljit_emit_enter()
892 SLJIT_ASSERT(scratches + saveds <= SLJIT_NUMBER_OF_REGISTERS); in check_sljit_emit_enter()
893 SLJIT_ASSERT(args <= saveds); in check_sljit_emit_enter()
894 SLJIT_ASSERT(fscratches >= 0 && fscratches <= SLJIT_NUMBER_OF_FLOAT_REGISTERS); in check_sljit_emit_enter()
895 SLJIT_ASSERT(fsaveds >= 0 && fsaveds <= SLJIT_NUMBER_OF_FLOAT_REGISTERS); in check_sljit_emit_enter()
896 SLJIT_ASSERT(fscratches + fsaveds <= SLJIT_NUMBER_OF_FLOAT_REGISTERS); in check_sljit_emit_enter()
897 SLJIT_ASSERT(local_size >= 0 && local_size <= SLJIT_MAX_LOCAL_SIZE); in check_sljit_emit_enter()
926 SLJIT_ASSERT(options == 0); in check_sljit_set_context()
927 SLJIT_ASSERT(args >= 0 && args <= 3); in check_sljit_set_context()
928 SLJIT_ASSERT(scratches >= 0 && scratches <= SLJIT_NUMBER_OF_REGISTERS); in check_sljit_set_context()
929 SLJIT_ASSERT(saveds >= 0 && saveds <= SLJIT_NUMBER_OF_REGISTERS); in check_sljit_set_context()
930 SLJIT_ASSERT(scratches + saveds <= SLJIT_NUMBER_OF_REGISTERS); in check_sljit_set_context()
931 SLJIT_ASSERT(args <= saveds); in check_sljit_set_context()
932 SLJIT_ASSERT(fscratches >= 0 && fscratches <= SLJIT_NUMBER_OF_FLOAT_REGISTERS); in check_sljit_set_context()
933 SLJIT_ASSERT(fsaveds >= 0 && fsaveds <= SLJIT_NUMBER_OF_FLOAT_REGISTERS); in check_sljit_set_context()
934 SLJIT_ASSERT(fscratches + fsaveds <= SLJIT_NUMBER_OF_FLOAT_REGISTERS); in check_sljit_set_context()
935 SLJIT_ASSERT(local_size >= 0 && local_size <= SLJIT_MAX_LOCAL_SIZE); in check_sljit_set_context()
953 SLJIT_ASSERT(op >= SLJIT_MOV && op <= SLJIT_MOV_P); in check_sljit_emit_return()
957 SLJIT_ASSERT(src == 0 && srcw == 0); in check_sljit_emit_return()
1016 SLJIT_ASSERT((op >= SLJIT_BREAKPOINT && op <= SLJIT_SMUL) in check_sljit_emit_op0()
1018 SLJIT_ASSERT(op < SLJIT_UMUL || compiler->scratches >= 2); in check_sljit_emit_op0()
1044 SLJIT_ASSERT(GET_OPCODE(op) >= SLJIT_MOV && GET_OPCODE(op) <= SLJIT_CLZ); in check_sljit_emit_op1()
1086 SLJIT_ASSERT(GET_OPCODE(op) >= SLJIT_ADD && GET_OPCODE(op) <= SLJIT_ASHR); in check_sljit_emit_op2()
1111 SLJIT_ASSERT(reg > 0 && reg <= SLJIT_NUMBER_OF_REGISTERS); in check_sljit_get_register_index()
1117 SLJIT_ASSERT(reg > 0 && reg <= SLJIT_NUMBER_OF_FLOAT_REGISTERS); in check_sljit_get_float_register_index()
1126 SLJIT_ASSERT(instruction); in check_sljit_emit_op_custom()
1130 SLJIT_ASSERT(sljit_is_fpu_available()); \
1174 SLJIT_ASSERT(GET_OPCODE(op) >= SLJIT_MOVD && GET_OPCODE(op) <= SLJIT_ABSD); in check_sljit_emit_fop1()
1213 SLJIT_ASSERT(GET_OPCODE(op) == SLJIT_CMPD); in check_sljit_emit_fop1_cmp()
1250 SLJIT_ASSERT(GET_OPCODE(op) >= SLJIT_CONVW_FROMD && GET_OPCODE(op) <= SLJIT_CONVI_FROMD); in check_sljit_emit_fop1_convw_fromd()
1288 SLJIT_ASSERT(GET_OPCODE(op) >= SLJIT_CONVD_FROMW && GET_OPCODE(op) <= SLJIT_CONVD_FROMI); in check_sljit_emit_fop1_convd_fromw()
1322 SLJIT_ASSERT(sljit_is_fpu_available()); in check_sljit_emit_fop2()
1323 SLJIT_ASSERT(GET_OPCODE(op) >= SLJIT_ADDD && GET_OPCODE(op) <= SLJIT_DIVD); in check_sljit_emit_fop2()
1367 SLJIT_ASSERT(!(type & ~(0xff | SLJIT_REWRITABLE_JUMP))); in check_sljit_emit_jump()
1368 SLJIT_ASSERT((type & 0xff) >= SLJIT_C_EQUAL && (type & 0xff) <= SLJIT_CALL3); in check_sljit_emit_jump()
1386 SLJIT_ASSERT(!(type & ~(0xff | SLJIT_REWRITABLE_JUMP | SLJIT_INT_OP))); in check_sljit_emit_cmp()
1387 SLJIT_ASSERT((type & 0xff) >= SLJIT_C_EQUAL && (type & 0xff) <= SLJIT_C_SIG_LESS_EQUAL); in check_sljit_emit_cmp()
1414 SLJIT_ASSERT(sljit_is_fpu_available()); in check_sljit_emit_fcmp()
1415 SLJIT_ASSERT(!(type & ~(0xff | SLJIT_REWRITABLE_JUMP | SLJIT_SINGLE_OP))); in check_sljit_emit_fcmp()
1416 SLJIT_ASSERT((type & 0xff) >= SLJIT_C_FLOAT_EQUAL && (type & 0xff) <= SLJIT_C_FLOAT_ORDERED); in check_sljit_emit_fcmp()
1448 SLJIT_ASSERT(type >= SLJIT_JUMP && type <= SLJIT_CALL3); in check_sljit_emit_ijump()
1475 SLJIT_ASSERT(type >= SLJIT_C_EQUAL && type < SLJIT_JUMP); in check_sljit_emit_op_flags()
1476 SLJIT_ASSERT(op == SLJIT_MOV || GET_OPCODE(op) == SLJIT_MOV_UI || GET_OPCODE(op) == SLJIT_MOV_SI in check_sljit_emit_op_flags()
1478 SLJIT_ASSERT((op & (SLJIT_SET_U | SLJIT_SET_S | SLJIT_SET_O | SLJIT_SET_C)) == 0); in check_sljit_emit_op_flags()
1479 SLJIT_ASSERT((op & (SLJIT_SET_E | SLJIT_KEEP_FLAGS)) != (SLJIT_SET_E | SLJIT_KEEP_FLAGS)); in check_sljit_emit_op_flags()
1482 SLJIT_ASSERT(src == SLJIT_UNUSED && srcw == 0); in check_sljit_emit_op_flags()
1484 SLJIT_ASSERT(src == dst && srcw == dstw); in check_sljit_emit_op_flags()