Lines Matching refs:iassert
69 #define iassert(cond) do { \ macro
157 iassert(instr->regs_count == 2); in emit_cat1()
158 iassert(!((dst->flags ^ type_flags(instr->cat1.dst_type)) & IR3_REG_HALF)); in emit_cat1()
159 iassert((src->flags & IR3_REG_IMMED) || in emit_cat1()
204 iassert((instr->regs_count == 2) || (instr->regs_count == 3)); in emit_cat2()
207 iassert(src1->array.offset < (1 << 10)); in emit_cat2()
214 iassert(src1->num < (1 << 12)); in emit_cat2()
219 iassert(src1->num < (1 << 11)); in emit_cat2()
230 iassert((src2->flags & IR3_REG_IMMED) || in emit_cat2()
234 iassert(src2->array.offset < (1 << 10)); in emit_cat2()
241 iassert(src2->num < (1 << 12)); in emit_cat2()
246 iassert(src2->num < (1 << 11)); in emit_cat2()
301 iassert(instr->regs_count == 4); in emit_cat3()
302 iassert(!((src1->flags ^ src_flags) & IR3_REG_HALF)); in emit_cat3()
303 iassert(!((src2->flags ^ src_flags) & IR3_REG_HALF)); in emit_cat3()
304 iassert(!((src3->flags ^ src_flags) & IR3_REG_HALF)); in emit_cat3()
307 iassert(src1->array.offset < (1 << 10)); in emit_cat3()
314 iassert(src1->num < (1 << 12)); in emit_cat3()
319 iassert(src1->num < (1 << 11)); in emit_cat3()
335 iassert(src3->array.offset < (1 << 10)); in emit_cat3()
342 iassert(src3->num < (1 << 12)); in emit_cat3()
347 iassert(src3->num < (1 << 11)); in emit_cat3()
375 iassert(instr->regs_count == 2); in emit_cat4()
378 iassert(src->array.offset < (1 << 10)); in emit_cat4()
385 iassert(src->num < (1 << 12)); in emit_cat4()
391 iassert(src->num < (1 << 11)); in emit_cat4()
425 iassert(!((dst->flags ^ type_flags(instr->cat5.type)) & IR3_REG_HALF)); in emit_cat5()
437 iassert(!((src1->flags ^ src2->flags) & IR3_REG_HALF)); in emit_cat5()
441 iassert(src3->flags & IR3_REG_HALF); in emit_cat5()
444 iassert(!(instr->cat5.samp | instr->cat5.tex)); in emit_cat5()
446 iassert(!src3); in emit_cat5()
448 iassert(!((src1->flags ^ src2->flags) & IR3_REG_HALF)); in emit_cat5()
491 iassert(instr->regs_count >= 3); in emit_cat6()
497 iassert(instr->regs_count >= 2); in emit_cat6()
526 iassert(src1->flags & IR3_REG_IMMED); in emit_cat6()
561 iassert(src1->flags & IR3_REG_IMMED); in emit_cat6()
582 iassert(src1->flags & IR3_REG_IMMED); in emit_cat6()
599 iassert(dst->flags & IR3_REG_IMMED); in emit_cat6()