[all-commits] [llvm/llvm-project] a9d5bb: [RISCV] Use __extendhfsf2/__truncsfhf2 for fp16 <-...
Kito Cheng via All-commits
all-commits at lists.llvm.org
Fri Jan 28 08:01:24 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a9d5bb926d45e9464d539226e380ae6accc95952
https://github.com/llvm/llvm-project/commit/a9d5bb926d45e9464d539226e380ae6accc95952
Author: Kito Cheng <kito.cheng at sifive.com>
Date: 2022-01-29 (Sat, 29 Jan 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/calling-conv-half.ll
M llvm/test/CodeGen/RISCV/copysign-casts.ll
M llvm/test/CodeGen/RISCV/fp16-promote.ll
M llvm/test/CodeGen/RISCV/fpclamptosat.ll
M llvm/test/CodeGen/RISCV/fpclamptosat_vec.ll
M llvm/test/CodeGen/RISCV/half-arith.ll
M llvm/test/CodeGen/RISCV/half-convert.ll
M llvm/test/CodeGen/RISCV/half-intrinsics.ll
M llvm/test/CodeGen/RISCV/rv32i-rv64i-half.ll
Log Message:
-----------
[RISCV] Use __extendhfsf2/__truncsfhf2 for fp16 <-> fp32
`__gnu_h2f_ieee` and `__gnu_f2h_ieee` are introduce by ARM and set that as
default name for fp16 and fp32 conversion in LLVM.
However RISC-V GCC using default naming scheme for that, which is
`__extendhfsf2` and `__truncsfhf2` for that, that cause runtime ABI
incompatible issue.
Although we didn't have formal runtime ABI spec to specify those naming
convention yet, but I think it would be great to fix the incompatible
issue first.
And I've plan to create a runtime ABI spec undere psABI spec this year.
Reviewed By: asb
Differential Revision: https://reviews.llvm.org/D118207
More information about the All-commits
mailing list