[PATCH] D153158: AMDGPU: Implement llvm.get.rounding

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 16 10:45:02 PDT 2023


arsenm created this revision.
arsenm added reviewers: AMDGPU, foad, rampitec, b-sumner, Pierre-vh, cdevadas.
Herald added subscribers: StephenFan, jdoerfert, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

There are really two rounding modes, so only return the standard
values if both modes are the same. Otherwise, return a bitmask
representing the two modes.

      

Annoyingly the register doesn't use the same values as FLT_ROUNDS. Use
a simple integer table we can shift into to convert.


https://reviews.llvm.org/D153158

Files:
  llvm/docs/AMDGPUUsage.rst
  llvm/docs/LangRef.rst
  llvm/docs/ReleaseNotes.rst
  llvm/include/llvm/CodeGen/ISDOpcodes.h
  llvm/lib/Target/AMDGPU/SIISelLowering.cpp
  llvm/lib/Target/AMDGPU/SIISelLowering.h
  llvm/lib/Target/AMDGPU/SIModeRegisterDefaults.cpp
  llvm/lib/Target/AMDGPU/SIModeRegisterDefaults.h
  llvm/test/CodeGen/AMDGPU/llvm.get.rounding.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153158.532221.patch
Type: text/x-patch
Size: 28082 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230616/822a1315/attachment.bin>


More information about the llvm-commits mailing list