[libc-commits] [clang] [libc] [llvm] [clang] Make __builtin_exp and __builtin_expf constexpr. (PR #199808)
via libc-commits
libc-commits at lists.llvm.org
Wed Jul 22 08:03:33 PDT 2026
================
@@ -0,0 +1,19 @@
+// RUN: %clang_cc1 -std=c++17 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -std=c++17 -fsyntax-only -verify -fexperimental-new-constant-interpreter %s
+// expected-no-diagnostics
+
+constexpr float InfFloat = __builtin_inff();
+constexpr float NegInfFloat = -__builtin_inff();
+
----------------
lntue wrote:
I updated the logic and the tests.
https://github.com/llvm/llvm-project/pull/199808
More information about the libc-commits
mailing list