[PATCH] D102353: [AArch64] Lower fpto*i.sat intrinsics.

Jacob Bramley via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 12 12:15:03 PDT 2021


jbramley created this revision.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
jbramley requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

AArch64's fctv* instructions implement the saturating behaviour that the
fpto*i.sat intrinsics require, in cases where the destination width
matches the saturation width. Lowering them removes a lot of unnecessary
generated code.

Only scalar lowerings are supported for now.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102353

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/lib/Target/AArch64/AArch64InstrInfo.td
  llvm/test/CodeGen/AArch64/fptosi-sat-scalar.ll
  llvm/test/CodeGen/AArch64/fptosi-sat-vector.ll
  llvm/test/CodeGen/AArch64/fptoui-sat-scalar.ll
  llvm/test/CodeGen/AArch64/fptoui-sat-vector.ll
  llvm/test/CodeGen/AArch64/round-fptosi-sat-scalar.ll
  llvm/test/CodeGen/AArch64/round-fptoui-sat-scalar.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102353.344906.patch
Type: text/x-patch
Size: 132340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210512/90dc9ec1/attachment.bin>


More information about the llvm-commits mailing list