[PATCH] D103263: [AArch64] Add S/UQXTRN tablegen patterns.

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 27 09:12:44 PDT 2021


dmgreen created this revision.
dmgreen added reviewers: NickGuy, david-arm, fhahn, RKSimon, bsmith, efriedma.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.

I found these on my computer so cleaned them up and added extra tests/types.  This adds simple patterns for signed and unsigned saturating extract narrow instructions. They combine a min/max/truncate into a single instruction, providing that the immediates on the min/max are correct for the saturation type. This is just handled in tablegen with some extra patterns.

v2i64->v2i32 is not handled here as the min/max nodes are not legal, making the lowering quite different.


https://reviews.llvm.org/D103263

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103263.348247.patch
Type: text/x-patch
Size: 5218 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210527/5dc07761/attachment-0001.bin>


More information about the llvm-commits mailing list