[compiler-rt] [builtins] Fix divtc3.c etc. compilation on Solaris/SPARC with gcc (PR #101662)
Zibi Sarbinowski via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 15 09:25:04 PDT 2024
zibi2 wrote:
His is the downstream code (not up streamed yet) guarded with `CRT_LDBL_128BIT`
```
# 488 "/plex/zibi/llvm/Woz/llvm-project/compiler-rt/lib/builtins/fp_lib.h"
static __inline tf_float __compiler_rt_logbtf(tf_float x) {
return __builtin_logbl((x));
}
```
Maybe the guard for the `__divtc3` and `__multc3` should be:
`#if defined(CRT_HAS_F128) && (defined(CRT_HAS_TF_MODE) || defined(CRT_LDBL_128BIT))`
https://github.com/llvm/llvm-project/pull/101662
More information about the llvm-commits
mailing list