Issue 138425
Summary [libc] implicit conversion error on rv32
Labels libc
Assignees
Reporter mikhailramalho
    Some tests are failing to build on rv32 due to:
```
/home/mgadelha/tools/llvm-project/libc/src/__support/FPUtil/FPBits.h:760:40: error: implicit conversion loses integer precision: 'int' to 'size_t' (aka 'unsigned int') [-Werror,-Wimplicit-int-conversion]
  760 | result.set_significand(number >> -ep);
      | ~~ ^~~
/home/mgadelha/tools/llvm-project/libc/src/__support/FPUtil/generic/FMod.h:221:19: note: in instantiation of member function '__llvm_libc_21_0_0_git::fputil::internal::FPRepImpl<__llvm_libc_21_0_0_git::fputil::FPType::IEEE754_Binary128, __llvm_libc_21_0_0_git::fputil::FPBits<long double>>::make_value' requested here
  221 |       return FPB::make_value(d, e_y - 1);
      | ^
/home/mgadelha/tools/llvm-project/libc/src/__support/FPUtil/generic/FMod.h:286:18: note: in instantiation of member function '__llvm_libc_21_0_0_git::fputil::generic::FMod<long double>::eval_internal' requested here
  286 |     FPB result = eval_internal(sx, sy);
      | ^
/home/mgadelha/tools/llvm-project/libc/src/math/generic/fmodl.cpp:17:46: note: in instantiation of member function '__llvm_libc_21_0_0_git::fputil::generic::FMod<long double>::eval' requested here
   17 |   return fputil::generic::FMod<long double>::eval(x, y);
 |                                              ^
1 error generated.
``` 
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to