[PATCH] D89831: [AArch64][SVE] Fix umin/umax lowering to handle out of range imm.

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 20 15:26:08 PDT 2020


huihuiz created this revision.
huihuiz added reviewers: efriedma, sdesmalen, kmclaughlin, paulwalker-arm.
huihuiz added a project: LLVM.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
Herald added a reviewer: rengolin.
huihuiz requested review of this revision.

Immediate must be in an integer range [0,255] for umin/umax instruction.
Extend pattern matching helper SelectSVEArithImm() to take in value type
bitwidth when checking immediate value is in range or not.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89831

Files:
  llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
  llvm/lib/Target/AArch64/SVEInstrFormats.td
  llvm/test/CodeGen/AArch64/sve-int-arith-imm.ll
  llvm/test/CodeGen/AArch64/sve-intrinsics-int-arith-imm.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89831.299489.patch
Type: text/x-patch
Size: 26260 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201020/2199aadf/attachment.bin>


More information about the llvm-commits mailing list