summaryrefslogtreecommitdiff
path: root/utests/compiler_overflow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* refine overflow utest to cover nsetc fail cases.Luo Xionghu2014-12-151-0/+52
| | | | | | | | | the original case only tested overflow when src1 is 1, add the test of src1 is max(this could trigger signed type uadd.with.overflow results incorrect, the fail was fixed in backend already, just update the utest.) Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* add utest for llvm intrinsic call usub_with_overflow funtion.Luo Xionghu2014-11-031-20/+77
| | | | | | | | | | | | | | as llvm couldn't recognize the pattern of usub overflow, this usub with is generated by calling the intrinsic function __builtin_usub_overflow; also this type of uadd intrinsic funtion couldn't support short/byte type overflow, we choose another way for the uadd kernel to generate short/byte overflow. will send patch to llvm later to fix the 2 issues. v2: split the patch. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* add utest compiler_overflow for llvm intrinsic function.Luo Xionghu2014-10-281-0/+72
this case only runs for uadd_with_over_flow function so far. Signed-off-by: Luo Xionghu <xionghu.luo@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>