enable llvm intrinsic call usub_with_overflow funtion.
authorLuo Xionghu <xionghu.luo@intel.com>
Sun, 2 Nov 2014 21:22:03 +0000 (05:22 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Mon, 3 Nov 2014 09:23:48 +0000 (17:23 +0800)
commit65a3d67bd06c480573d885c3c35919247685817c
tree4928293ec569fac315649ede2adfea4c605070ad
parent4caba11ce88b3c1ec80ee119ceaf4bf778b96471
enable llvm intrinsic call usub_with_overflow funtion.

implement usub_with_overflow without any optimization.

v2:
fix the wrong implementation:
change ctx.LT(dst0Type, overflow, dst0, src1)
to ctx.GT(unsignedType, overflow, dst0, src0)

Signed-off-by: Luo Xionghu <xionghu.luo@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/llvm/llvm_gen_backend.cpp