Added tests for saturation and some fixes for generic and avx target
This commit is contained in:
11
tests/padds_i8.ispc
Normal file
11
tests/padds_i8.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 = 127, b = 127; // max signed int8
|
||||
RET[programIndex] = padds(a1, b1);
|
||||
}
|
||||
|
||||
export void result(uniform float RET[]) {
|
||||
RET[programIndex] = 127;
|
||||
}
|
||||
Reference in New Issue
Block a user