[all-commits] [llvm/llvm-project] 5f8ee4: AMDGPU: Implement llvm.get.rounding

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Aug 30 11:06:27 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5f8ee45d5afb972df75758bf04bc7c0265c3e7eb
      https://github.com/llvm/llvm-project/commit/5f8ee45d5afb972df75758bf04bc7c0265c3e7eb
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2023-08-30 (Wed, 30 Aug 2023)

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

  Log Message:
  -----------
  AMDGPU: Implement llvm.get.rounding

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




More information about the All-commits mailing list