[PATCH] D84324: AMDGPU/GlobalISel: Lower G_FREM

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 23 07:09:24 PDT 2020


arsenm added a comment.

In D84324#2169289 <https://reviews.llvm.org/D84324#2169289>, @foad wrote:

> > I'd still like to understand why this is failing conformance if I use frem for opencl fmod.
>
> What is the alternative to using frem, that passes conformance?


A huge expansion that involves loops:
https://github.com/RadeonOpenCompute/ROCm-Device-Libs/blob/amd-stg-open/ocml/src/remainderF_base.h#L38


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84324/new/

https://reviews.llvm.org/D84324





More information about the llvm-commits mailing list