Old run_tests.sh still lives (for now). Changes include: - Tests are run in parallel across all of the available CPU cores - Option to create a statically-linked executable for each test (rather than using the LLVM JIT). This is in particular useful for AVX, which doesn't have good JIT support yet. - Static executables also makes it possible to test x86, not just x86-64, codegen. - Fixed a number of tests in failing_tests, which were actually failing due to the fact that the expected function signature of tests had changed.
24 lines
595 B
Plaintext
24 lines
595 B
Plaintext
|
|
export uniform int width() { return programCount; }
|
|
|
|
typedef int<3> int3;
|
|
|
|
export void f_fu(uniform float ret[], uniform float aa[], uniform float b) {
|
|
float a = aa[programIndex];
|
|
uniform int3 array[32];
|
|
for (uniform int i = 0; i < 6*b + 2; ++i) {
|
|
for (uniform int j = 0; j < 3; ++j)
|
|
array[i][j] = i+100*j;
|
|
}
|
|
|
|
varying int3 vv = array[a];
|
|
++vv.y;
|
|
array[a] = vv;
|
|
//CO print("fin %\n", array[programIndex].y);
|
|
ret[programIndex] = array[programIndex].y;
|
|
}
|
|
|
|
export void result(uniform float ret[]) {
|
|
ret[programIndex] = 100+programIndex;
|
|
}
|