[PATCH] D53783: [Intrinsic] Signed and Unsigned Saturation Subtraction Intirnsics

Leonard Chan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 26 16:26:14 PDT 2018


leonardchan created this revision.
leonardchan added reviewers: ebevhan, bjope, craig.topper.
Herald added a subscriber: hiraditya.

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.


Repository:
  rL LLVM

https://reviews.llvm.org/D53783

Files:
  llvm/include/llvm/CodeGen/ISDOpcodes.h
  llvm/include/llvm/CodeGen/TargetLowering.h
  llvm/include/llvm/IR/Intrinsics.td
  llvm/include/llvm/Target/TargetSelectionDAG.td
  llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
  llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
  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/ssub_sat.ll
  llvm/test/CodeGen/X86/usub_sat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53783.171375.patch
Type: text/x-patch
Size: 31368 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181026/e91bf56b/attachment.bin>


More information about the llvm-commits mailing list