[libc-commits] [libc] 53d4057 - [libc] Fix merging issue with test/src/math/exhaustive/expm1f_test

Tue Ly via libc-commits libc-commits at lists.llvm.org
Wed Jun 14 08:00:49 PDT 2023


Author: Tue Ly
Date: 2023-06-14T11:00:13-04:00
New Revision: 53d405762219d798286b99c297098a14643440fe

URL: https://github.com/llvm/llvm-project/commit/53d405762219d798286b99c297098a14643440fe
DIFF: https://github.com/llvm/llvm-project/commit/53d405762219d798286b99c297098a14643440fe.diff

LOG: [libc] Fix merging issue with test/src/math/exhaustive/expm1f_test

Added: 
    

Modified: 
    libc/test/src/math/exhaustive/expm1f_test.cpp

Removed: 
    


################################################################################
diff  --git a/libc/test/src/math/exhaustive/expm1f_test.cpp b/libc/test/src/math/exhaustive/expm1f_test.cpp
index 42225ea804b6a..29543b5b7f9ba 100644
--- a/libc/test/src/math/exhaustive/expm1f_test.cpp
+++ b/libc/test/src/math/exhaustive/expm1f_test.cpp
@@ -21,9 +21,9 @@ namespace mpfr = __llvm_libc::testing::mpfr;
 struct LlvmLibcExpm1fExhaustiveTest : public LlvmLibcExhaustiveTest<uint32_t> {
   bool check(uint32_t start, uint32_t stop,
              mpfr::RoundingMode rounding) override {
+    mpfr::ForceRoundingMode r(rounding);
     if (!r.success)
       return true;
-    mpfr::ForceRoundingMode r(rounding);
     uint32_t bits = stop;
     bool result = true;
     do {


        


More information about the libc-commits mailing list