[PATCH] D134369: [Clang] Support constexpr builtin fmax

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 28 15:43:40 PDT 2022


efriedma added a comment.

> We shouldn't be claiming that except maybe if we're using -fp-model=strict

Makes sense.

> I'm wondering what needs to happen with that for regular floating-point operations that may trigger exceptions

In general, floating-point exceptions are affected by whether we're semantically required to do constant evaluation (InConstantContext in the code).  If we're evaluating something that has to be a constant expression, we ignore exceptions.  Otherwise, we're doing opportunistic evaluation, so we have to honor the rounding mode specified by flags/pragmas.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D134369/new/

https://reviews.llvm.org/D134369



More information about the cfe-commits mailing list