Lines Matching refs:s0

483       agx_index dst, agx_index s0, agx_index s1, agx_index s2)
491 case nir_op_feq: return agx_fcmpsel_to(b, dst, s0, s1, t, f, AGX_FCOND_EQ);
492 case nir_op_flt: return agx_fcmpsel_to(b, dst, s0, s1, t, f, AGX_FCOND_LT);
493 case nir_op_fge: return agx_fcmpsel_to(b, dst, s0, s1, t, f, AGX_FCOND_GE);
494 case nir_op_fneu: return agx_fcmpsel_to(b, dst, s0, s1, f, t, AGX_FCOND_EQ);
496 case nir_op_ieq: return agx_icmpsel_to(b, dst, s0, s1, t, f, AGX_ICOND_UEQ);
497 case nir_op_ine: return agx_icmpsel_to(b, dst, s0, s1, f, t, AGX_ICOND_UEQ);
498 case nir_op_ilt: return agx_icmpsel_to(b, dst, s0, s1, t, f, AGX_ICOND_SLT);
499 case nir_op_ige: return agx_icmpsel_to(b, dst, s0, s1, f, t, AGX_ICOND_SLT);
500 case nir_op_ult: return agx_icmpsel_to(b, dst, s0, s1, t, f, AGX_ICOND_ULT);
501 case nir_op_uge: return agx_icmpsel_to(b, dst, s0, s1, f, t, AGX_ICOND_ULT);
503 case nir_op_mov: return agx_mov_to(b, dst, s0);
504 case nir_op_iand: return agx_and_to(b, dst, s0, s1);
505 case nir_op_ior: return agx_or_to(b, dst, s0, s1);
506 case nir_op_ixor: return agx_xor_to(b, dst, s0, s1);
507 case nir_op_inot: return agx_xor_to(b, dst, s0, t);
509 case nir_op_f2b1: return agx_fcmpsel_to(b, dst, s0, f, f, t, AGX_FCOND_EQ);
510 case nir_op_i2b1: return agx_icmpsel_to(b, dst, s0, f, f, t, AGX_ICOND_UEQ);
511 case nir_op_b2b1: return agx_icmpsel_to(b, dst, s0, f, f, t, AGX_ICOND_UEQ);
514 return agx_icmpsel_to(b, dst, s0, f, s2, s1, AGX_ICOND_UEQ);
534 agx_index s0 = srcs > 0 ? agx_alu_src_index(b, instr->src[0]) : agx_null();
541 return agx_emit_alu_bool(b, instr->op, dst, s0, s1, s2);
544 case nir_op_ ## nop: return agx_ ## aop ## _to(b, dst, s0);
546 case nir_op_ ## nop: return agx_ ## aop ## _to(b, dst, s0, s1);
548 case nir_op_ ## nop: return agx_ ## aop ## _to(b, dst, s0, s1, s2);
582 case nir_op_fsqrt: return agx_fmul_to(b, dst, s0, agx_srsqrt(b, s0));
583 case nir_op_fsub: return agx_fadd_to(b, dst, s0, agx_neg(s1));
584 case nir_op_fabs: return agx_fmov_to(b, dst, agx_abs(s0));
585 case nir_op_fneg: return agx_fmov_to(b, dst, agx_neg(s0));
587 case nir_op_fmin: return agx_fcmpsel_to(b, dst, s0, s1, s0, s1, AGX_FCOND_LTN);
588 case nir_op_fmax: return agx_fcmpsel_to(b, dst, s0, s1, s0, s1, AGX_FCOND_GTN);
589 case nir_op_imin: return agx_icmpsel_to(b, dst, s0, s1, s0, s1, AGX_ICOND_SLT);
590 case nir_op_imax: return agx_icmpsel_to(b, dst, s0, s1, s0, s1, AGX_ICOND_SGT);
591 case nir_op_umin: return agx_icmpsel_to(b, dst, s0, s1, s0, s1, AGX_ICOND_ULT);
592 case nir_op_umax: return agx_icmpsel_to(b, dst, s0, s1, s0, s1, AGX_ICOND_UGT);
594 case nir_op_iadd: return agx_iadd_to(b, dst, s0, s1, 0);
595 case nir_op_isub: return agx_iadd_to(b, dst, s0, agx_neg(s1), 0);
596 case nir_op_ineg: return agx_iadd_to(b, dst, agx_zero(), agx_neg(s0), 0);
597 case nir_op_imul: return agx_imad_to(b, dst, s0, s1, agx_zero(), 0);
599 case nir_op_ishl: return agx_bfi_to(b, dst, agx_zero(), s0, s1, 0);
600 case nir_op_ushr: return agx_ushr_to(b, dst, s0, s1);
601 case nir_op_ishr: return agx_asr_to(b, dst, s0, s1);
604 return agx_icmpsel_to(b, dst, s0, agx_zero(), s2, s1, AGX_ICOND_UEQ);
608 return agx_icmpsel_to(b, dst, s0, agx_zero(), agx_zero(), agx_immediate(1), AGX_ICOND_UEQ);
620 return agx_fcmpsel_to(b, dst, s0, zero, zero, one, AGX_FCOND_EQ);
625 if (s0.size != AGX_SIZE_16)
628 return agx_iadd_to(b, dst, s0, agx_zero(), 0);
633 if (s0.size != AGX_SIZE_32)
636 return agx_iadd_to(b, dst, s0, agx_zero(), 0);
641 agx_instr *I = agx_iadd_to(b, dst, s0, s1, 0);
648 agx_instr *I = agx_iadd_to(b, dst, s0, agx_neg(s1), 0);
655 agx_instr *I = agx_iadd_to(b, dst, agx_abs(s0), agx_abs(s1), 0);
662 agx_instr *I = agx_iadd_to(b, dst, agx_abs(s0), agx_neg(agx_abs(s1)), 0);
669 agx_instr *I = agx_fadd_to(b, dst, s0, agx_negzero());
676 agx_index fixup = agx_sin_pt_1(b, s0);
683 agx_immediate(AGX_CONVERT_F_TO_S16), s0, AGX_ROUND_RTZ);
687 agx_immediate(AGX_CONVERT_F_TO_S32), s0, AGX_ROUND_RTZ);
691 agx_immediate(AGX_CONVERT_F_TO_U16), s0, AGX_ROUND_RTZ);
695 agx_immediate(AGX_CONVERT_F_TO_U32), s0, AGX_ROUND_RTZ);
708 return agx_convert_to(b, dst, agx_immediate(mode), s0, AGX_ROUND_RTE);
722 return agx_convert_to(b, dst, agx_immediate(mode), s0, AGX_ROUND_RTE);
728 return agx_p_combine_to(b, dst, s0, s1, s2, s3);