[PATCH] D111986: [Clang] Add elementwise abs builtin.
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 18 10:41:12 PDT 2021
craig.topper added inline comments.
================
Comment at: clang/lib/CodeGen/CGBuiltin.cpp:3109
+ Result = Builder.CreateBinaryIntrinsic(
+ llvm::Intrinsic::abs, Op0, Builder.getFalse(), nullptr, "elt.abs");
+ else
----------------
Did we discuss that this is different than __builtin_abs which is undefined for INT_MIN?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111986/new/
https://reviews.llvm.org/D111986
More information about the cfe-commits
mailing list