Lines Matching defs:min
1143 unsigned size = std::min(sel.size(), instrSel.size());
1257 int32_t min = ctx.program->dev.scratch_global_offset_min;
1264 return offset >= min && offset <= max;
2661 /* TODO: this can handle SDWA min/max instructions by using opsel */
2665 /* min(-max(a, b), c) -> min3(c, -a, -b) *
2666 * max(-min(a, b), c) -> max3(c, -a, -b) */
2885 get_minmax_info(aco_opcode op, aco_opcode* min, aco_opcode* max, aco_opcode* min3, aco_opcode* max3,
2892 *min = aco_opcode::v_min_##type; \
2902 *min = aco_opcode::v_min_##type##_e64; \
2928 combine_clamp(opt_ctx& ctx, aco_ptr<Instruction>& instr, aco_opcode min, aco_opcode max,
2935 if (instr->opcode == min)
2938 other_op = min;
2948 /* max(min(src, upper), lower) returns upper if src is NaN, but
2951 if (precise && instr->opcode != min &&
2952 (min == aco_opcode::v_min_f16 || min == aco_opcode::v_min_f32))
2980 switch (min) {
2984 if (min == aco_opcode::v_min_f32) {
3030 if (instr->opcode == min) {
4226 aco_opcode min, max, min3, max3, med3;
4228 if (get_minmax_info(instr->opcode, &min, &max, &min3, &max3, &med3, &some_gfx9_only) &&
4230 if (combine_minmax(ctx, instr, instr->opcode == min ? max : min,
4231 instr->opcode == min ? min3 : max3)) {
4233 combine_clamp(ctx, instr, min, max, med3);