[libc-commits] [compiler-rt] [libc] [llvm] [compiler-rt][builtins] add libc-backed arithmetic builtins (PR #207092)
via libc-commits
libc-commits at lists.llvm.org
Fri Jul 17 00:13:21 PDT 2026
================
@@ -10,31 +10,31 @@
#include "test/UnitTest/FPMatcher.h"
#include "test/UnitTest/Test.h"
-TEST(LlvmLibcSharedBuiltinsTest, AllFloat) {
- EXPECT_FP_EQ(3.0f, LIBC_NAMESPACE::shared::addsf3(1.0f, 2.0f));
- EXPECT_FP_EQ(3.0f, LIBC_NAMESPACE::shared::divsf3(6.0f, 2.0f));
- EXPECT_FP_EQ(6.0f, LIBC_NAMESPACE::shared::mulsf3(2.0f, 3.0f));
- EXPECT_FP_EQ(2.0f, LIBC_NAMESPACE::shared::subsf3(5.0f, 3.0f));
+using shared = LIBC_NAMESPACE::shared;
----------------
hulxv wrote:
I did that to avoid wrapped lines for formatting purposes because it makes the line more than 80 chars and wraps the line. Do you see it's not a correct thing?
https://github.com/llvm/llvm-project/pull/207092
More information about the libc-commits
mailing list