FEXP#

Format: FEXP dest, source.

Phase0: FEXP W0{.F16.E0.E1}, S0{.F16.E0|.F16.E1}{.ABS}{.NEG}

Phase1: -

Phase2: -

Description:

W0 = exp2(S0)

Special cases:

exp2(Any NaN) = +NaN
exp2(+INF) = +INF
exp2(+/-0) = +1.0

Example:

void main()
{
    fragColor = exp2(a);
}
0    : fexp r0, sh0