Home | History | Annotate | Download | only in nv30

Lines Matching refs:arith

228 #define arith(s,o,d,m,s0,s1,s2) \
241 struct nvfx_insn insn = arith(0, MOV, none.reg, NVFX_FP_MASK_X, src, none, none);
483 nvfx_fp_emit(fpc, arith(0, ADD, src[i].reg, NVFX_FP_MASK_ALL, tgsi_src(fpc, fsrc), addend, none));
489 nvfx_fp_emit(fpc, arith(0, MOV, src[i].reg, NVFX_FP_MASK_ALL, tgsi_src(fpc, fsrc), none, none));
499 nvfx_fp_emit(fpc, arith(0, MOV, src[i].reg, NVFX_FP_MASK_ALL, tgsi_src(fpc, fsrc), none, none));
509 nvfx_fp_emit(fpc, arith(0, MOV, src[i].reg, NVFX_FP_MASK_ALL, tgsi_src(fpc, fsrc), none, none));
532 nvfx_fp_emit(fpc, arith(sat, MOV, dst, mask, abs(src[0]), none, none));
535 nvfx_fp_emit(fpc, arith(sat, ADD, dst, mask, src[0], src[1], none));
539 nvfx_fp_emit(fpc, arith(0, FLR, tmp.reg, mask, neg(src[0]), none, none));
540 nvfx_fp_emit(fpc, arith(sat, MOV, dst, mask, neg(tmp), none, none));
543 insn = arith(0, MOV, none.reg, mask, src[0], none, none);
547 insn = arith(sat, MOV, dst, mask, src[2], none, none);
551 insn = arith(sat, MOV, dst, mask, src[1], none, none);
556 nvfx_fp_emit(fpc, arith(sat, COS, dst, mask, src[0], none, none));
561 nvfx_fp_emit(fpc, arith(sat, DDX, tmp.reg, NVFX_FP_MASK_X | NVFX_FP_MASK_Y, swz(src[0], Z, W, Z, W), none, none));
562 nvfx_fp_emit(fpc, arith(0, MOV, tmp.reg, NVFX_FP_MASK_Z | NVFX_FP_MASK_W, swz(tmp, X, Y, X, Y), none, none));
563 nvfx_fp_emit(fpc, arith(sat, DDX, tmp.reg, NVFX_FP_MASK_X | NVFX_FP_MASK_Y, src[0], none, none));
564 nvfx_fp_emit(fpc, arith(0, MOV, dst, mask, tmp, none, none));
566 nvfx_fp_emit(fpc, arith(sat, DDX, dst, mask, src[0], none, none));
572 nvfx_fp_emit(fpc, arith(sat, DDY, tmp.reg, NVFX_FP_MASK_X | NVFX_FP_MASK_Y, swz(src[0], Z, W, Z, W), none, none));
573 nvfx_fp_emit(fpc, arith(0, MOV, tmp.reg, NVFX_FP_MASK_Z | NVFX_FP_MASK_W, swz(tmp, X, Y, X, Y), none, none));
574 nvfx_fp_emit(fpc, arith(sat, DDY, tmp.reg, NVFX_FP_MASK_X | NVFX_FP_MASK_Y, src[0], none, none));
575 nvfx_fp_emit(fpc, arith(0, MOV, dst, mask, tmp, none, none));
577 nvfx_fp_emit(fpc, arith(sat, DDY, dst, mask, src[0], none, none));
582 nvfx_fp_emit(fpc, arith(0, MUL, tmp.reg, NVFX_FP_MASK_X | NVFX_FP_MASK_Y, src[0], src[1], none));
583 nvfx_fp_emit(fpc, arith(0, ADD, dst, mask, swz(tmp, X, X, X, X), swz(tmp, Y, Y, Y, Y), none));
586 nvfx_fp_emit(fpc, arith(sat, DP3, dst, mask, src[0], src[1], none));
589 nvfx_fp_emit(fpc, arith(sat, DP4, dst, mask, src[0], src[1], none));
593 nvfx_fp_emit(fpc, arith(0, DP3, tmp.reg, NVFX_FP_MASK_X, src[0], src[1], none));
594 nvfx_fp_emit(fpc, arith(sat, ADD, dst, mask, swz(tmp, X, X, X, X), swz(src[1], W, W, W, W), none));
597 nvfx_fp_emit(fpc, arith(sat, DST, dst, mask, src[0], src[1], none));
600 nvfx_fp_emit(fpc, arith(sat, EX2, dst, mask, src[0], none, none));
603 nvfx_fp_emit(fpc, arith(sat, FLR, dst, mask, src[0], none, none));
606 nvfx_fp_emit(fpc, arith(sat, FRC, dst, mask, src[0], none, none));
609 nvfx_fp_emit(fpc, arith(0, KIL, none.reg, 0, none, none, none));
612 insn = arith(0, MOV, none.reg, NVFX_FP_MASK_ALL, src[0], none, none);
616 insn = arith(0, KIL, none.reg, 0, none, none, none);
621 nvfx_fp_emit(fpc, arith(sat, LG2, dst, mask, src[0], none, none));
625 nvfx_fp_emit(fpc, arith(sat, LIT_NV30, dst, mask, src[0], none, none));
635 nvfx_fp_emit(fpc, arith(0, MOV, tmp.reg, NVFX_FP_MASK_X | NVFX_FP_MASK_Y, maxs, none, none));
638 nvfx_fp_emit(fpc, arith(0, MAX, tmp.reg, NVFX_FP_MASK_Y | NVFX_FP_MASK_W, swz(src[0], X, X, X, Y), swz(maxs, X, X, Y, Y), none));
639 nvfx_fp_emit(fpc, arith(0, LG2, tmp.reg, NVFX_FP_MASK_W, swz(tmp, W, W, W, W), none, none));
640 nvfx_fp_emit(fpc, arith(0, MUL, tmp.reg, NVFX_FP_MASK_W, swz(tmp, W, W, W, W), swz(src[0], W, W, W, W), none));
641 nvfx_fp_emit(fpc, arith(sat, LITEX2_NV40, dst, mask, swz(tmp, Y, Y, W, W), none, none));
646 nvfx_fp_emit(fpc, arith(sat, LRP_NV30, dst, mask, src[0], src[1], src[2]));
649 nvfx_fp_emit(fpc, arith(0, MAD, tmp.reg, mask, neg(src[0]), src[2], src[2]));
650 nvfx_fp_emit(fpc, arith(sat, MAD, dst, mask, src[0], src[1], tmp));
654 nvfx_fp_emit(fpc, arith(sat, MAD, dst, mask, src[0], src[1], src[2]));
657 nvfx_fp_emit(fpc, arith(sat, MAX, dst, mask, src[0], src[1], none));
660 nvfx_fp_emit(fpc, arith(sat, MIN, dst, mask, src[0], src[1], none));
663 nvfx_fp_emit(fpc, arith(sat, MOV, dst, mask, src[0], none, none));
666 nvfx_fp_emit(fpc, arith(sat, MUL, dst, mask, src[0], src[1], none));
672 nvfx_fp_emit(fpc, arith(sat, POW_NV30, dst, mask, src[0], src[1], none));
675 nvfx_fp_emit(fpc, arith(0, LG2, tmp.reg, NVFX_FP_MASK_X, swz(src[0], X, X, X, X), none, none));
676 nvfx_fp_emit(fpc, arith(0, MUL, tmp.reg, NVFX_FP_MASK_X, swz(tmp, X, X, X, X), swz(src[1], X, X, X, X), none));
677 nvfx_fp_emit(fpc, arith(sat, EX2, dst, mask, swz(tmp, X, X, X, X), none, none));
681 nvfx_fp_emit(fpc, arith(sat, RCP, dst, mask, src[0], none, none));
685 nvfx_fp_emit(fpc, arith(0, RFL_NV30, dst, mask, src[0], src[1], none));
688 nvfx_fp_emit(fpc, arith(0, DP3, tmp.reg, NVFX_FP_MASK_X, src[0], src[0], none));
689 nvfx_fp_emit(fpc, arith(0, DP3, tmp.reg, NVFX_FP_MASK_Y, src[0], src[1], none));
690 insn = arith(0, DIV, tmp.reg, NVFX_FP_MASK_Z, swz(tmp, Y, Y, Y, Y), swz(tmp, X, X, X, X), none);
693 nvfx_fp_emit(fpc, arith(sat, MAD, dst, mask, swz(tmp, Z, Z, Z, Z), src[0], neg(src[1])));
698 nvfx_fp_emit(fpc, arith(sat, RSQ_NV30, dst, mask, abs(swz(src[0], X, X, X, X)), none, none));
701 insn = arith(0, LG2, tmp.reg, NVFX_FP_MASK_X, abs(swz(src[0], X, X, X, X)), none, none);
704 nvfx_fp_emit(fpc, arith(sat, EX2, dst, mask, neg(swz(tmp, X, X, X, X)), none, none));
712 nvfx_fp_emit(fpc, arith(sat, COS, dst, NVFX_FP_MASK_X, swz(src[0], X, X, X, X), none, none));
714 nvfx_fp_emit(fpc, arith(sat, SIN, dst, NVFX_FP_MASK_Y, swz(src[0], X, X, X, X), none, none));
719 nvfx_fp_emit(fpc, arith(sat, SIN, dst, NVFX_FP_MASK_Y, swz(src[0], X, X, X, X), none, none));
721 nvfx_fp_emit(fpc, arith(sat, COS, dst, NVFX_FP_MASK_X, swz(src[0], X, X, X, X), none, none));
725 nvfx_fp_emit(fpc, arith(sat, SEQ, dst, mask, src[0], src[1], none));
728 nvfx_fp_emit(fpc, arith(sat, SFL, dst, mask, src[0], src[1], none));
731 nvfx_fp_emit(fpc, arith(sat, SGE, dst, mask, src[0], src[1], none));
734 nvfx_fp_emit(fpc, arith(sat, SGT, dst, mask, src[0], src[1], none));
737 nvfx_fp_emit(fpc, arith(sat, SIN, dst, mask, src[0], none, none));
740 nvfx_fp_emit(fpc, arith(sat, SLE, dst, mask, src[0], src[1], none));
743 nvfx_fp_emit(fpc, arith(sat, SLT, dst, mask, src[0], src[1], none));
746 nvfx_fp_emit(fpc, arith(sat, SNE, dst, mask, src[0], src[1], none));
752 insn = arith(sat, MOV, dst, mask, src[0], none, none);
756 insn = arith(0, STR, dst, mask, none, none, none);
761 insn = arith(0, MOV, dst, mask, minones, none, none);
768 nvfx_fp_emit(fpc, arith(sat, STR, dst, mask, src[0], src[1], none));
771 nvfx_fp_emit(fpc, arith(sat, ADD, dst, mask, src[0], neg(src[1]), none));
778 insn = arith(0, MOV, none.reg, mask, src[0], none, none);
782 nvfx_fp_emit(fpc, arith(0, FLR, tmp.reg, mask, abs(src[0]), none, none));
783 nvfx_fp_emit(fpc, arith(sat, MOV, dst, mask, tmp, none, none));
785 insn = arith(sat, MOV, dst, mask, neg(tmp), none, none);
803 nvfx_fp_emit(fpc, arith(0, MUL, tmp.reg, mask, swz(src[0], Z, X, Y, Y), swz(src[1], Y, Z, X, X), none));
804 nvfx_fp_emit(fpc, arith(sat, MAD, dst, (mask & ~NVFX_FP_MASK_W), swz(src[0], Y, Z, X, X), swz(src[1], Z, X, Y, Y), neg(tmp)));