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    half4 expected = half4(-2, 0, 0, 2);
7cb93a386Sopenharmony_ci    return (floor(testInputs.x)    == expected.x     &&
8cb93a386Sopenharmony_ci            floor(testInputs.xy)   == expected.xy    &&
9cb93a386Sopenharmony_ci            floor(testInputs.xyz)  == expected.xyz   &&
10cb93a386Sopenharmony_ci            floor(testInputs.xyzw) == expected.xyzw  &&
11cb93a386Sopenharmony_ci            floor(constVal.x)      == expected.x     &&
12cb93a386Sopenharmony_ci            floor(constVal.xy)     == expected.xy    &&
13cb93a386Sopenharmony_ci            floor(constVal.xyz)    == expected.xyz   &&
14cb93a386Sopenharmony_ci            floor(constVal.xyzw)   == expected.xyzw) ? colorGreen : colorRed;
15cb93a386Sopenharmony_ci}
16