[all-commits] [llvm/llvm-project] 3e0e1c: [RISCV][GISel] Support fp128 arithmetic and conver...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Dec 4 21:43:50 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e0e1c13ce96dfe291ffaf9edc9876cdd5016a0d
      https://github.com/llvm/llvm-project/commit/3e0e1c13ce96dfe291ffaf9edc9876cdd5016a0d
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2024-12-04 (Wed, 04 Dec 2024)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
    M llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
    A llvm/test/CodeGen/RISCV/GlobalISel/fp128.ll

  Log Message:
  -----------
  [RISCV][GISel] Support fp128 arithmetic and conversion for RV64. (#118707)

We can support these via libcalls in libgcc/compiler-rt or integer
operations for fneg/fabs/fcopysign. fp128 values will be passed in two
64-bit GPRs according to the psABI.

Supporting RV32 requires sret which is not supported by libcall handling
in LegalizerHelper.cpp yet. It doesn't call canLowerReturn.



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