Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[libc][math] fix failing nanl_test build #77102

Merged
merged 1 commit into from
Jan 5, 2024
Merged

Conversation

nishantwrp
Copy link
Contributor

No description provided.

@llvmbot llvmbot added the libc label Jan 5, 2024
@nishantwrp
Copy link
Contributor Author

@lntue ptal!

@llvmbot
Copy link
Collaborator

llvmbot commented Jan 5, 2024

@llvm/pr-subscribers-libc

Author: Nishant Mittal (nishantwrp)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/77102.diff

1 Files Affected:

  • (modified) libc/test/src/math/smoke/nanl_test.cpp (+1-1)
diff --git a/libc/test/src/math/smoke/nanl_test.cpp b/libc/test/src/math/smoke/nanl_test.cpp
index c0e95401611294..0a57b567916c9a 100644
--- a/libc/test/src/math/smoke/nanl_test.cpp
+++ b/libc/test/src/math/smoke/nanl_test.cpp
@@ -28,7 +28,7 @@ class LlvmLibcNanlTest : public LIBC_NAMESPACE::testing::Test {
     long double result = LIBC_NAMESPACE::nanl(input_str);
     auto actual_fp = LIBC_NAMESPACE::fputil::FPBits<long double>(result);
     auto expected_fp = LIBC_NAMESPACE::fputil::FPBits<long double>(bits);
-    EXPECT_EQ(actual_fp.bits, expected_fp.bits);
+    EXPECT_EQ(actual_fp.uintval(), expected_fp.uintval());
   };
 };
 

@lntue lntue merged commit 736cc0c into llvm:main Jan 5, 2024
5 checks passed
@nishantwrp nishantwrp deleted the fix-nanl-build branch January 5, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants