xref: /aosp_15_r20/external/skia/tests/sksl/folding/Negation.minified.sksl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1uniform half4 colorGreen;uniform half4 colorRed;bool a(){float c=2.;bool f=true;f=f&&-half(c).xxxx==half(-c).xxxx;f=f&&half2(1.,-2.)==-half2(half(1.-c),half(c));return f;}bool b(){int c=1;bool g=true;g=g&&-int2(-c,c+c)==-int2(c-2,2);return g;}bool c(){bool f=true;return f;}half4 main(float2 d){return(a()&&b())&&c()?colorGreen:colorRed;}
2