Lines Matching refs:arith

113 #define arith(s,t,o,d,m,s0,s1,s2) \  macro
495 nvfx_vp_emit(vpc, arith(0, VEC, MOV, src[i].reg, NVFX_VP_MASK_ALL, in nvfx_vertprog_parse_instruction()
506 nvfx_vp_emit(vpc, arith(0, VEC, MOV, src[i].reg, NVFX_VP_MASK_ALL, in nvfx_vertprog_parse_instruction()
517 nvfx_vp_emit(vpc, arith(0, VEC, MOV, src[i].reg, NVFX_VP_MASK_ALL, in nvfx_vertprog_parse_instruction()
552 nvfx_vp_emit(vpc, arith(sat, VEC, MOV, dst, mask, abs(src[0]), none, none)); in nvfx_vertprog_parse_instruction()
555 nvfx_vp_emit(vpc, arith(sat, VEC, ADD, dst, mask, src[0], none, src[1])); in nvfx_vertprog_parse_instruction()
558 nvfx_vp_emit(vpc, arith(0, VEC, ARL, dst, mask, src[0], none, none)); in nvfx_vertprog_parse_instruction()
562 nvfx_vp_emit(vpc, arith(0, VEC, FLR, tmp.reg, mask, neg(src[0]), none, none)); in nvfx_vertprog_parse_instruction()
563 nvfx_vp_emit(vpc, arith(sat, VEC, MOV, dst, mask, neg(tmp), none, none)); in nvfx_vertprog_parse_instruction()
566 insn = arith(0, VEC, MOV, none.reg, mask, src[0], none, none); in nvfx_vertprog_parse_instruction()
570 insn = arith(sat, VEC, MOV, dst, mask, src[2], none, none); in nvfx_vertprog_parse_instruction()
574 insn = arith(sat, VEC, MOV, dst, mask, src[1], none, none); in nvfx_vertprog_parse_instruction()
579 nvfx_vp_emit(vpc, arith(sat, SCA, COS, dst, mask, none, none, src[0])); in nvfx_vertprog_parse_instruction()
583 …nvfx_vp_emit(vpc, arith(0, VEC, MUL, tmp.reg, NVFX_VP_MASK_X | NVFX_VP_MASK_Y, src[0], src[1], non… in nvfx_vertprog_parse_instruction()
584 …nvfx_vp_emit(vpc, arith(sat, VEC, ADD, dst, mask, swz(tmp, X, X, X, X), none, swz(tmp, Y, Y, Y, Y)… in nvfx_vertprog_parse_instruction()
587 nvfx_vp_emit(vpc, arith(sat, VEC, DP3, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
590 nvfx_vp_emit(vpc, arith(sat, VEC, DP4, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
593 nvfx_vp_emit(vpc, arith(sat, VEC, DPH, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
596 nvfx_vp_emit(vpc, arith(sat, VEC, DST, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
599 nvfx_vp_emit(vpc, arith(sat, SCA, EX2, dst, mask, none, none, src[0])); in nvfx_vertprog_parse_instruction()
602 nvfx_vp_emit(vpc, arith(sat, SCA, EXP, dst, mask, none, none, src[0])); in nvfx_vertprog_parse_instruction()
605 nvfx_vp_emit(vpc, arith(sat, VEC, FLR, dst, mask, src[0], none, none)); in nvfx_vertprog_parse_instruction()
608 nvfx_vp_emit(vpc, arith(sat, VEC, FRC, dst, mask, src[0], none, none)); in nvfx_vertprog_parse_instruction()
611 nvfx_vp_emit(vpc, arith(sat, SCA, LG2, dst, mask, none, none, src[0])); in nvfx_vertprog_parse_instruction()
614 nvfx_vp_emit(vpc, arith(sat, SCA, LIT, dst, mask, none, none, src[0])); in nvfx_vertprog_parse_instruction()
617 nvfx_vp_emit(vpc, arith(sat, SCA, LOG, dst, mask, none, none, src[0])); in nvfx_vertprog_parse_instruction()
621 nvfx_vp_emit(vpc, arith(0, VEC, MAD, tmp.reg, mask, neg(src[0]), src[2], src[2])); in nvfx_vertprog_parse_instruction()
622 nvfx_vp_emit(vpc, arith(sat, VEC, MAD, dst, mask, src[0], src[1], tmp)); in nvfx_vertprog_parse_instruction()
625 nvfx_vp_emit(vpc, arith(sat, VEC, MAD, dst, mask, src[0], src[1], src[2])); in nvfx_vertprog_parse_instruction()
628 nvfx_vp_emit(vpc, arith(sat, VEC, MAX, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
631 nvfx_vp_emit(vpc, arith(sat, VEC, MIN, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
634 nvfx_vp_emit(vpc, arith(sat, VEC, MOV, dst, mask, src[0], none, none)); in nvfx_vertprog_parse_instruction()
637 nvfx_vp_emit(vpc, arith(sat, VEC, MUL, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
643 …nvfx_vp_emit(vpc, arith(0, SCA, LG2, tmp.reg, NVFX_VP_MASK_X, none, none, swz(src[0], X, X, X, X))… in nvfx_vertprog_parse_instruction()
644 …nvfx_vp_emit(vpc, arith(0, VEC, MUL, tmp.reg, NVFX_VP_MASK_X, swz(tmp, X, X, X, X), swz(src[1], X,… in nvfx_vertprog_parse_instruction()
645 nvfx_vp_emit(vpc, arith(sat, SCA, EX2, dst, mask, none, none, swz(tmp, X, X, X, X))); in nvfx_vertprog_parse_instruction()
648 nvfx_vp_emit(vpc, arith(sat, SCA, RCP, dst, mask, none, none, src[0])); in nvfx_vertprog_parse_instruction()
651 nvfx_vp_emit(vpc, arith(sat, SCA, RSQ, dst, mask, none, none, abs(src[0]))); in nvfx_vertprog_parse_instruction()
654 nvfx_vp_emit(vpc, arith(sat, VEC, SEQ, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
657 nvfx_vp_emit(vpc, arith(sat, VEC, SFL, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
660 nvfx_vp_emit(vpc, arith(sat, VEC, SGE, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
663 nvfx_vp_emit(vpc, arith(sat, VEC, SGT, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
666 nvfx_vp_emit(vpc, arith(sat, SCA, SIN, dst, mask, none, none, src[0])); in nvfx_vertprog_parse_instruction()
669 nvfx_vp_emit(vpc, arith(sat, VEC, SLE, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
672 nvfx_vp_emit(vpc, arith(sat, VEC, SLT, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
675 nvfx_vp_emit(vpc, arith(sat, VEC, SNE, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
678 nvfx_vp_emit(vpc, arith(sat, VEC, SSG, dst, mask, src[0], none, none)); in nvfx_vertprog_parse_instruction()
681 nvfx_vp_emit(vpc, arith(sat, VEC, STR, dst, mask, src[0], src[1], none)); in nvfx_vertprog_parse_instruction()
684 nvfx_vp_emit(vpc, arith(sat, VEC, ADD, dst, mask, src[0], none, neg(src[1]))); in nvfx_vertprog_parse_instruction()
688 insn = arith(0, VEC, MOV, none.reg, mask, src[0], none, none); in nvfx_vertprog_parse_instruction()
692 nvfx_vp_emit(vpc, arith(0, VEC, FLR, tmp.reg, mask, abs(src[0]), none, none)); in nvfx_vertprog_parse_instruction()
693 nvfx_vp_emit(vpc, arith(sat, VEC, MOV, dst, mask, tmp, none, none)); in nvfx_vertprog_parse_instruction()
695 insn = arith(sat, VEC, MOV, dst, mask, neg(tmp), none, none); in nvfx_vertprog_parse_instruction()
701 …nvfx_vp_emit(vpc, arith(0, VEC, MUL, tmp.reg, mask, swz(src[0], Z, X, Y, Y), swz(src[1], Y, Z, X, … in nvfx_vertprog_parse_instruction()
702 …nvfx_vp_emit(vpc, arith(sat, VEC, MAD, dst, (mask & ~NVFX_VP_MASK_W), swz(src[0], Y, Z, X, X), swz… in nvfx_vertprog_parse_instruction()
705 insn = arith(0, VEC, MOV, none.reg, NVFX_VP_MASK_X, src[0], none, none); in nvfx_vertprog_parse_instruction()
713 insn = arith(0, SCA, BRA, none.reg, 0, none, none, none); in nvfx_vertprog_parse_instruction()
726 insn = arith(0, SCA, CAL, none.reg, 0, none, none, none); in nvfx_vertprog_parse_instruction()
728 insn = arith(0, SCA, BRA, none.reg, 0, none, none, none); in nvfx_vertprog_parse_instruction()
735 nvfx_vp_emit(vpc, arith(0, SCA, RET, none.reg, 0, none, none, tmp)); in nvfx_vertprog_parse_instruction()
740 nvfx_vp_emit(vpc, arith(0, SCA, BRA, none.reg, 0, none, none, none)); in nvfx_vertprog_parse_instruction()
764 nvfx_vp_emit(vpc, arith(0, SCA, BRA, none.reg, 0, none, none, none)); in nvfx_vertprog_parse_instruction()
773 nvfx_vp_emit(vpc, arith(0, SCA, BRA, none.reg, 0, none, none, none)); in nvfx_vertprog_parse_instruction()
782 nvfx_vp_emit(vpc, arith(0, SCA, BRA, none.reg, 0, none, none, none)); in nvfx_vertprog_parse_instruction()
791 nvfx_vp_emit(vpc, arith(0, SCA, BRA, none.reg, 0, none, none, none)); in nvfx_vertprog_parse_instruction()
796 nvfx_vp_emit(vpc, arith(0, VEC, NOP, none.reg, 0, none, none, none)); in nvfx_vertprog_parse_instruction()
808 …nvfx_vp_emit(vpc, arith(0, VEC, MAX, dst, mask, nvfx_src(dst), swz(nvfx_src(vpc->r_0_1), X, X, X, … in nvfx_vertprog_parse_instruction()
809 …nvfx_vp_emit(vpc, arith(0, VEC, MIN, final_dst, mask, nvfx_src(dst), swz(nvfx_src(vpc->r_0_1), Y, … in nvfx_vertprog_parse_instruction()
1070 nvfx_vp_emit(vpc, arith(0, VEC, MOV, hpos, NVFX_VP_MASK_ALL, htmp, none, none)); in _nvfx_vertprog_translate()
1096 nvfx_vp_emit(vpc, arith(0, VEC, DP4, cdst, mask, htmp, ceqn, none)); in _nvfx_vertprog_translate()