[libc] [llvm] [libc] Add fixed point support to printf (PR #82707)

Nick Desaulniers via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 26 10:23:38 PST 2024


================
@@ -3201,6 +3201,166 @@ TEST_F(LlvmLibcSPrintfTest, FloatAutoLongDoubleConv) {
 
 #endif // LIBC_COPT_PRINTF_DISABLE_FLOAT
 
+#if defined(LIBC_COMPILER_HAS_FIXED_POINT) &&                                  \
+    !defined(LIBC_COPT_PRINTF_DISABLE_FIXED_POINT)
+TEST_F(LlvmLibcSPrintfTest, FixedConv) {
+
+  // These numeric tests are potentially a little weak, but the fuzz test is
+  // more thorough than my handwritten tests tend to be.
+
+  // TODO: Commit the fuzzer
----------------
nickdesaulniers wrote:

Stale comment as of https://github.com/llvm/llvm-project/pull/82707/commits/553c7d9a267465d0eb3bf068454db62e0af01c97

https://github.com/llvm/llvm-project/pull/82707


More information about the llvm-commits mailing list