Added tests for saturation and some fixes for generic and avx target

This commit is contained in:
Vsevolod Livinskij
2013-12-05 00:34:14 +04:00
parent d46a54348a
commit 65768c20ae
27 changed files with 288 additions and 11 deletions

11
tests/paddus_i16.ispc Normal file
View File

@@ -0,0 +1,11 @@
export uniform int width() { return programCount; }
export void f_f(uniform float RET[], uniform float aFOO[]) {
uniform int16 a = 65535, b = 65535; // max unsigned int16
RET[programIndex] = paddus(a, b);
}
export void result(uniform float RET[]) {
RET[programIndex] = 65535;
}