Added tests for saturation and some fixes for generic and avx target
This commit is contained in:
11
tests/psubus_i16.ispc
Normal file
11
tests/psubus_i16.ispc
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
export uniform int width() { return programCount; }
|
||||
|
||||
export void f_f(uniform float RET[], uniform float aFOO[]) {
|
||||
uniform int8 a = 0, b = 32767; // min and max unsigned int16
|
||||
RET[programIndex] = psubus(a, b);
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
RET[programIndex] = 0;
|
||||
}
|
||||
Reference in New Issue
Block a user