[PATCH] D11678: [CodeGen] Fixes *absdiff* intrinsic: LangRef doc/test case improvement and corresponding code change

Shahid via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 01:13:56 PDT 2015


ashahid added inline comments.

================
Comment at: docs/LangRef.rst:10750-10751
@@ -10747,4 +10749,4 @@
 
 The ``llvm.sabsdiff`` intrinsic returns a vector result of the absolute difference of
 the two operands, treating them both as signed integers.
 
----------------
mzolotukhin wrote:
> Please specify what happens if the result overflows (e.g. `llvm.sabsdiff.v4i8(<4 x i32> <-128, -128, -128, -128>, <4 x i32> <127, 127, 127, 127>)`).
Thanks for the catch, in this case the behavior is undefined and targets can define their own behavior. Does this make sense?


http://reviews.llvm.org/D11678





More information about the llvm-commits mailing list