diff options
author | Leonard Chan <leonardchan@google.com> | 2018-10-22 23:08:40 +0000 |
---|---|---|
committer | Leonard Chan <leonardchan@google.com> | 2018-10-22 23:08:40 +0000 |
commit | 0acfc6be384ad769dd3a72d771aa44e5ba6749ad (patch) | |
tree | 751f33e1590511cc499c388d07390c1dd5dab76f /llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp | |
parent | a0beeffeed3d24cf65ec165141926f7715380eb2 (diff) | |
download | llvm-0acfc6be384ad769dd3a72d771aa44e5ba6749ad.zip llvm-0acfc6be384ad769dd3a72d771aa44e5ba6749ad.tar.gz llvm-0acfc6be384ad769dd3a72d771aa44e5ba6749ad.tar.bz2 |
[Intrinsic] Unigned Saturation Addition Intrinsic
Add an intrinsic that takes 2 integers and perform unsigned saturation
addition on them.
This is a part of implementing fixed point arithmetic in clang where some of
the more complex operations will be implemented as intrinsics.
Differential Revision: https://reviews.llvm.org/D53340
llvm-svn: 344971
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp index e7edc0e..787091a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp @@ -390,6 +390,7 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) { case ISD::UMUL_LOHI: case ISD::FCANONICALIZE: case ISD::SADDSAT: + case ISD::UADDSAT: Action = TLI.getOperationAction(Node->getOpcode(), Node->getValueType(0)); break; case ISD::FP_ROUND_INREG: |