[libc-commits] [libc] [libc] Implement basic 'fenv.h' utilities on the AMD GPU (PR #83500)
Matt Arsenault via libc-commits
libc-commits at lists.llvm.org
Fri May 3 13:02:20 PDT 2024
================
@@ -26,19 +31,66 @@ TEST_F(LlvmLibcRoundingModeTest, SetAndGet) {
EXPECT_EQ(s, 0);
int rm = LIBC_NAMESPACE::fegetround();
EXPECT_EQ(rm, FE_TONEAREST);
+ EXPECT_TRUE(LIBC_NAMESPACE::fputil::fenv_is_round_to_nearest());
----------------
arsenm wrote:
Test this last. Also should actually perform an FP operation to make sure it used the right mode
https://github.com/llvm/llvm-project/pull/83500
More information about the libc-commits
mailing list