[PATCH] D29639: [SelectionDAG] Add a signed integer absolute ISD node

James Molloy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 21 06:43:44 PST 2017


jmolloy added a subscriber: jgreenhalgh.
jmolloy added a comment.

Hi,

Having asked around: The way we define this is that the VABS instruction takes a signed integer and outputs an unsigned integer, getting around this problem.

However, I believe the output of VABS(INT_MIN) is indeed bit-identical to INT_MIN.

+ @jgreenhalgh  to confirm I haven't mangled his explanation.

James


Repository:
  rL LLVM

https://reviews.llvm.org/D29639





More information about the llvm-commits mailing list