Add an intrinsic that takes 2 integers and perform saturation subtraction 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.
Paths
| Differential D53783
[Intrinsic] Signed and Unsigned Saturation Subtraction Intrinsics ClosedPublic Authored by leonardchan on Oct 26 2018, 4:26 PM.
Details Summary Add an intrinsic that takes 2 integers and perform saturation subtraction 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.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 26 2018, 10:42 PM Comment Actions nit: there is a spelling error in the title "Intirnsics"
Closed by commit rL345512: [Intrinsic] Signed and Unsigned Saturation Subtraction Intirnsics (authored by leonardchan). · Explain WhyOct 29 2018, 9:57 AM This revision was automatically updated to reflect the committed changes. leonardchan retitled this revision from [Intrinsic] Signed and Unsigned Saturation Subtraction Intirnsics to [Intrinsic] Signed and Unsigned Saturation Subtraction Intrinsics.Oct 29 2018, 10:02 AM spatel mentioned this in D96904: [IR] restrict vector reduction intrinsic types.Feb 19 2021, 9:23 AM
Revision Contents
Diff 171528 llvm/trunk/include/llvm/CodeGen/ISDOpcodes.h
llvm/trunk/include/llvm/CodeGen/TargetLowering.h
llvm/trunk/include/llvm/IR/Intrinsics.td
llvm/trunk/include/llvm/Target/TargetSelectionDAG.td
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeTypes.h
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
llvm/trunk/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp
llvm/trunk/lib/IR/Verifier.cpp
llvm/trunk/test/CodeGen/X86/ssub_sat.ll
llvm/trunk/test/CodeGen/X86/usub_sat.ll
|