[PATCH] D142355: [AArch64][SME2] Add the IR intrinsics for SME2 fclamp, sclamp and uclamp instructions

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 23 06:05:58 PST 2023


david-arm created this revision.
david-arm added reviewers: sdesmalen, kmclaughlin, CarolineConcatto, MattDevereau, aemerson.
Herald added subscribers: ctetreau, hiraditya, kristof.beyls.
Herald added a project: All.
david-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Adds intrinsics for the following SME2 instructions:

- fclamp (2 and 4 vectors)
- sclamp (2 and 4 vectors)
- uclamp (2 and 4 vectors)

I've added these new instructions to the existing sve2p1-* tests
because although they are included as part of SME2 they are still
SVE-like, in that they only operate on SVE vectors.

NOTE: These intrinsics are still in development and are subject to future changes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142355

Files:
  llvm/include/llvm/IR/IntrinsicsAArch64.td
  llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
  llvm/test/CodeGen/AArch64/sve2p1-intrinsics-fclamp.ll
  llvm/test/CodeGen/AArch64/sve2p1-intrinsics-sclamp.ll
  llvm/test/CodeGen/AArch64/sve2p1-intrinsics-uclamp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142355.491335.patch
Type: text/x-patch
Size: 39032 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230123/5fc8012b/attachment.bin>


More information about the llvm-commits mailing list