[PATCH] D83216: [Intrinsic] Add sshl.sat/ushl.sat, saturated shift intrinsics.
Bevin Hansson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 12:53:49 PDT 2020
ebevhan created this revision.
ebevhan added reviewers: leonardchan, craig.topper, bjope.
Herald added subscribers: llvm-commits, jdoerfert, hiraditya.
Herald added a reviewer: jdoerfert.
Herald added a project: LLVM.
This patch adds two intrinsics, llvm.sshl.sat and llvm.ushl.sat,
which perform signed and unsigned saturating left shift,
respectively.
These are needed for implementing the Embedded-C fixed point
support in Clang.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D83216
Files:
llvm/docs/LangRef.rst
llvm/include/llvm/CodeGen/ISDOpcodes.h
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/include/llvm/IR/Intrinsics.td
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/CodeGen/TargetLoweringBase.cpp
llvm/lib/IR/Verifier.cpp
llvm/test/CodeGen/X86/sshl_sat.ll
llvm/test/CodeGen/X86/ushl_sat.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83216.275676.patch
Type: text/x-patch
Size: 37395 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200706/0e3b9cff/attachment-0001.bin>
More information about the llvm-commits
mailing list