diff --git a/examples/intrinsics/knc.h b/examples/intrinsics/knc.h index 2261470d..242b6e25 100644 --- a/examples/intrinsics/knc.h +++ b/examples/intrinsics/knc.h @@ -442,22 +442,20 @@ template <> FORCEINLINE __vec16_i1 __undef_i1<__vec16_i1>() { // int8 /////////////////////////////////////////////////////////////////////////// -/* - - TODO - -*/ +template static RetVecType __setzero_i8(); +template <> FORCEINLINE __vec16_i8 __setzero_i8<__vec16_i8>() { + return __vec16_i8(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +} /////////////////////////////////////////////////////////////////////////// // int16 /////////////////////////////////////////////////////////////////////////// -/* - - TODO - -*/ +template static RetVecType __setzero_i16(); +template <> FORCEINLINE __vec16_i16 __setzero_i16<__vec16_i16>() { + return __vec16_i16(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +} /////////////////////////////////////////////////////////////////////////// // int32 diff --git a/fail_db.txt b/fail_db.txt index 5c8bc48f..9b6b4ae1 100644 --- a/fail_db.txt +++ b/fail_db.txt @@ -642,7 +642,6 @@ ./tests/scatter-int16-1.ispc compfail x86-64 knc Linux LLVM 3.4 icpc15.0 -O2 * ./tests/scatter-int16.ispc compfail x86-64 knc Linux LLVM 3.4 icpc15.0 -O2 * ./tests/scatter-int8-1.ispc compfail x86-64 knc Linux LLVM 3.4 icpc15.0 -O2 * -./tests/scatter-int8.ispc compfail x86-64 knc Linux LLVM 3.4 icpc15.0 -O2 * ./tests/shift-2.ispc compfail x86-64 knc Linux LLVM 3.4 icpc15.0 -O2 * ./tests/shuffle-3.ispc compfail x86-64 knc Linux LLVM 3.4 icpc15.0 -O2 * ./tests/shuffle-4.ispc compfail x86-64 knc Linux LLVM 3.4 icpc15.0 -O2 * @@ -839,7 +838,6 @@ ./tests/scatter-int16-1.ispc compfail x86-64 knc Linux LLVM 3.4 icpc15.0 -O0 * ./tests/scatter-int16.ispc compfail x86-64 knc Linux LLVM 3.4 icpc15.0 -O0 * ./tests/scatter-int8-1.ispc compfail x86-64 knc Linux LLVM 3.4 icpc15.0 -O0 * -./tests/scatter-int8.ispc compfail x86-64 knc Linux LLVM 3.4 icpc15.0 -O0 * ./tests/shift-1.ispc compfail x86-64 knc Linux LLVM 3.4 icpc15.0 -O0 * ./tests/shift-2.ispc compfail x86-64 knc Linux LLVM 3.4 icpc15.0 -O0 * ./tests/shift-3.ispc compfail x86-64 knc Linux LLVM 3.4 icpc15.0 -O0 * @@ -1017,7 +1015,6 @@ ./tests/scatter-int16-1.ispc compfail x86-64 knc Linux LLVM 3.5 icpc15.0 -O2 * ./tests/scatter-int16.ispc compfail x86-64 knc Linux LLVM 3.5 icpc15.0 -O2 * ./tests/scatter-int8-1.ispc compfail x86-64 knc Linux LLVM 3.5 icpc15.0 -O2 * -./tests/scatter-int8.ispc compfail x86-64 knc Linux LLVM 3.5 icpc15.0 -O2 * ./tests/shift-2.ispc compfail x86-64 knc Linux LLVM 3.5 icpc15.0 -O2 * ./tests/shuffle-3.ispc compfail x86-64 knc Linux LLVM 3.5 icpc15.0 -O2 * ./tests/shuffle-4.ispc compfail x86-64 knc Linux LLVM 3.5 icpc15.0 -O2 * @@ -1217,7 +1214,6 @@ ./tests/scatter-int16-1.ispc compfail x86-64 knc Linux LLVM 3.5 icpc15.0 -O0 * ./tests/scatter-int16.ispc compfail x86-64 knc Linux LLVM 3.5 icpc15.0 -O0 * ./tests/scatter-int8-1.ispc compfail x86-64 knc Linux LLVM 3.5 icpc15.0 -O0 * -./tests/scatter-int8.ispc compfail x86-64 knc Linux LLVM 3.5 icpc15.0 -O0 * ./tests/shift-1.ispc compfail x86-64 knc Linux LLVM 3.5 icpc15.0 -O0 * ./tests/shift-2.ispc compfail x86-64 knc Linux LLVM 3.5 icpc15.0 -O0 * ./tests/shift-3.ispc compfail x86-64 knc Linux LLVM 3.5 icpc15.0 -O0 * @@ -1395,7 +1391,6 @@ ./tests/scatter-int16-1.ispc compfail x86-64 knc Linux LLVM 3.6 icpc15.0 -O2 * ./tests/scatter-int16.ispc compfail x86-64 knc Linux LLVM 3.6 icpc15.0 -O2 * ./tests/scatter-int8-1.ispc compfail x86-64 knc Linux LLVM 3.6 icpc15.0 -O2 * -./tests/scatter-int8.ispc compfail x86-64 knc Linux LLVM 3.6 icpc15.0 -O2 * ./tests/shift-2.ispc compfail x86-64 knc Linux LLVM 3.6 icpc15.0 -O2 * ./tests/shuffle-3.ispc compfail x86-64 knc Linux LLVM 3.6 icpc15.0 -O2 * ./tests/shuffle-4.ispc compfail x86-64 knc Linux LLVM 3.6 icpc15.0 -O2 * @@ -1595,7 +1590,6 @@ ./tests/scatter-int16-1.ispc compfail x86-64 knc Linux LLVM 3.6 icpc15.0 -O0 * ./tests/scatter-int16.ispc compfail x86-64 knc Linux LLVM 3.6 icpc15.0 -O0 * ./tests/scatter-int8-1.ispc compfail x86-64 knc Linux LLVM 3.6 icpc15.0 -O0 * -./tests/scatter-int8.ispc compfail x86-64 knc Linux LLVM 3.6 icpc15.0 -O0 * ./tests/shift-1.ispc compfail x86-64 knc Linux LLVM 3.6 icpc15.0 -O0 * ./tests/shift-2.ispc compfail x86-64 knc Linux LLVM 3.6 icpc15.0 -O0 * ./tests/shift-3.ispc compfail x86-64 knc Linux LLVM 3.6 icpc15.0 -O0 *