Home | History | Annotate | Download | only in ir3

Lines Matching defs:opc

155 	switch (cat0->opc) {
246 switch (_OPC(2, cat2->opc)) {
277 switch (_OPC(2, cat2->opc)) {
426 switch (_OPC(5, cat5->opc)) {
443 if (info[cat5->opc].src1) {
457 if (cat5->is_o || info[cat5->opc].src2) {
462 if (info[cat5->opc].samp)
464 if (info[cat5->opc].tex)
491 switch (_OPC(6, cat6->opc)) {
522 switch (_OPC(6, cat6->opc)) {
548 switch (_OPC(6, cat6->opc)) {
639 switch (_OPC(6, cat6->opc)) {
650 /* size of largest OPC field of all the instruction categories: */
655 uint16_t opc;
659 #define OPC(cat, opc, name) [(opc)] = { (cat), (opc), #name, print_instr_cat##cat }
661 OPC(0, OPC_NOP, nop),
662 OPC(0, OPC_BR, br),
663 OPC(0, OPC_JUMP, jump),
664 OPC(0, OPC_CALL, call),
665 OPC(0, OPC_RET, ret),
666 OPC(0, OPC_KILL, kill),
667 OPC(0, OPC_END, end),
668 OPC(0, OPC_EMIT, emit),
669 OPC(0, OPC_CUT, cut),
670 OPC(0, OPC_CHMASK, chmask),
671 OPC(0, OPC_CHSH, chsh),
672 OPC(0, OPC_FLOW_REV, flow_rev),
675 OPC(1, OPC_MOV, ),
678 OPC(2, OPC_ADD_F, add.f),
679 OPC(2, OPC_MIN_F, min.f),
680 OPC(2, OPC_MAX_F, max.f),
681 OPC(2, OPC_MUL_F, mul.f),
682 OPC(2, OPC_SIGN_F, sign.f),
683 OPC(2, OPC_CMPS_F, cmps.f),
684 OPC(2, OPC_ABSNEG_F, absneg.f),
685 OPC(2, OPC_CMPV_F, cmpv.f),
686 OPC(2, OPC_FLOOR_F, floor.f),
687 OPC(2, OPC_CEIL_F, ceil.f),
688 OPC(2, OPC_RNDNE_F, rndne.f),
689 OPC(2, OPC_RNDAZ_F, rndaz.f),
690 OPC(2, OPC_TRUNC_F, trunc.f),
691 OPC(2, OPC_ADD_U, add.u),
692 OPC(2, OPC_ADD_S, add.s),
693 OPC(2, OPC_SUB_U, sub.u),
694 OPC(2, OPC_SUB_S, sub.s),
695 OPC(2, OPC_CMPS_U, cmps.u),
696 OPC(2, OPC_CMPS_S, cmps.s),
697 OPC(2, OPC_MIN_U, min.u),
698 OPC(2, OPC_MIN_S, min.s),
699 OPC(2, OPC_MAX_U, max.u),
700 OPC(2, OPC_MAX_S, max.s),
701 OPC(2, OPC_ABSNEG_S, absneg.s),
702 OPC(2, OPC_AND_B, and.b),
703 OPC(2, OPC_OR_B, or.b),
704 OPC(2, OPC_NOT_B, not.b),
705 OPC(2, OPC_XOR_B, xor.b),
706 OPC(2, OPC_CMPV_U, cmpv.u),
707 OPC(2, OPC_CMPV_S, cmpv.s),
708 OPC(2, OPC_MUL_U, mul.u),
709 OPC(2, OPC_MUL_S, mul.s),
710 OPC(2, OPC_MULL_U, mull.u),
711 OPC(2, OPC_BFREV_B, bfrev.b),
712 OPC(2, OPC_CLZ_S, clz.s),
713 OPC(2, OPC_CLZ_B, clz.b),
714 OPC(2, OPC_SHL_B, shl.b),
715 OPC(2, OPC_SHR_B, shr.b),
716 OPC(2, OPC_ASHR_B, ashr.b),
717 OPC(2, OPC_BARY_F, bary.f),
718 OPC(2, OPC_MGEN_B, mgen.b),
719 OPC(2, OPC_GETBIT_B, getbit.b),
720 OPC(2, OPC_SETRM, setrm),
721 OPC(2, OPC_CBITS_B, cbits.b),
722 OPC(2, OPC_SHB, shb),
723 OPC(2, OPC_MSAD, msad),
726 OPC(3, OPC_MAD_U16, mad.u16),
727 OPC(3, OPC_MADSH_U16, madsh.u16),
728 OPC(3, OPC_MAD_S16, mad.s16),
729 OPC(3, OPC_MADSH_M16, madsh.m16),
730 OPC(3, OPC_MAD_U24, mad.u24),
731 OPC(3, OPC_MAD_S24, mad.s24),
732 OPC(3, OPC_MAD_F16, mad.f16),
733 OPC(3, OPC_MAD_F32, mad.f32),
734 OPC(3, OPC_SEL_B16, sel.b16),
735 OPC(3, OPC_SEL_B32, sel.b32),
736 OPC(3, OPC_SEL_S16, sel.s16),
737 OPC(3, OPC_SEL_S32, sel.s32),
738 OPC(3, OPC_SEL_F16, sel.f16),
739 OPC(3, OPC_SEL_F32, sel.f32),
740 OPC(3, OPC_SAD_S16, sad.s16),
741 OPC(3, OPC_SAD_S32, sad.s32),
744 OPC(4, OPC_RCP, rcp),
745 OPC(4, OPC_RSQ, rsq),
746 OPC(4, OPC_LOG2, log2),
747 OPC(4, OPC_EXP2, exp2),
748 OPC(4, OPC_SIN, sin),
749 OPC(4, OPC_COS, cos),
750 OPC(4, OPC_SQRT, sqrt),
753 OPC(5, OPC_ISAM, isam),
754 OPC(5, OPC_ISAML, isaml),
755 OPC(5, OPC_ISAMM, isamm),
756 OPC(5, OPC_SAM, sam),
757 OPC(5, OPC_SAMB, samb),
758 OPC(5, OPC_SAML, saml),
759 OPC(5, OPC_SAMGQ, samgq),
760 OPC(5, OPC_GETLOD, getlod),
761 OPC(5, OPC_CONV, conv),
762 OPC(5, OPC_CONVM, convm),
763 OPC(5, OPC_GETSIZE, getsize),
764 OPC(5, OPC_GETBUF, getbuf),
765 OPC(5, OPC_GETPOS, getpos),
766 OPC(5, OPC_GETINFO, getinfo),
767 OPC(5, OPC_DSX, dsx),
768 OPC(5, OPC_DSY, dsy),
769 OPC(5, OPC_GATHER4R, gather4r),
770 OPC(5, OPC_GATHER4G, gather4g),
771 OPC(5, OPC_GATHER4B, gather4b),
772 OPC(5, OPC_GATHER4A, gather4a),
773 OPC(5, OPC_SAMGP0, samgp0),
774 OPC(5, OPC_SAMGP1, samgp1),
775 OPC(5, OPC_SAMGP2, samgp2),
776 OPC(5, OPC_SAMGP3, samgp3),
777 OPC(5, OPC_DSXPP_1, dsxpp.1),
778 OPC(5, OPC_DSYPP_1, dsypp.1),
779 OPC(5, OPC_RGETPOS, rgetpos),
780 OPC(5, OPC_RGETINFO, rgetinfo),
784 OPC(6, OPC_LDG, ldg),
785 OPC(6, OPC_LDL, ldl),
786 OPC(6, OPC_LDP, ldp),
787 OPC(6, OPC_STG, stg),
788 OPC(6, OPC_STL, stl),
789 OPC(6, OPC_STP, stp),
790 OPC(6, OPC_STI, sti),
791 OPC(6, OPC_G2L, g2l),
792 OPC(6, OPC_L2G, l2g),
793 OPC(6, OPC_PREFETCH, prefetch),
794 OPC(6, OPC_LDLW, ldlw),
795 OPC(6, OPC_STLW, stlw),
796 OPC(6, OPC_RESFMT, resfmt),
797 OPC(6, OPC_RESINFO, resinfo),
798 OPC(6, OPC_ATOMIC_ADD, atomic.add),
799 OPC(6, OPC_ATOMIC_SUB, atomic.sub),
800 OPC(6, OPC_ATOMIC_XCHG, atomic.xchg),
801 OPC(6, OPC_ATOMIC_INC, atomic.inc),
802 OPC(6, OPC_ATOMIC_DEC, atomic.dec),
803 OPC(6, OPC_ATOMIC_CMPXCHG, atomic.cmpxchg),
804 OPC(6, OPC_ATOMIC_MIN, atomic.min),
805 OPC(6, OPC_ATOMIC_MAX, atomic.max),
806 OPC(6, OPC_ATOMIC_AND, atomic.and),
807 OPC(6, OPC_ATOMIC_OR, atomic.or),
808 OPC(6, OPC_ATOMIC_XOR, atomic.xor),
809 OPC(6, OPC_LDGB_TYPED_4D, ldgb.typed.3d),
810 OPC(6, OPC_STGB_4D_4, stgb.4d.4),
811 OPC(6, OPC_STIB, stib),
812 OPC(6, OPC_LDC_4, ldc.4),
813 OPC(6, OPC_LDLV, ldlv),
816 #undef OPC
825 if (opc_cat(instr->opc) == -1) return "??meta??";
826 return opcs[instr->opc].name;
832 uint32_t opc = instr_opc(instr);
864 printf("unknown(%d,%d)", instr->opc_cat, opc);