[libc-commits] [libc] [llvm] [libc][math][c23] Implement canonicalize functions (PR #85940)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Tue Mar 26 08:40:23 PDT 2024


nickdesaulniers wrote:

This breaks the arm32 build in postsubmit, PTAL.
https://lab.llvm.org/buildbot/#/builders/229/builds/24394
```
In file included from /llvm/libc_worker/worker/libc-arm32-debian/libc-arm32-debian-dbg/llvm-project/libc/src/math/generic/sinf.cpp:11:
/llvm/libc_worker/worker/libc-arm32-debian/libc-arm32-debian-dbg/llvm-project/libc/src/__support/FPUtil/BasicOperations.h:202:10: error: no viable conversion from '__llvm_libc_19_0_0_git::BigInt<128, false>' to 'bool'
    bool bit62 = ((mantissa & (1ULL << 62)) >> 62);
         ^       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/llvm/libc_worker/worker/libc-arm32-debian/libc-arm32-debian-dbg/llvm-project/libc/src/__support/UInt.h:186:56: note: explicit conversion function is not a candidate
  template <typename T> LIBC_INLINE constexpr explicit operator T() const {
                                                       ^
/llvm/libc_worker/worker/libc-arm32-debian/libc-arm32-debian-dbg/llvm-project/libc/src/__support/UInt.h:216:34: note: explicit conversion function is not a candidate
  LIBC_INLINE constexpr explicit operator bool() const { return !is_zero(); }
                                 ^
```

https://github.com/llvm/llvm-project/pull/85940


More information about the libc-commits mailing list