[PATCH] D116105: [AArch64] Add a tablegen pattern for SQXTN2.

Alexandros Lamprineas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 21 05:58:11 PST 2021


labrinea created this revision.
labrinea added reviewers: llvm-commits, dmgreen, SjoerdMeijer, momchil.velikov.
Herald added subscribers: armkevincheng, eric-k256, hiraditya, kristof.beyls.
Herald added a reviewer: sjarus.
labrinea requested review of this revision.
Herald added a project: LLVM.

Converts concat_vectors(Vd, trunc(smin(smax Vm, -2^n), 2^n-1) to sqxtn2(Vd, Vm). Deliberately not handling v2i64->v2i32 as the min/max nodes are not legal (same as https://reviews.llvm.org/D103263).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116105

Files:
  llvm/lib/Target/AArch64/AArch64InstrInfo.td
  llvm/test/CodeGen/AArch64/fpclamptosat_vec.ll
  llvm/test/CodeGen/AArch64/sqxtn2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116105.395659.patch
Type: text/x-patch
Size: 6117 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211221/19fb763f/attachment.bin>


More information about the llvm-commits mailing list