Fix RNG state initialization for 16-wide targets Fix a number of bugs in reduce_add builtin implementations for AVX. Fix some tests that had incorrect expected results for the 16-wide case.
23 lines
551 B
Plaintext
23 lines
551 B
Plaintext
export uniform int width() { return programCount; }
|
|
|
|
export void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
|
uniform float<5> x = {1,2,3,10,20}, y = {3,1,0,0,5};
|
|
uniform bool<5> c = x < y;
|
|
|
|
RET[programIndex] = 0;
|
|
if (programIndex < 5) {
|
|
uniform float<5> z = c ? x : y;
|
|
RET[programIndex] = z[programIndex];
|
|
}
|
|
}
|
|
|
|
export void result(uniform float RET[]) {
|
|
RET[programIndex] = 0;
|
|
RET[0] = 1;
|
|
RET[1] = 1;
|
|
RET[2] = 0;
|
|
RET[3] = 0;
|
|
if (programCount > 4)
|
|
RET[4] = 5;
|
|
}
|