[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)
YunQiang Su via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 13 23:16:05 PDT 2024
================
@@ -0,0 +1,55 @@
+// RUN: %clang_cc1 -std=c++17 -fsyntax-only -verify %s
+// FIXME: %clang_cc1 -std=c++17 -fsyntax-only -verify -fexperimental-new-constant-interpreter %s
+// expected-no-diagnostics
+
+constexpr double NaN = __builtin_nan("");
+constexpr double Inf = __builtin_inf();
+constexpr double NegInf = -__builtin_inf();
----------------
wzssyqa wrote:
It seems that we have no `__builtin_snan`. Do you have any idea how to produce an signaling nan?
https://github.com/llvm/llvm-project/pull/96281
More information about the cfe-commits
mailing list