TSTNE#

Format: TSTNE dest, destPredWrite, sourceLHS, sourceRHS.

Phase0: -

Phase1: -

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

Description: Test not equal.

LHS != RHS

Example:

uniform highp int a;
uniform highp int b;

void main()
{
    highp int res;

    if( a != b )
    {
        res = a;
    }
    else
    {
        res = b;
    }

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