Set LONG_DOUBLE_IS_DOUBLE, add ifdefs for 128-bit integer types
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
you'll probably also need to add #ifdef conditions to src/__support/CPP/Limits.h and its corresponding test.
I've added a few comments, and I've also started a thread on the LLVM discourse page for discussing plans for building LLVM-libc on arm32: https://discourse.llvm.org/t/building-llvm-libc-for-arm32/62092 if you want to join.
libc/test/src/__support/str_to_float_test.cpp | ||
---|---|---|
275 | these shouldn't be necessary, since arm32 uses long doubles as doubles, which is caught by the condition above. | |
libc/test/src/stdlib/strtold_test.cpp | ||
18 | for these tests I would recommend disabling strtold as an entrypoint instead of putting the whole test file in an #ifdef. If you want, you can add a TODO for me to look into changing this test to not use uint128 when it doesn't need it. |
libc/test/src/stdlib/strtold_test.cpp | ||
---|---|---|
18 | Are you referring to libc/config/darwin/arm/entrypoints.txt? Or omitting strtold_tests from libc/test/src/stdlib/CMakeLists.txt for arm? |
these shouldn't be necessary, since arm32 uses long doubles as doubles, which is caught by the condition above.