18 lines
462 B
Plaintext
18 lines
462 B
Plaintext
#include "../test_static.isph"
|
|
// rule: skip on arch=x86
|
|
// rule: skip on arch=x86-64
|
|
task void f_fu(uniform float RET[], uniform float aFOO[], uniform float b) {
|
|
float v = aFOO[programIndex];
|
|
uniform float m;
|
|
int iv = (int)v;
|
|
m = reduce_add((float16)iv);
|
|
RET[programIndex] = m;
|
|
}
|
|
|
|
task void result(uniform float RET[]) {
|
|
uniform int x = 0;
|
|
for (uniform int i = 1; i <= programCount; ++i)
|
|
x += i;
|
|
RET[programIndex] = x;
|
|
}
|