summaryrefslogtreecommitdiff
path: root/utests/compiler_saturate_sub.cpp
Commit message (Collapse)AuthorAgeFilesLines
* fix utest build for some old gcc versionGuo Yejun2015-01-061-1/+1
| | | | | | | | change the keyword from constexpr to const, update the code for explicit type conversion and std::map's iterator. Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* GBE/libocl: Fix sub_sat corner case.Ruiling Song2014-09-151-1/+1
| | | | | | | | | | | It seems that hw return wrong result when y is equal to 0x80000000 in sub_sat(int x, int y). So we re-write it as: add_sat(add_sat(0x7fffffff, x), 1) Also enable corresponding utest. Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* Split the multiple test cases to individual cases.Zhigang Gong2013-04-101-13/+15
| | | | | | | | | | As the original test framework will do some resource releasing job at the end of each test runing. If we call multiple tests in one instance, then we will miss the chance to call those releasing functions thus may cause some leaking. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: Homer Hsing <homer.xing@intel.com>
* add sub_sat test caseLu Guanqun2013-04-101-0/+112
Our hardware can't handle the following case properly: add.sat g3 g1 -g2 when g1 and g2 are INT_MIN. So let's disable the INT's test case right now. Signed-off-by: Lu Guanqun <guanqun.lu@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>