[PATCH] D140846: [NVPTX] Fix NVPTX lowering of frem when denominator is infinite.

Benjamin Chetioui via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 2 08:09:29 PST 2023


bchetioui created this revision.
Herald added subscribers: mattd, gchakrabarti, asavonic, hiraditya.
Herald added a project: All.
bchetioui requested review of this revision.
Herald added subscribers: llvm-commits, jholewinski.
Herald added a project: LLVM.

`frem x, {+,-}inf` must return x to match the specification of LLVM's frem.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140846

Files:
  llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
  llvm/test/CodeGen/NVPTX/f16-instructions.ll
  llvm/test/CodeGen/NVPTX/f16x2-instructions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140846.485865.patch
Type: text/x-patch
Size: 17123 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230102/4ba22045/attachment.bin>


More information about the llvm-commits mailing list