TSTGEZ#

Format: TSTGEZ dest, destPredWrite, source.

Phase0: -

Phase1: -

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

Description: Test greater than or equal to 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
      tstgez.s32 ftt, _, sh0
      mov i0.e0.e1.e2.e3, ft1, ftt, ft0, ft1