Lines Matching defs:cond

728       struct ir3_instruction *cond = src[0];
730 /* If src[0] is a negation (likely as a result of an ir3_b2n(cond)),
731 * we can ignore that and use original cond, since the nonzero-ness of
732 * cond stays the same.
734 if (cond->opc == OPC_ABSNEG_S && cond->flags == 0 &&
735 (cond->srcs[0]->flags & (IR3_REG_SNEG | IR3_REG_SABS)) ==
737 cond = cond->srcs[0]->def->instr;
748 if (is_half(src[1]) != is_half(cond)) {
752 cond = prev_entry->data;
754 if (is_half(cond)) {
755 cond = ir3_COV(b, cond, TYPE_U16, TYPE_U32);
757 cond = ir3_COV(b, cond, TYPE_U32, TYPE_U16);
759 _mesa_hash_table_insert(ctx->sel_cond_conversions, src[0], cond);
764 dst[0] = ir3_SEL_B16(b, src[1], 0, cond, 0, src[2], 0);
766 dst[0] = ir3_SEL_B32(b, src[1], 0, cond, 0, src[2], 0);
2444 struct ir3_instruction *cond, *kill;
2451 cond = src[0];
2454 cond = create_immed_typed(b, 1, ctx->compiler->bool_type);
2459 create_immed_typed(b, 0, is_half(cond) ? TYPE_U16 : TYPE_U32);
2460 cond = ir3_CMPS_S(b, cond, 0, zero, 0);
2461 cond->cat2.condition = IR3_COND_NE;
2464 cond->dsts[0]->num = regid(REG_P0, 0);
2465 cond->dsts[0]->flags &= ~IR3_REG_SSA;
2469 kill = ir3_DEMOTE(b, cond, 0);
2471 kill = ir3_KILL(b, cond, 0);
2491 struct ir3_instruction *cond, *kill;
2494 cond = src[0];
2498 create_immed_typed(b, 0, is_half(cond) ? TYPE_U16 : TYPE_U32);
2499 cond = ir3_CMPS_S(b, cond, 0, zero, 0);
2500 cond->cat2.condition = IR3_COND_NE;
2503 cond->dsts[0]->num = regid(REG_P0, 0);
2505 kill = ir3_PREDT(b, cond, 0);
2541 struct ir3_instruction *cond = ir3_get_src(ctx, &intr->src[1])[0];
2542 dst[0] = ir3_READ_COND_MACRO(ctx->block, ir3_get_predicate(ctx, cond), 0,
3762 struct ir3_instruction *vtxcnt, *maxvtxcnt, *cond;
3798 cond = ir3_CMPS_S(ctx->block, vtxcnt, 0, maxvtxcnt, 0);
3799 cond->dsts[0]->num = regid(REG_P0, 0);
3800 cond->dsts[0]->flags &= ~IR3_REG_SSA;
3801 cond->cat2.condition = IR3_COND_LT;
3807 orig_end_block->condition = cond;