[all-commits] [llvm/llvm-project] 9731b7: AMDGPU: Implement llvm.set.rounding (#88587)

Matt Arsenault via All-commits all-commits at lists.llvm.org
Fri May 3 00:41:48 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9731b77e80261c627d79980f8c275700bdaf6591
      https://github.com/llvm/llvm-project/commit/9731b77e80261c627d79980f8c275700bdaf6591
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2024-05-03 (Fri, 03 May 2024)

  Changed paths:
    M llvm/docs/AMDGPUUsage.rst
    M llvm/docs/LangRef.rst
    M llvm/docs/ReleaseNotes.rst
    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.set.rounding.ll

  Log Message:
  -----------
  AMDGPU: Implement llvm.set.rounding (#88587)

Use a shift of a magic constant and some offseting to convert from
flt_rounds values.

I don't know why the enum defines Dynamic = 7. The standard suggests -1
is the cannot determine value. If we could start the extended values at
4 we wouldn't need the extra compare sub and select.

https://reviews.llvm.org/D153257



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list