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