FMAD#
Format: FMAD dest, source1, source2, source3.
Phase0: FMAD{.LP}{.SAT} FT0, S0{.ABS}{.NEG}, S1{.ABS}{.NEG}, S2{.ABS}{.NEG}{.FLR}
Phase1: FMAD{.LP}{.SAT} FT1, S3{.ABS}{.NEG}, S4{.ABS}{.NEG}, S5{.ABS}{.NEG}{.FLR}
Phase2: -
Description:
FT0 = S0 * S1 + S2
FT1 = S3 * S4 + S5
Example:
void main()
{
fragColor = a * b + c;
}
2 : fmad ft0, sh5, i3, sh9
fmad ft1, sh4, i1, i0
mov r0, ft1;
mov r1, ft0;