Home | History | Annotate | Download | only in nv30

Lines Matching refs:arith

230 #define arith(s,o,d,m,s0,s1,s2) \
243 struct nvfx_insn insn = arith(0, MOV, none.reg, NVFX_FP_MASK_X, src, none, none);
488 nvfx_fp_emit(fpc, arith(0, ADD, src[i].reg, NVFX_FP_MASK_ALL, tgsi_src(fpc, fsrc), addend, none));
494 nvfx_fp_emit(fpc, arith(0, MOV, src[i].reg, NVFX_FP_MASK_ALL, tgsi_src(fpc, fsrc), none, none));
504 nvfx_fp_emit(fpc, arith(0, MOV, src[i].reg, NVFX_FP_MASK_ALL, tgsi_src(fpc, fsrc), none, none));
514 nvfx_fp_emit(fpc, arith(0, MOV, src[i].reg, NVFX_FP_MASK_ALL, tgsi_src(fpc, fsrc), none, none));
537 nvfx_fp_emit(fpc, arith(sat, ADD, dst, mask, src[0], src[1], none));
541 nvfx_fp_emit(fpc, arith(0, FLR, tmp.reg, mask, neg(src[0]), none, none));
542 nvfx_fp_emit(fpc, arith(sat, MOV, dst, mask, neg(tmp), none, none));
545 insn = arith(0, MOV, none.reg, mask, src[0], none, none);
549 insn = arith(sat, MOV, dst, mask, src[2], none, none);
553 insn = arith(sat, MOV, dst, mask, src[1], none, none);
558 nvfx_fp_emit(fpc, arith(sat, COS, dst, mask, src[0], none, none));
563 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));
564 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));
565 nvfx_fp_emit(fpc, arith(sat, DDX, tmp.reg, NVFX_FP_MASK_X | NVFX_FP_MASK_Y, src[0], none, none));
566 nvfx_fp_emit(fpc, arith(0, MOV, dst, mask, tmp, none, none));
568 nvfx_fp_emit(fpc, arith(sat, DDX, dst, mask, src[0], none, none));
574 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));
575 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));
576 nvfx_fp_emit(fpc, arith(sat, DDY, tmp.reg, NVFX_FP_MASK_X | NVFX_FP_MASK_Y, src[0], none, none));
577 nvfx_fp_emit(fpc, arith(0, MOV, dst, mask, tmp, none, none));
579 nvfx_fp_emit(fpc, arith(sat, DDY, dst, mask, src[0], none, none));
584 nvfx_fp_emit(fpc, arith(0, MUL, tmp.reg, NVFX_FP_MASK_X | NVFX_FP_MASK_Y, src[0], src[1], none));
585 nvfx_fp_emit(fpc, arith(0, ADD, dst, mask, swz(tmp, X, X, X, X), swz(tmp, Y, Y, Y, Y), none));
588 nvfx_fp_emit(fpc, arith(sat, DP3, dst, mask, src[0], src[1], none));
591 nvfx_fp_emit(fpc, arith(sat, DP4, dst, mask, src[0], src[1], none));
595 nvfx_fp_emit(fpc, arith(0, DP3, tmp.reg, NVFX_FP_MASK_X, src[0], src[1], none));
596 nvfx_fp_emit(fpc, arith(sat, ADD, dst, mask, swz(tmp, X, X, X, X), swz(src[1], W, W, W, W), none));
599 nvfx_fp_emit(fpc, arith(sat, DST, dst, mask, src[0], src[1], none));
602 nvfx_fp_emit(fpc, arith(sat, EX2, dst, mask, src[0], none, none));
605 nvfx_fp_emit(fpc, arith(sat, FLR, dst, mask, src[0], none, none));
608 nvfx_fp_emit(fpc, arith(sat, FRC, dst, mask, src[0], none, none));
611 nvfx_fp_emit(fpc, arith(0, KIL, none.reg, 0, none, none, none));
614 insn = arith(0, MOV, none.reg, NVFX_FP_MASK_ALL, src[0], none, none);
618 insn = arith(0, KIL, none.reg, 0, none, none, none);
623 nvfx_fp_emit(fpc, arith(sat, LG2, dst, mask, src[0], none, none));
627 nvfx_fp_emit(fpc, arith(sat, LIT_NV30, dst, mask, src[0], none, none));
637 nvfx_fp_emit(fpc, arith(0, MOV, tmp.reg, NVFX_FP_MASK_X | NVFX_FP_MASK_Y, maxs, none, none));
640 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));
641 nvfx_fp_emit(fpc, arith(0, LG2, tmp.reg, NVFX_FP_MASK_W, swz(tmp, W, W, W, W), none, none));
642 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));
643 nvfx_fp_emit(fpc, arith(sat, LITEX2_NV40, dst, mask, swz(tmp, Y, Y, W, W), none, none));
648 nvfx_fp_emit(fpc, arith(sat, LRP_NV30, dst, mask, src[0], src[1], src[2]));
651 nvfx_fp_emit(fpc, arith(0, MAD, tmp.reg, mask, neg(src[0]), src[2], src[2]));
652 nvfx_fp_emit(fpc, arith(sat, MAD, dst, mask, src[0], src[1], tmp));
656 nvfx_fp_emit(fpc, arith(sat, MAD, dst, mask, src[0], src[1], src[2]));
659 nvfx_fp_emit(fpc, arith(sat, MAX, dst, mask, src[0], src[1], none));
662 nvfx_fp_emit(fpc, arith(sat, MIN, dst, mask, src[0], src[1], none));
665 nvfx_fp_emit(fpc, arith(sat, MOV, dst, mask, src[0], none, none));
668 nvfx_fp_emit(fpc, arith(sat, MUL, dst, mask, src[0], src[1], none));
674 nvfx_fp_emit(fpc, arith(sat, POW_NV30, dst, mask, src[0], src[1], none));
677 nvfx_fp_emit(fpc, arith(0, LG2, tmp.reg, NVFX_FP_MASK_X, swz(src[0], X, X, X, X), none, none));
678 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));
679 nvfx_fp_emit(fpc, arith(sat, EX2, dst, mask, swz(tmp, X, X, X, X), none, none));
683 nvfx_fp_emit(fpc, arith(sat, RCP, dst, mask, src[0], none, none));
687 nvfx_fp_emit(fpc, arith(sat, RSQ_NV30, dst, mask, abs(swz(src[0], X, X, X, X)), none, none));
690 insn = arith(0, LG2, tmp.reg, NVFX_FP_MASK_X, abs(swz(src[0], X, X, X, X)), none, none);
693 nvfx_fp_emit(fpc, arith(sat, EX2, dst, mask, neg(swz(tmp, X, X, X, X)), none, none));
701 nvfx_fp_emit(fpc, arith(sat, COS, dst, NVFX_FP_MASK_X, swz(src[0], X, X, X, X), none, none));
703 nvfx_fp_emit(fpc, arith(sat, SIN, dst, NVFX_FP_MASK_Y, swz(src[0], X, X, X, X), none, none));
708 nvfx_fp_emit(fpc, arith(sat, SIN, dst, NVFX_FP_MASK_Y, swz(src[0], X, X, X, X), none, none));
710 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, SEQ, dst, mask, src[0], src[1], none));
717 nvfx_fp_emit(fpc, arith(sat, SGE, dst, mask, src[0], src[1], none));
720 nvfx_fp_emit(fpc, arith(sat, SGT, dst, mask, src[0], src[1], none));
723 nvfx_fp_emit(fpc, arith(sat, SIN, dst, mask, src[0], none, none));
726 nvfx_fp_emit(fpc, arith(sat, SLE, dst, mask, src[0], src[1], none));
729 nvfx_fp_emit(fpc, arith(sat, SLT, dst, mask, src[0], src[1], none));
732 nvfx_fp_emit(fpc, arith(sat, SNE, dst, mask, src[0], src[1], none));
738 insn = arith(sat, MOV, dst, mask, src[0], none, none);
742 insn = arith(0, STR, dst, mask, none, none, none);
747 insn = arith(0, MOV, dst, mask, minones, none, none);
758 insn = arith(0, MOV, none.reg, mask, src[0], none, none);
762 nvfx_fp_emit(fpc, arith(0, FLR, tmp.reg, mask, abs(src[0]), none, none));
763 nvfx_fp_emit(fpc, arith(sat, MOV, dst, mask, tmp, none, none));
765 insn = arith(sat, MOV, dst, mask, neg(tmp), none, none);
783 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));
784 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)));