1cb93a386Sopenharmony_ciuniform half4 testInputs;  // equals (-1.25, 0, 0.75, 2.25)
2cb93a386Sopenharmony_ciuniform half4 colorGreen, colorRed;
3cb93a386Sopenharmony_ci
4cb93a386Sopenharmony_cihalf4 main(float2 coords) {
5cb93a386Sopenharmony_ci    const half4 constVal = half4(-1.25, 0, 0.75, 2.25);
6cb93a386Sopenharmony_ci    int4 expected = int4(-1, 0, 0, 1);
7cb93a386Sopenharmony_ci    return (sign(int4(testInputs).x)    == expected.x &&
8cb93a386Sopenharmony_ci            sign(int4(testInputs).xy)   == expected.xy &&
9cb93a386Sopenharmony_ci            sign(int4(testInputs).xyz)  == expected.xyz &&
10cb93a386Sopenharmony_ci            sign(int4(testInputs).xyzw) == expected.xyzw &&
11cb93a386Sopenharmony_ci            sign(int4(constVal).x)      == expected.x &&
12cb93a386Sopenharmony_ci            sign(int4(constVal).xy)     == expected.xy &&
13cb93a386Sopenharmony_ci            sign(int4(constVal).xyz)    == expected.xyz &&
14cb93a386Sopenharmony_ci            sign(int4(constVal).xyzw)   == expected.xyzw) ? colorGreen : colorRed;
15cb93a386Sopenharmony_ci}
16