22 lines
614 B
Plaintext
22 lines
614 B
Plaintext
#include "../test_static.isph"
|
|
typedef unsigned int<4> uint4;
|
|
|
|
|
|
task void f_fu(uniform float ret[], uniform float aa[], uniform float b) {
|
|
float a = aa[programIndex];
|
|
uint4 v0 = { b, 2*b, 3*b, 2 };
|
|
#pragma ignore warning(perf)
|
|
uint4 v1 = { a, 2*a, 3*a, 1 };
|
|
#pragma ignore warning(perf)
|
|
v0.y /= 2.;
|
|
if (programIndex & 1)
|
|
v1[0] += 1;
|
|
#pragma ignore warning(perf)
|
|
ret[programIndex] = (v0+v1).y + (v0+v1).x;
|
|
}
|
|
|
|
task void result(uniform float ret[]) {
|
|
ret[programIndex] = 5 + 2 * (programIndex+1) + 5 + (programIndex+1);
|
|
if (programIndex & 1) ++ret[programIndex];
|
|
}
|