[clang] [llvm] [C++23] [CLANG] Adding C++23 constexpr math functions: fmin, fmax and frexp. (PR #88978)

Zahira Ammarguellat via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 11 06:29:30 PDT 2024


================
@@ -6,17 +6,21 @@
 // RUN: %clang_cc1 -triple powerpc-ibm-aix -mlong-double-64 -emit-llvm -o - %s | FileCheck -check-prefix=CHECK %s
 // RUN: %clang_cc1 -triple powerpc64-ibm-aix -mlong-double-64 -emit-llvm -o - %s | FileCheck -check-prefix=CHECK %s
 
+long double input = 0.0L;
+
 int main()
 {
   int DummyInt;
   long double DummyLongDouble;
   long double returnValue;
 
   returnValue = __builtin_modfl(1.0L, &DummyLongDouble);
-  returnValue = __builtin_frexpl(0.0L, &DummyInt);
+  returnValue = __builtin_frexpl(input, &DummyInt);
----------------
zahiraam wrote:

Done.

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


More information about the cfe-commits mailing list