[clang] Clang: Support minimumnum and maximumnum intrinsics (PR #96281)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 11 03:19:48 PDT 2024
================
@@ -372,6 +372,31 @@ void foo(double *d, float f, float *fp, long double *l, int *i, const char *c) {
// HAS_MAYTRAP: declare float @llvm.experimental.constrained.minnum.f32(
// HAS_MAYTRAP: declare x86_fp80 @llvm.experimental.constrained.minnum.f80(
+ fmaximum_num(f,f); fmaximum_numf(f,f); fmaximum_numl(f,f);
----------------
arsenm wrote:
Use right type and avoid the implicit casts?
https://github.com/llvm/llvm-project/pull/96281
More information about the cfe-commits
mailing list