TSTGZ#

Format: TSTGZ dest, destPredWrite, source.

Phase0: -

Phase1: -

Phase2: TSTGZ{.type} FTT, (P0|_), IS1{.E0|.E1|.E2|.E3}

Description: Test greater than zero.

Example:

uniform highp int a;
uniform highp int b;
uniform highp int c;

void main()
{
    highp int res;

    if( a > 0 )
    {
        res = b;
    }
    else
    {
        res = c;
    }

    fragColor = vec4(res);
}
0    : mov ft0, sh1
       mov ft1, sh2
       tstgz.s32 ftt, _, sh0
       mov i0.e0.e1.e2.e3, ft1, ftt, ft0, ft1