[clang] [llvm] Clang: emit llvm.minnum and llvm.maxnum with nsz always (PR #113133)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 21 10:26:42 PDT 2024
================
@@ -0,0 +1,33 @@
+// RUN: %clang_cc1 -triple x86_64 %s -emit-llvm -o - 2>&1 | FileCheck %s --check-prefix=CHECK
+
+float fminf (float, float);
+double fmin (double, double);
+long double fminl (long double, long double);
+float fmaxf (float, float);
+double fmax (double, double);
+long double fmaxl (long double, long double);
+
+// CHECK: call nsz float @llvm.minnum.f32
+float fmin1(float a, float b) {
+ return fminf(a, b);
----------------
arsenm wrote:
Test the __builtin cases? Not just the direct libcalls?
https://github.com/llvm/llvm-project/pull/113133
More information about the cfe-commits
mailing list